diff --git a/.release-please-manifest.json b/.release-please-manifest.json
index 064c5af8eb6..d6e3affc94d 100644
--- a/.release-please-manifest.json
+++ b/.release-please-manifest.json
@@ -11,15 +11,22 @@
"packages/google-cloud-bigquery-dataexchange": "0.3.0",
"packages/google-cloud-bigquery-datapolicies": "0.1.0",
"packages/google-cloud-bigquery-datatransfer": "3.1.3",
+ "packages/google-cloud-bigquery-reservation": "2.0.2",
+ "packages/google-cloud-gkeconnect-gateway": "2.0.3",
+ "packages/google-cloud-deploy": "2.2.0",
+ "packages/google-cloud-dataplex": "2.2.0",
+ "packages/google-cloud-certificatemanager": "0.6.0",
"packages/google-cloud-gkemulticloud": "0.1.2",
"packages/google-cloud-language": "5.1.0",
"packages/google-cloud-memcache": "2.1.2",
"packages/google-cloud-oslogin": "4.0.2",
"packages/google-cloud-phishingprotection": "3.0.4",
+ "packages/google-cloud-policytroubleshooter": "2.0.4",
"packages/google-cloud-recommender": "5.0.2",
"packages/google-cloud-redis": "3.1.3",
"packages/google-cloud-resourcemanager": "4.1.1",
"packages/google-cloud-security-publicca": "0.1.1",
+ "packages/google-cloud-shell": "2.0.1",
"packages/google-devtools-artifactregistry": "2.0.0",
"packages/google-iam": "0.2.0",
"packages/google-maps-routing": "0.1.1",
diff --git a/packages/google-cloud-bigquery-reservation/.OwlBot.yaml b/packages/google-cloud-bigquery-reservation/.OwlBot.yaml
new file mode 100644
index 00000000000..3e852a624ab
--- /dev/null
+++ b/packages/google-cloud-bigquery-reservation/.OwlBot.yaml
@@ -0,0 +1,26 @@
+# Copyright 2021 Google LLC
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+deep-remove-regex:
+ - /owl-bot-staging
+
+deep-preserve-regex:
+ - /owl-bot-staging/v1beta1
+
+deep-copy-regex:
+ - source: /google/cloud/bigquery/reservation/(.*)/.*-nodejs
+ dest: /owl-bot-staging/google-cloud-bigquery-reservation/$1
+
+begin-after-commit-hash: fb91803ccef5d7c695139b22788b309e2197856b
+
diff --git a/packages/google-cloud-bigquery-reservation/.eslintignore b/packages/google-cloud-bigquery-reservation/.eslintignore
new file mode 100644
index 00000000000..ea5b04aebe6
--- /dev/null
+++ b/packages/google-cloud-bigquery-reservation/.eslintignore
@@ -0,0 +1,7 @@
+**/node_modules
+**/coverage
+test/fixtures
+build/
+docs/
+protos/
+samples/generated/
diff --git a/packages/google-cloud-bigquery-reservation/.eslintrc.json b/packages/google-cloud-bigquery-reservation/.eslintrc.json
new file mode 100644
index 00000000000..78215349546
--- /dev/null
+++ b/packages/google-cloud-bigquery-reservation/.eslintrc.json
@@ -0,0 +1,3 @@
+{
+ "extends": "./node_modules/gts"
+}
diff --git a/packages/google-cloud-bigquery-reservation/.gitattributes b/packages/google-cloud-bigquery-reservation/.gitattributes
new file mode 100644
index 00000000000..33739cb74e4
--- /dev/null
+++ b/packages/google-cloud-bigquery-reservation/.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-bigquery-reservation/.gitignore b/packages/google-cloud-bigquery-reservation/.gitignore
new file mode 100644
index 00000000000..5d32b23782f
--- /dev/null
+++ b/packages/google-cloud-bigquery-reservation/.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-bigquery-reservation/.jsdoc.js b/packages/google-cloud-bigquery-reservation/.jsdoc.js
new file mode 100644
index 00000000000..2e387bea4d0
--- /dev/null
+++ b/packages/google-cloud-bigquery-reservation/.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/bigquery-reservation',
+ theme: 'lumen',
+ default: {
+ outputSourceFiles: false
+ }
+ },
+ markdown: {
+ idInHeadings: true
+ }
+};
diff --git a/packages/google-cloud-bigquery-reservation/.mocharc.js b/packages/google-cloud-bigquery-reservation/.mocharc.js
new file mode 100644
index 00000000000..cdb7b752160
--- /dev/null
+++ b/packages/google-cloud-bigquery-reservation/.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-bigquery-reservation/.nycrc b/packages/google-cloud-bigquery-reservation/.nycrc
new file mode 100644
index 00000000000..b18d5472b62
--- /dev/null
+++ b/packages/google-cloud-bigquery-reservation/.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-bigquery-reservation/.prettierignore b/packages/google-cloud-bigquery-reservation/.prettierignore
new file mode 100644
index 00000000000..9340ad9b86d
--- /dev/null
+++ b/packages/google-cloud-bigquery-reservation/.prettierignore
@@ -0,0 +1,6 @@
+**/node_modules
+**/coverage
+test/fixtures
+build/
+docs/
+protos/
diff --git a/packages/google-cloud-bigquery-reservation/.prettierrc.js b/packages/google-cloud-bigquery-reservation/.prettierrc.js
new file mode 100644
index 00000000000..d546a4ad546
--- /dev/null
+++ b/packages/google-cloud-bigquery-reservation/.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-bigquery-reservation/.repo-metadata.json b/packages/google-cloud-bigquery-reservation/.repo-metadata.json
new file mode 100644
index 00000000000..aa23e9b238b
--- /dev/null
+++ b/packages/google-cloud-bigquery-reservation/.repo-metadata.json
@@ -0,0 +1,17 @@
+{
+ "language": "nodejs",
+ "repo": "googleapis/google-cloud-node",
+ "name": "bigqueryreservation",
+ "issue_tracker": "https://b.corp.google.com/savedsearches/559654",
+ "default_version": "v1",
+ "api_id": "bigqueryreservation.googleapis.com",
+ "distribution_name": "@google-cloud/bigquery-reservation",
+ "requires_billing": true,
+ "product_documentation": "https://cloud.google.com/bigquery/docs/reference/reservations",
+ "codeowner_team": "@googleapis/api-bigquery",
+ "name_pretty": "Google BigQuery Reservation",
+ "client_documentation": "https://cloud.google.com/nodejs/docs/reference/bigquery-reservation/latest",
+ "release_level": "stable",
+ "api_shortname": "bigqueryreservation",
+ "library_type": "GAPIC_AUTO"
+}
diff --git a/packages/google-cloud-bigquery-reservation/CHANGELOG.md b/packages/google-cloud-bigquery-reservation/CHANGELOG.md
new file mode 100644
index 00000000000..186cf78d566
--- /dev/null
+++ b/packages/google-cloud-bigquery-reservation/CHANGELOG.md
@@ -0,0 +1,144 @@
+# Changelog
+
+## [2.0.2](https://github.com/googleapis/nodejs-bigquery-reservation/compare/v2.0.1...v2.0.2) (2022-09-22)
+
+
+### Bug Fixes
+
+* Preserve default values in x-goog-request-params header ([#170](https://github.com/googleapis/nodejs-bigquery-reservation/issues/170)) ([a2bdb93](https://github.com/googleapis/nodejs-bigquery-reservation/commit/a2bdb9342de046fec22897343b3a1c1e696928fc))
+
+## [2.0.1](https://github.com/googleapis/nodejs-bigquery-reservation/compare/v2.0.0...v2.0.1) (2022-09-01)
+
+
+### Bug Fixes
+
+* Allow passing gax instance to client constructor ([#169](https://github.com/googleapis/nodejs-bigquery-reservation/issues/169)) ([3532064](https://github.com/googleapis/nodejs-bigquery-reservation/commit/3532064ee2c7d07efe437875aaf18065ca7c036e))
+* Better support for fallback mode ([#165](https://github.com/googleapis/nodejs-bigquery-reservation/issues/165)) ([90fbf83](https://github.com/googleapis/nodejs-bigquery-reservation/commit/90fbf831bb4dbb4b5b03d782deeb5c8dc854e8dc))
+* Change import long to require ([#166](https://github.com/googleapis/nodejs-bigquery-reservation/issues/166)) ([c41ce5a](https://github.com/googleapis/nodejs-bigquery-reservation/commit/c41ce5a29572372d8e6ec8b0d2ca2901e10dfb71))
+* Do not import the whole google-gax from proto JS ([#1553](https://github.com/googleapis/nodejs-bigquery-reservation/issues/1553)) ([#168](https://github.com/googleapis/nodejs-bigquery-reservation/issues/168)) ([56f9393](https://github.com/googleapis/nodejs-bigquery-reservation/commit/56f939367a5e3e8367c3d907638acefbcb945e8d))
+* **docs:** Document fallback rest option ([#161](https://github.com/googleapis/nodejs-bigquery-reservation/issues/161)) ([9db1472](https://github.com/googleapis/nodejs-bigquery-reservation/commit/9db14722d4bd6c74e47a4145691b3920bb82ebe0))
+* Remove pip install statements ([#1546](https://github.com/googleapis/nodejs-bigquery-reservation/issues/1546)) ([#167](https://github.com/googleapis/nodejs-bigquery-reservation/issues/167)) ([fd418d7](https://github.com/googleapis/nodejs-bigquery-reservation/commit/fd418d758721e21e86ecfab0f5e4c82fc8f40726))
+
+## [2.0.0](https://github.com/googleapis/nodejs-bigquery-reservation/compare/v1.4.0...v2.0.0) (2022-06-07)
+
+
+### ⚠ BREAKING CHANGES
+
+* Update library to use Node 12
+* update library to use Node 12 (#155)
+
+### Build System
+
+* update library to use Node 12 ([#155](https://github.com/googleapis/nodejs-bigquery-reservation/issues/155)) ([408fedd](https://github.com/googleapis/nodejs-bigquery-reservation/commit/408feddc7218687fcb8c4f0ee332b5231fb705eb))
+
+
+### *build
+
+* Update library to use Node 12 ([408fedd](https://github.com/googleapis/nodejs-bigquery-reservation/commit/408feddc7218687fcb8c4f0ee332b5231fb705eb))
+
+## [1.4.0](https://www.github.com/googleapis/nodejs-bigquery-reservation/compare/v1.3.0...v1.4.0) (2021-12-30)
+
+
+### Features
+
+* increase the logical timeout (retry deadline) to 5 minutes ([#120](https://www.github.com/googleapis/nodejs-bigquery-reservation/issues/120)) ([5510500](https://www.github.com/googleapis/nodejs-bigquery-reservation/commit/5510500551df96a89c9481d7fe30b0cc95de5918))
+
+## [1.3.0](https://www.github.com/googleapis/nodejs-bigquery-reservation/compare/v1.2.0...v1.3.0) (2021-09-01)
+
+
+### Features
+
+* Added commitment_start_time to capacity commitments ([be13d46](https://www.github.com/googleapis/nodejs-bigquery-reservation/commit/be13d466f443af4ab88aff045eca2965eb11a968))
+* Deprecated SearchAssignments in favor of SearchAllAssignments ([be13d46](https://www.github.com/googleapis/nodejs-bigquery-reservation/commit/be13d466f443af4ab88aff045eca2965eb11a968))
+* Deprecated SearchAssignments in favor of SearchAllAssignments ([be13d46](https://www.github.com/googleapis/nodejs-bigquery-reservation/commit/be13d466f443af4ab88aff045eca2965eb11a968))
+* Force deleting capacity commitments is allowed ... ([#103](https://www.github.com/googleapis/nodejs-bigquery-reservation/issues/103)) ([be13d46](https://www.github.com/googleapis/nodejs-bigquery-reservation/commit/be13d466f443af4ab88aff045eca2965eb11a968))
+* Reservation objects now contain a creation time and an update time ([be13d46](https://www.github.com/googleapis/nodejs-bigquery-reservation/commit/be13d466f443af4ab88aff045eca2965eb11a968))
+
+## [1.2.0](https://www.github.com/googleapis/nodejs-bigquery-reservation/compare/v1.1.6...v1.2.0) (2021-08-23)
+
+
+### Features
+
+* turns on self-signed JWT feature flag ([#100](https://www.github.com/googleapis/nodejs-bigquery-reservation/issues/100)) ([0047223](https://www.github.com/googleapis/nodejs-bigquery-reservation/commit/004722310ece662732fe60c8941be1b30214ed6d))
+
+
+### Bug Fixes
+
+* **build:** migrate to using main branch ([#97](https://www.github.com/googleapis/nodejs-bigquery-reservation/issues/97)) ([2e5a332](https://www.github.com/googleapis/nodejs-bigquery-reservation/commit/2e5a332b21067dd73ec6d2b218b87b61b8ebf59e))
+* **deps:** google-gax v2.24.1 ([#99](https://www.github.com/googleapis/nodejs-bigquery-reservation/issues/99)) ([3a4cdec](https://www.github.com/googleapis/nodejs-bigquery-reservation/commit/3a4cdec8d028f0d6fd6d8ebc3977c00231b290bb))
+
+### [1.1.6](https://www.github.com/googleapis/nodejs-bigquery-reservation/compare/v1.1.5...v1.1.6) (2021-07-21)
+
+
+### Bug Fixes
+
+* Updating WORKSPACE files to use the newest version of the Typescript generator. ([#89](https://www.github.com/googleapis/nodejs-bigquery-reservation/issues/89)) ([b7b0b92](https://www.github.com/googleapis/nodejs-bigquery-reservation/commit/b7b0b9263f2f8fd0fcb8fd977fc7f24727138b29))
+
+### [1.1.5](https://www.github.com/googleapis/nodejs-bigquery-reservation/compare/v1.1.4...v1.1.5) (2021-07-12)
+
+
+### Bug Fixes
+
+* **deps:** google-gax v2.17.1 ([#87](https://www.github.com/googleapis/nodejs-bigquery-reservation/issues/87)) ([9081a32](https://www.github.com/googleapis/nodejs-bigquery-reservation/commit/9081a3237099c98bb5d3694785afbe9ff4dcaaea))
+
+### [1.1.4](https://www.github.com/googleapis/nodejs-bigquery-reservation/compare/v1.1.3...v1.1.4) (2021-06-30)
+
+
+### Bug Fixes
+
+* **deps:** google-gax v2.17.0 with mTLS ([#84](https://www.github.com/googleapis/nodejs-bigquery-reservation/issues/84)) ([42c4bcb](https://www.github.com/googleapis/nodejs-bigquery-reservation/commit/42c4bcb09e5f1c7b604e923a89b05fa895f663c8))
+
+### [1.1.3](https://www.github.com/googleapis/nodejs-bigquery-reservation/compare/v1.1.2...v1.1.3) (2021-06-25)
+
+
+### Bug Fixes
+
+* make request optional in all cases ([#80](https://www.github.com/googleapis/nodejs-bigquery-reservation/issues/80)) ([5cf25a7](https://www.github.com/googleapis/nodejs-bigquery-reservation/commit/5cf25a7b312ce3a009635a18125ab8f10a096089))
+
+### [1.1.2](https://www.github.com/googleapis/nodejs-bigquery-reservation/compare/v1.1.1...v1.1.2) (2021-06-07)
+
+
+### Bug Fixes
+
+* GoogleAdsError missing using generator version after 1.3.0 ([#72](https://www.github.com/googleapis/nodejs-bigquery-reservation/issues/72)) ([17a06f7](https://www.github.com/googleapis/nodejs-bigquery-reservation/commit/17a06f7921e7c0200f1ff73ed29cd03c4c85b560))
+
+### [1.1.1](https://www.github.com/googleapis/nodejs-bigquery-reservation/compare/v1.1.0...v1.1.1) (2021-05-12)
+
+
+### Bug Fixes
+
+* **deps:** require google-gax v2.12.0 ([#64](https://www.github.com/googleapis/nodejs-bigquery-reservation/issues/64)) ([57b7f5b](https://www.github.com/googleapis/nodejs-bigquery-reservation/commit/57b7f5b3356bf9f00d28d3a0d8b4c329ae8d61b9))
+* use require() to load JSON protos ([#67](https://www.github.com/googleapis/nodejs-bigquery-reservation/issues/67)) ([ea052ed](https://www.github.com/googleapis/nodejs-bigquery-reservation/commit/ea052ed26f0474c849def47d73d41c0ebdc9f432))
+
+## [1.1.0](https://www.github.com/googleapis/nodejs-bigquery-reservation/compare/v1.0.2...v1.1.0) (2021-01-09)
+
+
+### Features
+
+* introduce style enumeration ([#43](https://www.github.com/googleapis/nodejs-bigquery-reservation/issues/43)) ([06bfdc6](https://www.github.com/googleapis/nodejs-bigquery-reservation/commit/06bfdc6a0c6c3b0416bbb34ff5b46e96256215ef))
+
+
+### Bug Fixes
+
+* **deps:** roll back dependency @google-cloud/bigquery-reservation to ^1.0.1 ([#38](https://www.github.com/googleapis/nodejs-bigquery-reservation/issues/38)) ([b4ee172](https://www.github.com/googleapis/nodejs-bigquery-reservation/commit/b4ee172520adbbdff077d2a1db7d72c88401f98a))
+
+### [1.0.2](https://www.github.com/googleapis/nodejs-bigquery-reservation/compare/v1.0.1...v1.0.2) (2020-11-25)
+
+
+### Bug Fixes
+
+* **browser:** check for fetch on window ([5a32067](https://www.github.com/googleapis/nodejs-bigquery-reservation/commit/5a32067bdc000025c3166c72069db861800be5d8))
+
+### [1.0.1](https://www.github.com/googleapis/nodejs-bigquery-reservation/compare/v1.0.0...v1.0.1) (2020-11-06)
+
+
+### Bug Fixes
+
+* do not modify options object, use defaultScopes ([#28](https://www.github.com/googleapis/nodejs-bigquery-reservation/issues/28)) ([fa58436](https://www.github.com/googleapis/nodejs-bigquery-reservation/commit/fa584362f0c9ef485bbb8e76db143565cb144317))
+
+## 1.0.0 (2020-07-14)
+
+
+### Features
+
+* generate v1 of the API ([#2](https://www.github.com/googleapis/nodejs-bigquery-reservation/issues/2)) ([e368d52](https://www.github.com/googleapis/nodejs-bigquery-reservation/commit/e368d5289c8c18b974a6e470320e0c23f2772dcd))
diff --git a/packages/google-cloud-bigquery-reservation/CODE_OF_CONDUCT.md b/packages/google-cloud-bigquery-reservation/CODE_OF_CONDUCT.md
new file mode 100644
index 00000000000..2add2547a81
--- /dev/null
+++ b/packages/google-cloud-bigquery-reservation/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-bigquery-reservation/CONTRIBUTING.md b/packages/google-cloud-bigquery-reservation/CONTRIBUTING.md
new file mode 100644
index 00000000000..c5e938c011b
--- /dev/null
+++ b/packages/google-cloud-bigquery-reservation/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 Google BigQuery Reservation 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=bigqueryreservation.googleapis.com
+[auth]: https://cloud.google.com/docs/authentication/getting-started
\ No newline at end of file
diff --git a/packages/google-cloud-bigquery-reservation/LICENSE b/packages/google-cloud-bigquery-reservation/LICENSE
new file mode 100644
index 00000000000..d6456956733
--- /dev/null
+++ b/packages/google-cloud-bigquery-reservation/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-bigquery-reservation/README.md b/packages/google-cloud-bigquery-reservation/README.md
new file mode 100644
index 00000000000..070419bfd54
--- /dev/null
+++ b/packages/google-cloud-bigquery-reservation/README.md
@@ -0,0 +1,194 @@
+[//]: # "This README.md file is auto-generated, all changes to this file will be lost."
+[//]: # "To regenerate it, use `python -m synthtool`."
+
+
+# [Google BigQuery Reservation: 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/bigquery-reservation.svg)](https://www.npmjs.org/package/@google-cloud/bigquery-reservation)
+
+
+
+
+BigQuery Reservation 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/blob/main/CHANGELOG.md).
+
+* [Google BigQuery Reservation Node.js Client API Reference][client-docs]
+* [Google BigQuery Reservation Documentation][product-docs]
+* [github.com/googleapis/google-cloud-node](https://github.com/googleapis/google-cloud-node)
+
+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 Google BigQuery Reservation 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/bigquery-reservation
+```
+
+
+### Using the client library
+
+```javascript
+// Imports the Google Cloud client library
+const {
+ ReservationServiceClient,
+} = require('@google-cloud/bigquery-reservation');
+
+// Creates a client
+const client = new ReservationServiceClient();
+
+// project = 'my-project' // Project to list reservations for.
+// location = 'US' // BigQuery location.
+
+async function listReservations() {
+ const [reservations] = await client.listReservations({
+ parent: `projects/${project}/locations/${location}`,
+ });
+
+ console.info(`found ${reservations.length} reservations`);
+ console.info(reservations);
+}
+
+async function listCapacityCommitments() {
+ const [commitments] = await client.listCapacityCommitments({
+ parent: `projects/${project}/locations/${location}`,
+ });
+
+ console.info(`found ${commitments.length} commitments`);
+ console.info(commitments);
+}
+
+listReservations();
+listCapacityCommitments();
+
+```
+
+
+
+## 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 |
+| --------------------------- | --------------------------------- | ------ |
+| Reservation_service.create_assignment | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-bigquery-reservation/samples/generated/v1/reservation_service.create_assignment.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-bigquery-reservation/samples/generated/v1/reservation_service.create_assignment.js,samples/README.md) |
+| Reservation_service.create_capacity_commitment | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-bigquery-reservation/samples/generated/v1/reservation_service.create_capacity_commitment.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-bigquery-reservation/samples/generated/v1/reservation_service.create_capacity_commitment.js,samples/README.md) |
+| Reservation_service.create_reservation | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-bigquery-reservation/samples/generated/v1/reservation_service.create_reservation.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-bigquery-reservation/samples/generated/v1/reservation_service.create_reservation.js,samples/README.md) |
+| Reservation_service.delete_assignment | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-bigquery-reservation/samples/generated/v1/reservation_service.delete_assignment.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-bigquery-reservation/samples/generated/v1/reservation_service.delete_assignment.js,samples/README.md) |
+| Reservation_service.delete_capacity_commitment | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-bigquery-reservation/samples/generated/v1/reservation_service.delete_capacity_commitment.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-bigquery-reservation/samples/generated/v1/reservation_service.delete_capacity_commitment.js,samples/README.md) |
+| Reservation_service.delete_reservation | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-bigquery-reservation/samples/generated/v1/reservation_service.delete_reservation.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-bigquery-reservation/samples/generated/v1/reservation_service.delete_reservation.js,samples/README.md) |
+| Reservation_service.get_bi_reservation | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-bigquery-reservation/samples/generated/v1/reservation_service.get_bi_reservation.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-bigquery-reservation/samples/generated/v1/reservation_service.get_bi_reservation.js,samples/README.md) |
+| Reservation_service.get_capacity_commitment | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-bigquery-reservation/samples/generated/v1/reservation_service.get_capacity_commitment.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-bigquery-reservation/samples/generated/v1/reservation_service.get_capacity_commitment.js,samples/README.md) |
+| Reservation_service.get_reservation | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-bigquery-reservation/samples/generated/v1/reservation_service.get_reservation.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-bigquery-reservation/samples/generated/v1/reservation_service.get_reservation.js,samples/README.md) |
+| Reservation_service.list_assignments | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-bigquery-reservation/samples/generated/v1/reservation_service.list_assignments.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-bigquery-reservation/samples/generated/v1/reservation_service.list_assignments.js,samples/README.md) |
+| Reservation_service.list_capacity_commitments | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-bigquery-reservation/samples/generated/v1/reservation_service.list_capacity_commitments.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-bigquery-reservation/samples/generated/v1/reservation_service.list_capacity_commitments.js,samples/README.md) |
+| Reservation_service.list_reservations | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-bigquery-reservation/samples/generated/v1/reservation_service.list_reservations.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-bigquery-reservation/samples/generated/v1/reservation_service.list_reservations.js,samples/README.md) |
+| Reservation_service.merge_capacity_commitments | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-bigquery-reservation/samples/generated/v1/reservation_service.merge_capacity_commitments.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-bigquery-reservation/samples/generated/v1/reservation_service.merge_capacity_commitments.js,samples/README.md) |
+| Reservation_service.move_assignment | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-bigquery-reservation/samples/generated/v1/reservation_service.move_assignment.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-bigquery-reservation/samples/generated/v1/reservation_service.move_assignment.js,samples/README.md) |
+| Reservation_service.search_all_assignments | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-bigquery-reservation/samples/generated/v1/reservation_service.search_all_assignments.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-bigquery-reservation/samples/generated/v1/reservation_service.search_all_assignments.js,samples/README.md) |
+| Reservation_service.search_assignments | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-bigquery-reservation/samples/generated/v1/reservation_service.search_assignments.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-bigquery-reservation/samples/generated/v1/reservation_service.search_assignments.js,samples/README.md) |
+| Reservation_service.split_capacity_commitment | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-bigquery-reservation/samples/generated/v1/reservation_service.split_capacity_commitment.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-bigquery-reservation/samples/generated/v1/reservation_service.split_capacity_commitment.js,samples/README.md) |
+| Reservation_service.update_assignment | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-bigquery-reservation/samples/generated/v1/reservation_service.update_assignment.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-bigquery-reservation/samples/generated/v1/reservation_service.update_assignment.js,samples/README.md) |
+| Reservation_service.update_bi_reservation | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-bigquery-reservation/samples/generated/v1/reservation_service.update_bi_reservation.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-bigquery-reservation/samples/generated/v1/reservation_service.update_bi_reservation.js,samples/README.md) |
+| Reservation_service.update_capacity_commitment | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-bigquery-reservation/samples/generated/v1/reservation_service.update_capacity_commitment.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-bigquery-reservation/samples/generated/v1/reservation_service.update_capacity_commitment.js,samples/README.md) |
+| Reservation_service.update_reservation | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-bigquery-reservation/samples/generated/v1/reservation_service.update_reservation.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-bigquery-reservation/samples/generated/v1/reservation_service.update_reservation.js,samples/README.md) |
+| Quickstart | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-bigquery-reservation/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-bigquery-reservation/samples/quickstart.js,samples/README.md) |
+| Quickstart | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-bigquery-reservation/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-bigquery-reservation/samples/test/quickstart.js,samples/README.md) |
+
+
+
+The [Google BigQuery Reservation 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/bigquery-reservation@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/bigquery-reservation/latest
+[product-docs]: https://cloud.google.com/bigquery/docs/reference/reservations
+[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=bigqueryreservation.googleapis.com
+[auth]: https://cloud.google.com/docs/authentication/getting-started
diff --git a/packages/google-cloud-bigquery-reservation/linkinator.config.json b/packages/google-cloud-bigquery-reservation/linkinator.config.json
new file mode 100644
index 00000000000..befd23c8633
--- /dev/null
+++ b/packages/google-cloud-bigquery-reservation/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-bigquery-reservation/package.json b/packages/google-cloud-bigquery-reservation/package.json
new file mode 100644
index 00000000000..91a96d2015a
--- /dev/null
+++ b/packages/google-cloud-bigquery-reservation/package.json
@@ -0,0 +1,66 @@
+{
+ "name": "@google-cloud/bigquery-reservation",
+ "version": "2.0.2",
+ "description": "BigQuery Reservation client for Node.js",
+ "repository": "googleapis/nodejs-bigquery-reservation",
+ "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 reservation",
+ "reservation",
+ "reservation service"
+ ],
+ "scripts": {
+ "clean": "gts clean",
+ "compile": "tsc -p . && cp -r protos build/",
+ "compile-protos": "compileProtos src",
+ "docs": "jsdoc -c .jsdoc.js",
+ "predocs-test": "npm run docs",
+ "docs-test": "linkinator docs",
+ "fix": "gts fix",
+ "prelint": "cd samples; npm link ../; npm i",
+ "lint": "gts check",
+ "prepare": "npm run compile-protos && npm run compile",
+ "samples-test": "npm run compile && cd samples/ && npm link ../ && npm i && npm test",
+ "system-test": "npm run compile && c8 mocha build/system-test",
+ "test": "c8 mocha build/test"
+ },
+ "dependencies": {
+ "google-gax": "^3.3.0"
+ },
+ "devDependencies": {
+ "@types/mocha": "^9.0.0",
+ "@types/node": "^16.0.0",
+ "@types/sinon": "^10.0.0",
+ "c8": "^7.2.0",
+ "gts": "^3.1.0",
+ "jsdoc": "^3.6.4",
+ "jsdoc-fresh": "^2.0.0",
+ "jsdoc-region-tag": "^2.0.0",
+ "linkinator": "^4.0.0",
+ "mocha": "^9.2.2",
+ "null-loader": "^4.0.0",
+ "pack-n-play": "^1.0.0-2",
+ "sinon": "^14.0.0",
+ "ts-loader": "^8.0.0",
+ "typescript": "^4.6.4",
+ "webpack": "^5.0.0",
+ "webpack-cli": "^4.0.0"
+ },
+ "engines": {
+ "node": ">=12.0.0"
+ }
+}
diff --git a/packages/google-cloud-bigquery-reservation/protos/google/cloud/bigquery/reservation/v1/reservation.proto b/packages/google-cloud-bigquery-reservation/protos/google/cloud/bigquery/reservation/v1/reservation.proto
new file mode 100644
index 00000000000..7276c30b572
--- /dev/null
+++ b/packages/google-cloud-bigquery-reservation/protos/google/cloud/bigquery/reservation/v1/reservation.proto
@@ -0,0 +1,1055 @@
+// Copyright 2022 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.bigquery.reservation.v1;
+
+import "google/api/annotations.proto";
+import "google/api/client.proto";
+import "google/api/field_behavior.proto";
+import "google/api/resource.proto";
+import "google/protobuf/empty.proto";
+import "google/protobuf/field_mask.proto";
+import "google/protobuf/timestamp.proto";
+import "google/rpc/status.proto";
+
+option csharp_namespace = "Google.Cloud.BigQuery.Reservation.V1";
+option go_package = "google.golang.org/genproto/googleapis/cloud/bigquery/reservation/v1;reservation";
+option java_multiple_files = true;
+option java_outer_classname = "ReservationProto";
+option java_package = "com.google.cloud.bigquery.reservation.v1";
+option php_namespace = "Google\\Cloud\\BigQuery\\Reservation\\V1";
+
+// This API allows users to manage their flat-rate BigQuery reservations.
+//
+// A reservation provides computational resource guarantees, in the form of
+// [slots](https://cloud.google.com/bigquery/docs/slots), to users. A slot is a
+// unit of computational power in BigQuery, and serves as the basic unit of
+// parallelism. In a scan of a multi-partitioned table, a single slot operates
+// on a single partition of the table. A reservation resource exists as a child
+// resource of the admin project and location, e.g.:
+// `projects/myproject/locations/US/reservations/reservationName`.
+//
+// A capacity commitment is a way to purchase compute capacity for BigQuery jobs
+// (in the form of slots) with some committed period of usage. A capacity
+// commitment resource exists as a child resource of the admin project and
+// location, e.g.:
+// `projects/myproject/locations/US/capacityCommitments/id`.
+service ReservationService {
+ option (google.api.default_host) = "bigqueryreservation.googleapis.com";
+ option (google.api.oauth_scopes) =
+ "https://www.googleapis.com/auth/bigquery,"
+ "https://www.googleapis.com/auth/cloud-platform";
+
+ // Creates a new reservation resource.
+ rpc CreateReservation(CreateReservationRequest) returns (Reservation) {
+ option (google.api.http) = {
+ post: "/v1/{parent=projects/*/locations/*}/reservations"
+ body: "reservation"
+ };
+ option (google.api.method_signature) = "parent,reservation,reservation_id";
+ }
+
+ // Lists all the reservations for the project in the specified location.
+ rpc ListReservations(ListReservationsRequest) returns (ListReservationsResponse) {
+ option (google.api.http) = {
+ get: "/v1/{parent=projects/*/locations/*}/reservations"
+ };
+ option (google.api.method_signature) = "parent";
+ }
+
+ // Returns information about the reservation.
+ rpc GetReservation(GetReservationRequest) returns (Reservation) {
+ option (google.api.http) = {
+ get: "/v1/{name=projects/*/locations/*/reservations/*}"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // Deletes a reservation.
+ // Returns `google.rpc.Code.FAILED_PRECONDITION` when reservation has
+ // assignments.
+ rpc DeleteReservation(DeleteReservationRequest) returns (google.protobuf.Empty) {
+ option (google.api.http) = {
+ delete: "/v1/{name=projects/*/locations/*/reservations/*}"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // Updates an existing reservation resource.
+ rpc UpdateReservation(UpdateReservationRequest) returns (Reservation) {
+ option (google.api.http) = {
+ patch: "/v1/{reservation.name=projects/*/locations/*/reservations/*}"
+ body: "reservation"
+ };
+ option (google.api.method_signature) = "reservation,update_mask";
+ }
+
+ // Creates a new capacity commitment resource.
+ rpc CreateCapacityCommitment(CreateCapacityCommitmentRequest) returns (CapacityCommitment) {
+ option (google.api.http) = {
+ post: "/v1/{parent=projects/*/locations/*}/capacityCommitments"
+ body: "capacity_commitment"
+ };
+ option (google.api.method_signature) = "parent,capacity_commitment";
+ }
+
+ // Lists all the capacity commitments for the admin project.
+ rpc ListCapacityCommitments(ListCapacityCommitmentsRequest) returns (ListCapacityCommitmentsResponse) {
+ option (google.api.http) = {
+ get: "/v1/{parent=projects/*/locations/*}/capacityCommitments"
+ };
+ option (google.api.method_signature) = "parent";
+ }
+
+ // Returns information about the capacity commitment.
+ rpc GetCapacityCommitment(GetCapacityCommitmentRequest) returns (CapacityCommitment) {
+ option (google.api.http) = {
+ get: "/v1/{name=projects/*/locations/*/capacityCommitments/*}"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // Deletes a capacity commitment. Attempting to delete capacity commitment
+ // before its commitment_end_time will fail with the error code
+ // `google.rpc.Code.FAILED_PRECONDITION`.
+ rpc DeleteCapacityCommitment(DeleteCapacityCommitmentRequest) returns (google.protobuf.Empty) {
+ option (google.api.http) = {
+ delete: "/v1/{name=projects/*/locations/*/capacityCommitments/*}"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // Updates an existing capacity commitment.
+ //
+ // Only `plan` and `renewal_plan` fields can be updated.
+ //
+ // Plan can only be changed to a plan of a longer commitment period.
+ // Attempting to change to a plan with shorter commitment period will fail
+ // with the error code `google.rpc.Code.FAILED_PRECONDITION`.
+ rpc UpdateCapacityCommitment(UpdateCapacityCommitmentRequest) returns (CapacityCommitment) {
+ option (google.api.http) = {
+ patch: "/v1/{capacity_commitment.name=projects/*/locations/*/capacityCommitments/*}"
+ body: "capacity_commitment"
+ };
+ option (google.api.method_signature) = "capacity_commitment,update_mask";
+ }
+
+ // Splits capacity commitment to two commitments of the same plan and
+ // `commitment_end_time`.
+ //
+ // A common use case is to enable downgrading commitments.
+ //
+ // For example, in order to downgrade from 10000 slots to 8000, you might
+ // split a 10000 capacity commitment into commitments of 2000 and 8000. Then,
+ // you delete the first one after the commitment end time passes.
+ rpc SplitCapacityCommitment(SplitCapacityCommitmentRequest) returns (SplitCapacityCommitmentResponse) {
+ option (google.api.http) = {
+ post: "/v1/{name=projects/*/locations/*/capacityCommitments/*}:split"
+ body: "*"
+ };
+ option (google.api.method_signature) = "name,slot_count";
+ }
+
+ // Merges capacity commitments of the same plan into a single commitment.
+ //
+ // The resulting capacity commitment has the greater commitment_end_time
+ // out of the to-be-merged capacity commitments.
+ //
+ // Attempting to merge capacity commitments of different plan will fail
+ // with the error code `google.rpc.Code.FAILED_PRECONDITION`.
+ rpc MergeCapacityCommitments(MergeCapacityCommitmentsRequest) returns (CapacityCommitment) {
+ option (google.api.http) = {
+ post: "/v1/{parent=projects/*/locations/*}/capacityCommitments:merge"
+ body: "*"
+ };
+ option (google.api.method_signature) = "parent,capacity_commitment_ids";
+ }
+
+ // Creates an assignment object which allows the given project to submit jobs
+ // of a certain type using slots from the specified reservation.
+ //
+ // Currently a
+ // resource (project, folder, organization) can only have one assignment per
+ // each (job_type, location) combination, and that reservation will be used
+ // for all jobs of the matching type.
+ //
+ // Different assignments can be created on different levels of the
+ // projects, folders or organization hierarchy. During query execution,
+ // the assignment is looked up at the project, folder and organization levels
+ // in that order. The first assignment found is applied to the query.
+ //
+ // When creating assignments, it does not matter if other assignments exist at
+ // higher levels.
+ //
+ // Example:
+ //
+ // * The organization `organizationA` contains two projects, `project1`
+ // and `project2`.
+ // * Assignments for all three entities (`organizationA`, `project1`, and
+ // `project2`) could all be created and mapped to the same or different
+ // reservations.
+ //
+ // "None" assignments represent an absence of the assignment. Projects
+ // assigned to None use on-demand pricing. To create a "None" assignment, use
+ // "none" as a reservation_id in the parent. Example parent:
+ // `projects/myproject/locations/US/reservations/none`.
+ //
+ // Returns `google.rpc.Code.PERMISSION_DENIED` if user does not have
+ // 'bigquery.admin' permissions on the project using the reservation
+ // and the project that owns this reservation.
+ //
+ // Returns `google.rpc.Code.INVALID_ARGUMENT` when location of the assignment
+ // does not match location of the reservation.
+ rpc CreateAssignment(CreateAssignmentRequest) returns (Assignment) {
+ option (google.api.http) = {
+ post: "/v1/{parent=projects/*/locations/*/reservations/*}/assignments"
+ body: "assignment"
+ };
+ option (google.api.method_signature) = "parent,assignment";
+ }
+
+ // Lists assignments.
+ //
+ // Only explicitly created assignments will be returned.
+ //
+ // Example:
+ //
+ // * Organization `organizationA` contains two projects, `project1` and
+ // `project2`.
+ // * Reservation `res1` exists and was created previously.
+ // * CreateAssignment was used previously to define the following
+ // associations between entities and reservations: ``
+ // and ``
+ //
+ // In this example, ListAssignments will just return the above two assignments
+ // for reservation `res1`, and no expansion/merge will happen.
+ //
+ // The wildcard "-" can be used for
+ // reservations in the request. In that case all assignments belongs to the
+ // specified project and location will be listed.
+ //
+ // **Note** "-" cannot be used for projects nor locations.
+ rpc ListAssignments(ListAssignmentsRequest) returns (ListAssignmentsResponse) {
+ option (google.api.http) = {
+ get: "/v1/{parent=projects/*/locations/*/reservations/*}/assignments"
+ };
+ option (google.api.method_signature) = "parent";
+ }
+
+ // Deletes a assignment. No expansion will happen.
+ //
+ // Example:
+ //
+ // * Organization `organizationA` contains two projects, `project1` and
+ // `project2`.
+ // * Reservation `res1` exists and was created previously.
+ // * CreateAssignment was used previously to define the following
+ // associations between entities and reservations: ``
+ // and ``
+ //
+ // In this example, deletion of the `` assignment won't
+ // affect the other assignment ``. After said deletion,
+ // queries from `project1` will still use `res1` while queries from
+ // `project2` will switch to use on-demand mode.
+ rpc DeleteAssignment(DeleteAssignmentRequest) returns (google.protobuf.Empty) {
+ option (google.api.http) = {
+ delete: "/v1/{name=projects/*/locations/*/reservations/*/assignments/*}"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // Deprecated: Looks up assignments for a specified resource for a particular
+ // region. If the request is about a project:
+ //
+ // 1. Assignments created on the project will be returned if they exist.
+ // 2. Otherwise assignments created on the closest ancestor will be
+ // returned.
+ // 3. Assignments for different JobTypes will all be returned.
+ //
+ // The same logic applies if the request is about a folder.
+ //
+ // If the request is about an organization, then assignments created on the
+ // organization will be returned (organization doesn't have ancestors).
+ //
+ // Comparing to ListAssignments, there are some behavior
+ // differences:
+ //
+ // 1. permission on the assignee will be verified in this API.
+ // 2. Hierarchy lookup (project->folder->organization) happens in this API.
+ // 3. Parent here is `projects/*/locations/*`, instead of
+ // `projects/*/locations/*reservations/*`.
+ //
+ // **Note** "-" cannot be used for projects
+ // nor locations.
+ rpc SearchAssignments(SearchAssignmentsRequest) returns (SearchAssignmentsResponse) {
+ option deprecated = true;
+ option (google.api.http) = {
+ get: "/v1/{parent=projects/*/locations/*}:searchAssignments"
+ };
+ option (google.api.method_signature) = "parent,query";
+ }
+
+ // Looks up assignments for a specified resource for a particular region.
+ // If the request is about a project:
+ //
+ // 1. Assignments created on the project will be returned if they exist.
+ // 2. Otherwise assignments created on the closest ancestor will be
+ // returned.
+ // 3. Assignments for different JobTypes will all be returned.
+ //
+ // The same logic applies if the request is about a folder.
+ //
+ // If the request is about an organization, then assignments created on the
+ // organization will be returned (organization doesn't have ancestors).
+ //
+ // Comparing to ListAssignments, there are some behavior
+ // differences:
+ //
+ // 1. permission on the assignee will be verified in this API.
+ // 2. Hierarchy lookup (project->folder->organization) happens in this API.
+ // 3. Parent here is `projects/*/locations/*`, instead of
+ // `projects/*/locations/*reservations/*`.
+ rpc SearchAllAssignments(SearchAllAssignmentsRequest) returns (SearchAllAssignmentsResponse) {
+ option (google.api.http) = {
+ get: "/v1/{parent=projects/*/locations/*}:searchAllAssignments"
+ };
+ option (google.api.method_signature) = "parent,query";
+ }
+
+ // Moves an assignment under a new reservation.
+ //
+ // This differs from removing an existing assignment and recreating a new one
+ // by providing a transactional change that ensures an assignee always has an
+ // associated reservation.
+ rpc MoveAssignment(MoveAssignmentRequest) returns (Assignment) {
+ option (google.api.http) = {
+ post: "/v1/{name=projects/*/locations/*/reservations/*/assignments/*}:move"
+ body: "*"
+ };
+ option (google.api.method_signature) = "name,destination_id";
+ }
+
+ // Updates an existing assignment.
+ //
+ // Only the `priority` field can be updated.
+ rpc UpdateAssignment(UpdateAssignmentRequest) returns (Assignment) {
+ option (google.api.http) = {
+ patch: "/v1/{assignment.name=projects/*/locations/*/reservations/*/assignments/*}"
+ body: "assignment"
+ };
+ option (google.api.method_signature) = "assignment,update_mask";
+ }
+
+ // Retrieves a BI reservation.
+ rpc GetBiReservation(GetBiReservationRequest) returns (BiReservation) {
+ option (google.api.http) = {
+ get: "/v1/{name=projects/*/locations/*/biReservation}"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // Updates a BI reservation.
+ //
+ // Only fields specified in the `field_mask` are updated.
+ //
+ // A singleton BI reservation always exists with default size 0.
+ // In order to reserve BI capacity it needs to be updated to an amount
+ // greater than 0. In order to release BI capacity reservation size
+ // must be set to 0.
+ rpc UpdateBiReservation(UpdateBiReservationRequest) returns (BiReservation) {
+ option (google.api.http) = {
+ patch: "/v1/{bi_reservation.name=projects/*/locations/*/biReservation}"
+ body: "bi_reservation"
+ };
+ option (google.api.method_signature) = "bi_reservation,update_mask";
+ }
+}
+
+// A reservation is a mechanism used to guarantee slots to users.
+message Reservation {
+ option (google.api.resource) = {
+ type: "bigqueryreservation.googleapis.com/Reservation"
+ pattern: "projects/{project}/locations/{location}/reservations/{reservation}"
+ };
+
+ // The resource name of the reservation, e.g.,
+ // `projects/*/locations/*/reservations/team1-prod`.
+ // The reservation_id must only contain lower case alphanumeric characters or
+ // dashes. It must start with a letter and must not end with a dash. Its
+ // maximum length is 64 characters.
+ string name = 1;
+
+ // Minimum slots available to this reservation. A slot is a unit of
+ // computational power in BigQuery, and serves as the unit of parallelism.
+ //
+ // Queries using this reservation might use more slots during runtime if
+ // ignore_idle_slots is set to false.
+ //
+ // If the new reservation's slot capacity exceeds the project's slot capacity
+ // or if total slot capacity of the new reservation and its siblings exceeds
+ // the project's slot capacity, the request will fail with
+ // `google.rpc.Code.RESOURCE_EXHAUSTED`.
+ //
+ // NOTE: for reservations in US or EU multi-regions, slot capacity constraints
+ // are checked separately for default and auxiliary regions. See
+ // multi_region_auxiliary flag for more details.
+ int64 slot_capacity = 2;
+
+ // If false, any query or pipeline job using this reservation will use idle
+ // slots from other reservations within the same admin project. If true, a
+ // query or pipeline job using this reservation will execute with the slot
+ // capacity specified in the slot_capacity field at most.
+ bool ignore_idle_slots = 4;
+
+ // Maximum number of queries that are allowed to run concurrently in this
+ // reservation. This is a soft limit due to asynchronous nature of the system
+ // and various optimizations for small queries.
+ // Default value is 0 which means that concurrency will be automatically set
+ // based on the reservation size.
+ int64 concurrency = 16;
+
+ // Output only. Creation time of the reservation.
+ google.protobuf.Timestamp creation_time = 8 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Last update time of the reservation.
+ google.protobuf.Timestamp update_time = 9 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Applicable only for reservations located within one of the BigQuery
+ // multi-regions (US or EU).
+ //
+ // If set to true, this reservation is placed in the organization's
+ // secondary region which is designated for disaster recovery purposes.
+ // If false, this reservation is placed in the organization's default region.
+ bool multi_region_auxiliary = 14;
+}
+
+// Capacity commitment is a way to purchase compute capacity for BigQuery jobs
+// (in the form of slots) with some committed period of usage. Annual
+// commitments renew by default. Commitments can be removed after their
+// commitment end time passes.
+//
+// In order to remove annual commitment, its plan needs to be changed
+// to monthly or flex first.
+//
+// A capacity commitment resource exists as a child resource of the admin
+// project.
+message CapacityCommitment {
+ option (google.api.resource) = {
+ type: "bigqueryreservation.googleapis.com/CapacityCommitment"
+ pattern: "projects/{project}/locations/{location}/capacityCommitments/{capacity_commitment}"
+ };
+
+ // Commitment plan defines the current committed period. Capacity commitment
+ // cannot be deleted during it's committed period.
+ enum CommitmentPlan {
+ // Invalid plan value. Requests with this value will be rejected with
+ // error code `google.rpc.Code.INVALID_ARGUMENT`.
+ COMMITMENT_PLAN_UNSPECIFIED = 0;
+
+ // Flex commitments have committed period of 1 minute after becoming ACTIVE.
+ // After that, they are not in a committed period anymore and can be removed
+ // any time.
+ FLEX = 3;
+
+ // Trial commitments have a committed period of 182 days after becoming
+ // ACTIVE. After that, they are converted to a new commitment based on the
+ // `renewal_plan`. Default `renewal_plan` for Trial commitment is Flex so
+ // that it can be deleted right after committed period ends.
+ TRIAL = 5;
+
+ // Monthly commitments have a committed period of 30 days after becoming
+ // ACTIVE. After that, they are not in a committed period anymore and can be
+ // removed any time.
+ MONTHLY = 2;
+
+ // Annual commitments have a committed period of 365 days after becoming
+ // ACTIVE. After that they are converted to a new commitment based on the
+ // renewal_plan.
+ ANNUAL = 4;
+ }
+
+ // Capacity commitment can either become ACTIVE right away or transition
+ // from PENDING to ACTIVE or FAILED.
+ enum State {
+ // Invalid state value.
+ STATE_UNSPECIFIED = 0;
+
+ // Capacity commitment is pending provisioning. Pending capacity commitment
+ // does not contribute to the project's slot_capacity.
+ PENDING = 1;
+
+ // Once slots are provisioned, capacity commitment becomes active.
+ // slot_count is added to the project's slot_capacity.
+ ACTIVE = 2;
+
+ // Capacity commitment is failed to be activated by the backend.
+ FAILED = 3;
+ }
+
+ // Output only. The resource name of the capacity commitment, e.g.,
+ // `projects/myproject/locations/US/capacityCommitments/123`
+ // The commitment_id must only contain lower case alphanumeric characters or
+ // dashes. It must start with a letter and must not end
+ // with a dash. Its maximum length is 64 characters.
+ string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Number of slots in this commitment.
+ int64 slot_count = 2;
+
+ // Capacity commitment commitment plan.
+ CommitmentPlan plan = 3;
+
+ // Output only. State of the commitment.
+ State state = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The start of the current commitment period. It is applicable only for
+ // ACTIVE capacity commitments.
+ google.protobuf.Timestamp commitment_start_time = 9 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The end of the current commitment period. It is applicable only for ACTIVE
+ // capacity commitments.
+ google.protobuf.Timestamp commitment_end_time = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. For FAILED commitment plan, provides the reason of failure.
+ google.rpc.Status failure_status = 7 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // The plan this capacity commitment is converted to after commitment_end_time
+ // passes. Once the plan is changed, committed period is extended according to
+ // commitment plan. Only applicable for ANNUAL and TRIAL commitments.
+ CommitmentPlan renewal_plan = 8;
+
+ // Applicable only for commitments located within one of the BigQuery
+ // multi-regions (US or EU).
+ //
+ // If set to true, this commitment is placed in the organization's
+ // secondary region which is designated for disaster recovery purposes.
+ // If false, this commitment is placed in the organization's default region.
+ bool multi_region_auxiliary = 10;
+}
+
+// The request for [ReservationService.CreateReservation][google.cloud.bigquery.reservation.v1.ReservationService.CreateReservation].
+message CreateReservationRequest {
+ // Required. Project, location. E.g.,
+ // `projects/myproject/locations/US`
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ child_type: "bigqueryreservation.googleapis.com/Reservation"
+ }
+ ];
+
+ // The reservation ID. It must only contain lower case alphanumeric
+ // characters or dashes. It must start with a letter and must not end
+ // with a dash. Its maximum length is 64 characters.
+ string reservation_id = 2;
+
+ // Definition of the new reservation to create.
+ Reservation reservation = 3;
+}
+
+// The request for [ReservationService.ListReservations][google.cloud.bigquery.reservation.v1.ReservationService.ListReservations].
+message ListReservationsRequest {
+ // Required. The parent resource name containing project and location, e.g.:
+ // `projects/myproject/locations/US`
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ child_type: "bigqueryreservation.googleapis.com/Reservation"
+ }
+ ];
+
+ // The maximum number of items to return per page.
+ int32 page_size = 2;
+
+ // The next_page_token value returned from a previous List request, if any.
+ string page_token = 3;
+}
+
+// The response for [ReservationService.ListReservations][google.cloud.bigquery.reservation.v1.ReservationService.ListReservations].
+message ListReservationsResponse {
+ // List of reservations visible to the user.
+ repeated Reservation reservations = 1;
+
+ // Token to retrieve the next page of results, or empty if there are no
+ // more results in the list.
+ string next_page_token = 2;
+}
+
+// The request for [ReservationService.GetReservation][google.cloud.bigquery.reservation.v1.ReservationService.GetReservation].
+message GetReservationRequest {
+ // Required. Resource name of the reservation to retrieve. E.g.,
+ // `projects/myproject/locations/US/reservations/team1-prod`
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "bigqueryreservation.googleapis.com/Reservation"
+ }
+ ];
+}
+
+// The request for [ReservationService.DeleteReservation][google.cloud.bigquery.reservation.v1.ReservationService.DeleteReservation].
+message DeleteReservationRequest {
+ // Required. Resource name of the reservation to retrieve. E.g.,
+ // `projects/myproject/locations/US/reservations/team1-prod`
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "bigqueryreservation.googleapis.com/Reservation"
+ }
+ ];
+}
+
+// The request for [ReservationService.UpdateReservation][google.cloud.bigquery.reservation.v1.ReservationService.UpdateReservation].
+message UpdateReservationRequest {
+ // Content of the reservation to update.
+ Reservation reservation = 1;
+
+ // Standard field mask for the set of fields to be updated.
+ google.protobuf.FieldMask update_mask = 2;
+}
+
+// The request for [ReservationService.CreateCapacityCommitment][google.cloud.bigquery.reservation.v1.ReservationService.CreateCapacityCommitment].
+message CreateCapacityCommitmentRequest {
+ // Required. Resource name of the parent reservation. E.g.,
+ // `projects/myproject/locations/US`
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ child_type: "bigqueryreservation.googleapis.com/CapacityCommitment"
+ }
+ ];
+
+ // Content of the capacity commitment to create.
+ CapacityCommitment capacity_commitment = 2;
+
+ // If true, fail the request if another project in the organization has a
+ // capacity commitment.
+ bool enforce_single_admin_project_per_org = 4;
+
+ // The optional capacity commitment ID. Capacity commitment name will be
+ // generated automatically if this field is empty.
+ // This field must only contain lower case alphanumeric characters or dashes.
+ // The first and last character cannot be a dash. Max length is 64 characters.
+ // NOTE: this ID won't be kept if the capacity commitment is split or merged.
+ string capacity_commitment_id = 5;
+}
+
+// The request for [ReservationService.ListCapacityCommitments][google.cloud.bigquery.reservation.v1.ReservationService.ListCapacityCommitments].
+message ListCapacityCommitmentsRequest {
+ // Required. Resource name of the parent reservation. E.g.,
+ // `projects/myproject/locations/US`
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ child_type: "bigqueryreservation.googleapis.com/CapacityCommitment"
+ }
+ ];
+
+ // The maximum number of items to return.
+ int32 page_size = 2;
+
+ // The next_page_token value returned from a previous List request, if any.
+ string page_token = 3;
+}
+
+// The response for [ReservationService.ListCapacityCommitments][google.cloud.bigquery.reservation.v1.ReservationService.ListCapacityCommitments].
+message ListCapacityCommitmentsResponse {
+ // List of capacity commitments visible to the user.
+ repeated CapacityCommitment capacity_commitments = 1;
+
+ // Token to retrieve the next page of results, or empty if there are no
+ // more results in the list.
+ string next_page_token = 2;
+}
+
+// The request for [ReservationService.GetCapacityCommitment][google.cloud.bigquery.reservation.v1.ReservationService.GetCapacityCommitment].
+message GetCapacityCommitmentRequest {
+ // Required. Resource name of the capacity commitment to retrieve. E.g.,
+ // `projects/myproject/locations/US/capacityCommitments/123`
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "bigqueryreservation.googleapis.com/CapacityCommitment"
+ }
+ ];
+}
+
+// The request for [ReservationService.DeleteCapacityCommitment][google.cloud.bigquery.reservation.v1.ReservationService.DeleteCapacityCommitment].
+message DeleteCapacityCommitmentRequest {
+ // Required. Resource name of the capacity commitment to delete. E.g.,
+ // `projects/myproject/locations/US/capacityCommitments/123`
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "bigqueryreservation.googleapis.com/CapacityCommitment"
+ }
+ ];
+
+ // Can be used to force delete commitments even if assignments exist. Deleting
+ // commitments with assignments may cause queries to fail if they no longer
+ // have access to slots.
+ bool force = 3;
+}
+
+// The request for [ReservationService.UpdateCapacityCommitment][google.cloud.bigquery.reservation.v1.ReservationService.UpdateCapacityCommitment].
+message UpdateCapacityCommitmentRequest {
+ // Content of the capacity commitment to update.
+ CapacityCommitment capacity_commitment = 1;
+
+ // Standard field mask for the set of fields to be updated.
+ google.protobuf.FieldMask update_mask = 2;
+}
+
+// The request for [ReservationService.SplitCapacityCommitment][google.cloud.bigquery.reservation.v1.ReservationService.SplitCapacityCommitment].
+message SplitCapacityCommitmentRequest {
+ // Required. The resource name e.g.,:
+ // `projects/myproject/locations/US/capacityCommitments/123`
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "bigqueryreservation.googleapis.com/CapacityCommitment"
+ }
+ ];
+
+ // Number of slots in the capacity commitment after the split.
+ int64 slot_count = 2;
+}
+
+// The response for [ReservationService.SplitCapacityCommitment][google.cloud.bigquery.reservation.v1.ReservationService.SplitCapacityCommitment].
+message SplitCapacityCommitmentResponse {
+ // First capacity commitment, result of a split.
+ CapacityCommitment first = 1;
+
+ // Second capacity commitment, result of a split.
+ CapacityCommitment second = 2;
+}
+
+// The request for [ReservationService.MergeCapacityCommitments][google.cloud.bigquery.reservation.v1.ReservationService.MergeCapacityCommitments].
+message MergeCapacityCommitmentsRequest {
+ // Parent resource that identifies admin project and location e.g.,
+ // `projects/myproject/locations/us`
+ string parent = 1 [(google.api.resource_reference) = {
+ child_type: "bigqueryreservation.googleapis.com/CapacityCommitment"
+ }];
+
+ // Ids of capacity commitments to merge.
+ // These capacity commitments must exist under admin project and location
+ // specified in the parent.
+ // ID is the last portion of capacity commitment name e.g., 'abc' for
+ // projects/myproject/locations/US/capacityCommitments/abc
+ repeated string capacity_commitment_ids = 2;
+}
+
+// An assignment allows a project to submit jobs
+// of a certain type using slots from the specified reservation.
+message Assignment {
+ option (google.api.resource) = {
+ type: "bigqueryreservation.googleapis.com/Assignment"
+ pattern: "projects/{project}/locations/{location}/reservations/{reservation}/assignments/{assignment}"
+ };
+
+ // Types of job, which could be specified when using the reservation.
+ enum JobType {
+ // Invalid type. Requests with this value will be rejected with
+ // error code `google.rpc.Code.INVALID_ARGUMENT`.
+ JOB_TYPE_UNSPECIFIED = 0;
+
+ // Pipeline (load/export) jobs from the project will use the reservation.
+ PIPELINE = 1;
+
+ // Query jobs from the project will use the reservation.
+ QUERY = 2;
+
+ // BigQuery ML jobs that use services external to BigQuery for model
+ // training. These jobs will not utilize idle slots from other reservations.
+ ML_EXTERNAL = 3;
+ }
+
+ // Assignment will remain in PENDING state if no active capacity commitment is
+ // present. It will become ACTIVE when some capacity commitment becomes
+ // active.
+ enum State {
+ // Invalid state value.
+ STATE_UNSPECIFIED = 0;
+
+ // Queries from assignee will be executed as on-demand, if related
+ // assignment is pending.
+ PENDING = 1;
+
+ // Assignment is ready.
+ ACTIVE = 2;
+ }
+
+ // Output only. Name of the resource. E.g.:
+ // `projects/myproject/locations/US/reservations/team1-prod/assignments/123`.
+ // The assignment_id must only contain lower case alphanumeric characters or
+ // dashes and the max length is 64 characters.
+ string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // The resource which will use the reservation. E.g.
+ // `projects/myproject`, `folders/123`, or `organizations/456`.
+ string assignee = 4;
+
+ // Which type of jobs will use the reservation.
+ JobType job_type = 3;
+
+ // Output only. State of the assignment.
+ State state = 6 [(google.api.field_behavior) = OUTPUT_ONLY];
+}
+
+// The request for [ReservationService.CreateAssignment][google.cloud.bigquery.reservation.v1.ReservationService.CreateAssignment].
+// Note: "bigquery.reservationAssignments.create" permission is required on the
+// related assignee.
+message CreateAssignmentRequest {
+ // Required. The parent resource name of the assignment
+ // E.g. `projects/myproject/locations/US/reservations/team1-prod`
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ child_type: "bigqueryreservation.googleapis.com/Assignment"
+ }
+ ];
+
+ // Assignment resource to create.
+ Assignment assignment = 2;
+
+ // The optional assignment ID. Assignment name will be generated automatically
+ // if this field is empty.
+ // This field must only contain lower case alphanumeric characters or dashes.
+ // Max length is 64 characters.
+ string assignment_id = 4;
+}
+
+// The request for [ReservationService.ListAssignments][google.cloud.bigquery.reservation.v1.ReservationService.ListAssignments].
+message ListAssignmentsRequest {
+ // Required. The parent resource name e.g.:
+ //
+ // `projects/myproject/locations/US/reservations/team1-prod`
+ //
+ // Or:
+ //
+ // `projects/myproject/locations/US/reservations/-`
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ child_type: "bigqueryreservation.googleapis.com/Assignment"
+ }
+ ];
+
+ // The maximum number of items to return per page.
+ int32 page_size = 2;
+
+ // The next_page_token value returned from a previous List request, if any.
+ string page_token = 3;
+}
+
+// The response for [ReservationService.ListAssignments][google.cloud.bigquery.reservation.v1.ReservationService.ListAssignments].
+message ListAssignmentsResponse {
+ // List of assignments visible to the user.
+ repeated Assignment assignments = 1;
+
+ // Token to retrieve the next page of results, or empty if there are no
+ // more results in the list.
+ string next_page_token = 2;
+}
+
+// The request for [ReservationService.DeleteAssignment][google.cloud.bigquery.reservation.v1.ReservationService.DeleteAssignment].
+// Note: "bigquery.reservationAssignments.delete" permission is required on the
+// related assignee.
+message DeleteAssignmentRequest {
+ // Required. Name of the resource, e.g.
+ // `projects/myproject/locations/US/reservations/team1-prod/assignments/123`
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "bigqueryreservation.googleapis.com/Assignment"
+ }
+ ];
+}
+
+// The request for
+// [ReservationService.SearchAssignments][google.cloud.bigquery.reservation.v1.ReservationService.SearchAssignments].
+// Note: "bigquery.reservationAssignments.search" permission is required on the
+// related assignee.
+message SearchAssignmentsRequest {
+ // Required. The resource name of the admin project(containing project and location),
+ // e.g.:
+ // `projects/myproject/locations/US`.
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "locations.googleapis.com/Location"
+ }
+ ];
+
+ // Please specify resource name as assignee in the query.
+ //
+ // Examples:
+ //
+ // * `assignee=projects/myproject`
+ // * `assignee=folders/123`
+ // * `assignee=organizations/456`
+ string query = 2;
+
+ // The maximum number of items to return per page.
+ int32 page_size = 3;
+
+ // The next_page_token value returned from a previous List request, if any.
+ string page_token = 4;
+}
+
+// The request for
+// [ReservationService.SearchAllAssignments][google.cloud.bigquery.reservation.v1.ReservationService.SearchAllAssignments].
+// Note: "bigquery.reservationAssignments.search" permission is required on the
+// related assignee.
+message SearchAllAssignmentsRequest {
+ // Required. The resource name with location (project name could be the wildcard '-'),
+ // e.g.:
+ // `projects/-/locations/US`.
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "locations.googleapis.com/Location"
+ }
+ ];
+
+ // Please specify resource name as assignee in the query.
+ //
+ // Examples:
+ //
+ // * `assignee=projects/myproject`
+ // * `assignee=folders/123`
+ // * `assignee=organizations/456`
+ string query = 2;
+
+ // The maximum number of items to return per page.
+ int32 page_size = 3;
+
+ // The next_page_token value returned from a previous List request, if any.
+ string page_token = 4;
+}
+
+// The response for [ReservationService.SearchAssignments][google.cloud.bigquery.reservation.v1.ReservationService.SearchAssignments].
+message SearchAssignmentsResponse {
+ // List of assignments visible to the user.
+ repeated Assignment assignments = 1;
+
+ // Token to retrieve the next page of results, or empty if there are no
+ // more results in the list.
+ string next_page_token = 2;
+}
+
+// The response for [ReservationService.SearchAllAssignments][google.cloud.bigquery.reservation.v1.ReservationService.SearchAllAssignments].
+message SearchAllAssignmentsResponse {
+ // List of assignments visible to the user.
+ repeated Assignment assignments = 1;
+
+ // Token to retrieve the next page of results, or empty if there are no
+ // more results in the list.
+ string next_page_token = 2;
+}
+
+// The request for
+// [ReservationService.MoveAssignment][google.cloud.bigquery.reservation.v1.ReservationService.MoveAssignment].
+//
+// **Note**: "bigquery.reservationAssignments.create" permission is required on
+// the destination_id.
+//
+// **Note**: "bigquery.reservationAssignments.create" and
+// "bigquery.reservationAssignments.delete" permission are required on the
+// related assignee.
+message MoveAssignmentRequest {
+ // Required. The resource name of the assignment,
+ // e.g.
+ // `projects/myproject/locations/US/reservations/team1-prod/assignments/123`
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "bigqueryreservation.googleapis.com/Assignment"
+ }
+ ];
+
+ // The new reservation ID, e.g.:
+ // `projects/myotherproject/locations/US/reservations/team2-prod`
+ string destination_id = 3 [(google.api.resource_reference) = {
+ child_type: "bigqueryreservation.googleapis.com/Assignment"
+ }];
+}
+
+// The request for [ReservationService.UpdateAssignment][google.cloud.bigquery.reservation.v1.ReservationService.UpdateAssignment].
+message UpdateAssignmentRequest {
+ // Content of the assignment to update.
+ Assignment assignment = 1;
+
+ // Standard field mask for the set of fields to be updated.
+ google.protobuf.FieldMask update_mask = 2;
+}
+
+// Fully qualified reference to BigQuery table.
+// Internally stored as google.cloud.bi.v1.BqTableReference.
+message TableReference {
+ // The assigned project ID of the project.
+ string project_id = 1;
+
+ // The ID of the dataset in the above project.
+ string dataset_id = 2;
+
+ // The ID of the table in the above dataset.
+ string table_id = 3;
+}
+
+// Represents a BI Reservation.
+message BiReservation {
+ option (google.api.resource) = {
+ type: "bigqueryreservation.googleapis.com/BiReservation"
+ pattern: "projects/{project}/locations/{location}/biReservation"
+ };
+
+ // The resource name of the singleton BI reservation.
+ // Reservation names have the form
+ // `projects/{project_id}/locations/{location_id}/biReservation`.
+ string name = 1;
+
+ // Output only. The last update timestamp of a reservation.
+ google.protobuf.Timestamp update_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Size of a reservation, in bytes.
+ int64 size = 4;
+
+ // Preferred tables to use BI capacity for.
+ repeated TableReference preferred_tables = 5;
+}
+
+// A request to get a singleton BI reservation.
+message GetBiReservationRequest {
+ // Required. Name of the requested reservation, for example:
+ // `projects/{project_id}/locations/{location_id}/biReservation`
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "bigqueryreservation.googleapis.com/BiReservation"
+ }
+ ];
+}
+
+// A request to update a BI reservation.
+message UpdateBiReservationRequest {
+ // A reservation to update.
+ BiReservation bi_reservation = 1;
+
+ // A list of fields to be updated in this request.
+ google.protobuf.FieldMask update_mask = 2;
+}
diff --git a/packages/google-cloud-bigquery-reservation/protos/protos.d.ts b/packages/google-cloud-bigquery-reservation/protos/protos.d.ts
new file mode 100644
index 00000000000..ddc95a1df0c
--- /dev/null
+++ b/packages/google-cloud-bigquery-reservation/protos/protos.d.ts
@@ -0,0 +1,8454 @@
+// 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 Long = require("long");
+import type {protobuf as $protobuf} from "google-gax";
+/** Namespace google. */
+export namespace google {
+
+ /** Namespace cloud. */
+ namespace cloud {
+
+ /** Namespace bigquery. */
+ namespace bigquery {
+
+ /** Namespace reservation. */
+ namespace reservation {
+
+ /** Namespace v1. */
+ namespace v1 {
+
+ /** Represents a ReservationService */
+ class ReservationService extends $protobuf.rpc.Service {
+
+ /**
+ * Constructs a new ReservationService 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 ReservationService 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): ReservationService;
+
+ /**
+ * Calls CreateReservation.
+ * @param request CreateReservationRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Reservation
+ */
+ public createReservation(request: google.cloud.bigquery.reservation.v1.ICreateReservationRequest, callback: google.cloud.bigquery.reservation.v1.ReservationService.CreateReservationCallback): void;
+
+ /**
+ * Calls CreateReservation.
+ * @param request CreateReservationRequest message or plain object
+ * @returns Promise
+ */
+ public createReservation(request: google.cloud.bigquery.reservation.v1.ICreateReservationRequest): Promise;
+
+ /**
+ * Calls ListReservations.
+ * @param request ListReservationsRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListReservationsResponse
+ */
+ public listReservations(request: google.cloud.bigquery.reservation.v1.IListReservationsRequest, callback: google.cloud.bigquery.reservation.v1.ReservationService.ListReservationsCallback): void;
+
+ /**
+ * Calls ListReservations.
+ * @param request ListReservationsRequest message or plain object
+ * @returns Promise
+ */
+ public listReservations(request: google.cloud.bigquery.reservation.v1.IListReservationsRequest): Promise;
+
+ /**
+ * Calls GetReservation.
+ * @param request GetReservationRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Reservation
+ */
+ public getReservation(request: google.cloud.bigquery.reservation.v1.IGetReservationRequest, callback: google.cloud.bigquery.reservation.v1.ReservationService.GetReservationCallback): void;
+
+ /**
+ * Calls GetReservation.
+ * @param request GetReservationRequest message or plain object
+ * @returns Promise
+ */
+ public getReservation(request: google.cloud.bigquery.reservation.v1.IGetReservationRequest): Promise;
+
+ /**
+ * Calls DeleteReservation.
+ * @param request DeleteReservationRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Empty
+ */
+ public deleteReservation(request: google.cloud.bigquery.reservation.v1.IDeleteReservationRequest, callback: google.cloud.bigquery.reservation.v1.ReservationService.DeleteReservationCallback): void;
+
+ /**
+ * Calls DeleteReservation.
+ * @param request DeleteReservationRequest message or plain object
+ * @returns Promise
+ */
+ public deleteReservation(request: google.cloud.bigquery.reservation.v1.IDeleteReservationRequest): Promise;
+
+ /**
+ * Calls UpdateReservation.
+ * @param request UpdateReservationRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Reservation
+ */
+ public updateReservation(request: google.cloud.bigquery.reservation.v1.IUpdateReservationRequest, callback: google.cloud.bigquery.reservation.v1.ReservationService.UpdateReservationCallback): void;
+
+ /**
+ * Calls UpdateReservation.
+ * @param request UpdateReservationRequest message or plain object
+ * @returns Promise
+ */
+ public updateReservation(request: google.cloud.bigquery.reservation.v1.IUpdateReservationRequest): Promise;
+
+ /**
+ * Calls CreateCapacityCommitment.
+ * @param request CreateCapacityCommitmentRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and CapacityCommitment
+ */
+ public createCapacityCommitment(request: google.cloud.bigquery.reservation.v1.ICreateCapacityCommitmentRequest, callback: google.cloud.bigquery.reservation.v1.ReservationService.CreateCapacityCommitmentCallback): void;
+
+ /**
+ * Calls CreateCapacityCommitment.
+ * @param request CreateCapacityCommitmentRequest message or plain object
+ * @returns Promise
+ */
+ public createCapacityCommitment(request: google.cloud.bigquery.reservation.v1.ICreateCapacityCommitmentRequest): Promise;
+
+ /**
+ * Calls ListCapacityCommitments.
+ * @param request ListCapacityCommitmentsRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListCapacityCommitmentsResponse
+ */
+ public listCapacityCommitments(request: google.cloud.bigquery.reservation.v1.IListCapacityCommitmentsRequest, callback: google.cloud.bigquery.reservation.v1.ReservationService.ListCapacityCommitmentsCallback): void;
+
+ /**
+ * Calls ListCapacityCommitments.
+ * @param request ListCapacityCommitmentsRequest message or plain object
+ * @returns Promise
+ */
+ public listCapacityCommitments(request: google.cloud.bigquery.reservation.v1.IListCapacityCommitmentsRequest): Promise;
+
+ /**
+ * Calls GetCapacityCommitment.
+ * @param request GetCapacityCommitmentRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and CapacityCommitment
+ */
+ public getCapacityCommitment(request: google.cloud.bigquery.reservation.v1.IGetCapacityCommitmentRequest, callback: google.cloud.bigquery.reservation.v1.ReservationService.GetCapacityCommitmentCallback): void;
+
+ /**
+ * Calls GetCapacityCommitment.
+ * @param request GetCapacityCommitmentRequest message or plain object
+ * @returns Promise
+ */
+ public getCapacityCommitment(request: google.cloud.bigquery.reservation.v1.IGetCapacityCommitmentRequest): Promise;
+
+ /**
+ * Calls DeleteCapacityCommitment.
+ * @param request DeleteCapacityCommitmentRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Empty
+ */
+ public deleteCapacityCommitment(request: google.cloud.bigquery.reservation.v1.IDeleteCapacityCommitmentRequest, callback: google.cloud.bigquery.reservation.v1.ReservationService.DeleteCapacityCommitmentCallback): void;
+
+ /**
+ * Calls DeleteCapacityCommitment.
+ * @param request DeleteCapacityCommitmentRequest message or plain object
+ * @returns Promise
+ */
+ public deleteCapacityCommitment(request: google.cloud.bigquery.reservation.v1.IDeleteCapacityCommitmentRequest): Promise;
+
+ /**
+ * Calls UpdateCapacityCommitment.
+ * @param request UpdateCapacityCommitmentRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and CapacityCommitment
+ */
+ public updateCapacityCommitment(request: google.cloud.bigquery.reservation.v1.IUpdateCapacityCommitmentRequest, callback: google.cloud.bigquery.reservation.v1.ReservationService.UpdateCapacityCommitmentCallback): void;
+
+ /**
+ * Calls UpdateCapacityCommitment.
+ * @param request UpdateCapacityCommitmentRequest message or plain object
+ * @returns Promise
+ */
+ public updateCapacityCommitment(request: google.cloud.bigquery.reservation.v1.IUpdateCapacityCommitmentRequest): Promise;
+
+ /**
+ * Calls SplitCapacityCommitment.
+ * @param request SplitCapacityCommitmentRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and SplitCapacityCommitmentResponse
+ */
+ public splitCapacityCommitment(request: google.cloud.bigquery.reservation.v1.ISplitCapacityCommitmentRequest, callback: google.cloud.bigquery.reservation.v1.ReservationService.SplitCapacityCommitmentCallback): void;
+
+ /**
+ * Calls SplitCapacityCommitment.
+ * @param request SplitCapacityCommitmentRequest message or plain object
+ * @returns Promise
+ */
+ public splitCapacityCommitment(request: google.cloud.bigquery.reservation.v1.ISplitCapacityCommitmentRequest): Promise;
+
+ /**
+ * Calls MergeCapacityCommitments.
+ * @param request MergeCapacityCommitmentsRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and CapacityCommitment
+ */
+ public mergeCapacityCommitments(request: google.cloud.bigquery.reservation.v1.IMergeCapacityCommitmentsRequest, callback: google.cloud.bigquery.reservation.v1.ReservationService.MergeCapacityCommitmentsCallback): void;
+
+ /**
+ * Calls MergeCapacityCommitments.
+ * @param request MergeCapacityCommitmentsRequest message or plain object
+ * @returns Promise
+ */
+ public mergeCapacityCommitments(request: google.cloud.bigquery.reservation.v1.IMergeCapacityCommitmentsRequest): Promise;
+
+ /**
+ * Calls CreateAssignment.
+ * @param request CreateAssignmentRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Assignment
+ */
+ public createAssignment(request: google.cloud.bigquery.reservation.v1.ICreateAssignmentRequest, callback: google.cloud.bigquery.reservation.v1.ReservationService.CreateAssignmentCallback): void;
+
+ /**
+ * Calls CreateAssignment.
+ * @param request CreateAssignmentRequest message or plain object
+ * @returns Promise
+ */
+ public createAssignment(request: google.cloud.bigquery.reservation.v1.ICreateAssignmentRequest): Promise;
+
+ /**
+ * Calls ListAssignments.
+ * @param request ListAssignmentsRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListAssignmentsResponse
+ */
+ public listAssignments(request: google.cloud.bigquery.reservation.v1.IListAssignmentsRequest, callback: google.cloud.bigquery.reservation.v1.ReservationService.ListAssignmentsCallback): void;
+
+ /**
+ * Calls ListAssignments.
+ * @param request ListAssignmentsRequest message or plain object
+ * @returns Promise
+ */
+ public listAssignments(request: google.cloud.bigquery.reservation.v1.IListAssignmentsRequest): Promise;
+
+ /**
+ * Calls DeleteAssignment.
+ * @param request DeleteAssignmentRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Empty
+ */
+ public deleteAssignment(request: google.cloud.bigquery.reservation.v1.IDeleteAssignmentRequest, callback: google.cloud.bigquery.reservation.v1.ReservationService.DeleteAssignmentCallback): void;
+
+ /**
+ * Calls DeleteAssignment.
+ * @param request DeleteAssignmentRequest message or plain object
+ * @returns Promise
+ */
+ public deleteAssignment(request: google.cloud.bigquery.reservation.v1.IDeleteAssignmentRequest): Promise;
+
+ /**
+ * Calls SearchAssignments.
+ * @param request SearchAssignmentsRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and SearchAssignmentsResponse
+ */
+ public searchAssignments(request: google.cloud.bigquery.reservation.v1.ISearchAssignmentsRequest, callback: google.cloud.bigquery.reservation.v1.ReservationService.SearchAssignmentsCallback): void;
+
+ /**
+ * Calls SearchAssignments.
+ * @param request SearchAssignmentsRequest message or plain object
+ * @returns Promise
+ */
+ public searchAssignments(request: google.cloud.bigquery.reservation.v1.ISearchAssignmentsRequest): Promise;
+
+ /**
+ * Calls SearchAllAssignments.
+ * @param request SearchAllAssignmentsRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and SearchAllAssignmentsResponse
+ */
+ public searchAllAssignments(request: google.cloud.bigquery.reservation.v1.ISearchAllAssignmentsRequest, callback: google.cloud.bigquery.reservation.v1.ReservationService.SearchAllAssignmentsCallback): void;
+
+ /**
+ * Calls SearchAllAssignments.
+ * @param request SearchAllAssignmentsRequest message or plain object
+ * @returns Promise
+ */
+ public searchAllAssignments(request: google.cloud.bigquery.reservation.v1.ISearchAllAssignmentsRequest): Promise;
+
+ /**
+ * Calls MoveAssignment.
+ * @param request MoveAssignmentRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Assignment
+ */
+ public moveAssignment(request: google.cloud.bigquery.reservation.v1.IMoveAssignmentRequest, callback: google.cloud.bigquery.reservation.v1.ReservationService.MoveAssignmentCallback): void;
+
+ /**
+ * Calls MoveAssignment.
+ * @param request MoveAssignmentRequest message or plain object
+ * @returns Promise
+ */
+ public moveAssignment(request: google.cloud.bigquery.reservation.v1.IMoveAssignmentRequest): Promise;
+
+ /**
+ * Calls UpdateAssignment.
+ * @param request UpdateAssignmentRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Assignment
+ */
+ public updateAssignment(request: google.cloud.bigquery.reservation.v1.IUpdateAssignmentRequest, callback: google.cloud.bigquery.reservation.v1.ReservationService.UpdateAssignmentCallback): void;
+
+ /**
+ * Calls UpdateAssignment.
+ * @param request UpdateAssignmentRequest message or plain object
+ * @returns Promise
+ */
+ public updateAssignment(request: google.cloud.bigquery.reservation.v1.IUpdateAssignmentRequest): Promise;
+
+ /**
+ * Calls GetBiReservation.
+ * @param request GetBiReservationRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and BiReservation
+ */
+ public getBiReservation(request: google.cloud.bigquery.reservation.v1.IGetBiReservationRequest, callback: google.cloud.bigquery.reservation.v1.ReservationService.GetBiReservationCallback): void;
+
+ /**
+ * Calls GetBiReservation.
+ * @param request GetBiReservationRequest message or plain object
+ * @returns Promise
+ */
+ public getBiReservation(request: google.cloud.bigquery.reservation.v1.IGetBiReservationRequest): Promise;
+
+ /**
+ * Calls UpdateBiReservation.
+ * @param request UpdateBiReservationRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and BiReservation
+ */
+ public updateBiReservation(request: google.cloud.bigquery.reservation.v1.IUpdateBiReservationRequest, callback: google.cloud.bigquery.reservation.v1.ReservationService.UpdateBiReservationCallback): void;
+
+ /**
+ * Calls UpdateBiReservation.
+ * @param request UpdateBiReservationRequest message or plain object
+ * @returns Promise
+ */
+ public updateBiReservation(request: google.cloud.bigquery.reservation.v1.IUpdateBiReservationRequest): Promise;
+ }
+
+ namespace ReservationService {
+
+ /**
+ * Callback as used by {@link google.cloud.bigquery.reservation.v1.ReservationService|createReservation}.
+ * @param error Error, if any
+ * @param [response] Reservation
+ */
+ type CreateReservationCallback = (error: (Error|null), response?: google.cloud.bigquery.reservation.v1.Reservation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.bigquery.reservation.v1.ReservationService|listReservations}.
+ * @param error Error, if any
+ * @param [response] ListReservationsResponse
+ */
+ type ListReservationsCallback = (error: (Error|null), response?: google.cloud.bigquery.reservation.v1.ListReservationsResponse) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.bigquery.reservation.v1.ReservationService|getReservation}.
+ * @param error Error, if any
+ * @param [response] Reservation
+ */
+ type GetReservationCallback = (error: (Error|null), response?: google.cloud.bigquery.reservation.v1.Reservation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.bigquery.reservation.v1.ReservationService|deleteReservation}.
+ * @param error Error, if any
+ * @param [response] Empty
+ */
+ type DeleteReservationCallback = (error: (Error|null), response?: google.protobuf.Empty) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.bigquery.reservation.v1.ReservationService|updateReservation}.
+ * @param error Error, if any
+ * @param [response] Reservation
+ */
+ type UpdateReservationCallback = (error: (Error|null), response?: google.cloud.bigquery.reservation.v1.Reservation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.bigquery.reservation.v1.ReservationService|createCapacityCommitment}.
+ * @param error Error, if any
+ * @param [response] CapacityCommitment
+ */
+ type CreateCapacityCommitmentCallback = (error: (Error|null), response?: google.cloud.bigquery.reservation.v1.CapacityCommitment) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.bigquery.reservation.v1.ReservationService|listCapacityCommitments}.
+ * @param error Error, if any
+ * @param [response] ListCapacityCommitmentsResponse
+ */
+ type ListCapacityCommitmentsCallback = (error: (Error|null), response?: google.cloud.bigquery.reservation.v1.ListCapacityCommitmentsResponse) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.bigquery.reservation.v1.ReservationService|getCapacityCommitment}.
+ * @param error Error, if any
+ * @param [response] CapacityCommitment
+ */
+ type GetCapacityCommitmentCallback = (error: (Error|null), response?: google.cloud.bigquery.reservation.v1.CapacityCommitment) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.bigquery.reservation.v1.ReservationService|deleteCapacityCommitment}.
+ * @param error Error, if any
+ * @param [response] Empty
+ */
+ type DeleteCapacityCommitmentCallback = (error: (Error|null), response?: google.protobuf.Empty) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.bigquery.reservation.v1.ReservationService|updateCapacityCommitment}.
+ * @param error Error, if any
+ * @param [response] CapacityCommitment
+ */
+ type UpdateCapacityCommitmentCallback = (error: (Error|null), response?: google.cloud.bigquery.reservation.v1.CapacityCommitment) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.bigquery.reservation.v1.ReservationService|splitCapacityCommitment}.
+ * @param error Error, if any
+ * @param [response] SplitCapacityCommitmentResponse
+ */
+ type SplitCapacityCommitmentCallback = (error: (Error|null), response?: google.cloud.bigquery.reservation.v1.SplitCapacityCommitmentResponse) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.bigquery.reservation.v1.ReservationService|mergeCapacityCommitments}.
+ * @param error Error, if any
+ * @param [response] CapacityCommitment
+ */
+ type MergeCapacityCommitmentsCallback = (error: (Error|null), response?: google.cloud.bigquery.reservation.v1.CapacityCommitment) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.bigquery.reservation.v1.ReservationService|createAssignment}.
+ * @param error Error, if any
+ * @param [response] Assignment
+ */
+ type CreateAssignmentCallback = (error: (Error|null), response?: google.cloud.bigquery.reservation.v1.Assignment) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.bigquery.reservation.v1.ReservationService|listAssignments}.
+ * @param error Error, if any
+ * @param [response] ListAssignmentsResponse
+ */
+ type ListAssignmentsCallback = (error: (Error|null), response?: google.cloud.bigquery.reservation.v1.ListAssignmentsResponse) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.bigquery.reservation.v1.ReservationService|deleteAssignment}.
+ * @param error Error, if any
+ * @param [response] Empty
+ */
+ type DeleteAssignmentCallback = (error: (Error|null), response?: google.protobuf.Empty) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.bigquery.reservation.v1.ReservationService|searchAssignments}.
+ * @param error Error, if any
+ * @param [response] SearchAssignmentsResponse
+ */
+ type SearchAssignmentsCallback = (error: (Error|null), response?: google.cloud.bigquery.reservation.v1.SearchAssignmentsResponse) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.bigquery.reservation.v1.ReservationService|searchAllAssignments}.
+ * @param error Error, if any
+ * @param [response] SearchAllAssignmentsResponse
+ */
+ type SearchAllAssignmentsCallback = (error: (Error|null), response?: google.cloud.bigquery.reservation.v1.SearchAllAssignmentsResponse) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.bigquery.reservation.v1.ReservationService|moveAssignment}.
+ * @param error Error, if any
+ * @param [response] Assignment
+ */
+ type MoveAssignmentCallback = (error: (Error|null), response?: google.cloud.bigquery.reservation.v1.Assignment) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.bigquery.reservation.v1.ReservationService|updateAssignment}.
+ * @param error Error, if any
+ * @param [response] Assignment
+ */
+ type UpdateAssignmentCallback = (error: (Error|null), response?: google.cloud.bigquery.reservation.v1.Assignment) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.bigquery.reservation.v1.ReservationService|getBiReservation}.
+ * @param error Error, if any
+ * @param [response] BiReservation
+ */
+ type GetBiReservationCallback = (error: (Error|null), response?: google.cloud.bigquery.reservation.v1.BiReservation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.bigquery.reservation.v1.ReservationService|updateBiReservation}.
+ * @param error Error, if any
+ * @param [response] BiReservation
+ */
+ type UpdateBiReservationCallback = (error: (Error|null), response?: google.cloud.bigquery.reservation.v1.BiReservation) => void;
+ }
+
+ /** Properties of a Reservation. */
+ interface IReservation {
+
+ /** Reservation name */
+ name?: (string|null);
+
+ /** Reservation slotCapacity */
+ slotCapacity?: (number|Long|string|null);
+
+ /** Reservation ignoreIdleSlots */
+ ignoreIdleSlots?: (boolean|null);
+
+ /** Reservation concurrency */
+ concurrency?: (number|Long|string|null);
+
+ /** Reservation creationTime */
+ creationTime?: (google.protobuf.ITimestamp|null);
+
+ /** Reservation updateTime */
+ updateTime?: (google.protobuf.ITimestamp|null);
+
+ /** Reservation multiRegionAuxiliary */
+ multiRegionAuxiliary?: (boolean|null);
+ }
+
+ /** Represents a Reservation. */
+ class Reservation implements IReservation {
+
+ /**
+ * Constructs a new Reservation.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.reservation.v1.IReservation);
+
+ /** Reservation name. */
+ public name: string;
+
+ /** Reservation slotCapacity. */
+ public slotCapacity: (number|Long|string);
+
+ /** Reservation ignoreIdleSlots. */
+ public ignoreIdleSlots: boolean;
+
+ /** Reservation concurrency. */
+ public concurrency: (number|Long|string);
+
+ /** Reservation creationTime. */
+ public creationTime?: (google.protobuf.ITimestamp|null);
+
+ /** Reservation updateTime. */
+ public updateTime?: (google.protobuf.ITimestamp|null);
+
+ /** Reservation multiRegionAuxiliary. */
+ public multiRegionAuxiliary: boolean;
+
+ /**
+ * Creates a new Reservation instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Reservation instance
+ */
+ public static create(properties?: google.cloud.bigquery.reservation.v1.IReservation): google.cloud.bigquery.reservation.v1.Reservation;
+
+ /**
+ * Encodes the specified Reservation message. Does not implicitly {@link google.cloud.bigquery.reservation.v1.Reservation.verify|verify} messages.
+ * @param message Reservation message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.reservation.v1.IReservation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Reservation message, length delimited. Does not implicitly {@link google.cloud.bigquery.reservation.v1.Reservation.verify|verify} messages.
+ * @param message Reservation message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.reservation.v1.IReservation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Reservation message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Reservation
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.bigquery.reservation.v1.Reservation;
+
+ /**
+ * Decodes a Reservation message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Reservation
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.bigquery.reservation.v1.Reservation;
+
+ /**
+ * Verifies a Reservation message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Reservation message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Reservation
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.reservation.v1.Reservation;
+
+ /**
+ * Creates a plain object from a Reservation message. Also converts values to other types if specified.
+ * @param message Reservation
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.reservation.v1.Reservation, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Reservation to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Reservation
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CapacityCommitment. */
+ interface ICapacityCommitment {
+
+ /** CapacityCommitment name */
+ name?: (string|null);
+
+ /** CapacityCommitment slotCount */
+ slotCount?: (number|Long|string|null);
+
+ /** CapacityCommitment plan */
+ plan?: (google.cloud.bigquery.reservation.v1.CapacityCommitment.CommitmentPlan|keyof typeof google.cloud.bigquery.reservation.v1.CapacityCommitment.CommitmentPlan|null);
+
+ /** CapacityCommitment state */
+ state?: (google.cloud.bigquery.reservation.v1.CapacityCommitment.State|keyof typeof google.cloud.bigquery.reservation.v1.CapacityCommitment.State|null);
+
+ /** CapacityCommitment commitmentStartTime */
+ commitmentStartTime?: (google.protobuf.ITimestamp|null);
+
+ /** CapacityCommitment commitmentEndTime */
+ commitmentEndTime?: (google.protobuf.ITimestamp|null);
+
+ /** CapacityCommitment failureStatus */
+ failureStatus?: (google.rpc.IStatus|null);
+
+ /** CapacityCommitment renewalPlan */
+ renewalPlan?: (google.cloud.bigquery.reservation.v1.CapacityCommitment.CommitmentPlan|keyof typeof google.cloud.bigquery.reservation.v1.CapacityCommitment.CommitmentPlan|null);
+
+ /** CapacityCommitment multiRegionAuxiliary */
+ multiRegionAuxiliary?: (boolean|null);
+ }
+
+ /** Represents a CapacityCommitment. */
+ class CapacityCommitment implements ICapacityCommitment {
+
+ /**
+ * Constructs a new CapacityCommitment.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.reservation.v1.ICapacityCommitment);
+
+ /** CapacityCommitment name. */
+ public name: string;
+
+ /** CapacityCommitment slotCount. */
+ public slotCount: (number|Long|string);
+
+ /** CapacityCommitment plan. */
+ public plan: (google.cloud.bigquery.reservation.v1.CapacityCommitment.CommitmentPlan|keyof typeof google.cloud.bigquery.reservation.v1.CapacityCommitment.CommitmentPlan);
+
+ /** CapacityCommitment state. */
+ public state: (google.cloud.bigquery.reservation.v1.CapacityCommitment.State|keyof typeof google.cloud.bigquery.reservation.v1.CapacityCommitment.State);
+
+ /** CapacityCommitment commitmentStartTime. */
+ public commitmentStartTime?: (google.protobuf.ITimestamp|null);
+
+ /** CapacityCommitment commitmentEndTime. */
+ public commitmentEndTime?: (google.protobuf.ITimestamp|null);
+
+ /** CapacityCommitment failureStatus. */
+ public failureStatus?: (google.rpc.IStatus|null);
+
+ /** CapacityCommitment renewalPlan. */
+ public renewalPlan: (google.cloud.bigquery.reservation.v1.CapacityCommitment.CommitmentPlan|keyof typeof google.cloud.bigquery.reservation.v1.CapacityCommitment.CommitmentPlan);
+
+ /** CapacityCommitment multiRegionAuxiliary. */
+ public multiRegionAuxiliary: boolean;
+
+ /**
+ * Creates a new CapacityCommitment instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CapacityCommitment instance
+ */
+ public static create(properties?: google.cloud.bigquery.reservation.v1.ICapacityCommitment): google.cloud.bigquery.reservation.v1.CapacityCommitment;
+
+ /**
+ * Encodes the specified CapacityCommitment message. Does not implicitly {@link google.cloud.bigquery.reservation.v1.CapacityCommitment.verify|verify} messages.
+ * @param message CapacityCommitment message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.reservation.v1.ICapacityCommitment, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CapacityCommitment message, length delimited. Does not implicitly {@link google.cloud.bigquery.reservation.v1.CapacityCommitment.verify|verify} messages.
+ * @param message CapacityCommitment message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.reservation.v1.ICapacityCommitment, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CapacityCommitment message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CapacityCommitment
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.bigquery.reservation.v1.CapacityCommitment;
+
+ /**
+ * Decodes a CapacityCommitment message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CapacityCommitment
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.bigquery.reservation.v1.CapacityCommitment;
+
+ /**
+ * Verifies a CapacityCommitment message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a CapacityCommitment message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CapacityCommitment
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.reservation.v1.CapacityCommitment;
+
+ /**
+ * Creates a plain object from a CapacityCommitment message. Also converts values to other types if specified.
+ * @param message CapacityCommitment
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.reservation.v1.CapacityCommitment, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CapacityCommitment to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CapacityCommitment
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace CapacityCommitment {
+
+ /** CommitmentPlan enum. */
+ enum CommitmentPlan {
+ COMMITMENT_PLAN_UNSPECIFIED = 0,
+ FLEX = 3,
+ TRIAL = 5,
+ MONTHLY = 2,
+ ANNUAL = 4
+ }
+
+ /** State enum. */
+ enum State {
+ STATE_UNSPECIFIED = 0,
+ PENDING = 1,
+ ACTIVE = 2,
+ FAILED = 3
+ }
+ }
+
+ /** Properties of a CreateReservationRequest. */
+ interface ICreateReservationRequest {
+
+ /** CreateReservationRequest parent */
+ parent?: (string|null);
+
+ /** CreateReservationRequest reservationId */
+ reservationId?: (string|null);
+
+ /** CreateReservationRequest reservation */
+ reservation?: (google.cloud.bigquery.reservation.v1.IReservation|null);
+ }
+
+ /** Represents a CreateReservationRequest. */
+ class CreateReservationRequest implements ICreateReservationRequest {
+
+ /**
+ * Constructs a new CreateReservationRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.reservation.v1.ICreateReservationRequest);
+
+ /** CreateReservationRequest parent. */
+ public parent: string;
+
+ /** CreateReservationRequest reservationId. */
+ public reservationId: string;
+
+ /** CreateReservationRequest reservation. */
+ public reservation?: (google.cloud.bigquery.reservation.v1.IReservation|null);
+
+ /**
+ * Creates a new CreateReservationRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CreateReservationRequest instance
+ */
+ public static create(properties?: google.cloud.bigquery.reservation.v1.ICreateReservationRequest): google.cloud.bigquery.reservation.v1.CreateReservationRequest;
+
+ /**
+ * Encodes the specified CreateReservationRequest message. Does not implicitly {@link google.cloud.bigquery.reservation.v1.CreateReservationRequest.verify|verify} messages.
+ * @param message CreateReservationRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.reservation.v1.ICreateReservationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CreateReservationRequest message, length delimited. Does not implicitly {@link google.cloud.bigquery.reservation.v1.CreateReservationRequest.verify|verify} messages.
+ * @param message CreateReservationRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.reservation.v1.ICreateReservationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CreateReservationRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CreateReservationRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.bigquery.reservation.v1.CreateReservationRequest;
+
+ /**
+ * Decodes a CreateReservationRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CreateReservationRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.bigquery.reservation.v1.CreateReservationRequest;
+
+ /**
+ * Verifies a CreateReservationRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a CreateReservationRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CreateReservationRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.reservation.v1.CreateReservationRequest;
+
+ /**
+ * Creates a plain object from a CreateReservationRequest message. Also converts values to other types if specified.
+ * @param message CreateReservationRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.reservation.v1.CreateReservationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CreateReservationRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CreateReservationRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListReservationsRequest. */
+ interface IListReservationsRequest {
+
+ /** ListReservationsRequest parent */
+ parent?: (string|null);
+
+ /** ListReservationsRequest pageSize */
+ pageSize?: (number|null);
+
+ /** ListReservationsRequest pageToken */
+ pageToken?: (string|null);
+ }
+
+ /** Represents a ListReservationsRequest. */
+ class ListReservationsRequest implements IListReservationsRequest {
+
+ /**
+ * Constructs a new ListReservationsRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.reservation.v1.IListReservationsRequest);
+
+ /** ListReservationsRequest parent. */
+ public parent: string;
+
+ /** ListReservationsRequest pageSize. */
+ public pageSize: number;
+
+ /** ListReservationsRequest pageToken. */
+ public pageToken: string;
+
+ /**
+ * Creates a new ListReservationsRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListReservationsRequest instance
+ */
+ public static create(properties?: google.cloud.bigquery.reservation.v1.IListReservationsRequest): google.cloud.bigquery.reservation.v1.ListReservationsRequest;
+
+ /**
+ * Encodes the specified ListReservationsRequest message. Does not implicitly {@link google.cloud.bigquery.reservation.v1.ListReservationsRequest.verify|verify} messages.
+ * @param message ListReservationsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.reservation.v1.IListReservationsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListReservationsRequest message, length delimited. Does not implicitly {@link google.cloud.bigquery.reservation.v1.ListReservationsRequest.verify|verify} messages.
+ * @param message ListReservationsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.reservation.v1.IListReservationsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListReservationsRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListReservationsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.bigquery.reservation.v1.ListReservationsRequest;
+
+ /**
+ * Decodes a ListReservationsRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListReservationsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.bigquery.reservation.v1.ListReservationsRequest;
+
+ /**
+ * Verifies a ListReservationsRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListReservationsRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListReservationsRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.reservation.v1.ListReservationsRequest;
+
+ /**
+ * Creates a plain object from a ListReservationsRequest message. Also converts values to other types if specified.
+ * @param message ListReservationsRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.reservation.v1.ListReservationsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListReservationsRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListReservationsRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListReservationsResponse. */
+ interface IListReservationsResponse {
+
+ /** ListReservationsResponse reservations */
+ reservations?: (google.cloud.bigquery.reservation.v1.IReservation[]|null);
+
+ /** ListReservationsResponse nextPageToken */
+ nextPageToken?: (string|null);
+ }
+
+ /** Represents a ListReservationsResponse. */
+ class ListReservationsResponse implements IListReservationsResponse {
+
+ /**
+ * Constructs a new ListReservationsResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.reservation.v1.IListReservationsResponse);
+
+ /** ListReservationsResponse reservations. */
+ public reservations: google.cloud.bigquery.reservation.v1.IReservation[];
+
+ /** ListReservationsResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /**
+ * Creates a new ListReservationsResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListReservationsResponse instance
+ */
+ public static create(properties?: google.cloud.bigquery.reservation.v1.IListReservationsResponse): google.cloud.bigquery.reservation.v1.ListReservationsResponse;
+
+ /**
+ * Encodes the specified ListReservationsResponse message. Does not implicitly {@link google.cloud.bigquery.reservation.v1.ListReservationsResponse.verify|verify} messages.
+ * @param message ListReservationsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.reservation.v1.IListReservationsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListReservationsResponse message, length delimited. Does not implicitly {@link google.cloud.bigquery.reservation.v1.ListReservationsResponse.verify|verify} messages.
+ * @param message ListReservationsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.reservation.v1.IListReservationsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListReservationsResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListReservationsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.bigquery.reservation.v1.ListReservationsResponse;
+
+ /**
+ * Decodes a ListReservationsResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListReservationsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.bigquery.reservation.v1.ListReservationsResponse;
+
+ /**
+ * Verifies a ListReservationsResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListReservationsResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListReservationsResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.reservation.v1.ListReservationsResponse;
+
+ /**
+ * Creates a plain object from a ListReservationsResponse message. Also converts values to other types if specified.
+ * @param message ListReservationsResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.reservation.v1.ListReservationsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListReservationsResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListReservationsResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GetReservationRequest. */
+ interface IGetReservationRequest {
+
+ /** GetReservationRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a GetReservationRequest. */
+ class GetReservationRequest implements IGetReservationRequest {
+
+ /**
+ * Constructs a new GetReservationRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.reservation.v1.IGetReservationRequest);
+
+ /** GetReservationRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new GetReservationRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetReservationRequest instance
+ */
+ public static create(properties?: google.cloud.bigquery.reservation.v1.IGetReservationRequest): google.cloud.bigquery.reservation.v1.GetReservationRequest;
+
+ /**
+ * Encodes the specified GetReservationRequest message. Does not implicitly {@link google.cloud.bigquery.reservation.v1.GetReservationRequest.verify|verify} messages.
+ * @param message GetReservationRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.reservation.v1.IGetReservationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetReservationRequest message, length delimited. Does not implicitly {@link google.cloud.bigquery.reservation.v1.GetReservationRequest.verify|verify} messages.
+ * @param message GetReservationRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.reservation.v1.IGetReservationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetReservationRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetReservationRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.bigquery.reservation.v1.GetReservationRequest;
+
+ /**
+ * Decodes a GetReservationRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetReservationRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.bigquery.reservation.v1.GetReservationRequest;
+
+ /**
+ * Verifies a GetReservationRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GetReservationRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetReservationRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.reservation.v1.GetReservationRequest;
+
+ /**
+ * Creates a plain object from a GetReservationRequest message. Also converts values to other types if specified.
+ * @param message GetReservationRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.reservation.v1.GetReservationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetReservationRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetReservationRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DeleteReservationRequest. */
+ interface IDeleteReservationRequest {
+
+ /** DeleteReservationRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a DeleteReservationRequest. */
+ class DeleteReservationRequest implements IDeleteReservationRequest {
+
+ /**
+ * Constructs a new DeleteReservationRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.reservation.v1.IDeleteReservationRequest);
+
+ /** DeleteReservationRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new DeleteReservationRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DeleteReservationRequest instance
+ */
+ public static create(properties?: google.cloud.bigquery.reservation.v1.IDeleteReservationRequest): google.cloud.bigquery.reservation.v1.DeleteReservationRequest;
+
+ /**
+ * Encodes the specified DeleteReservationRequest message. Does not implicitly {@link google.cloud.bigquery.reservation.v1.DeleteReservationRequest.verify|verify} messages.
+ * @param message DeleteReservationRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.reservation.v1.IDeleteReservationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DeleteReservationRequest message, length delimited. Does not implicitly {@link google.cloud.bigquery.reservation.v1.DeleteReservationRequest.verify|verify} messages.
+ * @param message DeleteReservationRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.reservation.v1.IDeleteReservationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DeleteReservationRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DeleteReservationRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.bigquery.reservation.v1.DeleteReservationRequest;
+
+ /**
+ * Decodes a DeleteReservationRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DeleteReservationRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.bigquery.reservation.v1.DeleteReservationRequest;
+
+ /**
+ * Verifies a DeleteReservationRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DeleteReservationRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DeleteReservationRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.reservation.v1.DeleteReservationRequest;
+
+ /**
+ * Creates a plain object from a DeleteReservationRequest message. Also converts values to other types if specified.
+ * @param message DeleteReservationRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.reservation.v1.DeleteReservationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DeleteReservationRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DeleteReservationRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an UpdateReservationRequest. */
+ interface IUpdateReservationRequest {
+
+ /** UpdateReservationRequest reservation */
+ reservation?: (google.cloud.bigquery.reservation.v1.IReservation|null);
+
+ /** UpdateReservationRequest updateMask */
+ updateMask?: (google.protobuf.IFieldMask|null);
+ }
+
+ /** Represents an UpdateReservationRequest. */
+ class UpdateReservationRequest implements IUpdateReservationRequest {
+
+ /**
+ * Constructs a new UpdateReservationRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.reservation.v1.IUpdateReservationRequest);
+
+ /** UpdateReservationRequest reservation. */
+ public reservation?: (google.cloud.bigquery.reservation.v1.IReservation|null);
+
+ /** UpdateReservationRequest updateMask. */
+ public updateMask?: (google.protobuf.IFieldMask|null);
+
+ /**
+ * Creates a new UpdateReservationRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns UpdateReservationRequest instance
+ */
+ public static create(properties?: google.cloud.bigquery.reservation.v1.IUpdateReservationRequest): google.cloud.bigquery.reservation.v1.UpdateReservationRequest;
+
+ /**
+ * Encodes the specified UpdateReservationRequest message. Does not implicitly {@link google.cloud.bigquery.reservation.v1.UpdateReservationRequest.verify|verify} messages.
+ * @param message UpdateReservationRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.reservation.v1.IUpdateReservationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified UpdateReservationRequest message, length delimited. Does not implicitly {@link google.cloud.bigquery.reservation.v1.UpdateReservationRequest.verify|verify} messages.
+ * @param message UpdateReservationRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.reservation.v1.IUpdateReservationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an UpdateReservationRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns UpdateReservationRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.bigquery.reservation.v1.UpdateReservationRequest;
+
+ /**
+ * Decodes an UpdateReservationRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns UpdateReservationRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.bigquery.reservation.v1.UpdateReservationRequest;
+
+ /**
+ * Verifies an UpdateReservationRequest message.
+ * @param message Plain 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 UpdateReservationRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns UpdateReservationRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.reservation.v1.UpdateReservationRequest;
+
+ /**
+ * Creates a plain object from an UpdateReservationRequest message. Also converts values to other types if specified.
+ * @param message UpdateReservationRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.reservation.v1.UpdateReservationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this UpdateReservationRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for UpdateReservationRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CreateCapacityCommitmentRequest. */
+ interface ICreateCapacityCommitmentRequest {
+
+ /** CreateCapacityCommitmentRequest parent */
+ parent?: (string|null);
+
+ /** CreateCapacityCommitmentRequest capacityCommitment */
+ capacityCommitment?: (google.cloud.bigquery.reservation.v1.ICapacityCommitment|null);
+
+ /** CreateCapacityCommitmentRequest enforceSingleAdminProjectPerOrg */
+ enforceSingleAdminProjectPerOrg?: (boolean|null);
+
+ /** CreateCapacityCommitmentRequest capacityCommitmentId */
+ capacityCommitmentId?: (string|null);
+ }
+
+ /** Represents a CreateCapacityCommitmentRequest. */
+ class CreateCapacityCommitmentRequest implements ICreateCapacityCommitmentRequest {
+
+ /**
+ * Constructs a new CreateCapacityCommitmentRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.reservation.v1.ICreateCapacityCommitmentRequest);
+
+ /** CreateCapacityCommitmentRequest parent. */
+ public parent: string;
+
+ /** CreateCapacityCommitmentRequest capacityCommitment. */
+ public capacityCommitment?: (google.cloud.bigquery.reservation.v1.ICapacityCommitment|null);
+
+ /** CreateCapacityCommitmentRequest enforceSingleAdminProjectPerOrg. */
+ public enforceSingleAdminProjectPerOrg: boolean;
+
+ /** CreateCapacityCommitmentRequest capacityCommitmentId. */
+ public capacityCommitmentId: string;
+
+ /**
+ * Creates a new CreateCapacityCommitmentRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CreateCapacityCommitmentRequest instance
+ */
+ public static create(properties?: google.cloud.bigquery.reservation.v1.ICreateCapacityCommitmentRequest): google.cloud.bigquery.reservation.v1.CreateCapacityCommitmentRequest;
+
+ /**
+ * Encodes the specified CreateCapacityCommitmentRequest message. Does not implicitly {@link google.cloud.bigquery.reservation.v1.CreateCapacityCommitmentRequest.verify|verify} messages.
+ * @param message CreateCapacityCommitmentRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.reservation.v1.ICreateCapacityCommitmentRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CreateCapacityCommitmentRequest message, length delimited. Does not implicitly {@link google.cloud.bigquery.reservation.v1.CreateCapacityCommitmentRequest.verify|verify} messages.
+ * @param message CreateCapacityCommitmentRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.reservation.v1.ICreateCapacityCommitmentRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CreateCapacityCommitmentRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CreateCapacityCommitmentRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.bigquery.reservation.v1.CreateCapacityCommitmentRequest;
+
+ /**
+ * Decodes a CreateCapacityCommitmentRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CreateCapacityCommitmentRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.bigquery.reservation.v1.CreateCapacityCommitmentRequest;
+
+ /**
+ * Verifies a CreateCapacityCommitmentRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a CreateCapacityCommitmentRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CreateCapacityCommitmentRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.reservation.v1.CreateCapacityCommitmentRequest;
+
+ /**
+ * Creates a plain object from a CreateCapacityCommitmentRequest message. Also converts values to other types if specified.
+ * @param message CreateCapacityCommitmentRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.reservation.v1.CreateCapacityCommitmentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CreateCapacityCommitmentRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CreateCapacityCommitmentRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListCapacityCommitmentsRequest. */
+ interface IListCapacityCommitmentsRequest {
+
+ /** ListCapacityCommitmentsRequest parent */
+ parent?: (string|null);
+
+ /** ListCapacityCommitmentsRequest pageSize */
+ pageSize?: (number|null);
+
+ /** ListCapacityCommitmentsRequest pageToken */
+ pageToken?: (string|null);
+ }
+
+ /** Represents a ListCapacityCommitmentsRequest. */
+ class ListCapacityCommitmentsRequest implements IListCapacityCommitmentsRequest {
+
+ /**
+ * Constructs a new ListCapacityCommitmentsRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.reservation.v1.IListCapacityCommitmentsRequest);
+
+ /** ListCapacityCommitmentsRequest parent. */
+ public parent: string;
+
+ /** ListCapacityCommitmentsRequest pageSize. */
+ public pageSize: number;
+
+ /** ListCapacityCommitmentsRequest pageToken. */
+ public pageToken: string;
+
+ /**
+ * Creates a new ListCapacityCommitmentsRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListCapacityCommitmentsRequest instance
+ */
+ public static create(properties?: google.cloud.bigquery.reservation.v1.IListCapacityCommitmentsRequest): google.cloud.bigquery.reservation.v1.ListCapacityCommitmentsRequest;
+
+ /**
+ * Encodes the specified ListCapacityCommitmentsRequest message. Does not implicitly {@link google.cloud.bigquery.reservation.v1.ListCapacityCommitmentsRequest.verify|verify} messages.
+ * @param message ListCapacityCommitmentsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.reservation.v1.IListCapacityCommitmentsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListCapacityCommitmentsRequest message, length delimited. Does not implicitly {@link google.cloud.bigquery.reservation.v1.ListCapacityCommitmentsRequest.verify|verify} messages.
+ * @param message ListCapacityCommitmentsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.reservation.v1.IListCapacityCommitmentsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListCapacityCommitmentsRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListCapacityCommitmentsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.bigquery.reservation.v1.ListCapacityCommitmentsRequest;
+
+ /**
+ * Decodes a ListCapacityCommitmentsRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListCapacityCommitmentsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.bigquery.reservation.v1.ListCapacityCommitmentsRequest;
+
+ /**
+ * Verifies a ListCapacityCommitmentsRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListCapacityCommitmentsRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListCapacityCommitmentsRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.reservation.v1.ListCapacityCommitmentsRequest;
+
+ /**
+ * Creates a plain object from a ListCapacityCommitmentsRequest message. Also converts values to other types if specified.
+ * @param message ListCapacityCommitmentsRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.reservation.v1.ListCapacityCommitmentsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListCapacityCommitmentsRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListCapacityCommitmentsRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListCapacityCommitmentsResponse. */
+ interface IListCapacityCommitmentsResponse {
+
+ /** ListCapacityCommitmentsResponse capacityCommitments */
+ capacityCommitments?: (google.cloud.bigquery.reservation.v1.ICapacityCommitment[]|null);
+
+ /** ListCapacityCommitmentsResponse nextPageToken */
+ nextPageToken?: (string|null);
+ }
+
+ /** Represents a ListCapacityCommitmentsResponse. */
+ class ListCapacityCommitmentsResponse implements IListCapacityCommitmentsResponse {
+
+ /**
+ * Constructs a new ListCapacityCommitmentsResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.reservation.v1.IListCapacityCommitmentsResponse);
+
+ /** ListCapacityCommitmentsResponse capacityCommitments. */
+ public capacityCommitments: google.cloud.bigquery.reservation.v1.ICapacityCommitment[];
+
+ /** ListCapacityCommitmentsResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /**
+ * Creates a new ListCapacityCommitmentsResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListCapacityCommitmentsResponse instance
+ */
+ public static create(properties?: google.cloud.bigquery.reservation.v1.IListCapacityCommitmentsResponse): google.cloud.bigquery.reservation.v1.ListCapacityCommitmentsResponse;
+
+ /**
+ * Encodes the specified ListCapacityCommitmentsResponse message. Does not implicitly {@link google.cloud.bigquery.reservation.v1.ListCapacityCommitmentsResponse.verify|verify} messages.
+ * @param message ListCapacityCommitmentsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.reservation.v1.IListCapacityCommitmentsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListCapacityCommitmentsResponse message, length delimited. Does not implicitly {@link google.cloud.bigquery.reservation.v1.ListCapacityCommitmentsResponse.verify|verify} messages.
+ * @param message ListCapacityCommitmentsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.reservation.v1.IListCapacityCommitmentsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListCapacityCommitmentsResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListCapacityCommitmentsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.bigquery.reservation.v1.ListCapacityCommitmentsResponse;
+
+ /**
+ * Decodes a ListCapacityCommitmentsResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListCapacityCommitmentsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.bigquery.reservation.v1.ListCapacityCommitmentsResponse;
+
+ /**
+ * Verifies a ListCapacityCommitmentsResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListCapacityCommitmentsResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListCapacityCommitmentsResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.reservation.v1.ListCapacityCommitmentsResponse;
+
+ /**
+ * Creates a plain object from a ListCapacityCommitmentsResponse message. Also converts values to other types if specified.
+ * @param message ListCapacityCommitmentsResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.reservation.v1.ListCapacityCommitmentsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListCapacityCommitmentsResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListCapacityCommitmentsResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GetCapacityCommitmentRequest. */
+ interface IGetCapacityCommitmentRequest {
+
+ /** GetCapacityCommitmentRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a GetCapacityCommitmentRequest. */
+ class GetCapacityCommitmentRequest implements IGetCapacityCommitmentRequest {
+
+ /**
+ * Constructs a new GetCapacityCommitmentRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.reservation.v1.IGetCapacityCommitmentRequest);
+
+ /** GetCapacityCommitmentRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new GetCapacityCommitmentRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetCapacityCommitmentRequest instance
+ */
+ public static create(properties?: google.cloud.bigquery.reservation.v1.IGetCapacityCommitmentRequest): google.cloud.bigquery.reservation.v1.GetCapacityCommitmentRequest;
+
+ /**
+ * Encodes the specified GetCapacityCommitmentRequest message. Does not implicitly {@link google.cloud.bigquery.reservation.v1.GetCapacityCommitmentRequest.verify|verify} messages.
+ * @param message GetCapacityCommitmentRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.reservation.v1.IGetCapacityCommitmentRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetCapacityCommitmentRequest message, length delimited. Does not implicitly {@link google.cloud.bigquery.reservation.v1.GetCapacityCommitmentRequest.verify|verify} messages.
+ * @param message GetCapacityCommitmentRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.reservation.v1.IGetCapacityCommitmentRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetCapacityCommitmentRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetCapacityCommitmentRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.bigquery.reservation.v1.GetCapacityCommitmentRequest;
+
+ /**
+ * Decodes a GetCapacityCommitmentRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetCapacityCommitmentRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.bigquery.reservation.v1.GetCapacityCommitmentRequest;
+
+ /**
+ * Verifies a GetCapacityCommitmentRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GetCapacityCommitmentRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetCapacityCommitmentRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.reservation.v1.GetCapacityCommitmentRequest;
+
+ /**
+ * Creates a plain object from a GetCapacityCommitmentRequest message. Also converts values to other types if specified.
+ * @param message GetCapacityCommitmentRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.reservation.v1.GetCapacityCommitmentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetCapacityCommitmentRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetCapacityCommitmentRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DeleteCapacityCommitmentRequest. */
+ interface IDeleteCapacityCommitmentRequest {
+
+ /** DeleteCapacityCommitmentRequest name */
+ name?: (string|null);
+
+ /** DeleteCapacityCommitmentRequest force */
+ force?: (boolean|null);
+ }
+
+ /** Represents a DeleteCapacityCommitmentRequest. */
+ class DeleteCapacityCommitmentRequest implements IDeleteCapacityCommitmentRequest {
+
+ /**
+ * Constructs a new DeleteCapacityCommitmentRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.reservation.v1.IDeleteCapacityCommitmentRequest);
+
+ /** DeleteCapacityCommitmentRequest name. */
+ public name: string;
+
+ /** DeleteCapacityCommitmentRequest force. */
+ public force: boolean;
+
+ /**
+ * Creates a new DeleteCapacityCommitmentRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DeleteCapacityCommitmentRequest instance
+ */
+ public static create(properties?: google.cloud.bigquery.reservation.v1.IDeleteCapacityCommitmentRequest): google.cloud.bigquery.reservation.v1.DeleteCapacityCommitmentRequest;
+
+ /**
+ * Encodes the specified DeleteCapacityCommitmentRequest message. Does not implicitly {@link google.cloud.bigquery.reservation.v1.DeleteCapacityCommitmentRequest.verify|verify} messages.
+ * @param message DeleteCapacityCommitmentRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.reservation.v1.IDeleteCapacityCommitmentRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DeleteCapacityCommitmentRequest message, length delimited. Does not implicitly {@link google.cloud.bigquery.reservation.v1.DeleteCapacityCommitmentRequest.verify|verify} messages.
+ * @param message DeleteCapacityCommitmentRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.reservation.v1.IDeleteCapacityCommitmentRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DeleteCapacityCommitmentRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DeleteCapacityCommitmentRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.bigquery.reservation.v1.DeleteCapacityCommitmentRequest;
+
+ /**
+ * Decodes a DeleteCapacityCommitmentRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DeleteCapacityCommitmentRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.bigquery.reservation.v1.DeleteCapacityCommitmentRequest;
+
+ /**
+ * Verifies a DeleteCapacityCommitmentRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DeleteCapacityCommitmentRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DeleteCapacityCommitmentRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.reservation.v1.DeleteCapacityCommitmentRequest;
+
+ /**
+ * Creates a plain object from a DeleteCapacityCommitmentRequest message. Also converts values to other types if specified.
+ * @param message DeleteCapacityCommitmentRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.reservation.v1.DeleteCapacityCommitmentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DeleteCapacityCommitmentRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DeleteCapacityCommitmentRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an UpdateCapacityCommitmentRequest. */
+ interface IUpdateCapacityCommitmentRequest {
+
+ /** UpdateCapacityCommitmentRequest capacityCommitment */
+ capacityCommitment?: (google.cloud.bigquery.reservation.v1.ICapacityCommitment|null);
+
+ /** UpdateCapacityCommitmentRequest updateMask */
+ updateMask?: (google.protobuf.IFieldMask|null);
+ }
+
+ /** Represents an UpdateCapacityCommitmentRequest. */
+ class UpdateCapacityCommitmentRequest implements IUpdateCapacityCommitmentRequest {
+
+ /**
+ * Constructs a new UpdateCapacityCommitmentRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.reservation.v1.IUpdateCapacityCommitmentRequest);
+
+ /** UpdateCapacityCommitmentRequest capacityCommitment. */
+ public capacityCommitment?: (google.cloud.bigquery.reservation.v1.ICapacityCommitment|null);
+
+ /** UpdateCapacityCommitmentRequest updateMask. */
+ public updateMask?: (google.protobuf.IFieldMask|null);
+
+ /**
+ * Creates a new UpdateCapacityCommitmentRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns UpdateCapacityCommitmentRequest instance
+ */
+ public static create(properties?: google.cloud.bigquery.reservation.v1.IUpdateCapacityCommitmentRequest): google.cloud.bigquery.reservation.v1.UpdateCapacityCommitmentRequest;
+
+ /**
+ * Encodes the specified UpdateCapacityCommitmentRequest message. Does not implicitly {@link google.cloud.bigquery.reservation.v1.UpdateCapacityCommitmentRequest.verify|verify} messages.
+ * @param message UpdateCapacityCommitmentRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.reservation.v1.IUpdateCapacityCommitmentRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified UpdateCapacityCommitmentRequest message, length delimited. Does not implicitly {@link google.cloud.bigquery.reservation.v1.UpdateCapacityCommitmentRequest.verify|verify} messages.
+ * @param message UpdateCapacityCommitmentRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.reservation.v1.IUpdateCapacityCommitmentRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an UpdateCapacityCommitmentRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns UpdateCapacityCommitmentRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.bigquery.reservation.v1.UpdateCapacityCommitmentRequest;
+
+ /**
+ * Decodes an UpdateCapacityCommitmentRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns UpdateCapacityCommitmentRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.bigquery.reservation.v1.UpdateCapacityCommitmentRequest;
+
+ /**
+ * Verifies an UpdateCapacityCommitmentRequest message.
+ * @param message Plain 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 UpdateCapacityCommitmentRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns UpdateCapacityCommitmentRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.reservation.v1.UpdateCapacityCommitmentRequest;
+
+ /**
+ * Creates a plain object from an UpdateCapacityCommitmentRequest message. Also converts values to other types if specified.
+ * @param message UpdateCapacityCommitmentRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.reservation.v1.UpdateCapacityCommitmentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this UpdateCapacityCommitmentRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for UpdateCapacityCommitmentRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a SplitCapacityCommitmentRequest. */
+ interface ISplitCapacityCommitmentRequest {
+
+ /** SplitCapacityCommitmentRequest name */
+ name?: (string|null);
+
+ /** SplitCapacityCommitmentRequest slotCount */
+ slotCount?: (number|Long|string|null);
+ }
+
+ /** Represents a SplitCapacityCommitmentRequest. */
+ class SplitCapacityCommitmentRequest implements ISplitCapacityCommitmentRequest {
+
+ /**
+ * Constructs a new SplitCapacityCommitmentRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.reservation.v1.ISplitCapacityCommitmentRequest);
+
+ /** SplitCapacityCommitmentRequest name. */
+ public name: string;
+
+ /** SplitCapacityCommitmentRequest slotCount. */
+ public slotCount: (number|Long|string);
+
+ /**
+ * Creates a new SplitCapacityCommitmentRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns SplitCapacityCommitmentRequest instance
+ */
+ public static create(properties?: google.cloud.bigquery.reservation.v1.ISplitCapacityCommitmentRequest): google.cloud.bigquery.reservation.v1.SplitCapacityCommitmentRequest;
+
+ /**
+ * Encodes the specified SplitCapacityCommitmentRequest message. Does not implicitly {@link google.cloud.bigquery.reservation.v1.SplitCapacityCommitmentRequest.verify|verify} messages.
+ * @param message SplitCapacityCommitmentRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.reservation.v1.ISplitCapacityCommitmentRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified SplitCapacityCommitmentRequest message, length delimited. Does not implicitly {@link google.cloud.bigquery.reservation.v1.SplitCapacityCommitmentRequest.verify|verify} messages.
+ * @param message SplitCapacityCommitmentRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.reservation.v1.ISplitCapacityCommitmentRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a SplitCapacityCommitmentRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns SplitCapacityCommitmentRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.bigquery.reservation.v1.SplitCapacityCommitmentRequest;
+
+ /**
+ * Decodes a SplitCapacityCommitmentRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns SplitCapacityCommitmentRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.bigquery.reservation.v1.SplitCapacityCommitmentRequest;
+
+ /**
+ * Verifies a SplitCapacityCommitmentRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a SplitCapacityCommitmentRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns SplitCapacityCommitmentRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.reservation.v1.SplitCapacityCommitmentRequest;
+
+ /**
+ * Creates a plain object from a SplitCapacityCommitmentRequest message. Also converts values to other types if specified.
+ * @param message SplitCapacityCommitmentRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.reservation.v1.SplitCapacityCommitmentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this SplitCapacityCommitmentRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for SplitCapacityCommitmentRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a SplitCapacityCommitmentResponse. */
+ interface ISplitCapacityCommitmentResponse {
+
+ /** SplitCapacityCommitmentResponse first */
+ first?: (google.cloud.bigquery.reservation.v1.ICapacityCommitment|null);
+
+ /** SplitCapacityCommitmentResponse second */
+ second?: (google.cloud.bigquery.reservation.v1.ICapacityCommitment|null);
+ }
+
+ /** Represents a SplitCapacityCommitmentResponse. */
+ class SplitCapacityCommitmentResponse implements ISplitCapacityCommitmentResponse {
+
+ /**
+ * Constructs a new SplitCapacityCommitmentResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.reservation.v1.ISplitCapacityCommitmentResponse);
+
+ /** SplitCapacityCommitmentResponse first. */
+ public first?: (google.cloud.bigquery.reservation.v1.ICapacityCommitment|null);
+
+ /** SplitCapacityCommitmentResponse second. */
+ public second?: (google.cloud.bigquery.reservation.v1.ICapacityCommitment|null);
+
+ /**
+ * Creates a new SplitCapacityCommitmentResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns SplitCapacityCommitmentResponse instance
+ */
+ public static create(properties?: google.cloud.bigquery.reservation.v1.ISplitCapacityCommitmentResponse): google.cloud.bigquery.reservation.v1.SplitCapacityCommitmentResponse;
+
+ /**
+ * Encodes the specified SplitCapacityCommitmentResponse message. Does not implicitly {@link google.cloud.bigquery.reservation.v1.SplitCapacityCommitmentResponse.verify|verify} messages.
+ * @param message SplitCapacityCommitmentResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.reservation.v1.ISplitCapacityCommitmentResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified SplitCapacityCommitmentResponse message, length delimited. Does not implicitly {@link google.cloud.bigquery.reservation.v1.SplitCapacityCommitmentResponse.verify|verify} messages.
+ * @param message SplitCapacityCommitmentResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.reservation.v1.ISplitCapacityCommitmentResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a SplitCapacityCommitmentResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns SplitCapacityCommitmentResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.bigquery.reservation.v1.SplitCapacityCommitmentResponse;
+
+ /**
+ * Decodes a SplitCapacityCommitmentResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns SplitCapacityCommitmentResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.bigquery.reservation.v1.SplitCapacityCommitmentResponse;
+
+ /**
+ * Verifies a SplitCapacityCommitmentResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a SplitCapacityCommitmentResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns SplitCapacityCommitmentResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.reservation.v1.SplitCapacityCommitmentResponse;
+
+ /**
+ * Creates a plain object from a SplitCapacityCommitmentResponse message. Also converts values to other types if specified.
+ * @param message SplitCapacityCommitmentResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.reservation.v1.SplitCapacityCommitmentResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this SplitCapacityCommitmentResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for SplitCapacityCommitmentResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a MergeCapacityCommitmentsRequest. */
+ interface IMergeCapacityCommitmentsRequest {
+
+ /** MergeCapacityCommitmentsRequest parent */
+ parent?: (string|null);
+
+ /** MergeCapacityCommitmentsRequest capacityCommitmentIds */
+ capacityCommitmentIds?: (string[]|null);
+ }
+
+ /** Represents a MergeCapacityCommitmentsRequest. */
+ class MergeCapacityCommitmentsRequest implements IMergeCapacityCommitmentsRequest {
+
+ /**
+ * Constructs a new MergeCapacityCommitmentsRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.reservation.v1.IMergeCapacityCommitmentsRequest);
+
+ /** MergeCapacityCommitmentsRequest parent. */
+ public parent: string;
+
+ /** MergeCapacityCommitmentsRequest capacityCommitmentIds. */
+ public capacityCommitmentIds: string[];
+
+ /**
+ * Creates a new MergeCapacityCommitmentsRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns MergeCapacityCommitmentsRequest instance
+ */
+ public static create(properties?: google.cloud.bigquery.reservation.v1.IMergeCapacityCommitmentsRequest): google.cloud.bigquery.reservation.v1.MergeCapacityCommitmentsRequest;
+
+ /**
+ * Encodes the specified MergeCapacityCommitmentsRequest message. Does not implicitly {@link google.cloud.bigquery.reservation.v1.MergeCapacityCommitmentsRequest.verify|verify} messages.
+ * @param message MergeCapacityCommitmentsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.reservation.v1.IMergeCapacityCommitmentsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified MergeCapacityCommitmentsRequest message, length delimited. Does not implicitly {@link google.cloud.bigquery.reservation.v1.MergeCapacityCommitmentsRequest.verify|verify} messages.
+ * @param message MergeCapacityCommitmentsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.reservation.v1.IMergeCapacityCommitmentsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a MergeCapacityCommitmentsRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns MergeCapacityCommitmentsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.bigquery.reservation.v1.MergeCapacityCommitmentsRequest;
+
+ /**
+ * Decodes a MergeCapacityCommitmentsRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns MergeCapacityCommitmentsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.bigquery.reservation.v1.MergeCapacityCommitmentsRequest;
+
+ /**
+ * Verifies a MergeCapacityCommitmentsRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a MergeCapacityCommitmentsRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns MergeCapacityCommitmentsRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.reservation.v1.MergeCapacityCommitmentsRequest;
+
+ /**
+ * Creates a plain object from a MergeCapacityCommitmentsRequest message. Also converts values to other types if specified.
+ * @param message MergeCapacityCommitmentsRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.reservation.v1.MergeCapacityCommitmentsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this MergeCapacityCommitmentsRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for MergeCapacityCommitmentsRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an Assignment. */
+ interface IAssignment {
+
+ /** Assignment name */
+ name?: (string|null);
+
+ /** Assignment assignee */
+ assignee?: (string|null);
+
+ /** Assignment jobType */
+ jobType?: (google.cloud.bigquery.reservation.v1.Assignment.JobType|keyof typeof google.cloud.bigquery.reservation.v1.Assignment.JobType|null);
+
+ /** Assignment state */
+ state?: (google.cloud.bigquery.reservation.v1.Assignment.State|keyof typeof google.cloud.bigquery.reservation.v1.Assignment.State|null);
+ }
+
+ /** Represents an Assignment. */
+ class Assignment implements IAssignment {
+
+ /**
+ * Constructs a new Assignment.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.reservation.v1.IAssignment);
+
+ /** Assignment name. */
+ public name: string;
+
+ /** Assignment assignee. */
+ public assignee: string;
+
+ /** Assignment jobType. */
+ public jobType: (google.cloud.bigquery.reservation.v1.Assignment.JobType|keyof typeof google.cloud.bigquery.reservation.v1.Assignment.JobType);
+
+ /** Assignment state. */
+ public state: (google.cloud.bigquery.reservation.v1.Assignment.State|keyof typeof google.cloud.bigquery.reservation.v1.Assignment.State);
+
+ /**
+ * Creates a new Assignment instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Assignment instance
+ */
+ public static create(properties?: google.cloud.bigquery.reservation.v1.IAssignment): google.cloud.bigquery.reservation.v1.Assignment;
+
+ /**
+ * Encodes the specified Assignment message. Does not implicitly {@link google.cloud.bigquery.reservation.v1.Assignment.verify|verify} messages.
+ * @param message Assignment message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.reservation.v1.IAssignment, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Assignment message, length delimited. Does not implicitly {@link google.cloud.bigquery.reservation.v1.Assignment.verify|verify} messages.
+ * @param message Assignment message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.reservation.v1.IAssignment, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an Assignment message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Assignment
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.bigquery.reservation.v1.Assignment;
+
+ /**
+ * Decodes an Assignment message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Assignment
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.bigquery.reservation.v1.Assignment;
+
+ /**
+ * Verifies an Assignment message.
+ * @param message Plain 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 Assignment message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Assignment
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.reservation.v1.Assignment;
+
+ /**
+ * Creates a plain object from an Assignment message. Also converts values to other types if specified.
+ * @param message Assignment
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.reservation.v1.Assignment, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Assignment to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Assignment
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace Assignment {
+
+ /** JobType enum. */
+ enum JobType {
+ JOB_TYPE_UNSPECIFIED = 0,
+ PIPELINE = 1,
+ QUERY = 2,
+ ML_EXTERNAL = 3
+ }
+
+ /** State enum. */
+ enum State {
+ STATE_UNSPECIFIED = 0,
+ PENDING = 1,
+ ACTIVE = 2
+ }
+ }
+
+ /** Properties of a CreateAssignmentRequest. */
+ interface ICreateAssignmentRequest {
+
+ /** CreateAssignmentRequest parent */
+ parent?: (string|null);
+
+ /** CreateAssignmentRequest assignment */
+ assignment?: (google.cloud.bigquery.reservation.v1.IAssignment|null);
+
+ /** CreateAssignmentRequest assignmentId */
+ assignmentId?: (string|null);
+ }
+
+ /** Represents a CreateAssignmentRequest. */
+ class CreateAssignmentRequest implements ICreateAssignmentRequest {
+
+ /**
+ * Constructs a new CreateAssignmentRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.reservation.v1.ICreateAssignmentRequest);
+
+ /** CreateAssignmentRequest parent. */
+ public parent: string;
+
+ /** CreateAssignmentRequest assignment. */
+ public assignment?: (google.cloud.bigquery.reservation.v1.IAssignment|null);
+
+ /** CreateAssignmentRequest assignmentId. */
+ public assignmentId: string;
+
+ /**
+ * Creates a new CreateAssignmentRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CreateAssignmentRequest instance
+ */
+ public static create(properties?: google.cloud.bigquery.reservation.v1.ICreateAssignmentRequest): google.cloud.bigquery.reservation.v1.CreateAssignmentRequest;
+
+ /**
+ * Encodes the specified CreateAssignmentRequest message. Does not implicitly {@link google.cloud.bigquery.reservation.v1.CreateAssignmentRequest.verify|verify} messages.
+ * @param message CreateAssignmentRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.reservation.v1.ICreateAssignmentRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CreateAssignmentRequest message, length delimited. Does not implicitly {@link google.cloud.bigquery.reservation.v1.CreateAssignmentRequest.verify|verify} messages.
+ * @param message CreateAssignmentRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.reservation.v1.ICreateAssignmentRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CreateAssignmentRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CreateAssignmentRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.bigquery.reservation.v1.CreateAssignmentRequest;
+
+ /**
+ * Decodes a CreateAssignmentRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CreateAssignmentRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.bigquery.reservation.v1.CreateAssignmentRequest;
+
+ /**
+ * Verifies a CreateAssignmentRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a CreateAssignmentRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CreateAssignmentRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.reservation.v1.CreateAssignmentRequest;
+
+ /**
+ * Creates a plain object from a CreateAssignmentRequest message. Also converts values to other types if specified.
+ * @param message CreateAssignmentRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.reservation.v1.CreateAssignmentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CreateAssignmentRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CreateAssignmentRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListAssignmentsRequest. */
+ interface IListAssignmentsRequest {
+
+ /** ListAssignmentsRequest parent */
+ parent?: (string|null);
+
+ /** ListAssignmentsRequest pageSize */
+ pageSize?: (number|null);
+
+ /** ListAssignmentsRequest pageToken */
+ pageToken?: (string|null);
+ }
+
+ /** Represents a ListAssignmentsRequest. */
+ class ListAssignmentsRequest implements IListAssignmentsRequest {
+
+ /**
+ * Constructs a new ListAssignmentsRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.reservation.v1.IListAssignmentsRequest);
+
+ /** ListAssignmentsRequest parent. */
+ public parent: string;
+
+ /** ListAssignmentsRequest pageSize. */
+ public pageSize: number;
+
+ /** ListAssignmentsRequest pageToken. */
+ public pageToken: string;
+
+ /**
+ * Creates a new ListAssignmentsRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListAssignmentsRequest instance
+ */
+ public static create(properties?: google.cloud.bigquery.reservation.v1.IListAssignmentsRequest): google.cloud.bigquery.reservation.v1.ListAssignmentsRequest;
+
+ /**
+ * Encodes the specified ListAssignmentsRequest message. Does not implicitly {@link google.cloud.bigquery.reservation.v1.ListAssignmentsRequest.verify|verify} messages.
+ * @param message ListAssignmentsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.reservation.v1.IListAssignmentsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListAssignmentsRequest message, length delimited. Does not implicitly {@link google.cloud.bigquery.reservation.v1.ListAssignmentsRequest.verify|verify} messages.
+ * @param message ListAssignmentsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.reservation.v1.IListAssignmentsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListAssignmentsRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListAssignmentsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.bigquery.reservation.v1.ListAssignmentsRequest;
+
+ /**
+ * Decodes a ListAssignmentsRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListAssignmentsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.bigquery.reservation.v1.ListAssignmentsRequest;
+
+ /**
+ * Verifies a ListAssignmentsRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListAssignmentsRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListAssignmentsRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.reservation.v1.ListAssignmentsRequest;
+
+ /**
+ * Creates a plain object from a ListAssignmentsRequest message. Also converts values to other types if specified.
+ * @param message ListAssignmentsRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.reservation.v1.ListAssignmentsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListAssignmentsRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListAssignmentsRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListAssignmentsResponse. */
+ interface IListAssignmentsResponse {
+
+ /** ListAssignmentsResponse assignments */
+ assignments?: (google.cloud.bigquery.reservation.v1.IAssignment[]|null);
+
+ /** ListAssignmentsResponse nextPageToken */
+ nextPageToken?: (string|null);
+ }
+
+ /** Represents a ListAssignmentsResponse. */
+ class ListAssignmentsResponse implements IListAssignmentsResponse {
+
+ /**
+ * Constructs a new ListAssignmentsResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.reservation.v1.IListAssignmentsResponse);
+
+ /** ListAssignmentsResponse assignments. */
+ public assignments: google.cloud.bigquery.reservation.v1.IAssignment[];
+
+ /** ListAssignmentsResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /**
+ * Creates a new ListAssignmentsResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListAssignmentsResponse instance
+ */
+ public static create(properties?: google.cloud.bigquery.reservation.v1.IListAssignmentsResponse): google.cloud.bigquery.reservation.v1.ListAssignmentsResponse;
+
+ /**
+ * Encodes the specified ListAssignmentsResponse message. Does not implicitly {@link google.cloud.bigquery.reservation.v1.ListAssignmentsResponse.verify|verify} messages.
+ * @param message ListAssignmentsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.reservation.v1.IListAssignmentsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListAssignmentsResponse message, length delimited. Does not implicitly {@link google.cloud.bigquery.reservation.v1.ListAssignmentsResponse.verify|verify} messages.
+ * @param message ListAssignmentsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.reservation.v1.IListAssignmentsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListAssignmentsResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListAssignmentsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.bigquery.reservation.v1.ListAssignmentsResponse;
+
+ /**
+ * Decodes a ListAssignmentsResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListAssignmentsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.bigquery.reservation.v1.ListAssignmentsResponse;
+
+ /**
+ * Verifies a ListAssignmentsResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListAssignmentsResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListAssignmentsResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.reservation.v1.ListAssignmentsResponse;
+
+ /**
+ * Creates a plain object from a ListAssignmentsResponse message. Also converts values to other types if specified.
+ * @param message ListAssignmentsResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.reservation.v1.ListAssignmentsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListAssignmentsResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListAssignmentsResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DeleteAssignmentRequest. */
+ interface IDeleteAssignmentRequest {
+
+ /** DeleteAssignmentRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a DeleteAssignmentRequest. */
+ class DeleteAssignmentRequest implements IDeleteAssignmentRequest {
+
+ /**
+ * Constructs a new DeleteAssignmentRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.reservation.v1.IDeleteAssignmentRequest);
+
+ /** DeleteAssignmentRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new DeleteAssignmentRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DeleteAssignmentRequest instance
+ */
+ public static create(properties?: google.cloud.bigquery.reservation.v1.IDeleteAssignmentRequest): google.cloud.bigquery.reservation.v1.DeleteAssignmentRequest;
+
+ /**
+ * Encodes the specified DeleteAssignmentRequest message. Does not implicitly {@link google.cloud.bigquery.reservation.v1.DeleteAssignmentRequest.verify|verify} messages.
+ * @param message DeleteAssignmentRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.reservation.v1.IDeleteAssignmentRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DeleteAssignmentRequest message, length delimited. Does not implicitly {@link google.cloud.bigquery.reservation.v1.DeleteAssignmentRequest.verify|verify} messages.
+ * @param message DeleteAssignmentRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.reservation.v1.IDeleteAssignmentRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DeleteAssignmentRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DeleteAssignmentRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.bigquery.reservation.v1.DeleteAssignmentRequest;
+
+ /**
+ * Decodes a DeleteAssignmentRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DeleteAssignmentRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.bigquery.reservation.v1.DeleteAssignmentRequest;
+
+ /**
+ * Verifies a DeleteAssignmentRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DeleteAssignmentRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DeleteAssignmentRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.reservation.v1.DeleteAssignmentRequest;
+
+ /**
+ * Creates a plain object from a DeleteAssignmentRequest message. Also converts values to other types if specified.
+ * @param message DeleteAssignmentRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.reservation.v1.DeleteAssignmentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DeleteAssignmentRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DeleteAssignmentRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a SearchAssignmentsRequest. */
+ interface ISearchAssignmentsRequest {
+
+ /** SearchAssignmentsRequest parent */
+ parent?: (string|null);
+
+ /** SearchAssignmentsRequest query */
+ query?: (string|null);
+
+ /** SearchAssignmentsRequest pageSize */
+ pageSize?: (number|null);
+
+ /** SearchAssignmentsRequest pageToken */
+ pageToken?: (string|null);
+ }
+
+ /** Represents a SearchAssignmentsRequest. */
+ class SearchAssignmentsRequest implements ISearchAssignmentsRequest {
+
+ /**
+ * Constructs a new SearchAssignmentsRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.reservation.v1.ISearchAssignmentsRequest);
+
+ /** SearchAssignmentsRequest parent. */
+ public parent: string;
+
+ /** SearchAssignmentsRequest query. */
+ public query: string;
+
+ /** SearchAssignmentsRequest pageSize. */
+ public pageSize: number;
+
+ /** SearchAssignmentsRequest pageToken. */
+ public pageToken: string;
+
+ /**
+ * Creates a new SearchAssignmentsRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns SearchAssignmentsRequest instance
+ */
+ public static create(properties?: google.cloud.bigquery.reservation.v1.ISearchAssignmentsRequest): google.cloud.bigquery.reservation.v1.SearchAssignmentsRequest;
+
+ /**
+ * Encodes the specified SearchAssignmentsRequest message. Does not implicitly {@link google.cloud.bigquery.reservation.v1.SearchAssignmentsRequest.verify|verify} messages.
+ * @param message SearchAssignmentsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.reservation.v1.ISearchAssignmentsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified SearchAssignmentsRequest message, length delimited. Does not implicitly {@link google.cloud.bigquery.reservation.v1.SearchAssignmentsRequest.verify|verify} messages.
+ * @param message SearchAssignmentsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.reservation.v1.ISearchAssignmentsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a SearchAssignmentsRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns SearchAssignmentsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.bigquery.reservation.v1.SearchAssignmentsRequest;
+
+ /**
+ * Decodes a SearchAssignmentsRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns SearchAssignmentsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.bigquery.reservation.v1.SearchAssignmentsRequest;
+
+ /**
+ * Verifies a SearchAssignmentsRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a SearchAssignmentsRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns SearchAssignmentsRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.reservation.v1.SearchAssignmentsRequest;
+
+ /**
+ * Creates a plain object from a SearchAssignmentsRequest message. Also converts values to other types if specified.
+ * @param message SearchAssignmentsRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.reservation.v1.SearchAssignmentsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this SearchAssignmentsRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for SearchAssignmentsRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a SearchAllAssignmentsRequest. */
+ interface ISearchAllAssignmentsRequest {
+
+ /** SearchAllAssignmentsRequest parent */
+ parent?: (string|null);
+
+ /** SearchAllAssignmentsRequest query */
+ query?: (string|null);
+
+ /** SearchAllAssignmentsRequest pageSize */
+ pageSize?: (number|null);
+
+ /** SearchAllAssignmentsRequest pageToken */
+ pageToken?: (string|null);
+ }
+
+ /** Represents a SearchAllAssignmentsRequest. */
+ class SearchAllAssignmentsRequest implements ISearchAllAssignmentsRequest {
+
+ /**
+ * Constructs a new SearchAllAssignmentsRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.reservation.v1.ISearchAllAssignmentsRequest);
+
+ /** SearchAllAssignmentsRequest parent. */
+ public parent: string;
+
+ /** SearchAllAssignmentsRequest query. */
+ public query: string;
+
+ /** SearchAllAssignmentsRequest pageSize. */
+ public pageSize: number;
+
+ /** SearchAllAssignmentsRequest pageToken. */
+ public pageToken: string;
+
+ /**
+ * Creates a new SearchAllAssignmentsRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns SearchAllAssignmentsRequest instance
+ */
+ public static create(properties?: google.cloud.bigquery.reservation.v1.ISearchAllAssignmentsRequest): google.cloud.bigquery.reservation.v1.SearchAllAssignmentsRequest;
+
+ /**
+ * Encodes the specified SearchAllAssignmentsRequest message. Does not implicitly {@link google.cloud.bigquery.reservation.v1.SearchAllAssignmentsRequest.verify|verify} messages.
+ * @param message SearchAllAssignmentsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.reservation.v1.ISearchAllAssignmentsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified SearchAllAssignmentsRequest message, length delimited. Does not implicitly {@link google.cloud.bigquery.reservation.v1.SearchAllAssignmentsRequest.verify|verify} messages.
+ * @param message SearchAllAssignmentsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.reservation.v1.ISearchAllAssignmentsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a SearchAllAssignmentsRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns SearchAllAssignmentsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.bigquery.reservation.v1.SearchAllAssignmentsRequest;
+
+ /**
+ * Decodes a SearchAllAssignmentsRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns SearchAllAssignmentsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.bigquery.reservation.v1.SearchAllAssignmentsRequest;
+
+ /**
+ * Verifies a SearchAllAssignmentsRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a SearchAllAssignmentsRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns SearchAllAssignmentsRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.reservation.v1.SearchAllAssignmentsRequest;
+
+ /**
+ * Creates a plain object from a SearchAllAssignmentsRequest message. Also converts values to other types if specified.
+ * @param message SearchAllAssignmentsRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.reservation.v1.SearchAllAssignmentsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this SearchAllAssignmentsRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for SearchAllAssignmentsRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a SearchAssignmentsResponse. */
+ interface ISearchAssignmentsResponse {
+
+ /** SearchAssignmentsResponse assignments */
+ assignments?: (google.cloud.bigquery.reservation.v1.IAssignment[]|null);
+
+ /** SearchAssignmentsResponse nextPageToken */
+ nextPageToken?: (string|null);
+ }
+
+ /** Represents a SearchAssignmentsResponse. */
+ class SearchAssignmentsResponse implements ISearchAssignmentsResponse {
+
+ /**
+ * Constructs a new SearchAssignmentsResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.reservation.v1.ISearchAssignmentsResponse);
+
+ /** SearchAssignmentsResponse assignments. */
+ public assignments: google.cloud.bigquery.reservation.v1.IAssignment[];
+
+ /** SearchAssignmentsResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /**
+ * Creates a new SearchAssignmentsResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns SearchAssignmentsResponse instance
+ */
+ public static create(properties?: google.cloud.bigquery.reservation.v1.ISearchAssignmentsResponse): google.cloud.bigquery.reservation.v1.SearchAssignmentsResponse;
+
+ /**
+ * Encodes the specified SearchAssignmentsResponse message. Does not implicitly {@link google.cloud.bigquery.reservation.v1.SearchAssignmentsResponse.verify|verify} messages.
+ * @param message SearchAssignmentsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.reservation.v1.ISearchAssignmentsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified SearchAssignmentsResponse message, length delimited. Does not implicitly {@link google.cloud.bigquery.reservation.v1.SearchAssignmentsResponse.verify|verify} messages.
+ * @param message SearchAssignmentsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.reservation.v1.ISearchAssignmentsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a SearchAssignmentsResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns SearchAssignmentsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.bigquery.reservation.v1.SearchAssignmentsResponse;
+
+ /**
+ * Decodes a SearchAssignmentsResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns SearchAssignmentsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.bigquery.reservation.v1.SearchAssignmentsResponse;
+
+ /**
+ * Verifies a SearchAssignmentsResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a SearchAssignmentsResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns SearchAssignmentsResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.reservation.v1.SearchAssignmentsResponse;
+
+ /**
+ * Creates a plain object from a SearchAssignmentsResponse message. Also converts values to other types if specified.
+ * @param message SearchAssignmentsResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.reservation.v1.SearchAssignmentsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this SearchAssignmentsResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for SearchAssignmentsResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a SearchAllAssignmentsResponse. */
+ interface ISearchAllAssignmentsResponse {
+
+ /** SearchAllAssignmentsResponse assignments */
+ assignments?: (google.cloud.bigquery.reservation.v1.IAssignment[]|null);
+
+ /** SearchAllAssignmentsResponse nextPageToken */
+ nextPageToken?: (string|null);
+ }
+
+ /** Represents a SearchAllAssignmentsResponse. */
+ class SearchAllAssignmentsResponse implements ISearchAllAssignmentsResponse {
+
+ /**
+ * Constructs a new SearchAllAssignmentsResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.reservation.v1.ISearchAllAssignmentsResponse);
+
+ /** SearchAllAssignmentsResponse assignments. */
+ public assignments: google.cloud.bigquery.reservation.v1.IAssignment[];
+
+ /** SearchAllAssignmentsResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /**
+ * Creates a new SearchAllAssignmentsResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns SearchAllAssignmentsResponse instance
+ */
+ public static create(properties?: google.cloud.bigquery.reservation.v1.ISearchAllAssignmentsResponse): google.cloud.bigquery.reservation.v1.SearchAllAssignmentsResponse;
+
+ /**
+ * Encodes the specified SearchAllAssignmentsResponse message. Does not implicitly {@link google.cloud.bigquery.reservation.v1.SearchAllAssignmentsResponse.verify|verify} messages.
+ * @param message SearchAllAssignmentsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.reservation.v1.ISearchAllAssignmentsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified SearchAllAssignmentsResponse message, length delimited. Does not implicitly {@link google.cloud.bigquery.reservation.v1.SearchAllAssignmentsResponse.verify|verify} messages.
+ * @param message SearchAllAssignmentsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.reservation.v1.ISearchAllAssignmentsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a SearchAllAssignmentsResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns SearchAllAssignmentsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.bigquery.reservation.v1.SearchAllAssignmentsResponse;
+
+ /**
+ * Decodes a SearchAllAssignmentsResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns SearchAllAssignmentsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.bigquery.reservation.v1.SearchAllAssignmentsResponse;
+
+ /**
+ * Verifies a SearchAllAssignmentsResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a SearchAllAssignmentsResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns SearchAllAssignmentsResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.reservation.v1.SearchAllAssignmentsResponse;
+
+ /**
+ * Creates a plain object from a SearchAllAssignmentsResponse message. Also converts values to other types if specified.
+ * @param message SearchAllAssignmentsResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.reservation.v1.SearchAllAssignmentsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this SearchAllAssignmentsResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for SearchAllAssignmentsResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a MoveAssignmentRequest. */
+ interface IMoveAssignmentRequest {
+
+ /** MoveAssignmentRequest name */
+ name?: (string|null);
+
+ /** MoveAssignmentRequest destinationId */
+ destinationId?: (string|null);
+ }
+
+ /** Represents a MoveAssignmentRequest. */
+ class MoveAssignmentRequest implements IMoveAssignmentRequest {
+
+ /**
+ * Constructs a new MoveAssignmentRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.reservation.v1.IMoveAssignmentRequest);
+
+ /** MoveAssignmentRequest name. */
+ public name: string;
+
+ /** MoveAssignmentRequest destinationId. */
+ public destinationId: string;
+
+ /**
+ * Creates a new MoveAssignmentRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns MoveAssignmentRequest instance
+ */
+ public static create(properties?: google.cloud.bigquery.reservation.v1.IMoveAssignmentRequest): google.cloud.bigquery.reservation.v1.MoveAssignmentRequest;
+
+ /**
+ * Encodes the specified MoveAssignmentRequest message. Does not implicitly {@link google.cloud.bigquery.reservation.v1.MoveAssignmentRequest.verify|verify} messages.
+ * @param message MoveAssignmentRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.reservation.v1.IMoveAssignmentRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified MoveAssignmentRequest message, length delimited. Does not implicitly {@link google.cloud.bigquery.reservation.v1.MoveAssignmentRequest.verify|verify} messages.
+ * @param message MoveAssignmentRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.reservation.v1.IMoveAssignmentRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a MoveAssignmentRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns MoveAssignmentRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.bigquery.reservation.v1.MoveAssignmentRequest;
+
+ /**
+ * Decodes a MoveAssignmentRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns MoveAssignmentRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.bigquery.reservation.v1.MoveAssignmentRequest;
+
+ /**
+ * Verifies a MoveAssignmentRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a MoveAssignmentRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns MoveAssignmentRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.reservation.v1.MoveAssignmentRequest;
+
+ /**
+ * Creates a plain object from a MoveAssignmentRequest message. Also converts values to other types if specified.
+ * @param message MoveAssignmentRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.reservation.v1.MoveAssignmentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this MoveAssignmentRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for MoveAssignmentRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an UpdateAssignmentRequest. */
+ interface IUpdateAssignmentRequest {
+
+ /** UpdateAssignmentRequest assignment */
+ assignment?: (google.cloud.bigquery.reservation.v1.IAssignment|null);
+
+ /** UpdateAssignmentRequest updateMask */
+ updateMask?: (google.protobuf.IFieldMask|null);
+ }
+
+ /** Represents an UpdateAssignmentRequest. */
+ class UpdateAssignmentRequest implements IUpdateAssignmentRequest {
+
+ /**
+ * Constructs a new UpdateAssignmentRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.reservation.v1.IUpdateAssignmentRequest);
+
+ /** UpdateAssignmentRequest assignment. */
+ public assignment?: (google.cloud.bigquery.reservation.v1.IAssignment|null);
+
+ /** UpdateAssignmentRequest updateMask. */
+ public updateMask?: (google.protobuf.IFieldMask|null);
+
+ /**
+ * Creates a new UpdateAssignmentRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns UpdateAssignmentRequest instance
+ */
+ public static create(properties?: google.cloud.bigquery.reservation.v1.IUpdateAssignmentRequest): google.cloud.bigquery.reservation.v1.UpdateAssignmentRequest;
+
+ /**
+ * Encodes the specified UpdateAssignmentRequest message. Does not implicitly {@link google.cloud.bigquery.reservation.v1.UpdateAssignmentRequest.verify|verify} messages.
+ * @param message UpdateAssignmentRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.reservation.v1.IUpdateAssignmentRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified UpdateAssignmentRequest message, length delimited. Does not implicitly {@link google.cloud.bigquery.reservation.v1.UpdateAssignmentRequest.verify|verify} messages.
+ * @param message UpdateAssignmentRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.reservation.v1.IUpdateAssignmentRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an UpdateAssignmentRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns UpdateAssignmentRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.bigquery.reservation.v1.UpdateAssignmentRequest;
+
+ /**
+ * Decodes an UpdateAssignmentRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns UpdateAssignmentRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.bigquery.reservation.v1.UpdateAssignmentRequest;
+
+ /**
+ * Verifies an UpdateAssignmentRequest message.
+ * @param message Plain 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 UpdateAssignmentRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns UpdateAssignmentRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.reservation.v1.UpdateAssignmentRequest;
+
+ /**
+ * Creates a plain object from an UpdateAssignmentRequest message. Also converts values to other types if specified.
+ * @param message UpdateAssignmentRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.reservation.v1.UpdateAssignmentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this UpdateAssignmentRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for UpdateAssignmentRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a TableReference. */
+ interface ITableReference {
+
+ /** TableReference projectId */
+ projectId?: (string|null);
+
+ /** TableReference datasetId */
+ datasetId?: (string|null);
+
+ /** TableReference tableId */
+ tableId?: (string|null);
+ }
+
+ /** Represents a TableReference. */
+ class TableReference implements ITableReference {
+
+ /**
+ * Constructs a new TableReference.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.reservation.v1.ITableReference);
+
+ /** TableReference projectId. */
+ public projectId: string;
+
+ /** TableReference datasetId. */
+ public datasetId: string;
+
+ /** TableReference tableId. */
+ public tableId: string;
+
+ /**
+ * Creates a new TableReference instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns TableReference instance
+ */
+ public static create(properties?: google.cloud.bigquery.reservation.v1.ITableReference): google.cloud.bigquery.reservation.v1.TableReference;
+
+ /**
+ * Encodes the specified TableReference message. Does not implicitly {@link google.cloud.bigquery.reservation.v1.TableReference.verify|verify} messages.
+ * @param message TableReference message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.reservation.v1.ITableReference, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified TableReference message, length delimited. Does not implicitly {@link google.cloud.bigquery.reservation.v1.TableReference.verify|verify} messages.
+ * @param message TableReference message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.reservation.v1.ITableReference, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a TableReference message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns TableReference
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.bigquery.reservation.v1.TableReference;
+
+ /**
+ * Decodes a TableReference message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns TableReference
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.bigquery.reservation.v1.TableReference;
+
+ /**
+ * Verifies a TableReference message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a TableReference message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns TableReference
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.reservation.v1.TableReference;
+
+ /**
+ * Creates a plain object from a TableReference message. Also converts values to other types if specified.
+ * @param message TableReference
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.reservation.v1.TableReference, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this TableReference to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for TableReference
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a BiReservation. */
+ interface IBiReservation {
+
+ /** BiReservation name */
+ name?: (string|null);
+
+ /** BiReservation updateTime */
+ updateTime?: (google.protobuf.ITimestamp|null);
+
+ /** BiReservation size */
+ size?: (number|Long|string|null);
+
+ /** BiReservation preferredTables */
+ preferredTables?: (google.cloud.bigquery.reservation.v1.ITableReference[]|null);
+ }
+
+ /** Represents a BiReservation. */
+ class BiReservation implements IBiReservation {
+
+ /**
+ * Constructs a new BiReservation.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.reservation.v1.IBiReservation);
+
+ /** BiReservation name. */
+ public name: string;
+
+ /** BiReservation updateTime. */
+ public updateTime?: (google.protobuf.ITimestamp|null);
+
+ /** BiReservation size. */
+ public size: (number|Long|string);
+
+ /** BiReservation preferredTables. */
+ public preferredTables: google.cloud.bigquery.reservation.v1.ITableReference[];
+
+ /**
+ * Creates a new BiReservation instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns BiReservation instance
+ */
+ public static create(properties?: google.cloud.bigquery.reservation.v1.IBiReservation): google.cloud.bigquery.reservation.v1.BiReservation;
+
+ /**
+ * Encodes the specified BiReservation message. Does not implicitly {@link google.cloud.bigquery.reservation.v1.BiReservation.verify|verify} messages.
+ * @param message BiReservation message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.reservation.v1.IBiReservation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified BiReservation message, length delimited. Does not implicitly {@link google.cloud.bigquery.reservation.v1.BiReservation.verify|verify} messages.
+ * @param message BiReservation message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.reservation.v1.IBiReservation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a BiReservation message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns BiReservation
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.bigquery.reservation.v1.BiReservation;
+
+ /**
+ * Decodes a BiReservation message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns BiReservation
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.bigquery.reservation.v1.BiReservation;
+
+ /**
+ * Verifies a BiReservation message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a BiReservation message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns BiReservation
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.reservation.v1.BiReservation;
+
+ /**
+ * Creates a plain object from a BiReservation message. Also converts values to other types if specified.
+ * @param message BiReservation
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.reservation.v1.BiReservation, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this BiReservation to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for BiReservation
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GetBiReservationRequest. */
+ interface IGetBiReservationRequest {
+
+ /** GetBiReservationRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a GetBiReservationRequest. */
+ class GetBiReservationRequest implements IGetBiReservationRequest {
+
+ /**
+ * Constructs a new GetBiReservationRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.reservation.v1.IGetBiReservationRequest);
+
+ /** GetBiReservationRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new GetBiReservationRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetBiReservationRequest instance
+ */
+ public static create(properties?: google.cloud.bigquery.reservation.v1.IGetBiReservationRequest): google.cloud.bigquery.reservation.v1.GetBiReservationRequest;
+
+ /**
+ * Encodes the specified GetBiReservationRequest message. Does not implicitly {@link google.cloud.bigquery.reservation.v1.GetBiReservationRequest.verify|verify} messages.
+ * @param message GetBiReservationRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.reservation.v1.IGetBiReservationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetBiReservationRequest message, length delimited. Does not implicitly {@link google.cloud.bigquery.reservation.v1.GetBiReservationRequest.verify|verify} messages.
+ * @param message GetBiReservationRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.reservation.v1.IGetBiReservationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetBiReservationRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetBiReservationRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.bigquery.reservation.v1.GetBiReservationRequest;
+
+ /**
+ * Decodes a GetBiReservationRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetBiReservationRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.bigquery.reservation.v1.GetBiReservationRequest;
+
+ /**
+ * Verifies a GetBiReservationRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GetBiReservationRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetBiReservationRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.reservation.v1.GetBiReservationRequest;
+
+ /**
+ * Creates a plain object from a GetBiReservationRequest message. Also converts values to other types if specified.
+ * @param message GetBiReservationRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.reservation.v1.GetBiReservationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetBiReservationRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetBiReservationRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an UpdateBiReservationRequest. */
+ interface IUpdateBiReservationRequest {
+
+ /** UpdateBiReservationRequest biReservation */
+ biReservation?: (google.cloud.bigquery.reservation.v1.IBiReservation|null);
+
+ /** UpdateBiReservationRequest updateMask */
+ updateMask?: (google.protobuf.IFieldMask|null);
+ }
+
+ /** Represents an UpdateBiReservationRequest. */
+ class UpdateBiReservationRequest implements IUpdateBiReservationRequest {
+
+ /**
+ * Constructs a new UpdateBiReservationRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.reservation.v1.IUpdateBiReservationRequest);
+
+ /** UpdateBiReservationRequest biReservation. */
+ public biReservation?: (google.cloud.bigquery.reservation.v1.IBiReservation|null);
+
+ /** UpdateBiReservationRequest updateMask. */
+ public updateMask?: (google.protobuf.IFieldMask|null);
+
+ /**
+ * Creates a new UpdateBiReservationRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns UpdateBiReservationRequest instance
+ */
+ public static create(properties?: google.cloud.bigquery.reservation.v1.IUpdateBiReservationRequest): google.cloud.bigquery.reservation.v1.UpdateBiReservationRequest;
+
+ /**
+ * Encodes the specified UpdateBiReservationRequest message. Does not implicitly {@link google.cloud.bigquery.reservation.v1.UpdateBiReservationRequest.verify|verify} messages.
+ * @param message UpdateBiReservationRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.reservation.v1.IUpdateBiReservationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified UpdateBiReservationRequest message, length delimited. Does not implicitly {@link google.cloud.bigquery.reservation.v1.UpdateBiReservationRequest.verify|verify} messages.
+ * @param message UpdateBiReservationRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.reservation.v1.IUpdateBiReservationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an UpdateBiReservationRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns UpdateBiReservationRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.bigquery.reservation.v1.UpdateBiReservationRequest;
+
+ /**
+ * Decodes an UpdateBiReservationRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns UpdateBiReservationRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.bigquery.reservation.v1.UpdateBiReservationRequest;
+
+ /**
+ * Verifies an UpdateBiReservationRequest message.
+ * @param message Plain 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 UpdateBiReservationRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns UpdateBiReservationRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.reservation.v1.UpdateBiReservationRequest;
+
+ /**
+ * Creates a plain object from an UpdateBiReservationRequest message. Also converts values to other types if specified.
+ * @param message UpdateBiReservationRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.reservation.v1.UpdateBiReservationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this UpdateBiReservationRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for UpdateBiReservationRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+ }
+ }
+ }
+
+ /** Namespace api. */
+ namespace api {
+
+ /** Properties of a Http. */
+ interface IHttp {
+
+ /** Http rules */
+ rules?: (google.api.IHttpRule[]|null);
+
+ /** Http fullyDecodeReservedExpansion */
+ fullyDecodeReservedExpansion?: (boolean|null);
+ }
+
+ /** Represents a Http. */
+ class Http implements IHttp {
+
+ /**
+ * Constructs a new Http.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IHttp);
+
+ /** Http rules. */
+ public rules: google.api.IHttpRule[];
+
+ /** Http fullyDecodeReservedExpansion. */
+ public fullyDecodeReservedExpansion: boolean;
+
+ /**
+ * Creates a new Http instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Http instance
+ */
+ public static create(properties?: google.api.IHttp): google.api.Http;
+
+ /**
+ * Encodes the specified Http message. Does not implicitly {@link google.api.Http.verify|verify} messages.
+ * @param message Http message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IHttp, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Http message, length delimited. Does not implicitly {@link google.api.Http.verify|verify} messages.
+ * @param message Http message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IHttp, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Http message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Http
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.Http;
+
+ /**
+ * Decodes a Http message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Http
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.Http;
+
+ /**
+ * Verifies a Http message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Http message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Http
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.Http;
+
+ /**
+ * Creates a plain object from a Http message. Also converts values to other types if specified.
+ * @param message Http
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.Http, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Http to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Http
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a HttpRule. */
+ interface IHttpRule {
+
+ /** HttpRule selector */
+ selector?: (string|null);
+
+ /** HttpRule get */
+ get?: (string|null);
+
+ /** HttpRule put */
+ put?: (string|null);
+
+ /** HttpRule post */
+ post?: (string|null);
+
+ /** HttpRule delete */
+ "delete"?: (string|null);
+
+ /** HttpRule patch */
+ patch?: (string|null);
+
+ /** HttpRule custom */
+ custom?: (google.api.ICustomHttpPattern|null);
+
+ /** HttpRule body */
+ body?: (string|null);
+
+ /** HttpRule responseBody */
+ responseBody?: (string|null);
+
+ /** HttpRule additionalBindings */
+ additionalBindings?: (google.api.IHttpRule[]|null);
+ }
+
+ /** Represents a HttpRule. */
+ class HttpRule implements IHttpRule {
+
+ /**
+ * Constructs a new HttpRule.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IHttpRule);
+
+ /** HttpRule selector. */
+ public selector: string;
+
+ /** HttpRule get. */
+ public get?: (string|null);
+
+ /** HttpRule put. */
+ public put?: (string|null);
+
+ /** HttpRule post. */
+ public post?: (string|null);
+
+ /** HttpRule delete. */
+ public delete?: (string|null);
+
+ /** HttpRule patch. */
+ public patch?: (string|null);
+
+ /** HttpRule custom. */
+ public custom?: (google.api.ICustomHttpPattern|null);
+
+ /** HttpRule body. */
+ public body: string;
+
+ /** HttpRule responseBody. */
+ public responseBody: string;
+
+ /** HttpRule additionalBindings. */
+ public additionalBindings: google.api.IHttpRule[];
+
+ /** HttpRule pattern. */
+ public pattern?: ("get"|"put"|"post"|"delete"|"patch"|"custom");
+
+ /**
+ * Creates a new HttpRule instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns HttpRule instance
+ */
+ public static create(properties?: google.api.IHttpRule): google.api.HttpRule;
+
+ /**
+ * Encodes the specified HttpRule message. Does not implicitly {@link google.api.HttpRule.verify|verify} messages.
+ * @param message HttpRule message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IHttpRule, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified HttpRule message, length delimited. Does not implicitly {@link google.api.HttpRule.verify|verify} messages.
+ * @param message HttpRule message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IHttpRule, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a HttpRule message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns HttpRule
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.HttpRule;
+
+ /**
+ * Decodes a HttpRule message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns HttpRule
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.HttpRule;
+
+ /**
+ * Verifies a HttpRule message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a HttpRule message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns HttpRule
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.HttpRule;
+
+ /**
+ * Creates a plain object from a HttpRule message. Also converts values to other types if specified.
+ * @param message HttpRule
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.HttpRule, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this HttpRule to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for HttpRule
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CustomHttpPattern. */
+ interface ICustomHttpPattern {
+
+ /** CustomHttpPattern kind */
+ kind?: (string|null);
+
+ /** CustomHttpPattern path */
+ path?: (string|null);
+ }
+
+ /** Represents a CustomHttpPattern. */
+ class CustomHttpPattern implements ICustomHttpPattern {
+
+ /**
+ * Constructs a new CustomHttpPattern.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.ICustomHttpPattern);
+
+ /** CustomHttpPattern kind. */
+ public kind: string;
+
+ /** CustomHttpPattern path. */
+ public path: string;
+
+ /**
+ * Creates a new CustomHttpPattern instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CustomHttpPattern instance
+ */
+ public static create(properties?: google.api.ICustomHttpPattern): google.api.CustomHttpPattern;
+
+ /**
+ * Encodes the specified CustomHttpPattern message. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages.
+ * @param message CustomHttpPattern message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.ICustomHttpPattern, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CustomHttpPattern message, length delimited. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages.
+ * @param message CustomHttpPattern message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.ICustomHttpPattern, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CustomHttpPattern message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CustomHttpPattern
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.CustomHttpPattern;
+
+ /**
+ * Decodes a CustomHttpPattern message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CustomHttpPattern
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.CustomHttpPattern;
+
+ /**
+ * Verifies a CustomHttpPattern message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a CustomHttpPattern message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CustomHttpPattern
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.CustomHttpPattern;
+
+ /**
+ * Creates a plain object from a CustomHttpPattern message. Also converts values to other types if specified.
+ * @param message CustomHttpPattern
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.CustomHttpPattern, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CustomHttpPattern to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CustomHttpPattern
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** 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);
+ }
+
+ /** 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 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;
+ }
+
+ /** 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;
+ }
+ }
+
+ /** Namespace rpc. */
+ namespace rpc {
+
+ /** Properties of a Status. */
+ interface IStatus {
+
+ /** Status code */
+ code?: (number|null);
+
+ /** Status message */
+ message?: (string|null);
+
+ /** Status details */
+ details?: (google.protobuf.IAny[]|null);
+ }
+
+ /** Represents a Status. */
+ class Status implements IStatus {
+
+ /**
+ * Constructs a new Status.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.rpc.IStatus);
+
+ /** Status code. */
+ public code: number;
+
+ /** Status message. */
+ public message: string;
+
+ /** Status details. */
+ public details: google.protobuf.IAny[];
+
+ /**
+ * Creates a new Status instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Status instance
+ */
+ public static create(properties?: google.rpc.IStatus): google.rpc.Status;
+
+ /**
+ * Encodes the specified Status message. Does not implicitly {@link google.rpc.Status.verify|verify} messages.
+ * @param message Status message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.rpc.IStatus, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Status message, length delimited. Does not implicitly {@link google.rpc.Status.verify|verify} messages.
+ * @param message Status message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.rpc.IStatus, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Status message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Status
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.rpc.Status;
+
+ /**
+ * Decodes a Status message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Status
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.rpc.Status;
+
+ /**
+ * Verifies a Status message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Status message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Status
+ */
+ public static fromObject(object: { [k: string]: any }): google.rpc.Status;
+
+ /**
+ * Creates a plain object from a Status message. Also converts values to other types if specified.
+ * @param message Status
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.rpc.Status, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Status to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Status
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+}
diff --git a/packages/google-cloud-bigquery-reservation/protos/protos.js b/packages/google-cloud-bigquery-reservation/protos/protos.js
new file mode 100644
index 00000000000..8f49b952d83
--- /dev/null
+++ b/packages/google-cloud-bigquery-reservation/protos/protos.js
@@ -0,0 +1,21278 @@
+// 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_bigquery_reservation_protos || ($protobuf.roots._google_cloud_bigquery_reservation_protos = {});
+
+ $root.google = (function() {
+
+ /**
+ * Namespace google.
+ * @exports google
+ * @namespace
+ */
+ var google = {};
+
+ google.cloud = (function() {
+
+ /**
+ * Namespace cloud.
+ * @memberof google
+ * @namespace
+ */
+ var cloud = {};
+
+ cloud.bigquery = (function() {
+
+ /**
+ * Namespace bigquery.
+ * @memberof google.cloud
+ * @namespace
+ */
+ var bigquery = {};
+
+ bigquery.reservation = (function() {
+
+ /**
+ * Namespace reservation.
+ * @memberof google.cloud.bigquery
+ * @namespace
+ */
+ var reservation = {};
+
+ reservation.v1 = (function() {
+
+ /**
+ * Namespace v1.
+ * @memberof google.cloud.bigquery.reservation
+ * @namespace
+ */
+ var v1 = {};
+
+ v1.ReservationService = (function() {
+
+ /**
+ * Constructs a new ReservationService service.
+ * @memberof google.cloud.bigquery.reservation.v1
+ * @classdesc Represents a ReservationService
+ * @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 ReservationService(rpcImpl, requestDelimited, responseDelimited) {
+ $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited);
+ }
+
+ (ReservationService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = ReservationService;
+
+ /**
+ * Creates new ReservationService service using the specified rpc implementation.
+ * @function create
+ * @memberof google.cloud.bigquery.reservation.v1.ReservationService
+ * @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 {ReservationService} RPC service. Useful where requests and/or responses are streamed.
+ */
+ ReservationService.create = function create(rpcImpl, requestDelimited, responseDelimited) {
+ return new this(rpcImpl, requestDelimited, responseDelimited);
+ };
+
+ /**
+ * Callback as used by {@link google.cloud.bigquery.reservation.v1.ReservationService|createReservation}.
+ * @memberof google.cloud.bigquery.reservation.v1.ReservationService
+ * @typedef CreateReservationCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.bigquery.reservation.v1.Reservation} [response] Reservation
+ */
+
+ /**
+ * Calls CreateReservation.
+ * @function createReservation
+ * @memberof google.cloud.bigquery.reservation.v1.ReservationService
+ * @instance
+ * @param {google.cloud.bigquery.reservation.v1.ICreateReservationRequest} request CreateReservationRequest message or plain object
+ * @param {google.cloud.bigquery.reservation.v1.ReservationService.CreateReservationCallback} callback Node-style callback called with the error, if any, and Reservation
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(ReservationService.prototype.createReservation = function createReservation(request, callback) {
+ return this.rpcCall(createReservation, $root.google.cloud.bigquery.reservation.v1.CreateReservationRequest, $root.google.cloud.bigquery.reservation.v1.Reservation, request, callback);
+ }, "name", { value: "CreateReservation" });
+
+ /**
+ * Calls CreateReservation.
+ * @function createReservation
+ * @memberof google.cloud.bigquery.reservation.v1.ReservationService
+ * @instance
+ * @param {google.cloud.bigquery.reservation.v1.ICreateReservationRequest} request CreateReservationRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.bigquery.reservation.v1.ReservationService|listReservations}.
+ * @memberof google.cloud.bigquery.reservation.v1.ReservationService
+ * @typedef ListReservationsCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.bigquery.reservation.v1.ListReservationsResponse} [response] ListReservationsResponse
+ */
+
+ /**
+ * Calls ListReservations.
+ * @function listReservations
+ * @memberof google.cloud.bigquery.reservation.v1.ReservationService
+ * @instance
+ * @param {google.cloud.bigquery.reservation.v1.IListReservationsRequest} request ListReservationsRequest message or plain object
+ * @param {google.cloud.bigquery.reservation.v1.ReservationService.ListReservationsCallback} callback Node-style callback called with the error, if any, and ListReservationsResponse
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(ReservationService.prototype.listReservations = function listReservations(request, callback) {
+ return this.rpcCall(listReservations, $root.google.cloud.bigquery.reservation.v1.ListReservationsRequest, $root.google.cloud.bigquery.reservation.v1.ListReservationsResponse, request, callback);
+ }, "name", { value: "ListReservations" });
+
+ /**
+ * Calls ListReservations.
+ * @function listReservations
+ * @memberof google.cloud.bigquery.reservation.v1.ReservationService
+ * @instance
+ * @param {google.cloud.bigquery.reservation.v1.IListReservationsRequest} request ListReservationsRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.bigquery.reservation.v1.ReservationService|getReservation}.
+ * @memberof google.cloud.bigquery.reservation.v1.ReservationService
+ * @typedef GetReservationCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.bigquery.reservation.v1.Reservation} [response] Reservation
+ */
+
+ /**
+ * Calls GetReservation.
+ * @function getReservation
+ * @memberof google.cloud.bigquery.reservation.v1.ReservationService
+ * @instance
+ * @param {google.cloud.bigquery.reservation.v1.IGetReservationRequest} request GetReservationRequest message or plain object
+ * @param {google.cloud.bigquery.reservation.v1.ReservationService.GetReservationCallback} callback Node-style callback called with the error, if any, and Reservation
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(ReservationService.prototype.getReservation = function getReservation(request, callback) {
+ return this.rpcCall(getReservation, $root.google.cloud.bigquery.reservation.v1.GetReservationRequest, $root.google.cloud.bigquery.reservation.v1.Reservation, request, callback);
+ }, "name", { value: "GetReservation" });
+
+ /**
+ * Calls GetReservation.
+ * @function getReservation
+ * @memberof google.cloud.bigquery.reservation.v1.ReservationService
+ * @instance
+ * @param {google.cloud.bigquery.reservation.v1.IGetReservationRequest} request GetReservationRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.bigquery.reservation.v1.ReservationService|deleteReservation}.
+ * @memberof google.cloud.bigquery.reservation.v1.ReservationService
+ * @typedef DeleteReservationCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.protobuf.Empty} [response] Empty
+ */
+
+ /**
+ * Calls DeleteReservation.
+ * @function deleteReservation
+ * @memberof google.cloud.bigquery.reservation.v1.ReservationService
+ * @instance
+ * @param {google.cloud.bigquery.reservation.v1.IDeleteReservationRequest} request DeleteReservationRequest message or plain object
+ * @param {google.cloud.bigquery.reservation.v1.ReservationService.DeleteReservationCallback} callback Node-style callback called with the error, if any, and Empty
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(ReservationService.prototype.deleteReservation = function deleteReservation(request, callback) {
+ return this.rpcCall(deleteReservation, $root.google.cloud.bigquery.reservation.v1.DeleteReservationRequest, $root.google.protobuf.Empty, request, callback);
+ }, "name", { value: "DeleteReservation" });
+
+ /**
+ * Calls DeleteReservation.
+ * @function deleteReservation
+ * @memberof google.cloud.bigquery.reservation.v1.ReservationService
+ * @instance
+ * @param {google.cloud.bigquery.reservation.v1.IDeleteReservationRequest} request DeleteReservationRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.bigquery.reservation.v1.ReservationService|updateReservation}.
+ * @memberof google.cloud.bigquery.reservation.v1.ReservationService
+ * @typedef UpdateReservationCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.bigquery.reservation.v1.Reservation} [response] Reservation
+ */
+
+ /**
+ * Calls UpdateReservation.
+ * @function updateReservation
+ * @memberof google.cloud.bigquery.reservation.v1.ReservationService
+ * @instance
+ * @param {google.cloud.bigquery.reservation.v1.IUpdateReservationRequest} request UpdateReservationRequest message or plain object
+ * @param {google.cloud.bigquery.reservation.v1.ReservationService.UpdateReservationCallback} callback Node-style callback called with the error, if any, and Reservation
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(ReservationService.prototype.updateReservation = function updateReservation(request, callback) {
+ return this.rpcCall(updateReservation, $root.google.cloud.bigquery.reservation.v1.UpdateReservationRequest, $root.google.cloud.bigquery.reservation.v1.Reservation, request, callback);
+ }, "name", { value: "UpdateReservation" });
+
+ /**
+ * Calls UpdateReservation.
+ * @function updateReservation
+ * @memberof google.cloud.bigquery.reservation.v1.ReservationService
+ * @instance
+ * @param {google.cloud.bigquery.reservation.v1.IUpdateReservationRequest} request UpdateReservationRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.bigquery.reservation.v1.ReservationService|createCapacityCommitment}.
+ * @memberof google.cloud.bigquery.reservation.v1.ReservationService
+ * @typedef CreateCapacityCommitmentCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.bigquery.reservation.v1.CapacityCommitment} [response] CapacityCommitment
+ */
+
+ /**
+ * Calls CreateCapacityCommitment.
+ * @function createCapacityCommitment
+ * @memberof google.cloud.bigquery.reservation.v1.ReservationService
+ * @instance
+ * @param {google.cloud.bigquery.reservation.v1.ICreateCapacityCommitmentRequest} request CreateCapacityCommitmentRequest message or plain object
+ * @param {google.cloud.bigquery.reservation.v1.ReservationService.CreateCapacityCommitmentCallback} callback Node-style callback called with the error, if any, and CapacityCommitment
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(ReservationService.prototype.createCapacityCommitment = function createCapacityCommitment(request, callback) {
+ return this.rpcCall(createCapacityCommitment, $root.google.cloud.bigquery.reservation.v1.CreateCapacityCommitmentRequest, $root.google.cloud.bigquery.reservation.v1.CapacityCommitment, request, callback);
+ }, "name", { value: "CreateCapacityCommitment" });
+
+ /**
+ * Calls CreateCapacityCommitment.
+ * @function createCapacityCommitment
+ * @memberof google.cloud.bigquery.reservation.v1.ReservationService
+ * @instance
+ * @param {google.cloud.bigquery.reservation.v1.ICreateCapacityCommitmentRequest} request CreateCapacityCommitmentRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.bigquery.reservation.v1.ReservationService|listCapacityCommitments}.
+ * @memberof google.cloud.bigquery.reservation.v1.ReservationService
+ * @typedef ListCapacityCommitmentsCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.bigquery.reservation.v1.ListCapacityCommitmentsResponse} [response] ListCapacityCommitmentsResponse
+ */
+
+ /**
+ * Calls ListCapacityCommitments.
+ * @function listCapacityCommitments
+ * @memberof google.cloud.bigquery.reservation.v1.ReservationService
+ * @instance
+ * @param {google.cloud.bigquery.reservation.v1.IListCapacityCommitmentsRequest} request ListCapacityCommitmentsRequest message or plain object
+ * @param {google.cloud.bigquery.reservation.v1.ReservationService.ListCapacityCommitmentsCallback} callback Node-style callback called with the error, if any, and ListCapacityCommitmentsResponse
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(ReservationService.prototype.listCapacityCommitments = function listCapacityCommitments(request, callback) {
+ return this.rpcCall(listCapacityCommitments, $root.google.cloud.bigquery.reservation.v1.ListCapacityCommitmentsRequest, $root.google.cloud.bigquery.reservation.v1.ListCapacityCommitmentsResponse, request, callback);
+ }, "name", { value: "ListCapacityCommitments" });
+
+ /**
+ * Calls ListCapacityCommitments.
+ * @function listCapacityCommitments
+ * @memberof google.cloud.bigquery.reservation.v1.ReservationService
+ * @instance
+ * @param {google.cloud.bigquery.reservation.v1.IListCapacityCommitmentsRequest} request ListCapacityCommitmentsRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.bigquery.reservation.v1.ReservationService|getCapacityCommitment}.
+ * @memberof google.cloud.bigquery.reservation.v1.ReservationService
+ * @typedef GetCapacityCommitmentCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.bigquery.reservation.v1.CapacityCommitment} [response] CapacityCommitment
+ */
+
+ /**
+ * Calls GetCapacityCommitment.
+ * @function getCapacityCommitment
+ * @memberof google.cloud.bigquery.reservation.v1.ReservationService
+ * @instance
+ * @param {google.cloud.bigquery.reservation.v1.IGetCapacityCommitmentRequest} request GetCapacityCommitmentRequest message or plain object
+ * @param {google.cloud.bigquery.reservation.v1.ReservationService.GetCapacityCommitmentCallback} callback Node-style callback called with the error, if any, and CapacityCommitment
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(ReservationService.prototype.getCapacityCommitment = function getCapacityCommitment(request, callback) {
+ return this.rpcCall(getCapacityCommitment, $root.google.cloud.bigquery.reservation.v1.GetCapacityCommitmentRequest, $root.google.cloud.bigquery.reservation.v1.CapacityCommitment, request, callback);
+ }, "name", { value: "GetCapacityCommitment" });
+
+ /**
+ * Calls GetCapacityCommitment.
+ * @function getCapacityCommitment
+ * @memberof google.cloud.bigquery.reservation.v1.ReservationService
+ * @instance
+ * @param {google.cloud.bigquery.reservation.v1.IGetCapacityCommitmentRequest} request GetCapacityCommitmentRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.bigquery.reservation.v1.ReservationService|deleteCapacityCommitment}.
+ * @memberof google.cloud.bigquery.reservation.v1.ReservationService
+ * @typedef DeleteCapacityCommitmentCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.protobuf.Empty} [response] Empty
+ */
+
+ /**
+ * Calls DeleteCapacityCommitment.
+ * @function deleteCapacityCommitment
+ * @memberof google.cloud.bigquery.reservation.v1.ReservationService
+ * @instance
+ * @param {google.cloud.bigquery.reservation.v1.IDeleteCapacityCommitmentRequest} request DeleteCapacityCommitmentRequest message or plain object
+ * @param {google.cloud.bigquery.reservation.v1.ReservationService.DeleteCapacityCommitmentCallback} callback Node-style callback called with the error, if any, and Empty
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(ReservationService.prototype.deleteCapacityCommitment = function deleteCapacityCommitment(request, callback) {
+ return this.rpcCall(deleteCapacityCommitment, $root.google.cloud.bigquery.reservation.v1.DeleteCapacityCommitmentRequest, $root.google.protobuf.Empty, request, callback);
+ }, "name", { value: "DeleteCapacityCommitment" });
+
+ /**
+ * Calls DeleteCapacityCommitment.
+ * @function deleteCapacityCommitment
+ * @memberof google.cloud.bigquery.reservation.v1.ReservationService
+ * @instance
+ * @param {google.cloud.bigquery.reservation.v1.IDeleteCapacityCommitmentRequest} request DeleteCapacityCommitmentRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.bigquery.reservation.v1.ReservationService|updateCapacityCommitment}.
+ * @memberof google.cloud.bigquery.reservation.v1.ReservationService
+ * @typedef UpdateCapacityCommitmentCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.bigquery.reservation.v1.CapacityCommitment} [response] CapacityCommitment
+ */
+
+ /**
+ * Calls UpdateCapacityCommitment.
+ * @function updateCapacityCommitment
+ * @memberof google.cloud.bigquery.reservation.v1.ReservationService
+ * @instance
+ * @param {google.cloud.bigquery.reservation.v1.IUpdateCapacityCommitmentRequest} request UpdateCapacityCommitmentRequest message or plain object
+ * @param {google.cloud.bigquery.reservation.v1.ReservationService.UpdateCapacityCommitmentCallback} callback Node-style callback called with the error, if any, and CapacityCommitment
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(ReservationService.prototype.updateCapacityCommitment = function updateCapacityCommitment(request, callback) {
+ return this.rpcCall(updateCapacityCommitment, $root.google.cloud.bigquery.reservation.v1.UpdateCapacityCommitmentRequest, $root.google.cloud.bigquery.reservation.v1.CapacityCommitment, request, callback);
+ }, "name", { value: "UpdateCapacityCommitment" });
+
+ /**
+ * Calls UpdateCapacityCommitment.
+ * @function updateCapacityCommitment
+ * @memberof google.cloud.bigquery.reservation.v1.ReservationService
+ * @instance
+ * @param {google.cloud.bigquery.reservation.v1.IUpdateCapacityCommitmentRequest} request UpdateCapacityCommitmentRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.bigquery.reservation.v1.ReservationService|splitCapacityCommitment}.
+ * @memberof google.cloud.bigquery.reservation.v1.ReservationService
+ * @typedef SplitCapacityCommitmentCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.bigquery.reservation.v1.SplitCapacityCommitmentResponse} [response] SplitCapacityCommitmentResponse
+ */
+
+ /**
+ * Calls SplitCapacityCommitment.
+ * @function splitCapacityCommitment
+ * @memberof google.cloud.bigquery.reservation.v1.ReservationService
+ * @instance
+ * @param {google.cloud.bigquery.reservation.v1.ISplitCapacityCommitmentRequest} request SplitCapacityCommitmentRequest message or plain object
+ * @param {google.cloud.bigquery.reservation.v1.ReservationService.SplitCapacityCommitmentCallback} callback Node-style callback called with the error, if any, and SplitCapacityCommitmentResponse
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(ReservationService.prototype.splitCapacityCommitment = function splitCapacityCommitment(request, callback) {
+ return this.rpcCall(splitCapacityCommitment, $root.google.cloud.bigquery.reservation.v1.SplitCapacityCommitmentRequest, $root.google.cloud.bigquery.reservation.v1.SplitCapacityCommitmentResponse, request, callback);
+ }, "name", { value: "SplitCapacityCommitment" });
+
+ /**
+ * Calls SplitCapacityCommitment.
+ * @function splitCapacityCommitment
+ * @memberof google.cloud.bigquery.reservation.v1.ReservationService
+ * @instance
+ * @param {google.cloud.bigquery.reservation.v1.ISplitCapacityCommitmentRequest} request SplitCapacityCommitmentRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.bigquery.reservation.v1.ReservationService|mergeCapacityCommitments}.
+ * @memberof google.cloud.bigquery.reservation.v1.ReservationService
+ * @typedef MergeCapacityCommitmentsCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.bigquery.reservation.v1.CapacityCommitment} [response] CapacityCommitment
+ */
+
+ /**
+ * Calls MergeCapacityCommitments.
+ * @function mergeCapacityCommitments
+ * @memberof google.cloud.bigquery.reservation.v1.ReservationService
+ * @instance
+ * @param {google.cloud.bigquery.reservation.v1.IMergeCapacityCommitmentsRequest} request MergeCapacityCommitmentsRequest message or plain object
+ * @param {google.cloud.bigquery.reservation.v1.ReservationService.MergeCapacityCommitmentsCallback} callback Node-style callback called with the error, if any, and CapacityCommitment
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(ReservationService.prototype.mergeCapacityCommitments = function mergeCapacityCommitments(request, callback) {
+ return this.rpcCall(mergeCapacityCommitments, $root.google.cloud.bigquery.reservation.v1.MergeCapacityCommitmentsRequest, $root.google.cloud.bigquery.reservation.v1.CapacityCommitment, request, callback);
+ }, "name", { value: "MergeCapacityCommitments" });
+
+ /**
+ * Calls MergeCapacityCommitments.
+ * @function mergeCapacityCommitments
+ * @memberof google.cloud.bigquery.reservation.v1.ReservationService
+ * @instance
+ * @param {google.cloud.bigquery.reservation.v1.IMergeCapacityCommitmentsRequest} request MergeCapacityCommitmentsRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.bigquery.reservation.v1.ReservationService|createAssignment}.
+ * @memberof google.cloud.bigquery.reservation.v1.ReservationService
+ * @typedef CreateAssignmentCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.bigquery.reservation.v1.Assignment} [response] Assignment
+ */
+
+ /**
+ * Calls CreateAssignment.
+ * @function createAssignment
+ * @memberof google.cloud.bigquery.reservation.v1.ReservationService
+ * @instance
+ * @param {google.cloud.bigquery.reservation.v1.ICreateAssignmentRequest} request CreateAssignmentRequest message or plain object
+ * @param {google.cloud.bigquery.reservation.v1.ReservationService.CreateAssignmentCallback} callback Node-style callback called with the error, if any, and Assignment
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(ReservationService.prototype.createAssignment = function createAssignment(request, callback) {
+ return this.rpcCall(createAssignment, $root.google.cloud.bigquery.reservation.v1.CreateAssignmentRequest, $root.google.cloud.bigquery.reservation.v1.Assignment, request, callback);
+ }, "name", { value: "CreateAssignment" });
+
+ /**
+ * Calls CreateAssignment.
+ * @function createAssignment
+ * @memberof google.cloud.bigquery.reservation.v1.ReservationService
+ * @instance
+ * @param {google.cloud.bigquery.reservation.v1.ICreateAssignmentRequest} request CreateAssignmentRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.bigquery.reservation.v1.ReservationService|listAssignments}.
+ * @memberof google.cloud.bigquery.reservation.v1.ReservationService
+ * @typedef ListAssignmentsCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.bigquery.reservation.v1.ListAssignmentsResponse} [response] ListAssignmentsResponse
+ */
+
+ /**
+ * Calls ListAssignments.
+ * @function listAssignments
+ * @memberof google.cloud.bigquery.reservation.v1.ReservationService
+ * @instance
+ * @param {google.cloud.bigquery.reservation.v1.IListAssignmentsRequest} request ListAssignmentsRequest message or plain object
+ * @param {google.cloud.bigquery.reservation.v1.ReservationService.ListAssignmentsCallback} callback Node-style callback called with the error, if any, and ListAssignmentsResponse
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(ReservationService.prototype.listAssignments = function listAssignments(request, callback) {
+ return this.rpcCall(listAssignments, $root.google.cloud.bigquery.reservation.v1.ListAssignmentsRequest, $root.google.cloud.bigquery.reservation.v1.ListAssignmentsResponse, request, callback);
+ }, "name", { value: "ListAssignments" });
+
+ /**
+ * Calls ListAssignments.
+ * @function listAssignments
+ * @memberof google.cloud.bigquery.reservation.v1.ReservationService
+ * @instance
+ * @param {google.cloud.bigquery.reservation.v1.IListAssignmentsRequest} request ListAssignmentsRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.bigquery.reservation.v1.ReservationService|deleteAssignment}.
+ * @memberof google.cloud.bigquery.reservation.v1.ReservationService
+ * @typedef DeleteAssignmentCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.protobuf.Empty} [response] Empty
+ */
+
+ /**
+ * Calls DeleteAssignment.
+ * @function deleteAssignment
+ * @memberof google.cloud.bigquery.reservation.v1.ReservationService
+ * @instance
+ * @param {google.cloud.bigquery.reservation.v1.IDeleteAssignmentRequest} request DeleteAssignmentRequest message or plain object
+ * @param {google.cloud.bigquery.reservation.v1.ReservationService.DeleteAssignmentCallback} callback Node-style callback called with the error, if any, and Empty
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(ReservationService.prototype.deleteAssignment = function deleteAssignment(request, callback) {
+ return this.rpcCall(deleteAssignment, $root.google.cloud.bigquery.reservation.v1.DeleteAssignmentRequest, $root.google.protobuf.Empty, request, callback);
+ }, "name", { value: "DeleteAssignment" });
+
+ /**
+ * Calls DeleteAssignment.
+ * @function deleteAssignment
+ * @memberof google.cloud.bigquery.reservation.v1.ReservationService
+ * @instance
+ * @param {google.cloud.bigquery.reservation.v1.IDeleteAssignmentRequest} request DeleteAssignmentRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.bigquery.reservation.v1.ReservationService|searchAssignments}.
+ * @memberof google.cloud.bigquery.reservation.v1.ReservationService
+ * @typedef SearchAssignmentsCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.bigquery.reservation.v1.SearchAssignmentsResponse} [response] SearchAssignmentsResponse
+ */
+
+ /**
+ * Calls SearchAssignments.
+ * @function searchAssignments
+ * @memberof google.cloud.bigquery.reservation.v1.ReservationService
+ * @instance
+ * @param {google.cloud.bigquery.reservation.v1.ISearchAssignmentsRequest} request SearchAssignmentsRequest message or plain object
+ * @param {google.cloud.bigquery.reservation.v1.ReservationService.SearchAssignmentsCallback} callback Node-style callback called with the error, if any, and SearchAssignmentsResponse
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(ReservationService.prototype.searchAssignments = function searchAssignments(request, callback) {
+ return this.rpcCall(searchAssignments, $root.google.cloud.bigquery.reservation.v1.SearchAssignmentsRequest, $root.google.cloud.bigquery.reservation.v1.SearchAssignmentsResponse, request, callback);
+ }, "name", { value: "SearchAssignments" });
+
+ /**
+ * Calls SearchAssignments.
+ * @function searchAssignments
+ * @memberof google.cloud.bigquery.reservation.v1.ReservationService
+ * @instance
+ * @param {google.cloud.bigquery.reservation.v1.ISearchAssignmentsRequest} request SearchAssignmentsRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.bigquery.reservation.v1.ReservationService|searchAllAssignments}.
+ * @memberof google.cloud.bigquery.reservation.v1.ReservationService
+ * @typedef SearchAllAssignmentsCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.bigquery.reservation.v1.SearchAllAssignmentsResponse} [response] SearchAllAssignmentsResponse
+ */
+
+ /**
+ * Calls SearchAllAssignments.
+ * @function searchAllAssignments
+ * @memberof google.cloud.bigquery.reservation.v1.ReservationService
+ * @instance
+ * @param {google.cloud.bigquery.reservation.v1.ISearchAllAssignmentsRequest} request SearchAllAssignmentsRequest message or plain object
+ * @param {google.cloud.bigquery.reservation.v1.ReservationService.SearchAllAssignmentsCallback} callback Node-style callback called with the error, if any, and SearchAllAssignmentsResponse
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(ReservationService.prototype.searchAllAssignments = function searchAllAssignments(request, callback) {
+ return this.rpcCall(searchAllAssignments, $root.google.cloud.bigquery.reservation.v1.SearchAllAssignmentsRequest, $root.google.cloud.bigquery.reservation.v1.SearchAllAssignmentsResponse, request, callback);
+ }, "name", { value: "SearchAllAssignments" });
+
+ /**
+ * Calls SearchAllAssignments.
+ * @function searchAllAssignments
+ * @memberof google.cloud.bigquery.reservation.v1.ReservationService
+ * @instance
+ * @param {google.cloud.bigquery.reservation.v1.ISearchAllAssignmentsRequest} request SearchAllAssignmentsRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.bigquery.reservation.v1.ReservationService|moveAssignment}.
+ * @memberof google.cloud.bigquery.reservation.v1.ReservationService
+ * @typedef MoveAssignmentCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.bigquery.reservation.v1.Assignment} [response] Assignment
+ */
+
+ /**
+ * Calls MoveAssignment.
+ * @function moveAssignment
+ * @memberof google.cloud.bigquery.reservation.v1.ReservationService
+ * @instance
+ * @param {google.cloud.bigquery.reservation.v1.IMoveAssignmentRequest} request MoveAssignmentRequest message or plain object
+ * @param {google.cloud.bigquery.reservation.v1.ReservationService.MoveAssignmentCallback} callback Node-style callback called with the error, if any, and Assignment
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(ReservationService.prototype.moveAssignment = function moveAssignment(request, callback) {
+ return this.rpcCall(moveAssignment, $root.google.cloud.bigquery.reservation.v1.MoveAssignmentRequest, $root.google.cloud.bigquery.reservation.v1.Assignment, request, callback);
+ }, "name", { value: "MoveAssignment" });
+
+ /**
+ * Calls MoveAssignment.
+ * @function moveAssignment
+ * @memberof google.cloud.bigquery.reservation.v1.ReservationService
+ * @instance
+ * @param {google.cloud.bigquery.reservation.v1.IMoveAssignmentRequest} request MoveAssignmentRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.bigquery.reservation.v1.ReservationService|updateAssignment}.
+ * @memberof google.cloud.bigquery.reservation.v1.ReservationService
+ * @typedef UpdateAssignmentCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.bigquery.reservation.v1.Assignment} [response] Assignment
+ */
+
+ /**
+ * Calls UpdateAssignment.
+ * @function updateAssignment
+ * @memberof google.cloud.bigquery.reservation.v1.ReservationService
+ * @instance
+ * @param {google.cloud.bigquery.reservation.v1.IUpdateAssignmentRequest} request UpdateAssignmentRequest message or plain object
+ * @param {google.cloud.bigquery.reservation.v1.ReservationService.UpdateAssignmentCallback} callback Node-style callback called with the error, if any, and Assignment
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(ReservationService.prototype.updateAssignment = function updateAssignment(request, callback) {
+ return this.rpcCall(updateAssignment, $root.google.cloud.bigquery.reservation.v1.UpdateAssignmentRequest, $root.google.cloud.bigquery.reservation.v1.Assignment, request, callback);
+ }, "name", { value: "UpdateAssignment" });
+
+ /**
+ * Calls UpdateAssignment.
+ * @function updateAssignment
+ * @memberof google.cloud.bigquery.reservation.v1.ReservationService
+ * @instance
+ * @param {google.cloud.bigquery.reservation.v1.IUpdateAssignmentRequest} request UpdateAssignmentRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.bigquery.reservation.v1.ReservationService|getBiReservation}.
+ * @memberof google.cloud.bigquery.reservation.v1.ReservationService
+ * @typedef GetBiReservationCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.bigquery.reservation.v1.BiReservation} [response] BiReservation
+ */
+
+ /**
+ * Calls GetBiReservation.
+ * @function getBiReservation
+ * @memberof google.cloud.bigquery.reservation.v1.ReservationService
+ * @instance
+ * @param {google.cloud.bigquery.reservation.v1.IGetBiReservationRequest} request GetBiReservationRequest message or plain object
+ * @param {google.cloud.bigquery.reservation.v1.ReservationService.GetBiReservationCallback} callback Node-style callback called with the error, if any, and BiReservation
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(ReservationService.prototype.getBiReservation = function getBiReservation(request, callback) {
+ return this.rpcCall(getBiReservation, $root.google.cloud.bigquery.reservation.v1.GetBiReservationRequest, $root.google.cloud.bigquery.reservation.v1.BiReservation, request, callback);
+ }, "name", { value: "GetBiReservation" });
+
+ /**
+ * Calls GetBiReservation.
+ * @function getBiReservation
+ * @memberof google.cloud.bigquery.reservation.v1.ReservationService
+ * @instance
+ * @param {google.cloud.bigquery.reservation.v1.IGetBiReservationRequest} request GetBiReservationRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.bigquery.reservation.v1.ReservationService|updateBiReservation}.
+ * @memberof google.cloud.bigquery.reservation.v1.ReservationService
+ * @typedef UpdateBiReservationCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.bigquery.reservation.v1.BiReservation} [response] BiReservation
+ */
+
+ /**
+ * Calls UpdateBiReservation.
+ * @function updateBiReservation
+ * @memberof google.cloud.bigquery.reservation.v1.ReservationService
+ * @instance
+ * @param {google.cloud.bigquery.reservation.v1.IUpdateBiReservationRequest} request UpdateBiReservationRequest message or plain object
+ * @param {google.cloud.bigquery.reservation.v1.ReservationService.UpdateBiReservationCallback} callback Node-style callback called with the error, if any, and BiReservation
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(ReservationService.prototype.updateBiReservation = function updateBiReservation(request, callback) {
+ return this.rpcCall(updateBiReservation, $root.google.cloud.bigquery.reservation.v1.UpdateBiReservationRequest, $root.google.cloud.bigquery.reservation.v1.BiReservation, request, callback);
+ }, "name", { value: "UpdateBiReservation" });
+
+ /**
+ * Calls UpdateBiReservation.
+ * @function updateBiReservation
+ * @memberof google.cloud.bigquery.reservation.v1.ReservationService
+ * @instance
+ * @param {google.cloud.bigquery.reservation.v1.IUpdateBiReservationRequest} request UpdateBiReservationRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ return ReservationService;
+ })();
+
+ v1.Reservation = (function() {
+
+ /**
+ * Properties of a Reservation.
+ * @memberof google.cloud.bigquery.reservation.v1
+ * @interface IReservation
+ * @property {string|null} [name] Reservation name
+ * @property {number|Long|null} [slotCapacity] Reservation slotCapacity
+ * @property {boolean|null} [ignoreIdleSlots] Reservation ignoreIdleSlots
+ * @property {number|Long|null} [concurrency] Reservation concurrency
+ * @property {google.protobuf.ITimestamp|null} [creationTime] Reservation creationTime
+ * @property {google.protobuf.ITimestamp|null} [updateTime] Reservation updateTime
+ * @property {boolean|null} [multiRegionAuxiliary] Reservation multiRegionAuxiliary
+ */
+
+ /**
+ * Constructs a new Reservation.
+ * @memberof google.cloud.bigquery.reservation.v1
+ * @classdesc Represents a Reservation.
+ * @implements IReservation
+ * @constructor
+ * @param {google.cloud.bigquery.reservation.v1.IReservation=} [properties] Properties to set
+ */
+ function Reservation(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]];
+ }
+
+ /**
+ * Reservation name.
+ * @member {string} name
+ * @memberof google.cloud.bigquery.reservation.v1.Reservation
+ * @instance
+ */
+ Reservation.prototype.name = "";
+
+ /**
+ * Reservation slotCapacity.
+ * @member {number|Long} slotCapacity
+ * @memberof google.cloud.bigquery.reservation.v1.Reservation
+ * @instance
+ */
+ Reservation.prototype.slotCapacity = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
+
+ /**
+ * Reservation ignoreIdleSlots.
+ * @member {boolean} ignoreIdleSlots
+ * @memberof google.cloud.bigquery.reservation.v1.Reservation
+ * @instance
+ */
+ Reservation.prototype.ignoreIdleSlots = false;
+
+ /**
+ * Reservation concurrency.
+ * @member {number|Long} concurrency
+ * @memberof google.cloud.bigquery.reservation.v1.Reservation
+ * @instance
+ */
+ Reservation.prototype.concurrency = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
+
+ /**
+ * Reservation creationTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} creationTime
+ * @memberof google.cloud.bigquery.reservation.v1.Reservation
+ * @instance
+ */
+ Reservation.prototype.creationTime = null;
+
+ /**
+ * Reservation updateTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} updateTime
+ * @memberof google.cloud.bigquery.reservation.v1.Reservation
+ * @instance
+ */
+ Reservation.prototype.updateTime = null;
+
+ /**
+ * Reservation multiRegionAuxiliary.
+ * @member {boolean} multiRegionAuxiliary
+ * @memberof google.cloud.bigquery.reservation.v1.Reservation
+ * @instance
+ */
+ Reservation.prototype.multiRegionAuxiliary = false;
+
+ /**
+ * Creates a new Reservation instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.bigquery.reservation.v1.Reservation
+ * @static
+ * @param {google.cloud.bigquery.reservation.v1.IReservation=} [properties] Properties to set
+ * @returns {google.cloud.bigquery.reservation.v1.Reservation} Reservation instance
+ */
+ Reservation.create = function create(properties) {
+ return new Reservation(properties);
+ };
+
+ /**
+ * Encodes the specified Reservation message. Does not implicitly {@link google.cloud.bigquery.reservation.v1.Reservation.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.bigquery.reservation.v1.Reservation
+ * @static
+ * @param {google.cloud.bigquery.reservation.v1.IReservation} message Reservation message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Reservation.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.slotCapacity != null && Object.hasOwnProperty.call(message, "slotCapacity"))
+ writer.uint32(/* id 2, wireType 0 =*/16).int64(message.slotCapacity);
+ if (message.ignoreIdleSlots != null && Object.hasOwnProperty.call(message, "ignoreIdleSlots"))
+ writer.uint32(/* id 4, wireType 0 =*/32).bool(message.ignoreIdleSlots);
+ if (message.creationTime != null && Object.hasOwnProperty.call(message, "creationTime"))
+ $root.google.protobuf.Timestamp.encode(message.creationTime, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim();
+ if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime"))
+ $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim();
+ if (message.multiRegionAuxiliary != null && Object.hasOwnProperty.call(message, "multiRegionAuxiliary"))
+ writer.uint32(/* id 14, wireType 0 =*/112).bool(message.multiRegionAuxiliary);
+ if (message.concurrency != null && Object.hasOwnProperty.call(message, "concurrency"))
+ writer.uint32(/* id 16, wireType 0 =*/128).int64(message.concurrency);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified Reservation message, length delimited. Does not implicitly {@link google.cloud.bigquery.reservation.v1.Reservation.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.bigquery.reservation.v1.Reservation
+ * @static
+ * @param {google.cloud.bigquery.reservation.v1.IReservation} message Reservation message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Reservation.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a Reservation message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.bigquery.reservation.v1.Reservation
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.bigquery.reservation.v1.Reservation} Reservation
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Reservation.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.bigquery.reservation.v1.Reservation();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.name = reader.string();
+ break;
+ }
+ case 2: {
+ message.slotCapacity = reader.int64();
+ break;
+ }
+ case 4: {
+ message.ignoreIdleSlots = reader.bool();
+ break;
+ }
+ case 16: {
+ message.concurrency = reader.int64();
+ break;
+ }
+ case 8: {
+ message.creationTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
+ break;
+ }
+ case 9: {
+ message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
+ break;
+ }
+ case 14: {
+ message.multiRegionAuxiliary = reader.bool();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a Reservation message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.bigquery.reservation.v1.Reservation
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.bigquery.reservation.v1.Reservation} Reservation
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Reservation.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a Reservation message.
+ * @function verify
+ * @memberof google.cloud.bigquery.reservation.v1.Reservation
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ Reservation.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.slotCapacity != null && message.hasOwnProperty("slotCapacity"))
+ if (!$util.isInteger(message.slotCapacity) && !(message.slotCapacity && $util.isInteger(message.slotCapacity.low) && $util.isInteger(message.slotCapacity.high)))
+ return "slotCapacity: integer|Long expected";
+ if (message.ignoreIdleSlots != null && message.hasOwnProperty("ignoreIdleSlots"))
+ if (typeof message.ignoreIdleSlots !== "boolean")
+ return "ignoreIdleSlots: boolean expected";
+ if (message.concurrency != null && message.hasOwnProperty("concurrency"))
+ if (!$util.isInteger(message.concurrency) && !(message.concurrency && $util.isInteger(message.concurrency.low) && $util.isInteger(message.concurrency.high)))
+ return "concurrency: integer|Long expected";
+ if (message.creationTime != null && message.hasOwnProperty("creationTime")) {
+ var error = $root.google.protobuf.Timestamp.verify(message.creationTime);
+ if (error)
+ return "creationTime." + error;
+ }
+ if (message.updateTime != null && message.hasOwnProperty("updateTime")) {
+ var error = $root.google.protobuf.Timestamp.verify(message.updateTime);
+ if (error)
+ return "updateTime." + error;
+ }
+ if (message.multiRegionAuxiliary != null && message.hasOwnProperty("multiRegionAuxiliary"))
+ if (typeof message.multiRegionAuxiliary !== "boolean")
+ return "multiRegionAuxiliary: boolean expected";
+ return null;
+ };
+
+ /**
+ * Creates a Reservation message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.bigquery.reservation.v1.Reservation
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.bigquery.reservation.v1.Reservation} Reservation
+ */
+ Reservation.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.bigquery.reservation.v1.Reservation)
+ return object;
+ var message = new $root.google.cloud.bigquery.reservation.v1.Reservation();
+ if (object.name != null)
+ message.name = String(object.name);
+ if (object.slotCapacity != null)
+ if ($util.Long)
+ (message.slotCapacity = $util.Long.fromValue(object.slotCapacity)).unsigned = false;
+ else if (typeof object.slotCapacity === "string")
+ message.slotCapacity = parseInt(object.slotCapacity, 10);
+ else if (typeof object.slotCapacity === "number")
+ message.slotCapacity = object.slotCapacity;
+ else if (typeof object.slotCapacity === "object")
+ message.slotCapacity = new $util.LongBits(object.slotCapacity.low >>> 0, object.slotCapacity.high >>> 0).toNumber();
+ if (object.ignoreIdleSlots != null)
+ message.ignoreIdleSlots = Boolean(object.ignoreIdleSlots);
+ if (object.concurrency != null)
+ if ($util.Long)
+ (message.concurrency = $util.Long.fromValue(object.concurrency)).unsigned = false;
+ else if (typeof object.concurrency === "string")
+ message.concurrency = parseInt(object.concurrency, 10);
+ else if (typeof object.concurrency === "number")
+ message.concurrency = object.concurrency;
+ else if (typeof object.concurrency === "object")
+ message.concurrency = new $util.LongBits(object.concurrency.low >>> 0, object.concurrency.high >>> 0).toNumber();
+ if (object.creationTime != null) {
+ if (typeof object.creationTime !== "object")
+ throw TypeError(".google.cloud.bigquery.reservation.v1.Reservation.creationTime: object expected");
+ message.creationTime = $root.google.protobuf.Timestamp.fromObject(object.creationTime);
+ }
+ if (object.updateTime != null) {
+ if (typeof object.updateTime !== "object")
+ throw TypeError(".google.cloud.bigquery.reservation.v1.Reservation.updateTime: object expected");
+ message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime);
+ }
+ if (object.multiRegionAuxiliary != null)
+ message.multiRegionAuxiliary = Boolean(object.multiRegionAuxiliary);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a Reservation message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.bigquery.reservation.v1.Reservation
+ * @static
+ * @param {google.cloud.bigquery.reservation.v1.Reservation} message Reservation
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ Reservation.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.name = "";
+ if ($util.Long) {
+ var long = new $util.Long(0, 0, false);
+ object.slotCapacity = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
+ } else
+ object.slotCapacity = options.longs === String ? "0" : 0;
+ object.ignoreIdleSlots = false;
+ object.creationTime = null;
+ object.updateTime = null;
+ object.multiRegionAuxiliary = false;
+ if ($util.Long) {
+ var long = new $util.Long(0, 0, false);
+ object.concurrency = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
+ } else
+ object.concurrency = options.longs === String ? "0" : 0;
+ }
+ if (message.name != null && message.hasOwnProperty("name"))
+ object.name = message.name;
+ if (message.slotCapacity != null && message.hasOwnProperty("slotCapacity"))
+ if (typeof message.slotCapacity === "number")
+ object.slotCapacity = options.longs === String ? String(message.slotCapacity) : message.slotCapacity;
+ else
+ object.slotCapacity = options.longs === String ? $util.Long.prototype.toString.call(message.slotCapacity) : options.longs === Number ? new $util.LongBits(message.slotCapacity.low >>> 0, message.slotCapacity.high >>> 0).toNumber() : message.slotCapacity;
+ if (message.ignoreIdleSlots != null && message.hasOwnProperty("ignoreIdleSlots"))
+ object.ignoreIdleSlots = message.ignoreIdleSlots;
+ if (message.creationTime != null && message.hasOwnProperty("creationTime"))
+ object.creationTime = $root.google.protobuf.Timestamp.toObject(message.creationTime, options);
+ if (message.updateTime != null && message.hasOwnProperty("updateTime"))
+ object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options);
+ if (message.multiRegionAuxiliary != null && message.hasOwnProperty("multiRegionAuxiliary"))
+ object.multiRegionAuxiliary = message.multiRegionAuxiliary;
+ if (message.concurrency != null && message.hasOwnProperty("concurrency"))
+ if (typeof message.concurrency === "number")
+ object.concurrency = options.longs === String ? String(message.concurrency) : message.concurrency;
+ else
+ object.concurrency = options.longs === String ? $util.Long.prototype.toString.call(message.concurrency) : options.longs === Number ? new $util.LongBits(message.concurrency.low >>> 0, message.concurrency.high >>> 0).toNumber() : message.concurrency;
+ return object;
+ };
+
+ /**
+ * Converts this Reservation to JSON.
+ * @function toJSON
+ * @memberof google.cloud.bigquery.reservation.v1.Reservation
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ Reservation.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for Reservation
+ * @function getTypeUrl
+ * @memberof google.cloud.bigquery.reservation.v1.Reservation
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ Reservation.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.bigquery.reservation.v1.Reservation";
+ };
+
+ return Reservation;
+ })();
+
+ v1.CapacityCommitment = (function() {
+
+ /**
+ * Properties of a CapacityCommitment.
+ * @memberof google.cloud.bigquery.reservation.v1
+ * @interface ICapacityCommitment
+ * @property {string|null} [name] CapacityCommitment name
+ * @property {number|Long|null} [slotCount] CapacityCommitment slotCount
+ * @property {google.cloud.bigquery.reservation.v1.CapacityCommitment.CommitmentPlan|null} [plan] CapacityCommitment plan
+ * @property {google.cloud.bigquery.reservation.v1.CapacityCommitment.State|null} [state] CapacityCommitment state
+ * @property {google.protobuf.ITimestamp|null} [commitmentStartTime] CapacityCommitment commitmentStartTime
+ * @property {google.protobuf.ITimestamp|null} [commitmentEndTime] CapacityCommitment commitmentEndTime
+ * @property {google.rpc.IStatus|null} [failureStatus] CapacityCommitment failureStatus
+ * @property {google.cloud.bigquery.reservation.v1.CapacityCommitment.CommitmentPlan|null} [renewalPlan] CapacityCommitment renewalPlan
+ * @property {boolean|null} [multiRegionAuxiliary] CapacityCommitment multiRegionAuxiliary
+ */
+
+ /**
+ * Constructs a new CapacityCommitment.
+ * @memberof google.cloud.bigquery.reservation.v1
+ * @classdesc Represents a CapacityCommitment.
+ * @implements ICapacityCommitment
+ * @constructor
+ * @param {google.cloud.bigquery.reservation.v1.ICapacityCommitment=} [properties] Properties to set
+ */
+ function CapacityCommitment(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]];
+ }
+
+ /**
+ * CapacityCommitment name.
+ * @member {string} name
+ * @memberof google.cloud.bigquery.reservation.v1.CapacityCommitment
+ * @instance
+ */
+ CapacityCommitment.prototype.name = "";
+
+ /**
+ * CapacityCommitment slotCount.
+ * @member {number|Long} slotCount
+ * @memberof google.cloud.bigquery.reservation.v1.CapacityCommitment
+ * @instance
+ */
+ CapacityCommitment.prototype.slotCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
+
+ /**
+ * CapacityCommitment plan.
+ * @member {google.cloud.bigquery.reservation.v1.CapacityCommitment.CommitmentPlan} plan
+ * @memberof google.cloud.bigquery.reservation.v1.CapacityCommitment
+ * @instance
+ */
+ CapacityCommitment.prototype.plan = 0;
+
+ /**
+ * CapacityCommitment state.
+ * @member {google.cloud.bigquery.reservation.v1.CapacityCommitment.State} state
+ * @memberof google.cloud.bigquery.reservation.v1.CapacityCommitment
+ * @instance
+ */
+ CapacityCommitment.prototype.state = 0;
+
+ /**
+ * CapacityCommitment commitmentStartTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} commitmentStartTime
+ * @memberof google.cloud.bigquery.reservation.v1.CapacityCommitment
+ * @instance
+ */
+ CapacityCommitment.prototype.commitmentStartTime = null;
+
+ /**
+ * CapacityCommitment commitmentEndTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} commitmentEndTime
+ * @memberof google.cloud.bigquery.reservation.v1.CapacityCommitment
+ * @instance
+ */
+ CapacityCommitment.prototype.commitmentEndTime = null;
+
+ /**
+ * CapacityCommitment failureStatus.
+ * @member {google.rpc.IStatus|null|undefined} failureStatus
+ * @memberof google.cloud.bigquery.reservation.v1.CapacityCommitment
+ * @instance
+ */
+ CapacityCommitment.prototype.failureStatus = null;
+
+ /**
+ * CapacityCommitment renewalPlan.
+ * @member {google.cloud.bigquery.reservation.v1.CapacityCommitment.CommitmentPlan} renewalPlan
+ * @memberof google.cloud.bigquery.reservation.v1.CapacityCommitment
+ * @instance
+ */
+ CapacityCommitment.prototype.renewalPlan = 0;
+
+ /**
+ * CapacityCommitment multiRegionAuxiliary.
+ * @member {boolean} multiRegionAuxiliary
+ * @memberof google.cloud.bigquery.reservation.v1.CapacityCommitment
+ * @instance
+ */
+ CapacityCommitment.prototype.multiRegionAuxiliary = false;
+
+ /**
+ * Creates a new CapacityCommitment instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.bigquery.reservation.v1.CapacityCommitment
+ * @static
+ * @param {google.cloud.bigquery.reservation.v1.ICapacityCommitment=} [properties] Properties to set
+ * @returns {google.cloud.bigquery.reservation.v1.CapacityCommitment} CapacityCommitment instance
+ */
+ CapacityCommitment.create = function create(properties) {
+ return new CapacityCommitment(properties);
+ };
+
+ /**
+ * Encodes the specified CapacityCommitment message. Does not implicitly {@link google.cloud.bigquery.reservation.v1.CapacityCommitment.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.bigquery.reservation.v1.CapacityCommitment
+ * @static
+ * @param {google.cloud.bigquery.reservation.v1.ICapacityCommitment} message CapacityCommitment message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ CapacityCommitment.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.slotCount != null && Object.hasOwnProperty.call(message, "slotCount"))
+ writer.uint32(/* id 2, wireType 0 =*/16).int64(message.slotCount);
+ if (message.plan != null && Object.hasOwnProperty.call(message, "plan"))
+ writer.uint32(/* id 3, wireType 0 =*/24).int32(message.plan);
+ if (message.state != null && Object.hasOwnProperty.call(message, "state"))
+ writer.uint32(/* id 4, wireType 0 =*/32).int32(message.state);
+ if (message.commitmentEndTime != null && Object.hasOwnProperty.call(message, "commitmentEndTime"))
+ $root.google.protobuf.Timestamp.encode(message.commitmentEndTime, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
+ if (message.failureStatus != null && Object.hasOwnProperty.call(message, "failureStatus"))
+ $root.google.rpc.Status.encode(message.failureStatus, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
+ if (message.renewalPlan != null && Object.hasOwnProperty.call(message, "renewalPlan"))
+ writer.uint32(/* id 8, wireType 0 =*/64).int32(message.renewalPlan);
+ if (message.commitmentStartTime != null && Object.hasOwnProperty.call(message, "commitmentStartTime"))
+ $root.google.protobuf.Timestamp.encode(message.commitmentStartTime, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim();
+ if (message.multiRegionAuxiliary != null && Object.hasOwnProperty.call(message, "multiRegionAuxiliary"))
+ writer.uint32(/* id 10, wireType 0 =*/80).bool(message.multiRegionAuxiliary);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified CapacityCommitment message, length delimited. Does not implicitly {@link google.cloud.bigquery.reservation.v1.CapacityCommitment.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.bigquery.reservation.v1.CapacityCommitment
+ * @static
+ * @param {google.cloud.bigquery.reservation.v1.ICapacityCommitment} message CapacityCommitment message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ CapacityCommitment.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a CapacityCommitment message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.bigquery.reservation.v1.CapacityCommitment
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.bigquery.reservation.v1.CapacityCommitment} CapacityCommitment
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ CapacityCommitment.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.bigquery.reservation.v1.CapacityCommitment();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.name = reader.string();
+ break;
+ }
+ case 2: {
+ message.slotCount = reader.int64();
+ break;
+ }
+ case 3: {
+ message.plan = reader.int32();
+ break;
+ }
+ case 4: {
+ message.state = reader.int32();
+ break;
+ }
+ case 9: {
+ message.commitmentStartTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
+ break;
+ }
+ case 5: {
+ message.commitmentEndTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
+ break;
+ }
+ case 7: {
+ message.failureStatus = $root.google.rpc.Status.decode(reader, reader.uint32());
+ break;
+ }
+ case 8: {
+ message.renewalPlan = reader.int32();
+ break;
+ }
+ case 10: {
+ message.multiRegionAuxiliary = reader.bool();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a CapacityCommitment message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.bigquery.reservation.v1.CapacityCommitment
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.bigquery.reservation.v1.CapacityCommitment} CapacityCommitment
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ CapacityCommitment.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a CapacityCommitment message.
+ * @function verify
+ * @memberof google.cloud.bigquery.reservation.v1.CapacityCommitment
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ CapacityCommitment.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.slotCount != null && message.hasOwnProperty("slotCount"))
+ if (!$util.isInteger(message.slotCount) && !(message.slotCount && $util.isInteger(message.slotCount.low) && $util.isInteger(message.slotCount.high)))
+ return "slotCount: integer|Long expected";
+ if (message.plan != null && message.hasOwnProperty("plan"))
+ switch (message.plan) {
+ default:
+ return "plan: enum value expected";
+ case 0:
+ case 3:
+ case 5:
+ case 2:
+ case 4:
+ break;
+ }
+ if (message.state != null && message.hasOwnProperty("state"))
+ switch (message.state) {
+ default:
+ return "state: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ case 3:
+ break;
+ }
+ if (message.commitmentStartTime != null && message.hasOwnProperty("commitmentStartTime")) {
+ var error = $root.google.protobuf.Timestamp.verify(message.commitmentStartTime);
+ if (error)
+ return "commitmentStartTime." + error;
+ }
+ if (message.commitmentEndTime != null && message.hasOwnProperty("commitmentEndTime")) {
+ var error = $root.google.protobuf.Timestamp.verify(message.commitmentEndTime);
+ if (error)
+ return "commitmentEndTime." + error;
+ }
+ if (message.failureStatus != null && message.hasOwnProperty("failureStatus")) {
+ var error = $root.google.rpc.Status.verify(message.failureStatus);
+ if (error)
+ return "failureStatus." + error;
+ }
+ if (message.renewalPlan != null && message.hasOwnProperty("renewalPlan"))
+ switch (message.renewalPlan) {
+ default:
+ return "renewalPlan: enum value expected";
+ case 0:
+ case 3:
+ case 5:
+ case 2:
+ case 4:
+ break;
+ }
+ if (message.multiRegionAuxiliary != null && message.hasOwnProperty("multiRegionAuxiliary"))
+ if (typeof message.multiRegionAuxiliary !== "boolean")
+ return "multiRegionAuxiliary: boolean expected";
+ return null;
+ };
+
+ /**
+ * Creates a CapacityCommitment message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.bigquery.reservation.v1.CapacityCommitment
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.bigquery.reservation.v1.CapacityCommitment} CapacityCommitment
+ */
+ CapacityCommitment.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.bigquery.reservation.v1.CapacityCommitment)
+ return object;
+ var message = new $root.google.cloud.bigquery.reservation.v1.CapacityCommitment();
+ if (object.name != null)
+ message.name = String(object.name);
+ if (object.slotCount != null)
+ if ($util.Long)
+ (message.slotCount = $util.Long.fromValue(object.slotCount)).unsigned = false;
+ else if (typeof object.slotCount === "string")
+ message.slotCount = parseInt(object.slotCount, 10);
+ else if (typeof object.slotCount === "number")
+ message.slotCount = object.slotCount;
+ else if (typeof object.slotCount === "object")
+ message.slotCount = new $util.LongBits(object.slotCount.low >>> 0, object.slotCount.high >>> 0).toNumber();
+ switch (object.plan) {
+ case "COMMITMENT_PLAN_UNSPECIFIED":
+ case 0:
+ message.plan = 0;
+ break;
+ case "FLEX":
+ case 3:
+ message.plan = 3;
+ break;
+ case "TRIAL":
+ case 5:
+ message.plan = 5;
+ break;
+ case "MONTHLY":
+ case 2:
+ message.plan = 2;
+ break;
+ case "ANNUAL":
+ case 4:
+ message.plan = 4;
+ break;
+ }
+ switch (object.state) {
+ case "STATE_UNSPECIFIED":
+ case 0:
+ message.state = 0;
+ break;
+ case "PENDING":
+ case 1:
+ message.state = 1;
+ break;
+ case "ACTIVE":
+ case 2:
+ message.state = 2;
+ break;
+ case "FAILED":
+ case 3:
+ message.state = 3;
+ break;
+ }
+ if (object.commitmentStartTime != null) {
+ if (typeof object.commitmentStartTime !== "object")
+ throw TypeError(".google.cloud.bigquery.reservation.v1.CapacityCommitment.commitmentStartTime: object expected");
+ message.commitmentStartTime = $root.google.protobuf.Timestamp.fromObject(object.commitmentStartTime);
+ }
+ if (object.commitmentEndTime != null) {
+ if (typeof object.commitmentEndTime !== "object")
+ throw TypeError(".google.cloud.bigquery.reservation.v1.CapacityCommitment.commitmentEndTime: object expected");
+ message.commitmentEndTime = $root.google.protobuf.Timestamp.fromObject(object.commitmentEndTime);
+ }
+ if (object.failureStatus != null) {
+ if (typeof object.failureStatus !== "object")
+ throw TypeError(".google.cloud.bigquery.reservation.v1.CapacityCommitment.failureStatus: object expected");
+ message.failureStatus = $root.google.rpc.Status.fromObject(object.failureStatus);
+ }
+ switch (object.renewalPlan) {
+ case "COMMITMENT_PLAN_UNSPECIFIED":
+ case 0:
+ message.renewalPlan = 0;
+ break;
+ case "FLEX":
+ case 3:
+ message.renewalPlan = 3;
+ break;
+ case "TRIAL":
+ case 5:
+ message.renewalPlan = 5;
+ break;
+ case "MONTHLY":
+ case 2:
+ message.renewalPlan = 2;
+ break;
+ case "ANNUAL":
+ case 4:
+ message.renewalPlan = 4;
+ break;
+ }
+ if (object.multiRegionAuxiliary != null)
+ message.multiRegionAuxiliary = Boolean(object.multiRegionAuxiliary);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a CapacityCommitment message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.bigquery.reservation.v1.CapacityCommitment
+ * @static
+ * @param {google.cloud.bigquery.reservation.v1.CapacityCommitment} message CapacityCommitment
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ CapacityCommitment.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.name = "";
+ if ($util.Long) {
+ var long = new $util.Long(0, 0, false);
+ object.slotCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
+ } else
+ object.slotCount = options.longs === String ? "0" : 0;
+ object.plan = options.enums === String ? "COMMITMENT_PLAN_UNSPECIFIED" : 0;
+ object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0;
+ object.commitmentEndTime = null;
+ object.failureStatus = null;
+ object.renewalPlan = options.enums === String ? "COMMITMENT_PLAN_UNSPECIFIED" : 0;
+ object.commitmentStartTime = null;
+ object.multiRegionAuxiliary = false;
+ }
+ if (message.name != null && message.hasOwnProperty("name"))
+ object.name = message.name;
+ if (message.slotCount != null && message.hasOwnProperty("slotCount"))
+ if (typeof message.slotCount === "number")
+ object.slotCount = options.longs === String ? String(message.slotCount) : message.slotCount;
+ else
+ object.slotCount = options.longs === String ? $util.Long.prototype.toString.call(message.slotCount) : options.longs === Number ? new $util.LongBits(message.slotCount.low >>> 0, message.slotCount.high >>> 0).toNumber() : message.slotCount;
+ if (message.plan != null && message.hasOwnProperty("plan"))
+ object.plan = options.enums === String ? $root.google.cloud.bigquery.reservation.v1.CapacityCommitment.CommitmentPlan[message.plan] : message.plan;
+ if (message.state != null && message.hasOwnProperty("state"))
+ object.state = options.enums === String ? $root.google.cloud.bigquery.reservation.v1.CapacityCommitment.State[message.state] : message.state;
+ if (message.commitmentEndTime != null && message.hasOwnProperty("commitmentEndTime"))
+ object.commitmentEndTime = $root.google.protobuf.Timestamp.toObject(message.commitmentEndTime, options);
+ if (message.failureStatus != null && message.hasOwnProperty("failureStatus"))
+ object.failureStatus = $root.google.rpc.Status.toObject(message.failureStatus, options);
+ if (message.renewalPlan != null && message.hasOwnProperty("renewalPlan"))
+ object.renewalPlan = options.enums === String ? $root.google.cloud.bigquery.reservation.v1.CapacityCommitment.CommitmentPlan[message.renewalPlan] : message.renewalPlan;
+ if (message.commitmentStartTime != null && message.hasOwnProperty("commitmentStartTime"))
+ object.commitmentStartTime = $root.google.protobuf.Timestamp.toObject(message.commitmentStartTime, options);
+ if (message.multiRegionAuxiliary != null && message.hasOwnProperty("multiRegionAuxiliary"))
+ object.multiRegionAuxiliary = message.multiRegionAuxiliary;
+ return object;
+ };
+
+ /**
+ * Converts this CapacityCommitment to JSON.
+ * @function toJSON
+ * @memberof google.cloud.bigquery.reservation.v1.CapacityCommitment
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ CapacityCommitment.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for CapacityCommitment
+ * @function getTypeUrl
+ * @memberof google.cloud.bigquery.reservation.v1.CapacityCommitment
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ CapacityCommitment.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.bigquery.reservation.v1.CapacityCommitment";
+ };
+
+ /**
+ * CommitmentPlan enum.
+ * @name google.cloud.bigquery.reservation.v1.CapacityCommitment.CommitmentPlan
+ * @enum {number}
+ * @property {number} COMMITMENT_PLAN_UNSPECIFIED=0 COMMITMENT_PLAN_UNSPECIFIED value
+ * @property {number} FLEX=3 FLEX value
+ * @property {number} TRIAL=5 TRIAL value
+ * @property {number} MONTHLY=2 MONTHLY value
+ * @property {number} ANNUAL=4 ANNUAL value
+ */
+ CapacityCommitment.CommitmentPlan = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "COMMITMENT_PLAN_UNSPECIFIED"] = 0;
+ values[valuesById[3] = "FLEX"] = 3;
+ values[valuesById[5] = "TRIAL"] = 5;
+ values[valuesById[2] = "MONTHLY"] = 2;
+ values[valuesById[4] = "ANNUAL"] = 4;
+ return values;
+ })();
+
+ /**
+ * State enum.
+ * @name google.cloud.bigquery.reservation.v1.CapacityCommitment.State
+ * @enum {number}
+ * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value
+ * @property {number} PENDING=1 PENDING value
+ * @property {number} ACTIVE=2 ACTIVE value
+ * @property {number} FAILED=3 FAILED value
+ */
+ CapacityCommitment.State = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "STATE_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "PENDING"] = 1;
+ values[valuesById[2] = "ACTIVE"] = 2;
+ values[valuesById[3] = "FAILED"] = 3;
+ return values;
+ })();
+
+ return CapacityCommitment;
+ })();
+
+ v1.CreateReservationRequest = (function() {
+
+ /**
+ * Properties of a CreateReservationRequest.
+ * @memberof google.cloud.bigquery.reservation.v1
+ * @interface ICreateReservationRequest
+ * @property {string|null} [parent] CreateReservationRequest parent
+ * @property {string|null} [reservationId] CreateReservationRequest reservationId
+ * @property {google.cloud.bigquery.reservation.v1.IReservation|null} [reservation] CreateReservationRequest reservation
+ */
+
+ /**
+ * Constructs a new CreateReservationRequest.
+ * @memberof google.cloud.bigquery.reservation.v1
+ * @classdesc Represents a CreateReservationRequest.
+ * @implements ICreateReservationRequest
+ * @constructor
+ * @param {google.cloud.bigquery.reservation.v1.ICreateReservationRequest=} [properties] Properties to set
+ */
+ function CreateReservationRequest(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]];
+ }
+
+ /**
+ * CreateReservationRequest parent.
+ * @member {string} parent
+ * @memberof google.cloud.bigquery.reservation.v1.CreateReservationRequest
+ * @instance
+ */
+ CreateReservationRequest.prototype.parent = "";
+
+ /**
+ * CreateReservationRequest reservationId.
+ * @member {string} reservationId
+ * @memberof google.cloud.bigquery.reservation.v1.CreateReservationRequest
+ * @instance
+ */
+ CreateReservationRequest.prototype.reservationId = "";
+
+ /**
+ * CreateReservationRequest reservation.
+ * @member {google.cloud.bigquery.reservation.v1.IReservation|null|undefined} reservation
+ * @memberof google.cloud.bigquery.reservation.v1.CreateReservationRequest
+ * @instance
+ */
+ CreateReservationRequest.prototype.reservation = null;
+
+ /**
+ * Creates a new CreateReservationRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.bigquery.reservation.v1.CreateReservationRequest
+ * @static
+ * @param {google.cloud.bigquery.reservation.v1.ICreateReservationRequest=} [properties] Properties to set
+ * @returns {google.cloud.bigquery.reservation.v1.CreateReservationRequest} CreateReservationRequest instance
+ */
+ CreateReservationRequest.create = function create(properties) {
+ return new CreateReservationRequest(properties);
+ };
+
+ /**
+ * Encodes the specified CreateReservationRequest message. Does not implicitly {@link google.cloud.bigquery.reservation.v1.CreateReservationRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.bigquery.reservation.v1.CreateReservationRequest
+ * @static
+ * @param {google.cloud.bigquery.reservation.v1.ICreateReservationRequest} message CreateReservationRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ CreateReservationRequest.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.reservationId != null && Object.hasOwnProperty.call(message, "reservationId"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.reservationId);
+ if (message.reservation != null && Object.hasOwnProperty.call(message, "reservation"))
+ $root.google.cloud.bigquery.reservation.v1.Reservation.encode(message.reservation, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified CreateReservationRequest message, length delimited. Does not implicitly {@link google.cloud.bigquery.reservation.v1.CreateReservationRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.bigquery.reservation.v1.CreateReservationRequest
+ * @static
+ * @param {google.cloud.bigquery.reservation.v1.ICreateReservationRequest} message CreateReservationRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ CreateReservationRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a CreateReservationRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.bigquery.reservation.v1.CreateReservationRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.bigquery.reservation.v1.CreateReservationRequest} CreateReservationRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ CreateReservationRequest.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.bigquery.reservation.v1.CreateReservationRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.parent = reader.string();
+ break;
+ }
+ case 2: {
+ message.reservationId = reader.string();
+ break;
+ }
+ case 3: {
+ message.reservation = $root.google.cloud.bigquery.reservation.v1.Reservation.decode(reader, reader.uint32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a CreateReservationRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.bigquery.reservation.v1.CreateReservationRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.bigquery.reservation.v1.CreateReservationRequest} CreateReservationRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ CreateReservationRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a CreateReservationRequest message.
+ * @function verify
+ * @memberof google.cloud.bigquery.reservation.v1.CreateReservationRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ CreateReservationRequest.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.reservationId != null && message.hasOwnProperty("reservationId"))
+ if (!$util.isString(message.reservationId))
+ return "reservationId: string expected";
+ if (message.reservation != null && message.hasOwnProperty("reservation")) {
+ var error = $root.google.cloud.bigquery.reservation.v1.Reservation.verify(message.reservation);
+ if (error)
+ return "reservation." + error;
+ }
+ return null;
+ };
+
+ /**
+ * Creates a CreateReservationRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.bigquery.reservation.v1.CreateReservationRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.bigquery.reservation.v1.CreateReservationRequest} CreateReservationRequest
+ */
+ CreateReservationRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.bigquery.reservation.v1.CreateReservationRequest)
+ return object;
+ var message = new $root.google.cloud.bigquery.reservation.v1.CreateReservationRequest();
+ if (object.parent != null)
+ message.parent = String(object.parent);
+ if (object.reservationId != null)
+ message.reservationId = String(object.reservationId);
+ if (object.reservation != null) {
+ if (typeof object.reservation !== "object")
+ throw TypeError(".google.cloud.bigquery.reservation.v1.CreateReservationRequest.reservation: object expected");
+ message.reservation = $root.google.cloud.bigquery.reservation.v1.Reservation.fromObject(object.reservation);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a CreateReservationRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.bigquery.reservation.v1.CreateReservationRequest
+ * @static
+ * @param {google.cloud.bigquery.reservation.v1.CreateReservationRequest} message CreateReservationRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ CreateReservationRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.parent = "";
+ object.reservationId = "";
+ object.reservation = null;
+ }
+ if (message.parent != null && message.hasOwnProperty("parent"))
+ object.parent = message.parent;
+ if (message.reservationId != null && message.hasOwnProperty("reservationId"))
+ object.reservationId = message.reservationId;
+ if (message.reservation != null && message.hasOwnProperty("reservation"))
+ object.reservation = $root.google.cloud.bigquery.reservation.v1.Reservation.toObject(message.reservation, options);
+ return object;
+ };
+
+ /**
+ * Converts this CreateReservationRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.bigquery.reservation.v1.CreateReservationRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ CreateReservationRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for CreateReservationRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.bigquery.reservation.v1.CreateReservationRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ CreateReservationRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.bigquery.reservation.v1.CreateReservationRequest";
+ };
+
+ return CreateReservationRequest;
+ })();
+
+ v1.ListReservationsRequest = (function() {
+
+ /**
+ * Properties of a ListReservationsRequest.
+ * @memberof google.cloud.bigquery.reservation.v1
+ * @interface IListReservationsRequest
+ * @property {string|null} [parent] ListReservationsRequest parent
+ * @property {number|null} [pageSize] ListReservationsRequest pageSize
+ * @property {string|null} [pageToken] ListReservationsRequest pageToken
+ */
+
+ /**
+ * Constructs a new ListReservationsRequest.
+ * @memberof google.cloud.bigquery.reservation.v1
+ * @classdesc Represents a ListReservationsRequest.
+ * @implements IListReservationsRequest
+ * @constructor
+ * @param {google.cloud.bigquery.reservation.v1.IListReservationsRequest=} [properties] Properties to set
+ */
+ function ListReservationsRequest(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]];
+ }
+
+ /**
+ * ListReservationsRequest parent.
+ * @member {string} parent
+ * @memberof google.cloud.bigquery.reservation.v1.ListReservationsRequest
+ * @instance
+ */
+ ListReservationsRequest.prototype.parent = "";
+
+ /**
+ * ListReservationsRequest pageSize.
+ * @member {number} pageSize
+ * @memberof google.cloud.bigquery.reservation.v1.ListReservationsRequest
+ * @instance
+ */
+ ListReservationsRequest.prototype.pageSize = 0;
+
+ /**
+ * ListReservationsRequest pageToken.
+ * @member {string} pageToken
+ * @memberof google.cloud.bigquery.reservation.v1.ListReservationsRequest
+ * @instance
+ */
+ ListReservationsRequest.prototype.pageToken = "";
+
+ /**
+ * Creates a new ListReservationsRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.bigquery.reservation.v1.ListReservationsRequest
+ * @static
+ * @param {google.cloud.bigquery.reservation.v1.IListReservationsRequest=} [properties] Properties to set
+ * @returns {google.cloud.bigquery.reservation.v1.ListReservationsRequest} ListReservationsRequest instance
+ */
+ ListReservationsRequest.create = function create(properties) {
+ return new ListReservationsRequest(properties);
+ };
+
+ /**
+ * Encodes the specified ListReservationsRequest message. Does not implicitly {@link google.cloud.bigquery.reservation.v1.ListReservationsRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.bigquery.reservation.v1.ListReservationsRequest
+ * @static
+ * @param {google.cloud.bigquery.reservation.v1.IListReservationsRequest} message ListReservationsRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListReservationsRequest.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 ListReservationsRequest message, length delimited. Does not implicitly {@link google.cloud.bigquery.reservation.v1.ListReservationsRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.bigquery.reservation.v1.ListReservationsRequest
+ * @static
+ * @param {google.cloud.bigquery.reservation.v1.IListReservationsRequest} message ListReservationsRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListReservationsRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ListReservationsRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.bigquery.reservation.v1.ListReservationsRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.bigquery.reservation.v1.ListReservationsRequest} ListReservationsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListReservationsRequest.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.bigquery.reservation.v1.ListReservationsRequest();
+ 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 ListReservationsRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.bigquery.reservation.v1.ListReservationsRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.bigquery.reservation.v1.ListReservationsRequest} ListReservationsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListReservationsRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ListReservationsRequest message.
+ * @function verify
+ * @memberof google.cloud.bigquery.reservation.v1.ListReservationsRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ListReservationsRequest.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 ListReservationsRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.bigquery.reservation.v1.ListReservationsRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.bigquery.reservation.v1.ListReservationsRequest} ListReservationsRequest
+ */
+ ListReservationsRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.bigquery.reservation.v1.ListReservationsRequest)
+ return object;
+ var message = new $root.google.cloud.bigquery.reservation.v1.ListReservationsRequest();
+ 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 ListReservationsRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.bigquery.reservation.v1.ListReservationsRequest
+ * @static
+ * @param {google.cloud.bigquery.reservation.v1.ListReservationsRequest} message ListReservationsRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ListReservationsRequest.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 ListReservationsRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.bigquery.reservation.v1.ListReservationsRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ListReservationsRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ListReservationsRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.bigquery.reservation.v1.ListReservationsRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ListReservationsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.bigquery.reservation.v1.ListReservationsRequest";
+ };
+
+ return ListReservationsRequest;
+ })();
+
+ v1.ListReservationsResponse = (function() {
+
+ /**
+ * Properties of a ListReservationsResponse.
+ * @memberof google.cloud.bigquery.reservation.v1
+ * @interface IListReservationsResponse
+ * @property {Array.|null} [reservations] ListReservationsResponse reservations
+ * @property {string|null} [nextPageToken] ListReservationsResponse nextPageToken
+ */
+
+ /**
+ * Constructs a new ListReservationsResponse.
+ * @memberof google.cloud.bigquery.reservation.v1
+ * @classdesc Represents a ListReservationsResponse.
+ * @implements IListReservationsResponse
+ * @constructor
+ * @param {google.cloud.bigquery.reservation.v1.IListReservationsResponse=} [properties] Properties to set
+ */
+ function ListReservationsResponse(properties) {
+ this.reservations = [];
+ 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]];
+ }
+
+ /**
+ * ListReservationsResponse reservations.
+ * @member {Array.} reservations
+ * @memberof google.cloud.bigquery.reservation.v1.ListReservationsResponse
+ * @instance
+ */
+ ListReservationsResponse.prototype.reservations = $util.emptyArray;
+
+ /**
+ * ListReservationsResponse nextPageToken.
+ * @member {string} nextPageToken
+ * @memberof google.cloud.bigquery.reservation.v1.ListReservationsResponse
+ * @instance
+ */
+ ListReservationsResponse.prototype.nextPageToken = "";
+
+ /**
+ * Creates a new ListReservationsResponse instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.bigquery.reservation.v1.ListReservationsResponse
+ * @static
+ * @param {google.cloud.bigquery.reservation.v1.IListReservationsResponse=} [properties] Properties to set
+ * @returns {google.cloud.bigquery.reservation.v1.ListReservationsResponse} ListReservationsResponse instance
+ */
+ ListReservationsResponse.create = function create(properties) {
+ return new ListReservationsResponse(properties);
+ };
+
+ /**
+ * Encodes the specified ListReservationsResponse message. Does not implicitly {@link google.cloud.bigquery.reservation.v1.ListReservationsResponse.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.bigquery.reservation.v1.ListReservationsResponse
+ * @static
+ * @param {google.cloud.bigquery.reservation.v1.IListReservationsResponse} message ListReservationsResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListReservationsResponse.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.reservations != null && message.reservations.length)
+ for (var i = 0; i < message.reservations.length; ++i)
+ $root.google.cloud.bigquery.reservation.v1.Reservation.encode(message.reservations[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 ListReservationsResponse message, length delimited. Does not implicitly {@link google.cloud.bigquery.reservation.v1.ListReservationsResponse.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.bigquery.reservation.v1.ListReservationsResponse
+ * @static
+ * @param {google.cloud.bigquery.reservation.v1.IListReservationsResponse} message ListReservationsResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListReservationsResponse.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ListReservationsResponse message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.bigquery.reservation.v1.ListReservationsResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.bigquery.reservation.v1.ListReservationsResponse} ListReservationsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListReservationsResponse.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.bigquery.reservation.v1.ListReservationsResponse();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ if (!(message.reservations && message.reservations.length))
+ message.reservations = [];
+ message.reservations.push($root.google.cloud.bigquery.reservation.v1.Reservation.decode(reader, reader.uint32()));
+ break;
+ }
+ case 2: {
+ message.nextPageToken = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ListReservationsResponse message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.bigquery.reservation.v1.ListReservationsResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.bigquery.reservation.v1.ListReservationsResponse} ListReservationsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListReservationsResponse.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ListReservationsResponse message.
+ * @function verify
+ * @memberof google.cloud.bigquery.reservation.v1.ListReservationsResponse
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ListReservationsResponse.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.reservations != null && message.hasOwnProperty("reservations")) {
+ if (!Array.isArray(message.reservations))
+ return "reservations: array expected";
+ for (var i = 0; i < message.reservations.length; ++i) {
+ var error = $root.google.cloud.bigquery.reservation.v1.Reservation.verify(message.reservations[i]);
+ if (error)
+ return "reservations." + error;
+ }
+ }
+ if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken"))
+ if (!$util.isString(message.nextPageToken))
+ return "nextPageToken: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a ListReservationsResponse message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.bigquery.reservation.v1.ListReservationsResponse
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.bigquery.reservation.v1.ListReservationsResponse} ListReservationsResponse
+ */
+ ListReservationsResponse.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.bigquery.reservation.v1.ListReservationsResponse)
+ return object;
+ var message = new $root.google.cloud.bigquery.reservation.v1.ListReservationsResponse();
+ if (object.reservations) {
+ if (!Array.isArray(object.reservations))
+ throw TypeError(".google.cloud.bigquery.reservation.v1.ListReservationsResponse.reservations: array expected");
+ message.reservations = [];
+ for (var i = 0; i < object.reservations.length; ++i) {
+ if (typeof object.reservations[i] !== "object")
+ throw TypeError(".google.cloud.bigquery.reservation.v1.ListReservationsResponse.reservations: object expected");
+ message.reservations[i] = $root.google.cloud.bigquery.reservation.v1.Reservation.fromObject(object.reservations[i]);
+ }
+ }
+ if (object.nextPageToken != null)
+ message.nextPageToken = String(object.nextPageToken);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ListReservationsResponse message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.bigquery.reservation.v1.ListReservationsResponse
+ * @static
+ * @param {google.cloud.bigquery.reservation.v1.ListReservationsResponse} message ListReservationsResponse
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ListReservationsResponse.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.reservations = [];
+ if (options.defaults)
+ object.nextPageToken = "";
+ if (message.reservations && message.reservations.length) {
+ object.reservations = [];
+ for (var j = 0; j < message.reservations.length; ++j)
+ object.reservations[j] = $root.google.cloud.bigquery.reservation.v1.Reservation.toObject(message.reservations[j], options);
+ }
+ if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken"))
+ object.nextPageToken = message.nextPageToken;
+ return object;
+ };
+
+ /**
+ * Converts this ListReservationsResponse to JSON.
+ * @function toJSON
+ * @memberof google.cloud.bigquery.reservation.v1.ListReservationsResponse
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ListReservationsResponse.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ListReservationsResponse
+ * @function getTypeUrl
+ * @memberof google.cloud.bigquery.reservation.v1.ListReservationsResponse
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ListReservationsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.bigquery.reservation.v1.ListReservationsResponse";
+ };
+
+ return ListReservationsResponse;
+ })();
+
+ v1.GetReservationRequest = (function() {
+
+ /**
+ * Properties of a GetReservationRequest.
+ * @memberof google.cloud.bigquery.reservation.v1
+ * @interface IGetReservationRequest
+ * @property {string|null} [name] GetReservationRequest name
+ */
+
+ /**
+ * Constructs a new GetReservationRequest.
+ * @memberof google.cloud.bigquery.reservation.v1
+ * @classdesc Represents a GetReservationRequest.
+ * @implements IGetReservationRequest
+ * @constructor
+ * @param {google.cloud.bigquery.reservation.v1.IGetReservationRequest=} [properties] Properties to set
+ */
+ function GetReservationRequest(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]];
+ }
+
+ /**
+ * GetReservationRequest name.
+ * @member {string} name
+ * @memberof google.cloud.bigquery.reservation.v1.GetReservationRequest
+ * @instance
+ */
+ GetReservationRequest.prototype.name = "";
+
+ /**
+ * Creates a new GetReservationRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.bigquery.reservation.v1.GetReservationRequest
+ * @static
+ * @param {google.cloud.bigquery.reservation.v1.IGetReservationRequest=} [properties] Properties to set
+ * @returns {google.cloud.bigquery.reservation.v1.GetReservationRequest} GetReservationRequest instance
+ */
+ GetReservationRequest.create = function create(properties) {
+ return new GetReservationRequest(properties);
+ };
+
+ /**
+ * Encodes the specified GetReservationRequest message. Does not implicitly {@link google.cloud.bigquery.reservation.v1.GetReservationRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.bigquery.reservation.v1.GetReservationRequest
+ * @static
+ * @param {google.cloud.bigquery.reservation.v1.IGetReservationRequest} message GetReservationRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GetReservationRequest.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 GetReservationRequest message, length delimited. Does not implicitly {@link google.cloud.bigquery.reservation.v1.GetReservationRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.bigquery.reservation.v1.GetReservationRequest
+ * @static
+ * @param {google.cloud.bigquery.reservation.v1.IGetReservationRequest} message GetReservationRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GetReservationRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a GetReservationRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.bigquery.reservation.v1.GetReservationRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.bigquery.reservation.v1.GetReservationRequest} GetReservationRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GetReservationRequest.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.bigquery.reservation.v1.GetReservationRequest();
+ 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 GetReservationRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.bigquery.reservation.v1.GetReservationRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.bigquery.reservation.v1.GetReservationRequest} GetReservationRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GetReservationRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a GetReservationRequest message.
+ * @function verify
+ * @memberof google.cloud.bigquery.reservation.v1.GetReservationRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ GetReservationRequest.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 GetReservationRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.bigquery.reservation.v1.GetReservationRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.bigquery.reservation.v1.GetReservationRequest} GetReservationRequest
+ */
+ GetReservationRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.bigquery.reservation.v1.GetReservationRequest)
+ return object;
+ var message = new $root.google.cloud.bigquery.reservation.v1.GetReservationRequest();
+ if (object.name != null)
+ message.name = String(object.name);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a GetReservationRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.bigquery.reservation.v1.GetReservationRequest
+ * @static
+ * @param {google.cloud.bigquery.reservation.v1.GetReservationRequest} message GetReservationRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ GetReservationRequest.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 GetReservationRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.bigquery.reservation.v1.GetReservationRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ GetReservationRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for GetReservationRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.bigquery.reservation.v1.GetReservationRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ GetReservationRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.bigquery.reservation.v1.GetReservationRequest";
+ };
+
+ return GetReservationRequest;
+ })();
+
+ v1.DeleteReservationRequest = (function() {
+
+ /**
+ * Properties of a DeleteReservationRequest.
+ * @memberof google.cloud.bigquery.reservation.v1
+ * @interface IDeleteReservationRequest
+ * @property {string|null} [name] DeleteReservationRequest name
+ */
+
+ /**
+ * Constructs a new DeleteReservationRequest.
+ * @memberof google.cloud.bigquery.reservation.v1
+ * @classdesc Represents a DeleteReservationRequest.
+ * @implements IDeleteReservationRequest
+ * @constructor
+ * @param {google.cloud.bigquery.reservation.v1.IDeleteReservationRequest=} [properties] Properties to set
+ */
+ function DeleteReservationRequest(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]];
+ }
+
+ /**
+ * DeleteReservationRequest name.
+ * @member {string} name
+ * @memberof google.cloud.bigquery.reservation.v1.DeleteReservationRequest
+ * @instance
+ */
+ DeleteReservationRequest.prototype.name = "";
+
+ /**
+ * Creates a new DeleteReservationRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.bigquery.reservation.v1.DeleteReservationRequest
+ * @static
+ * @param {google.cloud.bigquery.reservation.v1.IDeleteReservationRequest=} [properties] Properties to set
+ * @returns {google.cloud.bigquery.reservation.v1.DeleteReservationRequest} DeleteReservationRequest instance
+ */
+ DeleteReservationRequest.create = function create(properties) {
+ return new DeleteReservationRequest(properties);
+ };
+
+ /**
+ * Encodes the specified DeleteReservationRequest message. Does not implicitly {@link google.cloud.bigquery.reservation.v1.DeleteReservationRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.bigquery.reservation.v1.DeleteReservationRequest
+ * @static
+ * @param {google.cloud.bigquery.reservation.v1.IDeleteReservationRequest} message DeleteReservationRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ DeleteReservationRequest.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 DeleteReservationRequest message, length delimited. Does not implicitly {@link google.cloud.bigquery.reservation.v1.DeleteReservationRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.bigquery.reservation.v1.DeleteReservationRequest
+ * @static
+ * @param {google.cloud.bigquery.reservation.v1.IDeleteReservationRequest} message DeleteReservationRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ DeleteReservationRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a DeleteReservationRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.bigquery.reservation.v1.DeleteReservationRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.bigquery.reservation.v1.DeleteReservationRequest} DeleteReservationRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ DeleteReservationRequest.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.bigquery.reservation.v1.DeleteReservationRequest();
+ 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 DeleteReservationRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.bigquery.reservation.v1.DeleteReservationRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.bigquery.reservation.v1.DeleteReservationRequest} DeleteReservationRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ DeleteReservationRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a DeleteReservationRequest message.
+ * @function verify
+ * @memberof google.cloud.bigquery.reservation.v1.DeleteReservationRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ DeleteReservationRequest.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 DeleteReservationRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.bigquery.reservation.v1.DeleteReservationRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.bigquery.reservation.v1.DeleteReservationRequest} DeleteReservationRequest
+ */
+ DeleteReservationRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.bigquery.reservation.v1.DeleteReservationRequest)
+ return object;
+ var message = new $root.google.cloud.bigquery.reservation.v1.DeleteReservationRequest();
+ if (object.name != null)
+ message.name = String(object.name);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a DeleteReservationRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.bigquery.reservation.v1.DeleteReservationRequest
+ * @static
+ * @param {google.cloud.bigquery.reservation.v1.DeleteReservationRequest} message DeleteReservationRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ DeleteReservationRequest.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 DeleteReservationRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.bigquery.reservation.v1.DeleteReservationRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ DeleteReservationRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for DeleteReservationRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.bigquery.reservation.v1.DeleteReservationRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ DeleteReservationRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.bigquery.reservation.v1.DeleteReservationRequest";
+ };
+
+ return DeleteReservationRequest;
+ })();
+
+ v1.UpdateReservationRequest = (function() {
+
+ /**
+ * Properties of an UpdateReservationRequest.
+ * @memberof google.cloud.bigquery.reservation.v1
+ * @interface IUpdateReservationRequest
+ * @property {google.cloud.bigquery.reservation.v1.IReservation|null} [reservation] UpdateReservationRequest reservation
+ * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateReservationRequest updateMask
+ */
+
+ /**
+ * Constructs a new UpdateReservationRequest.
+ * @memberof google.cloud.bigquery.reservation.v1
+ * @classdesc Represents an UpdateReservationRequest.
+ * @implements IUpdateReservationRequest
+ * @constructor
+ * @param {google.cloud.bigquery.reservation.v1.IUpdateReservationRequest=} [properties] Properties to set
+ */
+ function UpdateReservationRequest(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]];
+ }
+
+ /**
+ * UpdateReservationRequest reservation.
+ * @member {google.cloud.bigquery.reservation.v1.IReservation|null|undefined} reservation
+ * @memberof google.cloud.bigquery.reservation.v1.UpdateReservationRequest
+ * @instance
+ */
+ UpdateReservationRequest.prototype.reservation = null;
+
+ /**
+ * UpdateReservationRequest updateMask.
+ * @member {google.protobuf.IFieldMask|null|undefined} updateMask
+ * @memberof google.cloud.bigquery.reservation.v1.UpdateReservationRequest
+ * @instance
+ */
+ UpdateReservationRequest.prototype.updateMask = null;
+
+ /**
+ * Creates a new UpdateReservationRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.bigquery.reservation.v1.UpdateReservationRequest
+ * @static
+ * @param {google.cloud.bigquery.reservation.v1.IUpdateReservationRequest=} [properties] Properties to set
+ * @returns {google.cloud.bigquery.reservation.v1.UpdateReservationRequest} UpdateReservationRequest instance
+ */
+ UpdateReservationRequest.create = function create(properties) {
+ return new UpdateReservationRequest(properties);
+ };
+
+ /**
+ * Encodes the specified UpdateReservationRequest message. Does not implicitly {@link google.cloud.bigquery.reservation.v1.UpdateReservationRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.bigquery.reservation.v1.UpdateReservationRequest
+ * @static
+ * @param {google.cloud.bigquery.reservation.v1.IUpdateReservationRequest} message UpdateReservationRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ UpdateReservationRequest.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.reservation != null && Object.hasOwnProperty.call(message, "reservation"))
+ $root.google.cloud.bigquery.reservation.v1.Reservation.encode(message.reservation, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
+ if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask"))
+ $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified UpdateReservationRequest message, length delimited. Does not implicitly {@link google.cloud.bigquery.reservation.v1.UpdateReservationRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.bigquery.reservation.v1.UpdateReservationRequest
+ * @static
+ * @param {google.cloud.bigquery.reservation.v1.IUpdateReservationRequest} message UpdateReservationRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ UpdateReservationRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes an UpdateReservationRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.bigquery.reservation.v1.UpdateReservationRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.bigquery.reservation.v1.UpdateReservationRequest} UpdateReservationRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ UpdateReservationRequest.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.bigquery.reservation.v1.UpdateReservationRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.reservation = $root.google.cloud.bigquery.reservation.v1.Reservation.decode(reader, reader.uint32());
+ break;
+ }
+ case 2: {
+ message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an UpdateReservationRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.bigquery.reservation.v1.UpdateReservationRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.bigquery.reservation.v1.UpdateReservationRequest} UpdateReservationRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ UpdateReservationRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an UpdateReservationRequest message.
+ * @function verify
+ * @memberof google.cloud.bigquery.reservation.v1.UpdateReservationRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ UpdateReservationRequest.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.reservation != null && message.hasOwnProperty("reservation")) {
+ var error = $root.google.cloud.bigquery.reservation.v1.Reservation.verify(message.reservation);
+ if (error)
+ return "reservation." + 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 UpdateReservationRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.bigquery.reservation.v1.UpdateReservationRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.bigquery.reservation.v1.UpdateReservationRequest} UpdateReservationRequest
+ */
+ UpdateReservationRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.bigquery.reservation.v1.UpdateReservationRequest)
+ return object;
+ var message = new $root.google.cloud.bigquery.reservation.v1.UpdateReservationRequest();
+ if (object.reservation != null) {
+ if (typeof object.reservation !== "object")
+ throw TypeError(".google.cloud.bigquery.reservation.v1.UpdateReservationRequest.reservation: object expected");
+ message.reservation = $root.google.cloud.bigquery.reservation.v1.Reservation.fromObject(object.reservation);
+ }
+ if (object.updateMask != null) {
+ if (typeof object.updateMask !== "object")
+ throw TypeError(".google.cloud.bigquery.reservation.v1.UpdateReservationRequest.updateMask: object expected");
+ message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an UpdateReservationRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.bigquery.reservation.v1.UpdateReservationRequest
+ * @static
+ * @param {google.cloud.bigquery.reservation.v1.UpdateReservationRequest} message UpdateReservationRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ UpdateReservationRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.reservation = null;
+ object.updateMask = null;
+ }
+ if (message.reservation != null && message.hasOwnProperty("reservation"))
+ object.reservation = $root.google.cloud.bigquery.reservation.v1.Reservation.toObject(message.reservation, options);
+ if (message.updateMask != null && message.hasOwnProperty("updateMask"))
+ object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options);
+ return object;
+ };
+
+ /**
+ * Converts this UpdateReservationRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.bigquery.reservation.v1.UpdateReservationRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ UpdateReservationRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for UpdateReservationRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.bigquery.reservation.v1.UpdateReservationRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ UpdateReservationRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.bigquery.reservation.v1.UpdateReservationRequest";
+ };
+
+ return UpdateReservationRequest;
+ })();
+
+ v1.CreateCapacityCommitmentRequest = (function() {
+
+ /**
+ * Properties of a CreateCapacityCommitmentRequest.
+ * @memberof google.cloud.bigquery.reservation.v1
+ * @interface ICreateCapacityCommitmentRequest
+ * @property {string|null} [parent] CreateCapacityCommitmentRequest parent
+ * @property {google.cloud.bigquery.reservation.v1.ICapacityCommitment|null} [capacityCommitment] CreateCapacityCommitmentRequest capacityCommitment
+ * @property {boolean|null} [enforceSingleAdminProjectPerOrg] CreateCapacityCommitmentRequest enforceSingleAdminProjectPerOrg
+ * @property {string|null} [capacityCommitmentId] CreateCapacityCommitmentRequest capacityCommitmentId
+ */
+
+ /**
+ * Constructs a new CreateCapacityCommitmentRequest.
+ * @memberof google.cloud.bigquery.reservation.v1
+ * @classdesc Represents a CreateCapacityCommitmentRequest.
+ * @implements ICreateCapacityCommitmentRequest
+ * @constructor
+ * @param {google.cloud.bigquery.reservation.v1.ICreateCapacityCommitmentRequest=} [properties] Properties to set
+ */
+ function CreateCapacityCommitmentRequest(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]];
+ }
+
+ /**
+ * CreateCapacityCommitmentRequest parent.
+ * @member {string} parent
+ * @memberof google.cloud.bigquery.reservation.v1.CreateCapacityCommitmentRequest
+ * @instance
+ */
+ CreateCapacityCommitmentRequest.prototype.parent = "";
+
+ /**
+ * CreateCapacityCommitmentRequest capacityCommitment.
+ * @member {google.cloud.bigquery.reservation.v1.ICapacityCommitment|null|undefined} capacityCommitment
+ * @memberof google.cloud.bigquery.reservation.v1.CreateCapacityCommitmentRequest
+ * @instance
+ */
+ CreateCapacityCommitmentRequest.prototype.capacityCommitment = null;
+
+ /**
+ * CreateCapacityCommitmentRequest enforceSingleAdminProjectPerOrg.
+ * @member {boolean} enforceSingleAdminProjectPerOrg
+ * @memberof google.cloud.bigquery.reservation.v1.CreateCapacityCommitmentRequest
+ * @instance
+ */
+ CreateCapacityCommitmentRequest.prototype.enforceSingleAdminProjectPerOrg = false;
+
+ /**
+ * CreateCapacityCommitmentRequest capacityCommitmentId.
+ * @member {string} capacityCommitmentId
+ * @memberof google.cloud.bigquery.reservation.v1.CreateCapacityCommitmentRequest
+ * @instance
+ */
+ CreateCapacityCommitmentRequest.prototype.capacityCommitmentId = "";
+
+ /**
+ * Creates a new CreateCapacityCommitmentRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.bigquery.reservation.v1.CreateCapacityCommitmentRequest
+ * @static
+ * @param {google.cloud.bigquery.reservation.v1.ICreateCapacityCommitmentRequest=} [properties] Properties to set
+ * @returns {google.cloud.bigquery.reservation.v1.CreateCapacityCommitmentRequest} CreateCapacityCommitmentRequest instance
+ */
+ CreateCapacityCommitmentRequest.create = function create(properties) {
+ return new CreateCapacityCommitmentRequest(properties);
+ };
+
+ /**
+ * Encodes the specified CreateCapacityCommitmentRequest message. Does not implicitly {@link google.cloud.bigquery.reservation.v1.CreateCapacityCommitmentRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.bigquery.reservation.v1.CreateCapacityCommitmentRequest
+ * @static
+ * @param {google.cloud.bigquery.reservation.v1.ICreateCapacityCommitmentRequest} message CreateCapacityCommitmentRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ CreateCapacityCommitmentRequest.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.capacityCommitment != null && Object.hasOwnProperty.call(message, "capacityCommitment"))
+ $root.google.cloud.bigquery.reservation.v1.CapacityCommitment.encode(message.capacityCommitment, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
+ if (message.enforceSingleAdminProjectPerOrg != null && Object.hasOwnProperty.call(message, "enforceSingleAdminProjectPerOrg"))
+ writer.uint32(/* id 4, wireType 0 =*/32).bool(message.enforceSingleAdminProjectPerOrg);
+ if (message.capacityCommitmentId != null && Object.hasOwnProperty.call(message, "capacityCommitmentId"))
+ writer.uint32(/* id 5, wireType 2 =*/42).string(message.capacityCommitmentId);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified CreateCapacityCommitmentRequest message, length delimited. Does not implicitly {@link google.cloud.bigquery.reservation.v1.CreateCapacityCommitmentRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.bigquery.reservation.v1.CreateCapacityCommitmentRequest
+ * @static
+ * @param {google.cloud.bigquery.reservation.v1.ICreateCapacityCommitmentRequest} message CreateCapacityCommitmentRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ CreateCapacityCommitmentRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a CreateCapacityCommitmentRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.bigquery.reservation.v1.CreateCapacityCommitmentRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.bigquery.reservation.v1.CreateCapacityCommitmentRequest} CreateCapacityCommitmentRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ CreateCapacityCommitmentRequest.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.bigquery.reservation.v1.CreateCapacityCommitmentRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.parent = reader.string();
+ break;
+ }
+ case 2: {
+ message.capacityCommitment = $root.google.cloud.bigquery.reservation.v1.CapacityCommitment.decode(reader, reader.uint32());
+ break;
+ }
+ case 4: {
+ message.enforceSingleAdminProjectPerOrg = reader.bool();
+ break;
+ }
+ case 5: {
+ message.capacityCommitmentId = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a CreateCapacityCommitmentRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.bigquery.reservation.v1.CreateCapacityCommitmentRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.bigquery.reservation.v1.CreateCapacityCommitmentRequest} CreateCapacityCommitmentRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ CreateCapacityCommitmentRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a CreateCapacityCommitmentRequest message.
+ * @function verify
+ * @memberof google.cloud.bigquery.reservation.v1.CreateCapacityCommitmentRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ CreateCapacityCommitmentRequest.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.capacityCommitment != null && message.hasOwnProperty("capacityCommitment")) {
+ var error = $root.google.cloud.bigquery.reservation.v1.CapacityCommitment.verify(message.capacityCommitment);
+ if (error)
+ return "capacityCommitment." + error;
+ }
+ if (message.enforceSingleAdminProjectPerOrg != null && message.hasOwnProperty("enforceSingleAdminProjectPerOrg"))
+ if (typeof message.enforceSingleAdminProjectPerOrg !== "boolean")
+ return "enforceSingleAdminProjectPerOrg: boolean expected";
+ if (message.capacityCommitmentId != null && message.hasOwnProperty("capacityCommitmentId"))
+ if (!$util.isString(message.capacityCommitmentId))
+ return "capacityCommitmentId: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a CreateCapacityCommitmentRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.bigquery.reservation.v1.CreateCapacityCommitmentRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.bigquery.reservation.v1.CreateCapacityCommitmentRequest} CreateCapacityCommitmentRequest
+ */
+ CreateCapacityCommitmentRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.bigquery.reservation.v1.CreateCapacityCommitmentRequest)
+ return object;
+ var message = new $root.google.cloud.bigquery.reservation.v1.CreateCapacityCommitmentRequest();
+ if (object.parent != null)
+ message.parent = String(object.parent);
+ if (object.capacityCommitment != null) {
+ if (typeof object.capacityCommitment !== "object")
+ throw TypeError(".google.cloud.bigquery.reservation.v1.CreateCapacityCommitmentRequest.capacityCommitment: object expected");
+ message.capacityCommitment = $root.google.cloud.bigquery.reservation.v1.CapacityCommitment.fromObject(object.capacityCommitment);
+ }
+ if (object.enforceSingleAdminProjectPerOrg != null)
+ message.enforceSingleAdminProjectPerOrg = Boolean(object.enforceSingleAdminProjectPerOrg);
+ if (object.capacityCommitmentId != null)
+ message.capacityCommitmentId = String(object.capacityCommitmentId);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a CreateCapacityCommitmentRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.bigquery.reservation.v1.CreateCapacityCommitmentRequest
+ * @static
+ * @param {google.cloud.bigquery.reservation.v1.CreateCapacityCommitmentRequest} message CreateCapacityCommitmentRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ CreateCapacityCommitmentRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.parent = "";
+ object.capacityCommitment = null;
+ object.enforceSingleAdminProjectPerOrg = false;
+ object.capacityCommitmentId = "";
+ }
+ if (message.parent != null && message.hasOwnProperty("parent"))
+ object.parent = message.parent;
+ if (message.capacityCommitment != null && message.hasOwnProperty("capacityCommitment"))
+ object.capacityCommitment = $root.google.cloud.bigquery.reservation.v1.CapacityCommitment.toObject(message.capacityCommitment, options);
+ if (message.enforceSingleAdminProjectPerOrg != null && message.hasOwnProperty("enforceSingleAdminProjectPerOrg"))
+ object.enforceSingleAdminProjectPerOrg = message.enforceSingleAdminProjectPerOrg;
+ if (message.capacityCommitmentId != null && message.hasOwnProperty("capacityCommitmentId"))
+ object.capacityCommitmentId = message.capacityCommitmentId;
+ return object;
+ };
+
+ /**
+ * Converts this CreateCapacityCommitmentRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.bigquery.reservation.v1.CreateCapacityCommitmentRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ CreateCapacityCommitmentRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for CreateCapacityCommitmentRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.bigquery.reservation.v1.CreateCapacityCommitmentRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ CreateCapacityCommitmentRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.bigquery.reservation.v1.CreateCapacityCommitmentRequest";
+ };
+
+ return CreateCapacityCommitmentRequest;
+ })();
+
+ v1.ListCapacityCommitmentsRequest = (function() {
+
+ /**
+ * Properties of a ListCapacityCommitmentsRequest.
+ * @memberof google.cloud.bigquery.reservation.v1
+ * @interface IListCapacityCommitmentsRequest
+ * @property {string|null} [parent] ListCapacityCommitmentsRequest parent
+ * @property {number|null} [pageSize] ListCapacityCommitmentsRequest pageSize
+ * @property {string|null} [pageToken] ListCapacityCommitmentsRequest pageToken
+ */
+
+ /**
+ * Constructs a new ListCapacityCommitmentsRequest.
+ * @memberof google.cloud.bigquery.reservation.v1
+ * @classdesc Represents a ListCapacityCommitmentsRequest.
+ * @implements IListCapacityCommitmentsRequest
+ * @constructor
+ * @param {google.cloud.bigquery.reservation.v1.IListCapacityCommitmentsRequest=} [properties] Properties to set
+ */
+ function ListCapacityCommitmentsRequest(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]];
+ }
+
+ /**
+ * ListCapacityCommitmentsRequest parent.
+ * @member {string} parent
+ * @memberof google.cloud.bigquery.reservation.v1.ListCapacityCommitmentsRequest
+ * @instance
+ */
+ ListCapacityCommitmentsRequest.prototype.parent = "";
+
+ /**
+ * ListCapacityCommitmentsRequest pageSize.
+ * @member {number} pageSize
+ * @memberof google.cloud.bigquery.reservation.v1.ListCapacityCommitmentsRequest
+ * @instance
+ */
+ ListCapacityCommitmentsRequest.prototype.pageSize = 0;
+
+ /**
+ * ListCapacityCommitmentsRequest pageToken.
+ * @member {string} pageToken
+ * @memberof google.cloud.bigquery.reservation.v1.ListCapacityCommitmentsRequest
+ * @instance
+ */
+ ListCapacityCommitmentsRequest.prototype.pageToken = "";
+
+ /**
+ * Creates a new ListCapacityCommitmentsRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.bigquery.reservation.v1.ListCapacityCommitmentsRequest
+ * @static
+ * @param {google.cloud.bigquery.reservation.v1.IListCapacityCommitmentsRequest=} [properties] Properties to set
+ * @returns {google.cloud.bigquery.reservation.v1.ListCapacityCommitmentsRequest} ListCapacityCommitmentsRequest instance
+ */
+ ListCapacityCommitmentsRequest.create = function create(properties) {
+ return new ListCapacityCommitmentsRequest(properties);
+ };
+
+ /**
+ * Encodes the specified ListCapacityCommitmentsRequest message. Does not implicitly {@link google.cloud.bigquery.reservation.v1.ListCapacityCommitmentsRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.bigquery.reservation.v1.ListCapacityCommitmentsRequest
+ * @static
+ * @param {google.cloud.bigquery.reservation.v1.IListCapacityCommitmentsRequest} message ListCapacityCommitmentsRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListCapacityCommitmentsRequest.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 ListCapacityCommitmentsRequest message, length delimited. Does not implicitly {@link google.cloud.bigquery.reservation.v1.ListCapacityCommitmentsRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.bigquery.reservation.v1.ListCapacityCommitmentsRequest
+ * @static
+ * @param {google.cloud.bigquery.reservation.v1.IListCapacityCommitmentsRequest} message ListCapacityCommitmentsRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListCapacityCommitmentsRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ListCapacityCommitmentsRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.bigquery.reservation.v1.ListCapacityCommitmentsRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.bigquery.reservation.v1.ListCapacityCommitmentsRequest} ListCapacityCommitmentsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListCapacityCommitmentsRequest.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.bigquery.reservation.v1.ListCapacityCommitmentsRequest();
+ 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 ListCapacityCommitmentsRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.bigquery.reservation.v1.ListCapacityCommitmentsRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.bigquery.reservation.v1.ListCapacityCommitmentsRequest} ListCapacityCommitmentsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListCapacityCommitmentsRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ListCapacityCommitmentsRequest message.
+ * @function verify
+ * @memberof google.cloud.bigquery.reservation.v1.ListCapacityCommitmentsRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ListCapacityCommitmentsRequest.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 ListCapacityCommitmentsRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.bigquery.reservation.v1.ListCapacityCommitmentsRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.bigquery.reservation.v1.ListCapacityCommitmentsRequest} ListCapacityCommitmentsRequest
+ */
+ ListCapacityCommitmentsRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.bigquery.reservation.v1.ListCapacityCommitmentsRequest)
+ return object;
+ var message = new $root.google.cloud.bigquery.reservation.v1.ListCapacityCommitmentsRequest();
+ 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 ListCapacityCommitmentsRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.bigquery.reservation.v1.ListCapacityCommitmentsRequest
+ * @static
+ * @param {google.cloud.bigquery.reservation.v1.ListCapacityCommitmentsRequest} message ListCapacityCommitmentsRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ListCapacityCommitmentsRequest.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 ListCapacityCommitmentsRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.bigquery.reservation.v1.ListCapacityCommitmentsRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ListCapacityCommitmentsRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ListCapacityCommitmentsRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.bigquery.reservation.v1.ListCapacityCommitmentsRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ListCapacityCommitmentsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.bigquery.reservation.v1.ListCapacityCommitmentsRequest";
+ };
+
+ return ListCapacityCommitmentsRequest;
+ })();
+
+ v1.ListCapacityCommitmentsResponse = (function() {
+
+ /**
+ * Properties of a ListCapacityCommitmentsResponse.
+ * @memberof google.cloud.bigquery.reservation.v1
+ * @interface IListCapacityCommitmentsResponse
+ * @property {Array.|null} [capacityCommitments] ListCapacityCommitmentsResponse capacityCommitments
+ * @property {string|null} [nextPageToken] ListCapacityCommitmentsResponse nextPageToken
+ */
+
+ /**
+ * Constructs a new ListCapacityCommitmentsResponse.
+ * @memberof google.cloud.bigquery.reservation.v1
+ * @classdesc Represents a ListCapacityCommitmentsResponse.
+ * @implements IListCapacityCommitmentsResponse
+ * @constructor
+ * @param {google.cloud.bigquery.reservation.v1.IListCapacityCommitmentsResponse=} [properties] Properties to set
+ */
+ function ListCapacityCommitmentsResponse(properties) {
+ this.capacityCommitments = [];
+ 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]];
+ }
+
+ /**
+ * ListCapacityCommitmentsResponse capacityCommitments.
+ * @member {Array.} capacityCommitments
+ * @memberof google.cloud.bigquery.reservation.v1.ListCapacityCommitmentsResponse
+ * @instance
+ */
+ ListCapacityCommitmentsResponse.prototype.capacityCommitments = $util.emptyArray;
+
+ /**
+ * ListCapacityCommitmentsResponse nextPageToken.
+ * @member {string} nextPageToken
+ * @memberof google.cloud.bigquery.reservation.v1.ListCapacityCommitmentsResponse
+ * @instance
+ */
+ ListCapacityCommitmentsResponse.prototype.nextPageToken = "";
+
+ /**
+ * Creates a new ListCapacityCommitmentsResponse instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.bigquery.reservation.v1.ListCapacityCommitmentsResponse
+ * @static
+ * @param {google.cloud.bigquery.reservation.v1.IListCapacityCommitmentsResponse=} [properties] Properties to set
+ * @returns {google.cloud.bigquery.reservation.v1.ListCapacityCommitmentsResponse} ListCapacityCommitmentsResponse instance
+ */
+ ListCapacityCommitmentsResponse.create = function create(properties) {
+ return new ListCapacityCommitmentsResponse(properties);
+ };
+
+ /**
+ * Encodes the specified ListCapacityCommitmentsResponse message. Does not implicitly {@link google.cloud.bigquery.reservation.v1.ListCapacityCommitmentsResponse.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.bigquery.reservation.v1.ListCapacityCommitmentsResponse
+ * @static
+ * @param {google.cloud.bigquery.reservation.v1.IListCapacityCommitmentsResponse} message ListCapacityCommitmentsResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListCapacityCommitmentsResponse.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.capacityCommitments != null && message.capacityCommitments.length)
+ for (var i = 0; i < message.capacityCommitments.length; ++i)
+ $root.google.cloud.bigquery.reservation.v1.CapacityCommitment.encode(message.capacityCommitments[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 ListCapacityCommitmentsResponse message, length delimited. Does not implicitly {@link google.cloud.bigquery.reservation.v1.ListCapacityCommitmentsResponse.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.bigquery.reservation.v1.ListCapacityCommitmentsResponse
+ * @static
+ * @param {google.cloud.bigquery.reservation.v1.IListCapacityCommitmentsResponse} message ListCapacityCommitmentsResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListCapacityCommitmentsResponse.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ListCapacityCommitmentsResponse message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.bigquery.reservation.v1.ListCapacityCommitmentsResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.bigquery.reservation.v1.ListCapacityCommitmentsResponse} ListCapacityCommitmentsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListCapacityCommitmentsResponse.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.bigquery.reservation.v1.ListCapacityCommitmentsResponse();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ if (!(message.capacityCommitments && message.capacityCommitments.length))
+ message.capacityCommitments = [];
+ message.capacityCommitments.push($root.google.cloud.bigquery.reservation.v1.CapacityCommitment.decode(reader, reader.uint32()));
+ break;
+ }
+ case 2: {
+ message.nextPageToken = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ListCapacityCommitmentsResponse message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.bigquery.reservation.v1.ListCapacityCommitmentsResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.bigquery.reservation.v1.ListCapacityCommitmentsResponse} ListCapacityCommitmentsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListCapacityCommitmentsResponse.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ListCapacityCommitmentsResponse message.
+ * @function verify
+ * @memberof google.cloud.bigquery.reservation.v1.ListCapacityCommitmentsResponse
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ListCapacityCommitmentsResponse.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.capacityCommitments != null && message.hasOwnProperty("capacityCommitments")) {
+ if (!Array.isArray(message.capacityCommitments))
+ return "capacityCommitments: array expected";
+ for (var i = 0; i < message.capacityCommitments.length; ++i) {
+ var error = $root.google.cloud.bigquery.reservation.v1.CapacityCommitment.verify(message.capacityCommitments[i]);
+ if (error)
+ return "capacityCommitments." + error;
+ }
+ }
+ if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken"))
+ if (!$util.isString(message.nextPageToken))
+ return "nextPageToken: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a ListCapacityCommitmentsResponse message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.bigquery.reservation.v1.ListCapacityCommitmentsResponse
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.bigquery.reservation.v1.ListCapacityCommitmentsResponse} ListCapacityCommitmentsResponse
+ */
+ ListCapacityCommitmentsResponse.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.bigquery.reservation.v1.ListCapacityCommitmentsResponse)
+ return object;
+ var message = new $root.google.cloud.bigquery.reservation.v1.ListCapacityCommitmentsResponse();
+ if (object.capacityCommitments) {
+ if (!Array.isArray(object.capacityCommitments))
+ throw TypeError(".google.cloud.bigquery.reservation.v1.ListCapacityCommitmentsResponse.capacityCommitments: array expected");
+ message.capacityCommitments = [];
+ for (var i = 0; i < object.capacityCommitments.length; ++i) {
+ if (typeof object.capacityCommitments[i] !== "object")
+ throw TypeError(".google.cloud.bigquery.reservation.v1.ListCapacityCommitmentsResponse.capacityCommitments: object expected");
+ message.capacityCommitments[i] = $root.google.cloud.bigquery.reservation.v1.CapacityCommitment.fromObject(object.capacityCommitments[i]);
+ }
+ }
+ if (object.nextPageToken != null)
+ message.nextPageToken = String(object.nextPageToken);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ListCapacityCommitmentsResponse message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.bigquery.reservation.v1.ListCapacityCommitmentsResponse
+ * @static
+ * @param {google.cloud.bigquery.reservation.v1.ListCapacityCommitmentsResponse} message ListCapacityCommitmentsResponse
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ListCapacityCommitmentsResponse.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.capacityCommitments = [];
+ if (options.defaults)
+ object.nextPageToken = "";
+ if (message.capacityCommitments && message.capacityCommitments.length) {
+ object.capacityCommitments = [];
+ for (var j = 0; j < message.capacityCommitments.length; ++j)
+ object.capacityCommitments[j] = $root.google.cloud.bigquery.reservation.v1.CapacityCommitment.toObject(message.capacityCommitments[j], options);
+ }
+ if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken"))
+ object.nextPageToken = message.nextPageToken;
+ return object;
+ };
+
+ /**
+ * Converts this ListCapacityCommitmentsResponse to JSON.
+ * @function toJSON
+ * @memberof google.cloud.bigquery.reservation.v1.ListCapacityCommitmentsResponse
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ListCapacityCommitmentsResponse.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ListCapacityCommitmentsResponse
+ * @function getTypeUrl
+ * @memberof google.cloud.bigquery.reservation.v1.ListCapacityCommitmentsResponse
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ListCapacityCommitmentsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.bigquery.reservation.v1.ListCapacityCommitmentsResponse";
+ };
+
+ return ListCapacityCommitmentsResponse;
+ })();
+
+ v1.GetCapacityCommitmentRequest = (function() {
+
+ /**
+ * Properties of a GetCapacityCommitmentRequest.
+ * @memberof google.cloud.bigquery.reservation.v1
+ * @interface IGetCapacityCommitmentRequest
+ * @property {string|null} [name] GetCapacityCommitmentRequest name
+ */
+
+ /**
+ * Constructs a new GetCapacityCommitmentRequest.
+ * @memberof google.cloud.bigquery.reservation.v1
+ * @classdesc Represents a GetCapacityCommitmentRequest.
+ * @implements IGetCapacityCommitmentRequest
+ * @constructor
+ * @param {google.cloud.bigquery.reservation.v1.IGetCapacityCommitmentRequest=} [properties] Properties to set
+ */
+ function GetCapacityCommitmentRequest(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]];
+ }
+
+ /**
+ * GetCapacityCommitmentRequest name.
+ * @member {string} name
+ * @memberof google.cloud.bigquery.reservation.v1.GetCapacityCommitmentRequest
+ * @instance
+ */
+ GetCapacityCommitmentRequest.prototype.name = "";
+
+ /**
+ * Creates a new GetCapacityCommitmentRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.bigquery.reservation.v1.GetCapacityCommitmentRequest
+ * @static
+ * @param {google.cloud.bigquery.reservation.v1.IGetCapacityCommitmentRequest=} [properties] Properties to set
+ * @returns {google.cloud.bigquery.reservation.v1.GetCapacityCommitmentRequest} GetCapacityCommitmentRequest instance
+ */
+ GetCapacityCommitmentRequest.create = function create(properties) {
+ return new GetCapacityCommitmentRequest(properties);
+ };
+
+ /**
+ * Encodes the specified GetCapacityCommitmentRequest message. Does not implicitly {@link google.cloud.bigquery.reservation.v1.GetCapacityCommitmentRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.bigquery.reservation.v1.GetCapacityCommitmentRequest
+ * @static
+ * @param {google.cloud.bigquery.reservation.v1.IGetCapacityCommitmentRequest} message GetCapacityCommitmentRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GetCapacityCommitmentRequest.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 GetCapacityCommitmentRequest message, length delimited. Does not implicitly {@link google.cloud.bigquery.reservation.v1.GetCapacityCommitmentRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.bigquery.reservation.v1.GetCapacityCommitmentRequest
+ * @static
+ * @param {google.cloud.bigquery.reservation.v1.IGetCapacityCommitmentRequest} message GetCapacityCommitmentRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GetCapacityCommitmentRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a GetCapacityCommitmentRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.bigquery.reservation.v1.GetCapacityCommitmentRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.bigquery.reservation.v1.GetCapacityCommitmentRequest} GetCapacityCommitmentRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GetCapacityCommitmentRequest.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.bigquery.reservation.v1.GetCapacityCommitmentRequest();
+ 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 GetCapacityCommitmentRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.bigquery.reservation.v1.GetCapacityCommitmentRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.bigquery.reservation.v1.GetCapacityCommitmentRequest} GetCapacityCommitmentRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GetCapacityCommitmentRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a GetCapacityCommitmentRequest message.
+ * @function verify
+ * @memberof google.cloud.bigquery.reservation.v1.GetCapacityCommitmentRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ GetCapacityCommitmentRequest.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 GetCapacityCommitmentRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.bigquery.reservation.v1.GetCapacityCommitmentRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.bigquery.reservation.v1.GetCapacityCommitmentRequest} GetCapacityCommitmentRequest
+ */
+ GetCapacityCommitmentRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.bigquery.reservation.v1.GetCapacityCommitmentRequest)
+ return object;
+ var message = new $root.google.cloud.bigquery.reservation.v1.GetCapacityCommitmentRequest();
+ if (object.name != null)
+ message.name = String(object.name);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a GetCapacityCommitmentRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.bigquery.reservation.v1.GetCapacityCommitmentRequest
+ * @static
+ * @param {google.cloud.bigquery.reservation.v1.GetCapacityCommitmentRequest} message GetCapacityCommitmentRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ GetCapacityCommitmentRequest.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 GetCapacityCommitmentRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.bigquery.reservation.v1.GetCapacityCommitmentRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ GetCapacityCommitmentRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for GetCapacityCommitmentRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.bigquery.reservation.v1.GetCapacityCommitmentRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ GetCapacityCommitmentRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.bigquery.reservation.v1.GetCapacityCommitmentRequest";
+ };
+
+ return GetCapacityCommitmentRequest;
+ })();
+
+ v1.DeleteCapacityCommitmentRequest = (function() {
+
+ /**
+ * Properties of a DeleteCapacityCommitmentRequest.
+ * @memberof google.cloud.bigquery.reservation.v1
+ * @interface IDeleteCapacityCommitmentRequest
+ * @property {string|null} [name] DeleteCapacityCommitmentRequest name
+ * @property {boolean|null} [force] DeleteCapacityCommitmentRequest force
+ */
+
+ /**
+ * Constructs a new DeleteCapacityCommitmentRequest.
+ * @memberof google.cloud.bigquery.reservation.v1
+ * @classdesc Represents a DeleteCapacityCommitmentRequest.
+ * @implements IDeleteCapacityCommitmentRequest
+ * @constructor
+ * @param {google.cloud.bigquery.reservation.v1.IDeleteCapacityCommitmentRequest=} [properties] Properties to set
+ */
+ function DeleteCapacityCommitmentRequest(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]];
+ }
+
+ /**
+ * DeleteCapacityCommitmentRequest name.
+ * @member {string} name
+ * @memberof google.cloud.bigquery.reservation.v1.DeleteCapacityCommitmentRequest
+ * @instance
+ */
+ DeleteCapacityCommitmentRequest.prototype.name = "";
+
+ /**
+ * DeleteCapacityCommitmentRequest force.
+ * @member {boolean} force
+ * @memberof google.cloud.bigquery.reservation.v1.DeleteCapacityCommitmentRequest
+ * @instance
+ */
+ DeleteCapacityCommitmentRequest.prototype.force = false;
+
+ /**
+ * Creates a new DeleteCapacityCommitmentRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.bigquery.reservation.v1.DeleteCapacityCommitmentRequest
+ * @static
+ * @param {google.cloud.bigquery.reservation.v1.IDeleteCapacityCommitmentRequest=} [properties] Properties to set
+ * @returns {google.cloud.bigquery.reservation.v1.DeleteCapacityCommitmentRequest} DeleteCapacityCommitmentRequest instance
+ */
+ DeleteCapacityCommitmentRequest.create = function create(properties) {
+ return new DeleteCapacityCommitmentRequest(properties);
+ };
+
+ /**
+ * Encodes the specified DeleteCapacityCommitmentRequest message. Does not implicitly {@link google.cloud.bigquery.reservation.v1.DeleteCapacityCommitmentRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.bigquery.reservation.v1.DeleteCapacityCommitmentRequest
+ * @static
+ * @param {google.cloud.bigquery.reservation.v1.IDeleteCapacityCommitmentRequest} message DeleteCapacityCommitmentRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ DeleteCapacityCommitmentRequest.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.force != null && Object.hasOwnProperty.call(message, "force"))
+ writer.uint32(/* id 3, wireType 0 =*/24).bool(message.force);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified DeleteCapacityCommitmentRequest message, length delimited. Does not implicitly {@link google.cloud.bigquery.reservation.v1.DeleteCapacityCommitmentRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.bigquery.reservation.v1.DeleteCapacityCommitmentRequest
+ * @static
+ * @param {google.cloud.bigquery.reservation.v1.IDeleteCapacityCommitmentRequest} message DeleteCapacityCommitmentRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ DeleteCapacityCommitmentRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a DeleteCapacityCommitmentRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.bigquery.reservation.v1.DeleteCapacityCommitmentRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.bigquery.reservation.v1.DeleteCapacityCommitmentRequest} DeleteCapacityCommitmentRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ DeleteCapacityCommitmentRequest.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.bigquery.reservation.v1.DeleteCapacityCommitmentRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.name = reader.string();
+ break;
+ }
+ case 3: {
+ message.force = reader.bool();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a DeleteCapacityCommitmentRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.bigquery.reservation.v1.DeleteCapacityCommitmentRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.bigquery.reservation.v1.DeleteCapacityCommitmentRequest} DeleteCapacityCommitmentRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ DeleteCapacityCommitmentRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a DeleteCapacityCommitmentRequest message.
+ * @function verify
+ * @memberof google.cloud.bigquery.reservation.v1.DeleteCapacityCommitmentRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ DeleteCapacityCommitmentRequest.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.force != null && message.hasOwnProperty("force"))
+ if (typeof message.force !== "boolean")
+ return "force: boolean expected";
+ return null;
+ };
+
+ /**
+ * Creates a DeleteCapacityCommitmentRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.bigquery.reservation.v1.DeleteCapacityCommitmentRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.bigquery.reservation.v1.DeleteCapacityCommitmentRequest} DeleteCapacityCommitmentRequest
+ */
+ DeleteCapacityCommitmentRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.bigquery.reservation.v1.DeleteCapacityCommitmentRequest)
+ return object;
+ var message = new $root.google.cloud.bigquery.reservation.v1.DeleteCapacityCommitmentRequest();
+ if (object.name != null)
+ message.name = String(object.name);
+ if (object.force != null)
+ message.force = Boolean(object.force);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a DeleteCapacityCommitmentRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.bigquery.reservation.v1.DeleteCapacityCommitmentRequest
+ * @static
+ * @param {google.cloud.bigquery.reservation.v1.DeleteCapacityCommitmentRequest} message DeleteCapacityCommitmentRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ DeleteCapacityCommitmentRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.name = "";
+ object.force = false;
+ }
+ if (message.name != null && message.hasOwnProperty("name"))
+ object.name = message.name;
+ if (message.force != null && message.hasOwnProperty("force"))
+ object.force = message.force;
+ return object;
+ };
+
+ /**
+ * Converts this DeleteCapacityCommitmentRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.bigquery.reservation.v1.DeleteCapacityCommitmentRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ DeleteCapacityCommitmentRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for DeleteCapacityCommitmentRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.bigquery.reservation.v1.DeleteCapacityCommitmentRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ DeleteCapacityCommitmentRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.bigquery.reservation.v1.DeleteCapacityCommitmentRequest";
+ };
+
+ return DeleteCapacityCommitmentRequest;
+ })();
+
+ v1.UpdateCapacityCommitmentRequest = (function() {
+
+ /**
+ * Properties of an UpdateCapacityCommitmentRequest.
+ * @memberof google.cloud.bigquery.reservation.v1
+ * @interface IUpdateCapacityCommitmentRequest
+ * @property {google.cloud.bigquery.reservation.v1.ICapacityCommitment|null} [capacityCommitment] UpdateCapacityCommitmentRequest capacityCommitment
+ * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateCapacityCommitmentRequest updateMask
+ */
+
+ /**
+ * Constructs a new UpdateCapacityCommitmentRequest.
+ * @memberof google.cloud.bigquery.reservation.v1
+ * @classdesc Represents an UpdateCapacityCommitmentRequest.
+ * @implements IUpdateCapacityCommitmentRequest
+ * @constructor
+ * @param {google.cloud.bigquery.reservation.v1.IUpdateCapacityCommitmentRequest=} [properties] Properties to set
+ */
+ function UpdateCapacityCommitmentRequest(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]];
+ }
+
+ /**
+ * UpdateCapacityCommitmentRequest capacityCommitment.
+ * @member {google.cloud.bigquery.reservation.v1.ICapacityCommitment|null|undefined} capacityCommitment
+ * @memberof google.cloud.bigquery.reservation.v1.UpdateCapacityCommitmentRequest
+ * @instance
+ */
+ UpdateCapacityCommitmentRequest.prototype.capacityCommitment = null;
+
+ /**
+ * UpdateCapacityCommitmentRequest updateMask.
+ * @member {google.protobuf.IFieldMask|null|undefined} updateMask
+ * @memberof google.cloud.bigquery.reservation.v1.UpdateCapacityCommitmentRequest
+ * @instance
+ */
+ UpdateCapacityCommitmentRequest.prototype.updateMask = null;
+
+ /**
+ * Creates a new UpdateCapacityCommitmentRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.bigquery.reservation.v1.UpdateCapacityCommitmentRequest
+ * @static
+ * @param {google.cloud.bigquery.reservation.v1.IUpdateCapacityCommitmentRequest=} [properties] Properties to set
+ * @returns {google.cloud.bigquery.reservation.v1.UpdateCapacityCommitmentRequest} UpdateCapacityCommitmentRequest instance
+ */
+ UpdateCapacityCommitmentRequest.create = function create(properties) {
+ return new UpdateCapacityCommitmentRequest(properties);
+ };
+
+ /**
+ * Encodes the specified UpdateCapacityCommitmentRequest message. Does not implicitly {@link google.cloud.bigquery.reservation.v1.UpdateCapacityCommitmentRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.bigquery.reservation.v1.UpdateCapacityCommitmentRequest
+ * @static
+ * @param {google.cloud.bigquery.reservation.v1.IUpdateCapacityCommitmentRequest} message UpdateCapacityCommitmentRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ UpdateCapacityCommitmentRequest.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.capacityCommitment != null && Object.hasOwnProperty.call(message, "capacityCommitment"))
+ $root.google.cloud.bigquery.reservation.v1.CapacityCommitment.encode(message.capacityCommitment, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
+ if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask"))
+ $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified UpdateCapacityCommitmentRequest message, length delimited. Does not implicitly {@link google.cloud.bigquery.reservation.v1.UpdateCapacityCommitmentRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.bigquery.reservation.v1.UpdateCapacityCommitmentRequest
+ * @static
+ * @param {google.cloud.bigquery.reservation.v1.IUpdateCapacityCommitmentRequest} message UpdateCapacityCommitmentRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ UpdateCapacityCommitmentRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes an UpdateCapacityCommitmentRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.bigquery.reservation.v1.UpdateCapacityCommitmentRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.bigquery.reservation.v1.UpdateCapacityCommitmentRequest} UpdateCapacityCommitmentRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ UpdateCapacityCommitmentRequest.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.bigquery.reservation.v1.UpdateCapacityCommitmentRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.capacityCommitment = $root.google.cloud.bigquery.reservation.v1.CapacityCommitment.decode(reader, reader.uint32());
+ break;
+ }
+ case 2: {
+ message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an UpdateCapacityCommitmentRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.bigquery.reservation.v1.UpdateCapacityCommitmentRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.bigquery.reservation.v1.UpdateCapacityCommitmentRequest} UpdateCapacityCommitmentRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ UpdateCapacityCommitmentRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an UpdateCapacityCommitmentRequest message.
+ * @function verify
+ * @memberof google.cloud.bigquery.reservation.v1.UpdateCapacityCommitmentRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ UpdateCapacityCommitmentRequest.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.capacityCommitment != null && message.hasOwnProperty("capacityCommitment")) {
+ var error = $root.google.cloud.bigquery.reservation.v1.CapacityCommitment.verify(message.capacityCommitment);
+ if (error)
+ return "capacityCommitment." + 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 UpdateCapacityCommitmentRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.bigquery.reservation.v1.UpdateCapacityCommitmentRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.bigquery.reservation.v1.UpdateCapacityCommitmentRequest} UpdateCapacityCommitmentRequest
+ */
+ UpdateCapacityCommitmentRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.bigquery.reservation.v1.UpdateCapacityCommitmentRequest)
+ return object;
+ var message = new $root.google.cloud.bigquery.reservation.v1.UpdateCapacityCommitmentRequest();
+ if (object.capacityCommitment != null) {
+ if (typeof object.capacityCommitment !== "object")
+ throw TypeError(".google.cloud.bigquery.reservation.v1.UpdateCapacityCommitmentRequest.capacityCommitment: object expected");
+ message.capacityCommitment = $root.google.cloud.bigquery.reservation.v1.CapacityCommitment.fromObject(object.capacityCommitment);
+ }
+ if (object.updateMask != null) {
+ if (typeof object.updateMask !== "object")
+ throw TypeError(".google.cloud.bigquery.reservation.v1.UpdateCapacityCommitmentRequest.updateMask: object expected");
+ message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an UpdateCapacityCommitmentRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.bigquery.reservation.v1.UpdateCapacityCommitmentRequest
+ * @static
+ * @param {google.cloud.bigquery.reservation.v1.UpdateCapacityCommitmentRequest} message UpdateCapacityCommitmentRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ UpdateCapacityCommitmentRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.capacityCommitment = null;
+ object.updateMask = null;
+ }
+ if (message.capacityCommitment != null && message.hasOwnProperty("capacityCommitment"))
+ object.capacityCommitment = $root.google.cloud.bigquery.reservation.v1.CapacityCommitment.toObject(message.capacityCommitment, options);
+ if (message.updateMask != null && message.hasOwnProperty("updateMask"))
+ object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options);
+ return object;
+ };
+
+ /**
+ * Converts this UpdateCapacityCommitmentRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.bigquery.reservation.v1.UpdateCapacityCommitmentRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ UpdateCapacityCommitmentRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for UpdateCapacityCommitmentRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.bigquery.reservation.v1.UpdateCapacityCommitmentRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ UpdateCapacityCommitmentRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.bigquery.reservation.v1.UpdateCapacityCommitmentRequest";
+ };
+
+ return UpdateCapacityCommitmentRequest;
+ })();
+
+ v1.SplitCapacityCommitmentRequest = (function() {
+
+ /**
+ * Properties of a SplitCapacityCommitmentRequest.
+ * @memberof google.cloud.bigquery.reservation.v1
+ * @interface ISplitCapacityCommitmentRequest
+ * @property {string|null} [name] SplitCapacityCommitmentRequest name
+ * @property {number|Long|null} [slotCount] SplitCapacityCommitmentRequest slotCount
+ */
+
+ /**
+ * Constructs a new SplitCapacityCommitmentRequest.
+ * @memberof google.cloud.bigquery.reservation.v1
+ * @classdesc Represents a SplitCapacityCommitmentRequest.
+ * @implements ISplitCapacityCommitmentRequest
+ * @constructor
+ * @param {google.cloud.bigquery.reservation.v1.ISplitCapacityCommitmentRequest=} [properties] Properties to set
+ */
+ function SplitCapacityCommitmentRequest(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]];
+ }
+
+ /**
+ * SplitCapacityCommitmentRequest name.
+ * @member {string} name
+ * @memberof google.cloud.bigquery.reservation.v1.SplitCapacityCommitmentRequest
+ * @instance
+ */
+ SplitCapacityCommitmentRequest.prototype.name = "";
+
+ /**
+ * SplitCapacityCommitmentRequest slotCount.
+ * @member {number|Long} slotCount
+ * @memberof google.cloud.bigquery.reservation.v1.SplitCapacityCommitmentRequest
+ * @instance
+ */
+ SplitCapacityCommitmentRequest.prototype.slotCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
+
+ /**
+ * Creates a new SplitCapacityCommitmentRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.bigquery.reservation.v1.SplitCapacityCommitmentRequest
+ * @static
+ * @param {google.cloud.bigquery.reservation.v1.ISplitCapacityCommitmentRequest=} [properties] Properties to set
+ * @returns {google.cloud.bigquery.reservation.v1.SplitCapacityCommitmentRequest} SplitCapacityCommitmentRequest instance
+ */
+ SplitCapacityCommitmentRequest.create = function create(properties) {
+ return new SplitCapacityCommitmentRequest(properties);
+ };
+
+ /**
+ * Encodes the specified SplitCapacityCommitmentRequest message. Does not implicitly {@link google.cloud.bigquery.reservation.v1.SplitCapacityCommitmentRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.bigquery.reservation.v1.SplitCapacityCommitmentRequest
+ * @static
+ * @param {google.cloud.bigquery.reservation.v1.ISplitCapacityCommitmentRequest} message SplitCapacityCommitmentRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ SplitCapacityCommitmentRequest.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.slotCount != null && Object.hasOwnProperty.call(message, "slotCount"))
+ writer.uint32(/* id 2, wireType 0 =*/16).int64(message.slotCount);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified SplitCapacityCommitmentRequest message, length delimited. Does not implicitly {@link google.cloud.bigquery.reservation.v1.SplitCapacityCommitmentRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.bigquery.reservation.v1.SplitCapacityCommitmentRequest
+ * @static
+ * @param {google.cloud.bigquery.reservation.v1.ISplitCapacityCommitmentRequest} message SplitCapacityCommitmentRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ SplitCapacityCommitmentRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a SplitCapacityCommitmentRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.bigquery.reservation.v1.SplitCapacityCommitmentRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.bigquery.reservation.v1.SplitCapacityCommitmentRequest} SplitCapacityCommitmentRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ SplitCapacityCommitmentRequest.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.bigquery.reservation.v1.SplitCapacityCommitmentRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.name = reader.string();
+ break;
+ }
+ case 2: {
+ message.slotCount = reader.int64();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a SplitCapacityCommitmentRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.bigquery.reservation.v1.SplitCapacityCommitmentRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.bigquery.reservation.v1.SplitCapacityCommitmentRequest} SplitCapacityCommitmentRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ SplitCapacityCommitmentRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a SplitCapacityCommitmentRequest message.
+ * @function verify
+ * @memberof google.cloud.bigquery.reservation.v1.SplitCapacityCommitmentRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ SplitCapacityCommitmentRequest.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.slotCount != null && message.hasOwnProperty("slotCount"))
+ if (!$util.isInteger(message.slotCount) && !(message.slotCount && $util.isInteger(message.slotCount.low) && $util.isInteger(message.slotCount.high)))
+ return "slotCount: integer|Long expected";
+ return null;
+ };
+
+ /**
+ * Creates a SplitCapacityCommitmentRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.bigquery.reservation.v1.SplitCapacityCommitmentRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.bigquery.reservation.v1.SplitCapacityCommitmentRequest} SplitCapacityCommitmentRequest
+ */
+ SplitCapacityCommitmentRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.bigquery.reservation.v1.SplitCapacityCommitmentRequest)
+ return object;
+ var message = new $root.google.cloud.bigquery.reservation.v1.SplitCapacityCommitmentRequest();
+ if (object.name != null)
+ message.name = String(object.name);
+ if (object.slotCount != null)
+ if ($util.Long)
+ (message.slotCount = $util.Long.fromValue(object.slotCount)).unsigned = false;
+ else if (typeof object.slotCount === "string")
+ message.slotCount = parseInt(object.slotCount, 10);
+ else if (typeof object.slotCount === "number")
+ message.slotCount = object.slotCount;
+ else if (typeof object.slotCount === "object")
+ message.slotCount = new $util.LongBits(object.slotCount.low >>> 0, object.slotCount.high >>> 0).toNumber();
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a SplitCapacityCommitmentRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.bigquery.reservation.v1.SplitCapacityCommitmentRequest
+ * @static
+ * @param {google.cloud.bigquery.reservation.v1.SplitCapacityCommitmentRequest} message SplitCapacityCommitmentRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ SplitCapacityCommitmentRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.name = "";
+ if ($util.Long) {
+ var long = new $util.Long(0, 0, false);
+ object.slotCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
+ } else
+ object.slotCount = options.longs === String ? "0" : 0;
+ }
+ if (message.name != null && message.hasOwnProperty("name"))
+ object.name = message.name;
+ if (message.slotCount != null && message.hasOwnProperty("slotCount"))
+ if (typeof message.slotCount === "number")
+ object.slotCount = options.longs === String ? String(message.slotCount) : message.slotCount;
+ else
+ object.slotCount = options.longs === String ? $util.Long.prototype.toString.call(message.slotCount) : options.longs === Number ? new $util.LongBits(message.slotCount.low >>> 0, message.slotCount.high >>> 0).toNumber() : message.slotCount;
+ return object;
+ };
+
+ /**
+ * Converts this SplitCapacityCommitmentRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.bigquery.reservation.v1.SplitCapacityCommitmentRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ SplitCapacityCommitmentRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for SplitCapacityCommitmentRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.bigquery.reservation.v1.SplitCapacityCommitmentRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ SplitCapacityCommitmentRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.bigquery.reservation.v1.SplitCapacityCommitmentRequest";
+ };
+
+ return SplitCapacityCommitmentRequest;
+ })();
+
+ v1.SplitCapacityCommitmentResponse = (function() {
+
+ /**
+ * Properties of a SplitCapacityCommitmentResponse.
+ * @memberof google.cloud.bigquery.reservation.v1
+ * @interface ISplitCapacityCommitmentResponse
+ * @property {google.cloud.bigquery.reservation.v1.ICapacityCommitment|null} [first] SplitCapacityCommitmentResponse first
+ * @property {google.cloud.bigquery.reservation.v1.ICapacityCommitment|null} [second] SplitCapacityCommitmentResponse second
+ */
+
+ /**
+ * Constructs a new SplitCapacityCommitmentResponse.
+ * @memberof google.cloud.bigquery.reservation.v1
+ * @classdesc Represents a SplitCapacityCommitmentResponse.
+ * @implements ISplitCapacityCommitmentResponse
+ * @constructor
+ * @param {google.cloud.bigquery.reservation.v1.ISplitCapacityCommitmentResponse=} [properties] Properties to set
+ */
+ function SplitCapacityCommitmentResponse(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]];
+ }
+
+ /**
+ * SplitCapacityCommitmentResponse first.
+ * @member {google.cloud.bigquery.reservation.v1.ICapacityCommitment|null|undefined} first
+ * @memberof google.cloud.bigquery.reservation.v1.SplitCapacityCommitmentResponse
+ * @instance
+ */
+ SplitCapacityCommitmentResponse.prototype.first = null;
+
+ /**
+ * SplitCapacityCommitmentResponse second.
+ * @member {google.cloud.bigquery.reservation.v1.ICapacityCommitment|null|undefined} second
+ * @memberof google.cloud.bigquery.reservation.v1.SplitCapacityCommitmentResponse
+ * @instance
+ */
+ SplitCapacityCommitmentResponse.prototype.second = null;
+
+ /**
+ * Creates a new SplitCapacityCommitmentResponse instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.bigquery.reservation.v1.SplitCapacityCommitmentResponse
+ * @static
+ * @param {google.cloud.bigquery.reservation.v1.ISplitCapacityCommitmentResponse=} [properties] Properties to set
+ * @returns {google.cloud.bigquery.reservation.v1.SplitCapacityCommitmentResponse} SplitCapacityCommitmentResponse instance
+ */
+ SplitCapacityCommitmentResponse.create = function create(properties) {
+ return new SplitCapacityCommitmentResponse(properties);
+ };
+
+ /**
+ * Encodes the specified SplitCapacityCommitmentResponse message. Does not implicitly {@link google.cloud.bigquery.reservation.v1.SplitCapacityCommitmentResponse.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.bigquery.reservation.v1.SplitCapacityCommitmentResponse
+ * @static
+ * @param {google.cloud.bigquery.reservation.v1.ISplitCapacityCommitmentResponse} message SplitCapacityCommitmentResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ SplitCapacityCommitmentResponse.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.first != null && Object.hasOwnProperty.call(message, "first"))
+ $root.google.cloud.bigquery.reservation.v1.CapacityCommitment.encode(message.first, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
+ if (message.second != null && Object.hasOwnProperty.call(message, "second"))
+ $root.google.cloud.bigquery.reservation.v1.CapacityCommitment.encode(message.second, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified SplitCapacityCommitmentResponse message, length delimited. Does not implicitly {@link google.cloud.bigquery.reservation.v1.SplitCapacityCommitmentResponse.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.bigquery.reservation.v1.SplitCapacityCommitmentResponse
+ * @static
+ * @param {google.cloud.bigquery.reservation.v1.ISplitCapacityCommitmentResponse} message SplitCapacityCommitmentResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ SplitCapacityCommitmentResponse.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a SplitCapacityCommitmentResponse message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.bigquery.reservation.v1.SplitCapacityCommitmentResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.bigquery.reservation.v1.SplitCapacityCommitmentResponse} SplitCapacityCommitmentResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ SplitCapacityCommitmentResponse.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.bigquery.reservation.v1.SplitCapacityCommitmentResponse();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.first = $root.google.cloud.bigquery.reservation.v1.CapacityCommitment.decode(reader, reader.uint32());
+ break;
+ }
+ case 2: {
+ message.second = $root.google.cloud.bigquery.reservation.v1.CapacityCommitment.decode(reader, reader.uint32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a SplitCapacityCommitmentResponse message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.bigquery.reservation.v1.SplitCapacityCommitmentResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.bigquery.reservation.v1.SplitCapacityCommitmentResponse} SplitCapacityCommitmentResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ SplitCapacityCommitmentResponse.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a SplitCapacityCommitmentResponse message.
+ * @function verify
+ * @memberof google.cloud.bigquery.reservation.v1.SplitCapacityCommitmentResponse
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ SplitCapacityCommitmentResponse.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.first != null && message.hasOwnProperty("first")) {
+ var error = $root.google.cloud.bigquery.reservation.v1.CapacityCommitment.verify(message.first);
+ if (error)
+ return "first." + error;
+ }
+ if (message.second != null && message.hasOwnProperty("second")) {
+ var error = $root.google.cloud.bigquery.reservation.v1.CapacityCommitment.verify(message.second);
+ if (error)
+ return "second." + error;
+ }
+ return null;
+ };
+
+ /**
+ * Creates a SplitCapacityCommitmentResponse message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.bigquery.reservation.v1.SplitCapacityCommitmentResponse
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.bigquery.reservation.v1.SplitCapacityCommitmentResponse} SplitCapacityCommitmentResponse
+ */
+ SplitCapacityCommitmentResponse.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.bigquery.reservation.v1.SplitCapacityCommitmentResponse)
+ return object;
+ var message = new $root.google.cloud.bigquery.reservation.v1.SplitCapacityCommitmentResponse();
+ if (object.first != null) {
+ if (typeof object.first !== "object")
+ throw TypeError(".google.cloud.bigquery.reservation.v1.SplitCapacityCommitmentResponse.first: object expected");
+ message.first = $root.google.cloud.bigquery.reservation.v1.CapacityCommitment.fromObject(object.first);
+ }
+ if (object.second != null) {
+ if (typeof object.second !== "object")
+ throw TypeError(".google.cloud.bigquery.reservation.v1.SplitCapacityCommitmentResponse.second: object expected");
+ message.second = $root.google.cloud.bigquery.reservation.v1.CapacityCommitment.fromObject(object.second);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a SplitCapacityCommitmentResponse message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.bigquery.reservation.v1.SplitCapacityCommitmentResponse
+ * @static
+ * @param {google.cloud.bigquery.reservation.v1.SplitCapacityCommitmentResponse} message SplitCapacityCommitmentResponse
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ SplitCapacityCommitmentResponse.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.first = null;
+ object.second = null;
+ }
+ if (message.first != null && message.hasOwnProperty("first"))
+ object.first = $root.google.cloud.bigquery.reservation.v1.CapacityCommitment.toObject(message.first, options);
+ if (message.second != null && message.hasOwnProperty("second"))
+ object.second = $root.google.cloud.bigquery.reservation.v1.CapacityCommitment.toObject(message.second, options);
+ return object;
+ };
+
+ /**
+ * Converts this SplitCapacityCommitmentResponse to JSON.
+ * @function toJSON
+ * @memberof google.cloud.bigquery.reservation.v1.SplitCapacityCommitmentResponse
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ SplitCapacityCommitmentResponse.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for SplitCapacityCommitmentResponse
+ * @function getTypeUrl
+ * @memberof google.cloud.bigquery.reservation.v1.SplitCapacityCommitmentResponse
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ SplitCapacityCommitmentResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.bigquery.reservation.v1.SplitCapacityCommitmentResponse";
+ };
+
+ return SplitCapacityCommitmentResponse;
+ })();
+
+ v1.MergeCapacityCommitmentsRequest = (function() {
+
+ /**
+ * Properties of a MergeCapacityCommitmentsRequest.
+ * @memberof google.cloud.bigquery.reservation.v1
+ * @interface IMergeCapacityCommitmentsRequest
+ * @property {string|null} [parent] MergeCapacityCommitmentsRequest parent
+ * @property {Array.|null} [capacityCommitmentIds] MergeCapacityCommitmentsRequest capacityCommitmentIds
+ */
+
+ /**
+ * Constructs a new MergeCapacityCommitmentsRequest.
+ * @memberof google.cloud.bigquery.reservation.v1
+ * @classdesc Represents a MergeCapacityCommitmentsRequest.
+ * @implements IMergeCapacityCommitmentsRequest
+ * @constructor
+ * @param {google.cloud.bigquery.reservation.v1.IMergeCapacityCommitmentsRequest=} [properties] Properties to set
+ */
+ function MergeCapacityCommitmentsRequest(properties) {
+ this.capacityCommitmentIds = [];
+ 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]];
+ }
+
+ /**
+ * MergeCapacityCommitmentsRequest parent.
+ * @member {string} parent
+ * @memberof google.cloud.bigquery.reservation.v1.MergeCapacityCommitmentsRequest
+ * @instance
+ */
+ MergeCapacityCommitmentsRequest.prototype.parent = "";
+
+ /**
+ * MergeCapacityCommitmentsRequest capacityCommitmentIds.
+ * @member {Array.} capacityCommitmentIds
+ * @memberof google.cloud.bigquery.reservation.v1.MergeCapacityCommitmentsRequest
+ * @instance
+ */
+ MergeCapacityCommitmentsRequest.prototype.capacityCommitmentIds = $util.emptyArray;
+
+ /**
+ * Creates a new MergeCapacityCommitmentsRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.bigquery.reservation.v1.MergeCapacityCommitmentsRequest
+ * @static
+ * @param {google.cloud.bigquery.reservation.v1.IMergeCapacityCommitmentsRequest=} [properties] Properties to set
+ * @returns {google.cloud.bigquery.reservation.v1.MergeCapacityCommitmentsRequest} MergeCapacityCommitmentsRequest instance
+ */
+ MergeCapacityCommitmentsRequest.create = function create(properties) {
+ return new MergeCapacityCommitmentsRequest(properties);
+ };
+
+ /**
+ * Encodes the specified MergeCapacityCommitmentsRequest message. Does not implicitly {@link google.cloud.bigquery.reservation.v1.MergeCapacityCommitmentsRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.bigquery.reservation.v1.MergeCapacityCommitmentsRequest
+ * @static
+ * @param {google.cloud.bigquery.reservation.v1.IMergeCapacityCommitmentsRequest} message MergeCapacityCommitmentsRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ MergeCapacityCommitmentsRequest.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.capacityCommitmentIds != null && message.capacityCommitmentIds.length)
+ for (var i = 0; i < message.capacityCommitmentIds.length; ++i)
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.capacityCommitmentIds[i]);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified MergeCapacityCommitmentsRequest message, length delimited. Does not implicitly {@link google.cloud.bigquery.reservation.v1.MergeCapacityCommitmentsRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.bigquery.reservation.v1.MergeCapacityCommitmentsRequest
+ * @static
+ * @param {google.cloud.bigquery.reservation.v1.IMergeCapacityCommitmentsRequest} message MergeCapacityCommitmentsRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ MergeCapacityCommitmentsRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a MergeCapacityCommitmentsRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.bigquery.reservation.v1.MergeCapacityCommitmentsRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.bigquery.reservation.v1.MergeCapacityCommitmentsRequest} MergeCapacityCommitmentsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ MergeCapacityCommitmentsRequest.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.bigquery.reservation.v1.MergeCapacityCommitmentsRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.parent = reader.string();
+ break;
+ }
+ case 2: {
+ if (!(message.capacityCommitmentIds && message.capacityCommitmentIds.length))
+ message.capacityCommitmentIds = [];
+ message.capacityCommitmentIds.push(reader.string());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a MergeCapacityCommitmentsRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.bigquery.reservation.v1.MergeCapacityCommitmentsRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.bigquery.reservation.v1.MergeCapacityCommitmentsRequest} MergeCapacityCommitmentsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ MergeCapacityCommitmentsRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a MergeCapacityCommitmentsRequest message.
+ * @function verify
+ * @memberof google.cloud.bigquery.reservation.v1.MergeCapacityCommitmentsRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ MergeCapacityCommitmentsRequest.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.capacityCommitmentIds != null && message.hasOwnProperty("capacityCommitmentIds")) {
+ if (!Array.isArray(message.capacityCommitmentIds))
+ return "capacityCommitmentIds: array expected";
+ for (var i = 0; i < message.capacityCommitmentIds.length; ++i)
+ if (!$util.isString(message.capacityCommitmentIds[i]))
+ return "capacityCommitmentIds: string[] expected";
+ }
+ return null;
+ };
+
+ /**
+ * Creates a MergeCapacityCommitmentsRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.bigquery.reservation.v1.MergeCapacityCommitmentsRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.bigquery.reservation.v1.MergeCapacityCommitmentsRequest} MergeCapacityCommitmentsRequest
+ */
+ MergeCapacityCommitmentsRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.bigquery.reservation.v1.MergeCapacityCommitmentsRequest)
+ return object;
+ var message = new $root.google.cloud.bigquery.reservation.v1.MergeCapacityCommitmentsRequest();
+ if (object.parent != null)
+ message.parent = String(object.parent);
+ if (object.capacityCommitmentIds) {
+ if (!Array.isArray(object.capacityCommitmentIds))
+ throw TypeError(".google.cloud.bigquery.reservation.v1.MergeCapacityCommitmentsRequest.capacityCommitmentIds: array expected");
+ message.capacityCommitmentIds = [];
+ for (var i = 0; i < object.capacityCommitmentIds.length; ++i)
+ message.capacityCommitmentIds[i] = String(object.capacityCommitmentIds[i]);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a MergeCapacityCommitmentsRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.bigquery.reservation.v1.MergeCapacityCommitmentsRequest
+ * @static
+ * @param {google.cloud.bigquery.reservation.v1.MergeCapacityCommitmentsRequest} message MergeCapacityCommitmentsRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ MergeCapacityCommitmentsRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.capacityCommitmentIds = [];
+ if (options.defaults)
+ object.parent = "";
+ if (message.parent != null && message.hasOwnProperty("parent"))
+ object.parent = message.parent;
+ if (message.capacityCommitmentIds && message.capacityCommitmentIds.length) {
+ object.capacityCommitmentIds = [];
+ for (var j = 0; j < message.capacityCommitmentIds.length; ++j)
+ object.capacityCommitmentIds[j] = message.capacityCommitmentIds[j];
+ }
+ return object;
+ };
+
+ /**
+ * Converts this MergeCapacityCommitmentsRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.bigquery.reservation.v1.MergeCapacityCommitmentsRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ MergeCapacityCommitmentsRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for MergeCapacityCommitmentsRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.bigquery.reservation.v1.MergeCapacityCommitmentsRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ MergeCapacityCommitmentsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.bigquery.reservation.v1.MergeCapacityCommitmentsRequest";
+ };
+
+ return MergeCapacityCommitmentsRequest;
+ })();
+
+ v1.Assignment = (function() {
+
+ /**
+ * Properties of an Assignment.
+ * @memberof google.cloud.bigquery.reservation.v1
+ * @interface IAssignment
+ * @property {string|null} [name] Assignment name
+ * @property {string|null} [assignee] Assignment assignee
+ * @property {google.cloud.bigquery.reservation.v1.Assignment.JobType|null} [jobType] Assignment jobType
+ * @property {google.cloud.bigquery.reservation.v1.Assignment.State|null} [state] Assignment state
+ */
+
+ /**
+ * Constructs a new Assignment.
+ * @memberof google.cloud.bigquery.reservation.v1
+ * @classdesc Represents an Assignment.
+ * @implements IAssignment
+ * @constructor
+ * @param {google.cloud.bigquery.reservation.v1.IAssignment=} [properties] Properties to set
+ */
+ function Assignment(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]];
+ }
+
+ /**
+ * Assignment name.
+ * @member {string} name
+ * @memberof google.cloud.bigquery.reservation.v1.Assignment
+ * @instance
+ */
+ Assignment.prototype.name = "";
+
+ /**
+ * Assignment assignee.
+ * @member {string} assignee
+ * @memberof google.cloud.bigquery.reservation.v1.Assignment
+ * @instance
+ */
+ Assignment.prototype.assignee = "";
+
+ /**
+ * Assignment jobType.
+ * @member {google.cloud.bigquery.reservation.v1.Assignment.JobType} jobType
+ * @memberof google.cloud.bigquery.reservation.v1.Assignment
+ * @instance
+ */
+ Assignment.prototype.jobType = 0;
+
+ /**
+ * Assignment state.
+ * @member {google.cloud.bigquery.reservation.v1.Assignment.State} state
+ * @memberof google.cloud.bigquery.reservation.v1.Assignment
+ * @instance
+ */
+ Assignment.prototype.state = 0;
+
+ /**
+ * Creates a new Assignment instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.bigquery.reservation.v1.Assignment
+ * @static
+ * @param {google.cloud.bigquery.reservation.v1.IAssignment=} [properties] Properties to set
+ * @returns {google.cloud.bigquery.reservation.v1.Assignment} Assignment instance
+ */
+ Assignment.create = function create(properties) {
+ return new Assignment(properties);
+ };
+
+ /**
+ * Encodes the specified Assignment message. Does not implicitly {@link google.cloud.bigquery.reservation.v1.Assignment.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.bigquery.reservation.v1.Assignment
+ * @static
+ * @param {google.cloud.bigquery.reservation.v1.IAssignment} message Assignment message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Assignment.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.jobType != null && Object.hasOwnProperty.call(message, "jobType"))
+ writer.uint32(/* id 3, wireType 0 =*/24).int32(message.jobType);
+ if (message.assignee != null && Object.hasOwnProperty.call(message, "assignee"))
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.assignee);
+ if (message.state != null && Object.hasOwnProperty.call(message, "state"))
+ writer.uint32(/* id 6, wireType 0 =*/48).int32(message.state);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified Assignment message, length delimited. Does not implicitly {@link google.cloud.bigquery.reservation.v1.Assignment.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.bigquery.reservation.v1.Assignment
+ * @static
+ * @param {google.cloud.bigquery.reservation.v1.IAssignment} message Assignment message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Assignment.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes an Assignment message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.bigquery.reservation.v1.Assignment
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.bigquery.reservation.v1.Assignment} Assignment
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Assignment.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.bigquery.reservation.v1.Assignment();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.name = reader.string();
+ break;
+ }
+ case 4: {
+ message.assignee = reader.string();
+ break;
+ }
+ case 3: {
+ message.jobType = reader.int32();
+ break;
+ }
+ case 6: {
+ message.state = reader.int32();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an Assignment message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.bigquery.reservation.v1.Assignment
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.bigquery.reservation.v1.Assignment} Assignment
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Assignment.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an Assignment message.
+ * @function verify
+ * @memberof google.cloud.bigquery.reservation.v1.Assignment
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ Assignment.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.assignee != null && message.hasOwnProperty("assignee"))
+ if (!$util.isString(message.assignee))
+ return "assignee: string expected";
+ if (message.jobType != null && message.hasOwnProperty("jobType"))
+ switch (message.jobType) {
+ default:
+ return "jobType: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ case 3:
+ break;
+ }
+ if (message.state != null && message.hasOwnProperty("state"))
+ switch (message.state) {
+ default:
+ return "state: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ break;
+ }
+ return null;
+ };
+
+ /**
+ * Creates an Assignment message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.bigquery.reservation.v1.Assignment
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.bigquery.reservation.v1.Assignment} Assignment
+ */
+ Assignment.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.bigquery.reservation.v1.Assignment)
+ return object;
+ var message = new $root.google.cloud.bigquery.reservation.v1.Assignment();
+ if (object.name != null)
+ message.name = String(object.name);
+ if (object.assignee != null)
+ message.assignee = String(object.assignee);
+ switch (object.jobType) {
+ case "JOB_TYPE_UNSPECIFIED":
+ case 0:
+ message.jobType = 0;
+ break;
+ case "PIPELINE":
+ case 1:
+ message.jobType = 1;
+ break;
+ case "QUERY":
+ case 2:
+ message.jobType = 2;
+ break;
+ case "ML_EXTERNAL":
+ case 3:
+ message.jobType = 3;
+ break;
+ }
+ switch (object.state) {
+ case "STATE_UNSPECIFIED":
+ case 0:
+ message.state = 0;
+ break;
+ case "PENDING":
+ case 1:
+ message.state = 1;
+ break;
+ case "ACTIVE":
+ case 2:
+ message.state = 2;
+ break;
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an Assignment message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.bigquery.reservation.v1.Assignment
+ * @static
+ * @param {google.cloud.bigquery.reservation.v1.Assignment} message Assignment
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ Assignment.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.name = "";
+ object.jobType = options.enums === String ? "JOB_TYPE_UNSPECIFIED" : 0;
+ object.assignee = "";
+ object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0;
+ }
+ if (message.name != null && message.hasOwnProperty("name"))
+ object.name = message.name;
+ if (message.jobType != null && message.hasOwnProperty("jobType"))
+ object.jobType = options.enums === String ? $root.google.cloud.bigquery.reservation.v1.Assignment.JobType[message.jobType] : message.jobType;
+ if (message.assignee != null && message.hasOwnProperty("assignee"))
+ object.assignee = message.assignee;
+ if (message.state != null && message.hasOwnProperty("state"))
+ object.state = options.enums === String ? $root.google.cloud.bigquery.reservation.v1.Assignment.State[message.state] : message.state;
+ return object;
+ };
+
+ /**
+ * Converts this Assignment to JSON.
+ * @function toJSON
+ * @memberof google.cloud.bigquery.reservation.v1.Assignment
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ Assignment.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for Assignment
+ * @function getTypeUrl
+ * @memberof google.cloud.bigquery.reservation.v1.Assignment
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ Assignment.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.bigquery.reservation.v1.Assignment";
+ };
+
+ /**
+ * JobType enum.
+ * @name google.cloud.bigquery.reservation.v1.Assignment.JobType
+ * @enum {number}
+ * @property {number} JOB_TYPE_UNSPECIFIED=0 JOB_TYPE_UNSPECIFIED value
+ * @property {number} PIPELINE=1 PIPELINE value
+ * @property {number} QUERY=2 QUERY value
+ * @property {number} ML_EXTERNAL=3 ML_EXTERNAL value
+ */
+ Assignment.JobType = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "JOB_TYPE_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "PIPELINE"] = 1;
+ values[valuesById[2] = "QUERY"] = 2;
+ values[valuesById[3] = "ML_EXTERNAL"] = 3;
+ return values;
+ })();
+
+ /**
+ * State enum.
+ * @name google.cloud.bigquery.reservation.v1.Assignment.State
+ * @enum {number}
+ * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value
+ * @property {number} PENDING=1 PENDING value
+ * @property {number} ACTIVE=2 ACTIVE value
+ */
+ Assignment.State = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "STATE_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "PENDING"] = 1;
+ values[valuesById[2] = "ACTIVE"] = 2;
+ return values;
+ })();
+
+ return Assignment;
+ })();
+
+ v1.CreateAssignmentRequest = (function() {
+
+ /**
+ * Properties of a CreateAssignmentRequest.
+ * @memberof google.cloud.bigquery.reservation.v1
+ * @interface ICreateAssignmentRequest
+ * @property {string|null} [parent] CreateAssignmentRequest parent
+ * @property {google.cloud.bigquery.reservation.v1.IAssignment|null} [assignment] CreateAssignmentRequest assignment
+ * @property {string|null} [assignmentId] CreateAssignmentRequest assignmentId
+ */
+
+ /**
+ * Constructs a new CreateAssignmentRequest.
+ * @memberof google.cloud.bigquery.reservation.v1
+ * @classdesc Represents a CreateAssignmentRequest.
+ * @implements ICreateAssignmentRequest
+ * @constructor
+ * @param {google.cloud.bigquery.reservation.v1.ICreateAssignmentRequest=} [properties] Properties to set
+ */
+ function CreateAssignmentRequest(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]];
+ }
+
+ /**
+ * CreateAssignmentRequest parent.
+ * @member {string} parent
+ * @memberof google.cloud.bigquery.reservation.v1.CreateAssignmentRequest
+ * @instance
+ */
+ CreateAssignmentRequest.prototype.parent = "";
+
+ /**
+ * CreateAssignmentRequest assignment.
+ * @member {google.cloud.bigquery.reservation.v1.IAssignment|null|undefined} assignment
+ * @memberof google.cloud.bigquery.reservation.v1.CreateAssignmentRequest
+ * @instance
+ */
+ CreateAssignmentRequest.prototype.assignment = null;
+
+ /**
+ * CreateAssignmentRequest assignmentId.
+ * @member {string} assignmentId
+ * @memberof google.cloud.bigquery.reservation.v1.CreateAssignmentRequest
+ * @instance
+ */
+ CreateAssignmentRequest.prototype.assignmentId = "";
+
+ /**
+ * Creates a new CreateAssignmentRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.bigquery.reservation.v1.CreateAssignmentRequest
+ * @static
+ * @param {google.cloud.bigquery.reservation.v1.ICreateAssignmentRequest=} [properties] Properties to set
+ * @returns {google.cloud.bigquery.reservation.v1.CreateAssignmentRequest} CreateAssignmentRequest instance
+ */
+ CreateAssignmentRequest.create = function create(properties) {
+ return new CreateAssignmentRequest(properties);
+ };
+
+ /**
+ * Encodes the specified CreateAssignmentRequest message. Does not implicitly {@link google.cloud.bigquery.reservation.v1.CreateAssignmentRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.bigquery.reservation.v1.CreateAssignmentRequest
+ * @static
+ * @param {google.cloud.bigquery.reservation.v1.ICreateAssignmentRequest} message CreateAssignmentRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ CreateAssignmentRequest.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.assignment != null && Object.hasOwnProperty.call(message, "assignment"))
+ $root.google.cloud.bigquery.reservation.v1.Assignment.encode(message.assignment, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
+ if (message.assignmentId != null && Object.hasOwnProperty.call(message, "assignmentId"))
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.assignmentId);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified CreateAssignmentRequest message, length delimited. Does not implicitly {@link google.cloud.bigquery.reservation.v1.CreateAssignmentRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.bigquery.reservation.v1.CreateAssignmentRequest
+ * @static
+ * @param {google.cloud.bigquery.reservation.v1.ICreateAssignmentRequest} message CreateAssignmentRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ CreateAssignmentRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a CreateAssignmentRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.bigquery.reservation.v1.CreateAssignmentRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.bigquery.reservation.v1.CreateAssignmentRequest} CreateAssignmentRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ CreateAssignmentRequest.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.bigquery.reservation.v1.CreateAssignmentRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.parent = reader.string();
+ break;
+ }
+ case 2: {
+ message.assignment = $root.google.cloud.bigquery.reservation.v1.Assignment.decode(reader, reader.uint32());
+ break;
+ }
+ case 4: {
+ message.assignmentId = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a CreateAssignmentRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.bigquery.reservation.v1.CreateAssignmentRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.bigquery.reservation.v1.CreateAssignmentRequest} CreateAssignmentRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ CreateAssignmentRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a CreateAssignmentRequest message.
+ * @function verify
+ * @memberof google.cloud.bigquery.reservation.v1.CreateAssignmentRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ CreateAssignmentRequest.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.assignment != null && message.hasOwnProperty("assignment")) {
+ var error = $root.google.cloud.bigquery.reservation.v1.Assignment.verify(message.assignment);
+ if (error)
+ return "assignment." + error;
+ }
+ if (message.assignmentId != null && message.hasOwnProperty("assignmentId"))
+ if (!$util.isString(message.assignmentId))
+ return "assignmentId: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a CreateAssignmentRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.bigquery.reservation.v1.CreateAssignmentRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.bigquery.reservation.v1.CreateAssignmentRequest} CreateAssignmentRequest
+ */
+ CreateAssignmentRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.bigquery.reservation.v1.CreateAssignmentRequest)
+ return object;
+ var message = new $root.google.cloud.bigquery.reservation.v1.CreateAssignmentRequest();
+ if (object.parent != null)
+ message.parent = String(object.parent);
+ if (object.assignment != null) {
+ if (typeof object.assignment !== "object")
+ throw TypeError(".google.cloud.bigquery.reservation.v1.CreateAssignmentRequest.assignment: object expected");
+ message.assignment = $root.google.cloud.bigquery.reservation.v1.Assignment.fromObject(object.assignment);
+ }
+ if (object.assignmentId != null)
+ message.assignmentId = String(object.assignmentId);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a CreateAssignmentRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.bigquery.reservation.v1.CreateAssignmentRequest
+ * @static
+ * @param {google.cloud.bigquery.reservation.v1.CreateAssignmentRequest} message CreateAssignmentRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ CreateAssignmentRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.parent = "";
+ object.assignment = null;
+ object.assignmentId = "";
+ }
+ if (message.parent != null && message.hasOwnProperty("parent"))
+ object.parent = message.parent;
+ if (message.assignment != null && message.hasOwnProperty("assignment"))
+ object.assignment = $root.google.cloud.bigquery.reservation.v1.Assignment.toObject(message.assignment, options);
+ if (message.assignmentId != null && message.hasOwnProperty("assignmentId"))
+ object.assignmentId = message.assignmentId;
+ return object;
+ };
+
+ /**
+ * Converts this CreateAssignmentRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.bigquery.reservation.v1.CreateAssignmentRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ CreateAssignmentRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for CreateAssignmentRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.bigquery.reservation.v1.CreateAssignmentRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ CreateAssignmentRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.bigquery.reservation.v1.CreateAssignmentRequest";
+ };
+
+ return CreateAssignmentRequest;
+ })();
+
+ v1.ListAssignmentsRequest = (function() {
+
+ /**
+ * Properties of a ListAssignmentsRequest.
+ * @memberof google.cloud.bigquery.reservation.v1
+ * @interface IListAssignmentsRequest
+ * @property {string|null} [parent] ListAssignmentsRequest parent
+ * @property {number|null} [pageSize] ListAssignmentsRequest pageSize
+ * @property {string|null} [pageToken] ListAssignmentsRequest pageToken
+ */
+
+ /**
+ * Constructs a new ListAssignmentsRequest.
+ * @memberof google.cloud.bigquery.reservation.v1
+ * @classdesc Represents a ListAssignmentsRequest.
+ * @implements IListAssignmentsRequest
+ * @constructor
+ * @param {google.cloud.bigquery.reservation.v1.IListAssignmentsRequest=} [properties] Properties to set
+ */
+ function ListAssignmentsRequest(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]];
+ }
+
+ /**
+ * ListAssignmentsRequest parent.
+ * @member {string} parent
+ * @memberof google.cloud.bigquery.reservation.v1.ListAssignmentsRequest
+ * @instance
+ */
+ ListAssignmentsRequest.prototype.parent = "";
+
+ /**
+ * ListAssignmentsRequest pageSize.
+ * @member {number} pageSize
+ * @memberof google.cloud.bigquery.reservation.v1.ListAssignmentsRequest
+ * @instance
+ */
+ ListAssignmentsRequest.prototype.pageSize = 0;
+
+ /**
+ * ListAssignmentsRequest pageToken.
+ * @member {string} pageToken
+ * @memberof google.cloud.bigquery.reservation.v1.ListAssignmentsRequest
+ * @instance
+ */
+ ListAssignmentsRequest.prototype.pageToken = "";
+
+ /**
+ * Creates a new ListAssignmentsRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.bigquery.reservation.v1.ListAssignmentsRequest
+ * @static
+ * @param {google.cloud.bigquery.reservation.v1.IListAssignmentsRequest=} [properties] Properties to set
+ * @returns {google.cloud.bigquery.reservation.v1.ListAssignmentsRequest} ListAssignmentsRequest instance
+ */
+ ListAssignmentsRequest.create = function create(properties) {
+ return new ListAssignmentsRequest(properties);
+ };
+
+ /**
+ * Encodes the specified ListAssignmentsRequest message. Does not implicitly {@link google.cloud.bigquery.reservation.v1.ListAssignmentsRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.bigquery.reservation.v1.ListAssignmentsRequest
+ * @static
+ * @param {google.cloud.bigquery.reservation.v1.IListAssignmentsRequest} message ListAssignmentsRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListAssignmentsRequest.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 ListAssignmentsRequest message, length delimited. Does not implicitly {@link google.cloud.bigquery.reservation.v1.ListAssignmentsRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.bigquery.reservation.v1.ListAssignmentsRequest
+ * @static
+ * @param {google.cloud.bigquery.reservation.v1.IListAssignmentsRequest} message ListAssignmentsRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListAssignmentsRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ListAssignmentsRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.bigquery.reservation.v1.ListAssignmentsRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.bigquery.reservation.v1.ListAssignmentsRequest} ListAssignmentsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListAssignmentsRequest.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.bigquery.reservation.v1.ListAssignmentsRequest();
+ 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 ListAssignmentsRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.bigquery.reservation.v1.ListAssignmentsRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.bigquery.reservation.v1.ListAssignmentsRequest} ListAssignmentsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListAssignmentsRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ListAssignmentsRequest message.
+ * @function verify
+ * @memberof google.cloud.bigquery.reservation.v1.ListAssignmentsRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ListAssignmentsRequest.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 ListAssignmentsRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.bigquery.reservation.v1.ListAssignmentsRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.bigquery.reservation.v1.ListAssignmentsRequest} ListAssignmentsRequest
+ */
+ ListAssignmentsRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.bigquery.reservation.v1.ListAssignmentsRequest)
+ return object;
+ var message = new $root.google.cloud.bigquery.reservation.v1.ListAssignmentsRequest();
+ 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 ListAssignmentsRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.bigquery.reservation.v1.ListAssignmentsRequest
+ * @static
+ * @param {google.cloud.bigquery.reservation.v1.ListAssignmentsRequest} message ListAssignmentsRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ListAssignmentsRequest.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 ListAssignmentsRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.bigquery.reservation.v1.ListAssignmentsRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ListAssignmentsRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ListAssignmentsRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.bigquery.reservation.v1.ListAssignmentsRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ListAssignmentsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.bigquery.reservation.v1.ListAssignmentsRequest";
+ };
+
+ return ListAssignmentsRequest;
+ })();
+
+ v1.ListAssignmentsResponse = (function() {
+
+ /**
+ * Properties of a ListAssignmentsResponse.
+ * @memberof google.cloud.bigquery.reservation.v1
+ * @interface IListAssignmentsResponse
+ * @property {Array.|null} [assignments] ListAssignmentsResponse assignments
+ * @property {string|null} [nextPageToken] ListAssignmentsResponse nextPageToken
+ */
+
+ /**
+ * Constructs a new ListAssignmentsResponse.
+ * @memberof google.cloud.bigquery.reservation.v1
+ * @classdesc Represents a ListAssignmentsResponse.
+ * @implements IListAssignmentsResponse
+ * @constructor
+ * @param {google.cloud.bigquery.reservation.v1.IListAssignmentsResponse=} [properties] Properties to set
+ */
+ function ListAssignmentsResponse(properties) {
+ this.assignments = [];
+ 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]];
+ }
+
+ /**
+ * ListAssignmentsResponse assignments.
+ * @member {Array.} assignments
+ * @memberof google.cloud.bigquery.reservation.v1.ListAssignmentsResponse
+ * @instance
+ */
+ ListAssignmentsResponse.prototype.assignments = $util.emptyArray;
+
+ /**
+ * ListAssignmentsResponse nextPageToken.
+ * @member {string} nextPageToken
+ * @memberof google.cloud.bigquery.reservation.v1.ListAssignmentsResponse
+ * @instance
+ */
+ ListAssignmentsResponse.prototype.nextPageToken = "";
+
+ /**
+ * Creates a new ListAssignmentsResponse instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.bigquery.reservation.v1.ListAssignmentsResponse
+ * @static
+ * @param {google.cloud.bigquery.reservation.v1.IListAssignmentsResponse=} [properties] Properties to set
+ * @returns {google.cloud.bigquery.reservation.v1.ListAssignmentsResponse} ListAssignmentsResponse instance
+ */
+ ListAssignmentsResponse.create = function create(properties) {
+ return new ListAssignmentsResponse(properties);
+ };
+
+ /**
+ * Encodes the specified ListAssignmentsResponse message. Does not implicitly {@link google.cloud.bigquery.reservation.v1.ListAssignmentsResponse.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.bigquery.reservation.v1.ListAssignmentsResponse
+ * @static
+ * @param {google.cloud.bigquery.reservation.v1.IListAssignmentsResponse} message ListAssignmentsResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListAssignmentsResponse.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.assignments != null && message.assignments.length)
+ for (var i = 0; i < message.assignments.length; ++i)
+ $root.google.cloud.bigquery.reservation.v1.Assignment.encode(message.assignments[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 ListAssignmentsResponse message, length delimited. Does not implicitly {@link google.cloud.bigquery.reservation.v1.ListAssignmentsResponse.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.bigquery.reservation.v1.ListAssignmentsResponse
+ * @static
+ * @param {google.cloud.bigquery.reservation.v1.IListAssignmentsResponse} message ListAssignmentsResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListAssignmentsResponse.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ListAssignmentsResponse message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.bigquery.reservation.v1.ListAssignmentsResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.bigquery.reservation.v1.ListAssignmentsResponse} ListAssignmentsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListAssignmentsResponse.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.bigquery.reservation.v1.ListAssignmentsResponse();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ if (!(message.assignments && message.assignments.length))
+ message.assignments = [];
+ message.assignments.push($root.google.cloud.bigquery.reservation.v1.Assignment.decode(reader, reader.uint32()));
+ break;
+ }
+ case 2: {
+ message.nextPageToken = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ListAssignmentsResponse message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.bigquery.reservation.v1.ListAssignmentsResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.bigquery.reservation.v1.ListAssignmentsResponse} ListAssignmentsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListAssignmentsResponse.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ListAssignmentsResponse message.
+ * @function verify
+ * @memberof google.cloud.bigquery.reservation.v1.ListAssignmentsResponse
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ListAssignmentsResponse.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.assignments != null && message.hasOwnProperty("assignments")) {
+ if (!Array.isArray(message.assignments))
+ return "assignments: array expected";
+ for (var i = 0; i < message.assignments.length; ++i) {
+ var error = $root.google.cloud.bigquery.reservation.v1.Assignment.verify(message.assignments[i]);
+ if (error)
+ return "assignments." + error;
+ }
+ }
+ if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken"))
+ if (!$util.isString(message.nextPageToken))
+ return "nextPageToken: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a ListAssignmentsResponse message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.bigquery.reservation.v1.ListAssignmentsResponse
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.bigquery.reservation.v1.ListAssignmentsResponse} ListAssignmentsResponse
+ */
+ ListAssignmentsResponse.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.bigquery.reservation.v1.ListAssignmentsResponse)
+ return object;
+ var message = new $root.google.cloud.bigquery.reservation.v1.ListAssignmentsResponse();
+ if (object.assignments) {
+ if (!Array.isArray(object.assignments))
+ throw TypeError(".google.cloud.bigquery.reservation.v1.ListAssignmentsResponse.assignments: array expected");
+ message.assignments = [];
+ for (var i = 0; i < object.assignments.length; ++i) {
+ if (typeof object.assignments[i] !== "object")
+ throw TypeError(".google.cloud.bigquery.reservation.v1.ListAssignmentsResponse.assignments: object expected");
+ message.assignments[i] = $root.google.cloud.bigquery.reservation.v1.Assignment.fromObject(object.assignments[i]);
+ }
+ }
+ if (object.nextPageToken != null)
+ message.nextPageToken = String(object.nextPageToken);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ListAssignmentsResponse message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.bigquery.reservation.v1.ListAssignmentsResponse
+ * @static
+ * @param {google.cloud.bigquery.reservation.v1.ListAssignmentsResponse} message ListAssignmentsResponse
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ListAssignmentsResponse.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.assignments = [];
+ if (options.defaults)
+ object.nextPageToken = "";
+ if (message.assignments && message.assignments.length) {
+ object.assignments = [];
+ for (var j = 0; j < message.assignments.length; ++j)
+ object.assignments[j] = $root.google.cloud.bigquery.reservation.v1.Assignment.toObject(message.assignments[j], options);
+ }
+ if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken"))
+ object.nextPageToken = message.nextPageToken;
+ return object;
+ };
+
+ /**
+ * Converts this ListAssignmentsResponse to JSON.
+ * @function toJSON
+ * @memberof google.cloud.bigquery.reservation.v1.ListAssignmentsResponse
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ListAssignmentsResponse.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ListAssignmentsResponse
+ * @function getTypeUrl
+ * @memberof google.cloud.bigquery.reservation.v1.ListAssignmentsResponse
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ListAssignmentsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.bigquery.reservation.v1.ListAssignmentsResponse";
+ };
+
+ return ListAssignmentsResponse;
+ })();
+
+ v1.DeleteAssignmentRequest = (function() {
+
+ /**
+ * Properties of a DeleteAssignmentRequest.
+ * @memberof google.cloud.bigquery.reservation.v1
+ * @interface IDeleteAssignmentRequest
+ * @property {string|null} [name] DeleteAssignmentRequest name
+ */
+
+ /**
+ * Constructs a new DeleteAssignmentRequest.
+ * @memberof google.cloud.bigquery.reservation.v1
+ * @classdesc Represents a DeleteAssignmentRequest.
+ * @implements IDeleteAssignmentRequest
+ * @constructor
+ * @param {google.cloud.bigquery.reservation.v1.IDeleteAssignmentRequest=} [properties] Properties to set
+ */
+ function DeleteAssignmentRequest(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]];
+ }
+
+ /**
+ * DeleteAssignmentRequest name.
+ * @member {string} name
+ * @memberof google.cloud.bigquery.reservation.v1.DeleteAssignmentRequest
+ * @instance
+ */
+ DeleteAssignmentRequest.prototype.name = "";
+
+ /**
+ * Creates a new DeleteAssignmentRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.bigquery.reservation.v1.DeleteAssignmentRequest
+ * @static
+ * @param {google.cloud.bigquery.reservation.v1.IDeleteAssignmentRequest=} [properties] Properties to set
+ * @returns {google.cloud.bigquery.reservation.v1.DeleteAssignmentRequest} DeleteAssignmentRequest instance
+ */
+ DeleteAssignmentRequest.create = function create(properties) {
+ return new DeleteAssignmentRequest(properties);
+ };
+
+ /**
+ * Encodes the specified DeleteAssignmentRequest message. Does not implicitly {@link google.cloud.bigquery.reservation.v1.DeleteAssignmentRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.bigquery.reservation.v1.DeleteAssignmentRequest
+ * @static
+ * @param {google.cloud.bigquery.reservation.v1.IDeleteAssignmentRequest} message DeleteAssignmentRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ DeleteAssignmentRequest.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 DeleteAssignmentRequest message, length delimited. Does not implicitly {@link google.cloud.bigquery.reservation.v1.DeleteAssignmentRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.bigquery.reservation.v1.DeleteAssignmentRequest
+ * @static
+ * @param {google.cloud.bigquery.reservation.v1.IDeleteAssignmentRequest} message DeleteAssignmentRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ DeleteAssignmentRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a DeleteAssignmentRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.bigquery.reservation.v1.DeleteAssignmentRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.bigquery.reservation.v1.DeleteAssignmentRequest} DeleteAssignmentRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ DeleteAssignmentRequest.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.bigquery.reservation.v1.DeleteAssignmentRequest();
+ 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 DeleteAssignmentRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.bigquery.reservation.v1.DeleteAssignmentRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.bigquery.reservation.v1.DeleteAssignmentRequest} DeleteAssignmentRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ DeleteAssignmentRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a DeleteAssignmentRequest message.
+ * @function verify
+ * @memberof google.cloud.bigquery.reservation.v1.DeleteAssignmentRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ DeleteAssignmentRequest.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 DeleteAssignmentRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.bigquery.reservation.v1.DeleteAssignmentRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.bigquery.reservation.v1.DeleteAssignmentRequest} DeleteAssignmentRequest
+ */
+ DeleteAssignmentRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.bigquery.reservation.v1.DeleteAssignmentRequest)
+ return object;
+ var message = new $root.google.cloud.bigquery.reservation.v1.DeleteAssignmentRequest();
+ if (object.name != null)
+ message.name = String(object.name);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a DeleteAssignmentRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.bigquery.reservation.v1.DeleteAssignmentRequest
+ * @static
+ * @param {google.cloud.bigquery.reservation.v1.DeleteAssignmentRequest} message DeleteAssignmentRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ DeleteAssignmentRequest.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 DeleteAssignmentRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.bigquery.reservation.v1.DeleteAssignmentRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ DeleteAssignmentRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for DeleteAssignmentRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.bigquery.reservation.v1.DeleteAssignmentRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ DeleteAssignmentRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.bigquery.reservation.v1.DeleteAssignmentRequest";
+ };
+
+ return DeleteAssignmentRequest;
+ })();
+
+ v1.SearchAssignmentsRequest = (function() {
+
+ /**
+ * Properties of a SearchAssignmentsRequest.
+ * @memberof google.cloud.bigquery.reservation.v1
+ * @interface ISearchAssignmentsRequest
+ * @property {string|null} [parent] SearchAssignmentsRequest parent
+ * @property {string|null} [query] SearchAssignmentsRequest query
+ * @property {number|null} [pageSize] SearchAssignmentsRequest pageSize
+ * @property {string|null} [pageToken] SearchAssignmentsRequest pageToken
+ */
+
+ /**
+ * Constructs a new SearchAssignmentsRequest.
+ * @memberof google.cloud.bigquery.reservation.v1
+ * @classdesc Represents a SearchAssignmentsRequest.
+ * @implements ISearchAssignmentsRequest
+ * @constructor
+ * @param {google.cloud.bigquery.reservation.v1.ISearchAssignmentsRequest=} [properties] Properties to set
+ */
+ function SearchAssignmentsRequest(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]];
+ }
+
+ /**
+ * SearchAssignmentsRequest parent.
+ * @member {string} parent
+ * @memberof google.cloud.bigquery.reservation.v1.SearchAssignmentsRequest
+ * @instance
+ */
+ SearchAssignmentsRequest.prototype.parent = "";
+
+ /**
+ * SearchAssignmentsRequest query.
+ * @member {string} query
+ * @memberof google.cloud.bigquery.reservation.v1.SearchAssignmentsRequest
+ * @instance
+ */
+ SearchAssignmentsRequest.prototype.query = "";
+
+ /**
+ * SearchAssignmentsRequest pageSize.
+ * @member {number} pageSize
+ * @memberof google.cloud.bigquery.reservation.v1.SearchAssignmentsRequest
+ * @instance
+ */
+ SearchAssignmentsRequest.prototype.pageSize = 0;
+
+ /**
+ * SearchAssignmentsRequest pageToken.
+ * @member {string} pageToken
+ * @memberof google.cloud.bigquery.reservation.v1.SearchAssignmentsRequest
+ * @instance
+ */
+ SearchAssignmentsRequest.prototype.pageToken = "";
+
+ /**
+ * Creates a new SearchAssignmentsRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.bigquery.reservation.v1.SearchAssignmentsRequest
+ * @static
+ * @param {google.cloud.bigquery.reservation.v1.ISearchAssignmentsRequest=} [properties] Properties to set
+ * @returns {google.cloud.bigquery.reservation.v1.SearchAssignmentsRequest} SearchAssignmentsRequest instance
+ */
+ SearchAssignmentsRequest.create = function create(properties) {
+ return new SearchAssignmentsRequest(properties);
+ };
+
+ /**
+ * Encodes the specified SearchAssignmentsRequest message. Does not implicitly {@link google.cloud.bigquery.reservation.v1.SearchAssignmentsRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.bigquery.reservation.v1.SearchAssignmentsRequest
+ * @static
+ * @param {google.cloud.bigquery.reservation.v1.ISearchAssignmentsRequest} message SearchAssignmentsRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ SearchAssignmentsRequest.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.query != null && Object.hasOwnProperty.call(message, "query"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.query);
+ if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize"))
+ writer.uint32(/* id 3, wireType 0 =*/24).int32(message.pageSize);
+ if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken"))
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.pageToken);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified SearchAssignmentsRequest message, length delimited. Does not implicitly {@link google.cloud.bigquery.reservation.v1.SearchAssignmentsRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.bigquery.reservation.v1.SearchAssignmentsRequest
+ * @static
+ * @param {google.cloud.bigquery.reservation.v1.ISearchAssignmentsRequest} message SearchAssignmentsRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ SearchAssignmentsRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a SearchAssignmentsRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.bigquery.reservation.v1.SearchAssignmentsRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.bigquery.reservation.v1.SearchAssignmentsRequest} SearchAssignmentsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ SearchAssignmentsRequest.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.bigquery.reservation.v1.SearchAssignmentsRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.parent = reader.string();
+ break;
+ }
+ case 2: {
+ message.query = reader.string();
+ break;
+ }
+ case 3: {
+ message.pageSize = reader.int32();
+ break;
+ }
+ case 4: {
+ message.pageToken = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a SearchAssignmentsRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.bigquery.reservation.v1.SearchAssignmentsRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.bigquery.reservation.v1.SearchAssignmentsRequest} SearchAssignmentsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ SearchAssignmentsRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a SearchAssignmentsRequest message.
+ * @function verify
+ * @memberof google.cloud.bigquery.reservation.v1.SearchAssignmentsRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ SearchAssignmentsRequest.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.query != null && message.hasOwnProperty("query"))
+ if (!$util.isString(message.query))
+ return "query: 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 SearchAssignmentsRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.bigquery.reservation.v1.SearchAssignmentsRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.bigquery.reservation.v1.SearchAssignmentsRequest} SearchAssignmentsRequest
+ */
+ SearchAssignmentsRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.bigquery.reservation.v1.SearchAssignmentsRequest)
+ return object;
+ var message = new $root.google.cloud.bigquery.reservation.v1.SearchAssignmentsRequest();
+ if (object.parent != null)
+ message.parent = String(object.parent);
+ if (object.query != null)
+ message.query = String(object.query);
+ 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 SearchAssignmentsRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.bigquery.reservation.v1.SearchAssignmentsRequest
+ * @static
+ * @param {google.cloud.bigquery.reservation.v1.SearchAssignmentsRequest} message SearchAssignmentsRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ SearchAssignmentsRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.parent = "";
+ object.query = "";
+ object.pageSize = 0;
+ object.pageToken = "";
+ }
+ if (message.parent != null && message.hasOwnProperty("parent"))
+ object.parent = message.parent;
+ if (message.query != null && message.hasOwnProperty("query"))
+ object.query = message.query;
+ 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 SearchAssignmentsRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.bigquery.reservation.v1.SearchAssignmentsRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ SearchAssignmentsRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for SearchAssignmentsRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.bigquery.reservation.v1.SearchAssignmentsRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ SearchAssignmentsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.bigquery.reservation.v1.SearchAssignmentsRequest";
+ };
+
+ return SearchAssignmentsRequest;
+ })();
+
+ v1.SearchAllAssignmentsRequest = (function() {
+
+ /**
+ * Properties of a SearchAllAssignmentsRequest.
+ * @memberof google.cloud.bigquery.reservation.v1
+ * @interface ISearchAllAssignmentsRequest
+ * @property {string|null} [parent] SearchAllAssignmentsRequest parent
+ * @property {string|null} [query] SearchAllAssignmentsRequest query
+ * @property {number|null} [pageSize] SearchAllAssignmentsRequest pageSize
+ * @property {string|null} [pageToken] SearchAllAssignmentsRequest pageToken
+ */
+
+ /**
+ * Constructs a new SearchAllAssignmentsRequest.
+ * @memberof google.cloud.bigquery.reservation.v1
+ * @classdesc Represents a SearchAllAssignmentsRequest.
+ * @implements ISearchAllAssignmentsRequest
+ * @constructor
+ * @param {google.cloud.bigquery.reservation.v1.ISearchAllAssignmentsRequest=} [properties] Properties to set
+ */
+ function SearchAllAssignmentsRequest(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]];
+ }
+
+ /**
+ * SearchAllAssignmentsRequest parent.
+ * @member {string} parent
+ * @memberof google.cloud.bigquery.reservation.v1.SearchAllAssignmentsRequest
+ * @instance
+ */
+ SearchAllAssignmentsRequest.prototype.parent = "";
+
+ /**
+ * SearchAllAssignmentsRequest query.
+ * @member {string} query
+ * @memberof google.cloud.bigquery.reservation.v1.SearchAllAssignmentsRequest
+ * @instance
+ */
+ SearchAllAssignmentsRequest.prototype.query = "";
+
+ /**
+ * SearchAllAssignmentsRequest pageSize.
+ * @member {number} pageSize
+ * @memberof google.cloud.bigquery.reservation.v1.SearchAllAssignmentsRequest
+ * @instance
+ */
+ SearchAllAssignmentsRequest.prototype.pageSize = 0;
+
+ /**
+ * SearchAllAssignmentsRequest pageToken.
+ * @member {string} pageToken
+ * @memberof google.cloud.bigquery.reservation.v1.SearchAllAssignmentsRequest
+ * @instance
+ */
+ SearchAllAssignmentsRequest.prototype.pageToken = "";
+
+ /**
+ * Creates a new SearchAllAssignmentsRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.bigquery.reservation.v1.SearchAllAssignmentsRequest
+ * @static
+ * @param {google.cloud.bigquery.reservation.v1.ISearchAllAssignmentsRequest=} [properties] Properties to set
+ * @returns {google.cloud.bigquery.reservation.v1.SearchAllAssignmentsRequest} SearchAllAssignmentsRequest instance
+ */
+ SearchAllAssignmentsRequest.create = function create(properties) {
+ return new SearchAllAssignmentsRequest(properties);
+ };
+
+ /**
+ * Encodes the specified SearchAllAssignmentsRequest message. Does not implicitly {@link google.cloud.bigquery.reservation.v1.SearchAllAssignmentsRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.bigquery.reservation.v1.SearchAllAssignmentsRequest
+ * @static
+ * @param {google.cloud.bigquery.reservation.v1.ISearchAllAssignmentsRequest} message SearchAllAssignmentsRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ SearchAllAssignmentsRequest.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.query != null && Object.hasOwnProperty.call(message, "query"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.query);
+ if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize"))
+ writer.uint32(/* id 3, wireType 0 =*/24).int32(message.pageSize);
+ if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken"))
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.pageToken);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified SearchAllAssignmentsRequest message, length delimited. Does not implicitly {@link google.cloud.bigquery.reservation.v1.SearchAllAssignmentsRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.bigquery.reservation.v1.SearchAllAssignmentsRequest
+ * @static
+ * @param {google.cloud.bigquery.reservation.v1.ISearchAllAssignmentsRequest} message SearchAllAssignmentsRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ SearchAllAssignmentsRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a SearchAllAssignmentsRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.bigquery.reservation.v1.SearchAllAssignmentsRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.bigquery.reservation.v1.SearchAllAssignmentsRequest} SearchAllAssignmentsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ SearchAllAssignmentsRequest.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.bigquery.reservation.v1.SearchAllAssignmentsRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.parent = reader.string();
+ break;
+ }
+ case 2: {
+ message.query = reader.string();
+ break;
+ }
+ case 3: {
+ message.pageSize = reader.int32();
+ break;
+ }
+ case 4: {
+ message.pageToken = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a SearchAllAssignmentsRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.bigquery.reservation.v1.SearchAllAssignmentsRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.bigquery.reservation.v1.SearchAllAssignmentsRequest} SearchAllAssignmentsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ SearchAllAssignmentsRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a SearchAllAssignmentsRequest message.
+ * @function verify
+ * @memberof google.cloud.bigquery.reservation.v1.SearchAllAssignmentsRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ SearchAllAssignmentsRequest.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.query != null && message.hasOwnProperty("query"))
+ if (!$util.isString(message.query))
+ return "query: 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 SearchAllAssignmentsRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.bigquery.reservation.v1.SearchAllAssignmentsRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.bigquery.reservation.v1.SearchAllAssignmentsRequest} SearchAllAssignmentsRequest
+ */
+ SearchAllAssignmentsRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.bigquery.reservation.v1.SearchAllAssignmentsRequest)
+ return object;
+ var message = new $root.google.cloud.bigquery.reservation.v1.SearchAllAssignmentsRequest();
+ if (object.parent != null)
+ message.parent = String(object.parent);
+ if (object.query != null)
+ message.query = String(object.query);
+ 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 SearchAllAssignmentsRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.bigquery.reservation.v1.SearchAllAssignmentsRequest
+ * @static
+ * @param {google.cloud.bigquery.reservation.v1.SearchAllAssignmentsRequest} message SearchAllAssignmentsRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ SearchAllAssignmentsRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.parent = "";
+ object.query = "";
+ object.pageSize = 0;
+ object.pageToken = "";
+ }
+ if (message.parent != null && message.hasOwnProperty("parent"))
+ object.parent = message.parent;
+ if (message.query != null && message.hasOwnProperty("query"))
+ object.query = message.query;
+ 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 SearchAllAssignmentsRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.bigquery.reservation.v1.SearchAllAssignmentsRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ SearchAllAssignmentsRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for SearchAllAssignmentsRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.bigquery.reservation.v1.SearchAllAssignmentsRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ SearchAllAssignmentsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.bigquery.reservation.v1.SearchAllAssignmentsRequest";
+ };
+
+ return SearchAllAssignmentsRequest;
+ })();
+
+ v1.SearchAssignmentsResponse = (function() {
+
+ /**
+ * Properties of a SearchAssignmentsResponse.
+ * @memberof google.cloud.bigquery.reservation.v1
+ * @interface ISearchAssignmentsResponse
+ * @property {Array.|null} [assignments] SearchAssignmentsResponse assignments
+ * @property {string|null} [nextPageToken] SearchAssignmentsResponse nextPageToken
+ */
+
+ /**
+ * Constructs a new SearchAssignmentsResponse.
+ * @memberof google.cloud.bigquery.reservation.v1
+ * @classdesc Represents a SearchAssignmentsResponse.
+ * @implements ISearchAssignmentsResponse
+ * @constructor
+ * @param {google.cloud.bigquery.reservation.v1.ISearchAssignmentsResponse=} [properties] Properties to set
+ */
+ function SearchAssignmentsResponse(properties) {
+ this.assignments = [];
+ 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]];
+ }
+
+ /**
+ * SearchAssignmentsResponse assignments.
+ * @member {Array.} assignments
+ * @memberof google.cloud.bigquery.reservation.v1.SearchAssignmentsResponse
+ * @instance
+ */
+ SearchAssignmentsResponse.prototype.assignments = $util.emptyArray;
+
+ /**
+ * SearchAssignmentsResponse nextPageToken.
+ * @member {string} nextPageToken
+ * @memberof google.cloud.bigquery.reservation.v1.SearchAssignmentsResponse
+ * @instance
+ */
+ SearchAssignmentsResponse.prototype.nextPageToken = "";
+
+ /**
+ * Creates a new SearchAssignmentsResponse instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.bigquery.reservation.v1.SearchAssignmentsResponse
+ * @static
+ * @param {google.cloud.bigquery.reservation.v1.ISearchAssignmentsResponse=} [properties] Properties to set
+ * @returns {google.cloud.bigquery.reservation.v1.SearchAssignmentsResponse} SearchAssignmentsResponse instance
+ */
+ SearchAssignmentsResponse.create = function create(properties) {
+ return new SearchAssignmentsResponse(properties);
+ };
+
+ /**
+ * Encodes the specified SearchAssignmentsResponse message. Does not implicitly {@link google.cloud.bigquery.reservation.v1.SearchAssignmentsResponse.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.bigquery.reservation.v1.SearchAssignmentsResponse
+ * @static
+ * @param {google.cloud.bigquery.reservation.v1.ISearchAssignmentsResponse} message SearchAssignmentsResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ SearchAssignmentsResponse.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.assignments != null && message.assignments.length)
+ for (var i = 0; i < message.assignments.length; ++i)
+ $root.google.cloud.bigquery.reservation.v1.Assignment.encode(message.assignments[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 SearchAssignmentsResponse message, length delimited. Does not implicitly {@link google.cloud.bigquery.reservation.v1.SearchAssignmentsResponse.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.bigquery.reservation.v1.SearchAssignmentsResponse
+ * @static
+ * @param {google.cloud.bigquery.reservation.v1.ISearchAssignmentsResponse} message SearchAssignmentsResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ SearchAssignmentsResponse.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a SearchAssignmentsResponse message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.bigquery.reservation.v1.SearchAssignmentsResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.bigquery.reservation.v1.SearchAssignmentsResponse} SearchAssignmentsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ SearchAssignmentsResponse.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.bigquery.reservation.v1.SearchAssignmentsResponse();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ if (!(message.assignments && message.assignments.length))
+ message.assignments = [];
+ message.assignments.push($root.google.cloud.bigquery.reservation.v1.Assignment.decode(reader, reader.uint32()));
+ break;
+ }
+ case 2: {
+ message.nextPageToken = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a SearchAssignmentsResponse message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.bigquery.reservation.v1.SearchAssignmentsResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.bigquery.reservation.v1.SearchAssignmentsResponse} SearchAssignmentsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ SearchAssignmentsResponse.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a SearchAssignmentsResponse message.
+ * @function verify
+ * @memberof google.cloud.bigquery.reservation.v1.SearchAssignmentsResponse
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ SearchAssignmentsResponse.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.assignments != null && message.hasOwnProperty("assignments")) {
+ if (!Array.isArray(message.assignments))
+ return "assignments: array expected";
+ for (var i = 0; i < message.assignments.length; ++i) {
+ var error = $root.google.cloud.bigquery.reservation.v1.Assignment.verify(message.assignments[i]);
+ if (error)
+ return "assignments." + error;
+ }
+ }
+ if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken"))
+ if (!$util.isString(message.nextPageToken))
+ return "nextPageToken: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a SearchAssignmentsResponse message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.bigquery.reservation.v1.SearchAssignmentsResponse
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.bigquery.reservation.v1.SearchAssignmentsResponse} SearchAssignmentsResponse
+ */
+ SearchAssignmentsResponse.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.bigquery.reservation.v1.SearchAssignmentsResponse)
+ return object;
+ var message = new $root.google.cloud.bigquery.reservation.v1.SearchAssignmentsResponse();
+ if (object.assignments) {
+ if (!Array.isArray(object.assignments))
+ throw TypeError(".google.cloud.bigquery.reservation.v1.SearchAssignmentsResponse.assignments: array expected");
+ message.assignments = [];
+ for (var i = 0; i < object.assignments.length; ++i) {
+ if (typeof object.assignments[i] !== "object")
+ throw TypeError(".google.cloud.bigquery.reservation.v1.SearchAssignmentsResponse.assignments: object expected");
+ message.assignments[i] = $root.google.cloud.bigquery.reservation.v1.Assignment.fromObject(object.assignments[i]);
+ }
+ }
+ if (object.nextPageToken != null)
+ message.nextPageToken = String(object.nextPageToken);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a SearchAssignmentsResponse message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.bigquery.reservation.v1.SearchAssignmentsResponse
+ * @static
+ * @param {google.cloud.bigquery.reservation.v1.SearchAssignmentsResponse} message SearchAssignmentsResponse
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ SearchAssignmentsResponse.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.assignments = [];
+ if (options.defaults)
+ object.nextPageToken = "";
+ if (message.assignments && message.assignments.length) {
+ object.assignments = [];
+ for (var j = 0; j < message.assignments.length; ++j)
+ object.assignments[j] = $root.google.cloud.bigquery.reservation.v1.Assignment.toObject(message.assignments[j], options);
+ }
+ if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken"))
+ object.nextPageToken = message.nextPageToken;
+ return object;
+ };
+
+ /**
+ * Converts this SearchAssignmentsResponse to JSON.
+ * @function toJSON
+ * @memberof google.cloud.bigquery.reservation.v1.SearchAssignmentsResponse
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ SearchAssignmentsResponse.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for SearchAssignmentsResponse
+ * @function getTypeUrl
+ * @memberof google.cloud.bigquery.reservation.v1.SearchAssignmentsResponse
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ SearchAssignmentsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.bigquery.reservation.v1.SearchAssignmentsResponse";
+ };
+
+ return SearchAssignmentsResponse;
+ })();
+
+ v1.SearchAllAssignmentsResponse = (function() {
+
+ /**
+ * Properties of a SearchAllAssignmentsResponse.
+ * @memberof google.cloud.bigquery.reservation.v1
+ * @interface ISearchAllAssignmentsResponse
+ * @property {Array.|null} [assignments] SearchAllAssignmentsResponse assignments
+ * @property {string|null} [nextPageToken] SearchAllAssignmentsResponse nextPageToken
+ */
+
+ /**
+ * Constructs a new SearchAllAssignmentsResponse.
+ * @memberof google.cloud.bigquery.reservation.v1
+ * @classdesc Represents a SearchAllAssignmentsResponse.
+ * @implements ISearchAllAssignmentsResponse
+ * @constructor
+ * @param {google.cloud.bigquery.reservation.v1.ISearchAllAssignmentsResponse=} [properties] Properties to set
+ */
+ function SearchAllAssignmentsResponse(properties) {
+ this.assignments = [];
+ 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]];
+ }
+
+ /**
+ * SearchAllAssignmentsResponse assignments.
+ * @member {Array.} assignments
+ * @memberof google.cloud.bigquery.reservation.v1.SearchAllAssignmentsResponse
+ * @instance
+ */
+ SearchAllAssignmentsResponse.prototype.assignments = $util.emptyArray;
+
+ /**
+ * SearchAllAssignmentsResponse nextPageToken.
+ * @member {string} nextPageToken
+ * @memberof google.cloud.bigquery.reservation.v1.SearchAllAssignmentsResponse
+ * @instance
+ */
+ SearchAllAssignmentsResponse.prototype.nextPageToken = "";
+
+ /**
+ * Creates a new SearchAllAssignmentsResponse instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.bigquery.reservation.v1.SearchAllAssignmentsResponse
+ * @static
+ * @param {google.cloud.bigquery.reservation.v1.ISearchAllAssignmentsResponse=} [properties] Properties to set
+ * @returns {google.cloud.bigquery.reservation.v1.SearchAllAssignmentsResponse} SearchAllAssignmentsResponse instance
+ */
+ SearchAllAssignmentsResponse.create = function create(properties) {
+ return new SearchAllAssignmentsResponse(properties);
+ };
+
+ /**
+ * Encodes the specified SearchAllAssignmentsResponse message. Does not implicitly {@link google.cloud.bigquery.reservation.v1.SearchAllAssignmentsResponse.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.bigquery.reservation.v1.SearchAllAssignmentsResponse
+ * @static
+ * @param {google.cloud.bigquery.reservation.v1.ISearchAllAssignmentsResponse} message SearchAllAssignmentsResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ SearchAllAssignmentsResponse.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.assignments != null && message.assignments.length)
+ for (var i = 0; i < message.assignments.length; ++i)
+ $root.google.cloud.bigquery.reservation.v1.Assignment.encode(message.assignments[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 SearchAllAssignmentsResponse message, length delimited. Does not implicitly {@link google.cloud.bigquery.reservation.v1.SearchAllAssignmentsResponse.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.bigquery.reservation.v1.SearchAllAssignmentsResponse
+ * @static
+ * @param {google.cloud.bigquery.reservation.v1.ISearchAllAssignmentsResponse} message SearchAllAssignmentsResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ SearchAllAssignmentsResponse.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a SearchAllAssignmentsResponse message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.bigquery.reservation.v1.SearchAllAssignmentsResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.bigquery.reservation.v1.SearchAllAssignmentsResponse} SearchAllAssignmentsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ SearchAllAssignmentsResponse.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.bigquery.reservation.v1.SearchAllAssignmentsResponse();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ if (!(message.assignments && message.assignments.length))
+ message.assignments = [];
+ message.assignments.push($root.google.cloud.bigquery.reservation.v1.Assignment.decode(reader, reader.uint32()));
+ break;
+ }
+ case 2: {
+ message.nextPageToken = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a SearchAllAssignmentsResponse message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.bigquery.reservation.v1.SearchAllAssignmentsResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.bigquery.reservation.v1.SearchAllAssignmentsResponse} SearchAllAssignmentsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ SearchAllAssignmentsResponse.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a SearchAllAssignmentsResponse message.
+ * @function verify
+ * @memberof google.cloud.bigquery.reservation.v1.SearchAllAssignmentsResponse
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ SearchAllAssignmentsResponse.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.assignments != null && message.hasOwnProperty("assignments")) {
+ if (!Array.isArray(message.assignments))
+ return "assignments: array expected";
+ for (var i = 0; i < message.assignments.length; ++i) {
+ var error = $root.google.cloud.bigquery.reservation.v1.Assignment.verify(message.assignments[i]);
+ if (error)
+ return "assignments." + error;
+ }
+ }
+ if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken"))
+ if (!$util.isString(message.nextPageToken))
+ return "nextPageToken: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a SearchAllAssignmentsResponse message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.bigquery.reservation.v1.SearchAllAssignmentsResponse
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.bigquery.reservation.v1.SearchAllAssignmentsResponse} SearchAllAssignmentsResponse
+ */
+ SearchAllAssignmentsResponse.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.bigquery.reservation.v1.SearchAllAssignmentsResponse)
+ return object;
+ var message = new $root.google.cloud.bigquery.reservation.v1.SearchAllAssignmentsResponse();
+ if (object.assignments) {
+ if (!Array.isArray(object.assignments))
+ throw TypeError(".google.cloud.bigquery.reservation.v1.SearchAllAssignmentsResponse.assignments: array expected");
+ message.assignments = [];
+ for (var i = 0; i < object.assignments.length; ++i) {
+ if (typeof object.assignments[i] !== "object")
+ throw TypeError(".google.cloud.bigquery.reservation.v1.SearchAllAssignmentsResponse.assignments: object expected");
+ message.assignments[i] = $root.google.cloud.bigquery.reservation.v1.Assignment.fromObject(object.assignments[i]);
+ }
+ }
+ if (object.nextPageToken != null)
+ message.nextPageToken = String(object.nextPageToken);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a SearchAllAssignmentsResponse message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.bigquery.reservation.v1.SearchAllAssignmentsResponse
+ * @static
+ * @param {google.cloud.bigquery.reservation.v1.SearchAllAssignmentsResponse} message SearchAllAssignmentsResponse
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ SearchAllAssignmentsResponse.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.assignments = [];
+ if (options.defaults)
+ object.nextPageToken = "";
+ if (message.assignments && message.assignments.length) {
+ object.assignments = [];
+ for (var j = 0; j < message.assignments.length; ++j)
+ object.assignments[j] = $root.google.cloud.bigquery.reservation.v1.Assignment.toObject(message.assignments[j], options);
+ }
+ if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken"))
+ object.nextPageToken = message.nextPageToken;
+ return object;
+ };
+
+ /**
+ * Converts this SearchAllAssignmentsResponse to JSON.
+ * @function toJSON
+ * @memberof google.cloud.bigquery.reservation.v1.SearchAllAssignmentsResponse
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ SearchAllAssignmentsResponse.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for SearchAllAssignmentsResponse
+ * @function getTypeUrl
+ * @memberof google.cloud.bigquery.reservation.v1.SearchAllAssignmentsResponse
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ SearchAllAssignmentsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.bigquery.reservation.v1.SearchAllAssignmentsResponse";
+ };
+
+ return SearchAllAssignmentsResponse;
+ })();
+
+ v1.MoveAssignmentRequest = (function() {
+
+ /**
+ * Properties of a MoveAssignmentRequest.
+ * @memberof google.cloud.bigquery.reservation.v1
+ * @interface IMoveAssignmentRequest
+ * @property {string|null} [name] MoveAssignmentRequest name
+ * @property {string|null} [destinationId] MoveAssignmentRequest destinationId
+ */
+
+ /**
+ * Constructs a new MoveAssignmentRequest.
+ * @memberof google.cloud.bigquery.reservation.v1
+ * @classdesc Represents a MoveAssignmentRequest.
+ * @implements IMoveAssignmentRequest
+ * @constructor
+ * @param {google.cloud.bigquery.reservation.v1.IMoveAssignmentRequest=} [properties] Properties to set
+ */
+ function MoveAssignmentRequest(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]];
+ }
+
+ /**
+ * MoveAssignmentRequest name.
+ * @member {string} name
+ * @memberof google.cloud.bigquery.reservation.v1.MoveAssignmentRequest
+ * @instance
+ */
+ MoveAssignmentRequest.prototype.name = "";
+
+ /**
+ * MoveAssignmentRequest destinationId.
+ * @member {string} destinationId
+ * @memberof google.cloud.bigquery.reservation.v1.MoveAssignmentRequest
+ * @instance
+ */
+ MoveAssignmentRequest.prototype.destinationId = "";
+
+ /**
+ * Creates a new MoveAssignmentRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.bigquery.reservation.v1.MoveAssignmentRequest
+ * @static
+ * @param {google.cloud.bigquery.reservation.v1.IMoveAssignmentRequest=} [properties] Properties to set
+ * @returns {google.cloud.bigquery.reservation.v1.MoveAssignmentRequest} MoveAssignmentRequest instance
+ */
+ MoveAssignmentRequest.create = function create(properties) {
+ return new MoveAssignmentRequest(properties);
+ };
+
+ /**
+ * Encodes the specified MoveAssignmentRequest message. Does not implicitly {@link google.cloud.bigquery.reservation.v1.MoveAssignmentRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.bigquery.reservation.v1.MoveAssignmentRequest
+ * @static
+ * @param {google.cloud.bigquery.reservation.v1.IMoveAssignmentRequest} message MoveAssignmentRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ MoveAssignmentRequest.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.destinationId != null && Object.hasOwnProperty.call(message, "destinationId"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.destinationId);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified MoveAssignmentRequest message, length delimited. Does not implicitly {@link google.cloud.bigquery.reservation.v1.MoveAssignmentRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.bigquery.reservation.v1.MoveAssignmentRequest
+ * @static
+ * @param {google.cloud.bigquery.reservation.v1.IMoveAssignmentRequest} message MoveAssignmentRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ MoveAssignmentRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a MoveAssignmentRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.bigquery.reservation.v1.MoveAssignmentRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.bigquery.reservation.v1.MoveAssignmentRequest} MoveAssignmentRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ MoveAssignmentRequest.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.bigquery.reservation.v1.MoveAssignmentRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.name = reader.string();
+ break;
+ }
+ case 3: {
+ message.destinationId = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a MoveAssignmentRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.bigquery.reservation.v1.MoveAssignmentRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.bigquery.reservation.v1.MoveAssignmentRequest} MoveAssignmentRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ MoveAssignmentRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a MoveAssignmentRequest message.
+ * @function verify
+ * @memberof google.cloud.bigquery.reservation.v1.MoveAssignmentRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ MoveAssignmentRequest.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.destinationId != null && message.hasOwnProperty("destinationId"))
+ if (!$util.isString(message.destinationId))
+ return "destinationId: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a MoveAssignmentRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.bigquery.reservation.v1.MoveAssignmentRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.bigquery.reservation.v1.MoveAssignmentRequest} MoveAssignmentRequest
+ */
+ MoveAssignmentRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.bigquery.reservation.v1.MoveAssignmentRequest)
+ return object;
+ var message = new $root.google.cloud.bigquery.reservation.v1.MoveAssignmentRequest();
+ if (object.name != null)
+ message.name = String(object.name);
+ if (object.destinationId != null)
+ message.destinationId = String(object.destinationId);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a MoveAssignmentRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.bigquery.reservation.v1.MoveAssignmentRequest
+ * @static
+ * @param {google.cloud.bigquery.reservation.v1.MoveAssignmentRequest} message MoveAssignmentRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ MoveAssignmentRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.name = "";
+ object.destinationId = "";
+ }
+ if (message.name != null && message.hasOwnProperty("name"))
+ object.name = message.name;
+ if (message.destinationId != null && message.hasOwnProperty("destinationId"))
+ object.destinationId = message.destinationId;
+ return object;
+ };
+
+ /**
+ * Converts this MoveAssignmentRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.bigquery.reservation.v1.MoveAssignmentRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ MoveAssignmentRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for MoveAssignmentRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.bigquery.reservation.v1.MoveAssignmentRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ MoveAssignmentRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.bigquery.reservation.v1.MoveAssignmentRequest";
+ };
+
+ return MoveAssignmentRequest;
+ })();
+
+ v1.UpdateAssignmentRequest = (function() {
+
+ /**
+ * Properties of an UpdateAssignmentRequest.
+ * @memberof google.cloud.bigquery.reservation.v1
+ * @interface IUpdateAssignmentRequest
+ * @property {google.cloud.bigquery.reservation.v1.IAssignment|null} [assignment] UpdateAssignmentRequest assignment
+ * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateAssignmentRequest updateMask
+ */
+
+ /**
+ * Constructs a new UpdateAssignmentRequest.
+ * @memberof google.cloud.bigquery.reservation.v1
+ * @classdesc Represents an UpdateAssignmentRequest.
+ * @implements IUpdateAssignmentRequest
+ * @constructor
+ * @param {google.cloud.bigquery.reservation.v1.IUpdateAssignmentRequest=} [properties] Properties to set
+ */
+ function UpdateAssignmentRequest(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]];
+ }
+
+ /**
+ * UpdateAssignmentRequest assignment.
+ * @member {google.cloud.bigquery.reservation.v1.IAssignment|null|undefined} assignment
+ * @memberof google.cloud.bigquery.reservation.v1.UpdateAssignmentRequest
+ * @instance
+ */
+ UpdateAssignmentRequest.prototype.assignment = null;
+
+ /**
+ * UpdateAssignmentRequest updateMask.
+ * @member {google.protobuf.IFieldMask|null|undefined} updateMask
+ * @memberof google.cloud.bigquery.reservation.v1.UpdateAssignmentRequest
+ * @instance
+ */
+ UpdateAssignmentRequest.prototype.updateMask = null;
+
+ /**
+ * Creates a new UpdateAssignmentRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.bigquery.reservation.v1.UpdateAssignmentRequest
+ * @static
+ * @param {google.cloud.bigquery.reservation.v1.IUpdateAssignmentRequest=} [properties] Properties to set
+ * @returns {google.cloud.bigquery.reservation.v1.UpdateAssignmentRequest} UpdateAssignmentRequest instance
+ */
+ UpdateAssignmentRequest.create = function create(properties) {
+ return new UpdateAssignmentRequest(properties);
+ };
+
+ /**
+ * Encodes the specified UpdateAssignmentRequest message. Does not implicitly {@link google.cloud.bigquery.reservation.v1.UpdateAssignmentRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.bigquery.reservation.v1.UpdateAssignmentRequest
+ * @static
+ * @param {google.cloud.bigquery.reservation.v1.IUpdateAssignmentRequest} message UpdateAssignmentRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ UpdateAssignmentRequest.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.assignment != null && Object.hasOwnProperty.call(message, "assignment"))
+ $root.google.cloud.bigquery.reservation.v1.Assignment.encode(message.assignment, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
+ if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask"))
+ $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified UpdateAssignmentRequest message, length delimited. Does not implicitly {@link google.cloud.bigquery.reservation.v1.UpdateAssignmentRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.bigquery.reservation.v1.UpdateAssignmentRequest
+ * @static
+ * @param {google.cloud.bigquery.reservation.v1.IUpdateAssignmentRequest} message UpdateAssignmentRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ UpdateAssignmentRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes an UpdateAssignmentRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.bigquery.reservation.v1.UpdateAssignmentRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.bigquery.reservation.v1.UpdateAssignmentRequest} UpdateAssignmentRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ UpdateAssignmentRequest.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.bigquery.reservation.v1.UpdateAssignmentRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.assignment = $root.google.cloud.bigquery.reservation.v1.Assignment.decode(reader, reader.uint32());
+ break;
+ }
+ case 2: {
+ message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an UpdateAssignmentRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.bigquery.reservation.v1.UpdateAssignmentRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.bigquery.reservation.v1.UpdateAssignmentRequest} UpdateAssignmentRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ UpdateAssignmentRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an UpdateAssignmentRequest message.
+ * @function verify
+ * @memberof google.cloud.bigquery.reservation.v1.UpdateAssignmentRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ UpdateAssignmentRequest.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.assignment != null && message.hasOwnProperty("assignment")) {
+ var error = $root.google.cloud.bigquery.reservation.v1.Assignment.verify(message.assignment);
+ if (error)
+ return "assignment." + 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 UpdateAssignmentRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.bigquery.reservation.v1.UpdateAssignmentRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.bigquery.reservation.v1.UpdateAssignmentRequest} UpdateAssignmentRequest
+ */
+ UpdateAssignmentRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.bigquery.reservation.v1.UpdateAssignmentRequest)
+ return object;
+ var message = new $root.google.cloud.bigquery.reservation.v1.UpdateAssignmentRequest();
+ if (object.assignment != null) {
+ if (typeof object.assignment !== "object")
+ throw TypeError(".google.cloud.bigquery.reservation.v1.UpdateAssignmentRequest.assignment: object expected");
+ message.assignment = $root.google.cloud.bigquery.reservation.v1.Assignment.fromObject(object.assignment);
+ }
+ if (object.updateMask != null) {
+ if (typeof object.updateMask !== "object")
+ throw TypeError(".google.cloud.bigquery.reservation.v1.UpdateAssignmentRequest.updateMask: object expected");
+ message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an UpdateAssignmentRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.bigquery.reservation.v1.UpdateAssignmentRequest
+ * @static
+ * @param {google.cloud.bigquery.reservation.v1.UpdateAssignmentRequest} message UpdateAssignmentRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ UpdateAssignmentRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.assignment = null;
+ object.updateMask = null;
+ }
+ if (message.assignment != null && message.hasOwnProperty("assignment"))
+ object.assignment = $root.google.cloud.bigquery.reservation.v1.Assignment.toObject(message.assignment, options);
+ if (message.updateMask != null && message.hasOwnProperty("updateMask"))
+ object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options);
+ return object;
+ };
+
+ /**
+ * Converts this UpdateAssignmentRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.bigquery.reservation.v1.UpdateAssignmentRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ UpdateAssignmentRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for UpdateAssignmentRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.bigquery.reservation.v1.UpdateAssignmentRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ UpdateAssignmentRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.bigquery.reservation.v1.UpdateAssignmentRequest";
+ };
+
+ return UpdateAssignmentRequest;
+ })();
+
+ v1.TableReference = (function() {
+
+ /**
+ * Properties of a TableReference.
+ * @memberof google.cloud.bigquery.reservation.v1
+ * @interface ITableReference
+ * @property {string|null} [projectId] TableReference projectId
+ * @property {string|null} [datasetId] TableReference datasetId
+ * @property {string|null} [tableId] TableReference tableId
+ */
+
+ /**
+ * Constructs a new TableReference.
+ * @memberof google.cloud.bigquery.reservation.v1
+ * @classdesc Represents a TableReference.
+ * @implements ITableReference
+ * @constructor
+ * @param {google.cloud.bigquery.reservation.v1.ITableReference=} [properties] Properties to set
+ */
+ function TableReference(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]];
+ }
+
+ /**
+ * TableReference projectId.
+ * @member {string} projectId
+ * @memberof google.cloud.bigquery.reservation.v1.TableReference
+ * @instance
+ */
+ TableReference.prototype.projectId = "";
+
+ /**
+ * TableReference datasetId.
+ * @member {string} datasetId
+ * @memberof google.cloud.bigquery.reservation.v1.TableReference
+ * @instance
+ */
+ TableReference.prototype.datasetId = "";
+
+ /**
+ * TableReference tableId.
+ * @member {string} tableId
+ * @memberof google.cloud.bigquery.reservation.v1.TableReference
+ * @instance
+ */
+ TableReference.prototype.tableId = "";
+
+ /**
+ * Creates a new TableReference instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.bigquery.reservation.v1.TableReference
+ * @static
+ * @param {google.cloud.bigquery.reservation.v1.ITableReference=} [properties] Properties to set
+ * @returns {google.cloud.bigquery.reservation.v1.TableReference} TableReference instance
+ */
+ TableReference.create = function create(properties) {
+ return new TableReference(properties);
+ };
+
+ /**
+ * Encodes the specified TableReference message. Does not implicitly {@link google.cloud.bigquery.reservation.v1.TableReference.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.bigquery.reservation.v1.TableReference
+ * @static
+ * @param {google.cloud.bigquery.reservation.v1.ITableReference} message TableReference message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ TableReference.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId);
+ if (message.datasetId != null && Object.hasOwnProperty.call(message, "datasetId"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.datasetId);
+ if (message.tableId != null && Object.hasOwnProperty.call(message, "tableId"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.tableId);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified TableReference message, length delimited. Does not implicitly {@link google.cloud.bigquery.reservation.v1.TableReference.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.bigquery.reservation.v1.TableReference
+ * @static
+ * @param {google.cloud.bigquery.reservation.v1.ITableReference} message TableReference message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ TableReference.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a TableReference message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.bigquery.reservation.v1.TableReference
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.bigquery.reservation.v1.TableReference} TableReference
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ TableReference.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.bigquery.reservation.v1.TableReference();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.projectId = reader.string();
+ break;
+ }
+ case 2: {
+ message.datasetId = reader.string();
+ break;
+ }
+ case 3: {
+ message.tableId = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a TableReference message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.bigquery.reservation.v1.TableReference
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.bigquery.reservation.v1.TableReference} TableReference
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ TableReference.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a TableReference message.
+ * @function verify
+ * @memberof google.cloud.bigquery.reservation.v1.TableReference
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ TableReference.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.projectId != null && message.hasOwnProperty("projectId"))
+ if (!$util.isString(message.projectId))
+ return "projectId: string expected";
+ if (message.datasetId != null && message.hasOwnProperty("datasetId"))
+ if (!$util.isString(message.datasetId))
+ return "datasetId: string expected";
+ if (message.tableId != null && message.hasOwnProperty("tableId"))
+ if (!$util.isString(message.tableId))
+ return "tableId: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a TableReference message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.bigquery.reservation.v1.TableReference
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.bigquery.reservation.v1.TableReference} TableReference
+ */
+ TableReference.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.bigquery.reservation.v1.TableReference)
+ return object;
+ var message = new $root.google.cloud.bigquery.reservation.v1.TableReference();
+ if (object.projectId != null)
+ message.projectId = String(object.projectId);
+ if (object.datasetId != null)
+ message.datasetId = String(object.datasetId);
+ if (object.tableId != null)
+ message.tableId = String(object.tableId);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a TableReference message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.bigquery.reservation.v1.TableReference
+ * @static
+ * @param {google.cloud.bigquery.reservation.v1.TableReference} message TableReference
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ TableReference.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.projectId = "";
+ object.datasetId = "";
+ object.tableId = "";
+ }
+ if (message.projectId != null && message.hasOwnProperty("projectId"))
+ object.projectId = message.projectId;
+ if (message.datasetId != null && message.hasOwnProperty("datasetId"))
+ object.datasetId = message.datasetId;
+ if (message.tableId != null && message.hasOwnProperty("tableId"))
+ object.tableId = message.tableId;
+ return object;
+ };
+
+ /**
+ * Converts this TableReference to JSON.
+ * @function toJSON
+ * @memberof google.cloud.bigquery.reservation.v1.TableReference
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ TableReference.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for TableReference
+ * @function getTypeUrl
+ * @memberof google.cloud.bigquery.reservation.v1.TableReference
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ TableReference.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.bigquery.reservation.v1.TableReference";
+ };
+
+ return TableReference;
+ })();
+
+ v1.BiReservation = (function() {
+
+ /**
+ * Properties of a BiReservation.
+ * @memberof google.cloud.bigquery.reservation.v1
+ * @interface IBiReservation
+ * @property {string|null} [name] BiReservation name
+ * @property {google.protobuf.ITimestamp|null} [updateTime] BiReservation updateTime
+ * @property {number|Long|null} [size] BiReservation size
+ * @property {Array.|null} [preferredTables] BiReservation preferredTables
+ */
+
+ /**
+ * Constructs a new BiReservation.
+ * @memberof google.cloud.bigquery.reservation.v1
+ * @classdesc Represents a BiReservation.
+ * @implements IBiReservation
+ * @constructor
+ * @param {google.cloud.bigquery.reservation.v1.IBiReservation=} [properties] Properties to set
+ */
+ function BiReservation(properties) {
+ this.preferredTables = [];
+ 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]];
+ }
+
+ /**
+ * BiReservation name.
+ * @member {string} name
+ * @memberof google.cloud.bigquery.reservation.v1.BiReservation
+ * @instance
+ */
+ BiReservation.prototype.name = "";
+
+ /**
+ * BiReservation updateTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} updateTime
+ * @memberof google.cloud.bigquery.reservation.v1.BiReservation
+ * @instance
+ */
+ BiReservation.prototype.updateTime = null;
+
+ /**
+ * BiReservation size.
+ * @member {number|Long} size
+ * @memberof google.cloud.bigquery.reservation.v1.BiReservation
+ * @instance
+ */
+ BiReservation.prototype.size = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
+
+ /**
+ * BiReservation preferredTables.
+ * @member {Array.} preferredTables
+ * @memberof google.cloud.bigquery.reservation.v1.BiReservation
+ * @instance
+ */
+ BiReservation.prototype.preferredTables = $util.emptyArray;
+
+ /**
+ * Creates a new BiReservation instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.bigquery.reservation.v1.BiReservation
+ * @static
+ * @param {google.cloud.bigquery.reservation.v1.IBiReservation=} [properties] Properties to set
+ * @returns {google.cloud.bigquery.reservation.v1.BiReservation} BiReservation instance
+ */
+ BiReservation.create = function create(properties) {
+ return new BiReservation(properties);
+ };
+
+ /**
+ * Encodes the specified BiReservation message. Does not implicitly {@link google.cloud.bigquery.reservation.v1.BiReservation.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.bigquery.reservation.v1.BiReservation
+ * @static
+ * @param {google.cloud.bigquery.reservation.v1.IBiReservation} message BiReservation message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ BiReservation.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.name != null && Object.hasOwnProperty.call(message, "name"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
+ if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime"))
+ $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
+ if (message.size != null && Object.hasOwnProperty.call(message, "size"))
+ writer.uint32(/* id 4, wireType 0 =*/32).int64(message.size);
+ if (message.preferredTables != null && message.preferredTables.length)
+ for (var i = 0; i < message.preferredTables.length; ++i)
+ $root.google.cloud.bigquery.reservation.v1.TableReference.encode(message.preferredTables[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified BiReservation message, length delimited. Does not implicitly {@link google.cloud.bigquery.reservation.v1.BiReservation.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.bigquery.reservation.v1.BiReservation
+ * @static
+ * @param {google.cloud.bigquery.reservation.v1.IBiReservation} message BiReservation message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ BiReservation.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a BiReservation message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.bigquery.reservation.v1.BiReservation
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.bigquery.reservation.v1.BiReservation} BiReservation
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ BiReservation.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.bigquery.reservation.v1.BiReservation();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.name = reader.string();
+ break;
+ }
+ case 3: {
+ message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
+ break;
+ }
+ case 4: {
+ message.size = reader.int64();
+ break;
+ }
+ case 5: {
+ if (!(message.preferredTables && message.preferredTables.length))
+ message.preferredTables = [];
+ message.preferredTables.push($root.google.cloud.bigquery.reservation.v1.TableReference.decode(reader, reader.uint32()));
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a BiReservation message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.bigquery.reservation.v1.BiReservation
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.bigquery.reservation.v1.BiReservation} BiReservation
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ BiReservation.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a BiReservation message.
+ * @function verify
+ * @memberof google.cloud.bigquery.reservation.v1.BiReservation
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ BiReservation.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.name != null && message.hasOwnProperty("name"))
+ if (!$util.isString(message.name))
+ return "name: string expected";
+ if (message.updateTime != null && message.hasOwnProperty("updateTime")) {
+ var error = $root.google.protobuf.Timestamp.verify(message.updateTime);
+ if (error)
+ return "updateTime." + error;
+ }
+ if (message.size != null && message.hasOwnProperty("size"))
+ if (!$util.isInteger(message.size) && !(message.size && $util.isInteger(message.size.low) && $util.isInteger(message.size.high)))
+ return "size: integer|Long expected";
+ if (message.preferredTables != null && message.hasOwnProperty("preferredTables")) {
+ if (!Array.isArray(message.preferredTables))
+ return "preferredTables: array expected";
+ for (var i = 0; i < message.preferredTables.length; ++i) {
+ var error = $root.google.cloud.bigquery.reservation.v1.TableReference.verify(message.preferredTables[i]);
+ if (error)
+ return "preferredTables." + error;
+ }
+ }
+ return null;
+ };
+
+ /**
+ * Creates a BiReservation message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.bigquery.reservation.v1.BiReservation
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.bigquery.reservation.v1.BiReservation} BiReservation
+ */
+ BiReservation.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.bigquery.reservation.v1.BiReservation)
+ return object;
+ var message = new $root.google.cloud.bigquery.reservation.v1.BiReservation();
+ if (object.name != null)
+ message.name = String(object.name);
+ if (object.updateTime != null) {
+ if (typeof object.updateTime !== "object")
+ throw TypeError(".google.cloud.bigquery.reservation.v1.BiReservation.updateTime: object expected");
+ message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime);
+ }
+ if (object.size != null)
+ if ($util.Long)
+ (message.size = $util.Long.fromValue(object.size)).unsigned = false;
+ else if (typeof object.size === "string")
+ message.size = parseInt(object.size, 10);
+ else if (typeof object.size === "number")
+ message.size = object.size;
+ else if (typeof object.size === "object")
+ message.size = new $util.LongBits(object.size.low >>> 0, object.size.high >>> 0).toNumber();
+ if (object.preferredTables) {
+ if (!Array.isArray(object.preferredTables))
+ throw TypeError(".google.cloud.bigquery.reservation.v1.BiReservation.preferredTables: array expected");
+ message.preferredTables = [];
+ for (var i = 0; i < object.preferredTables.length; ++i) {
+ if (typeof object.preferredTables[i] !== "object")
+ throw TypeError(".google.cloud.bigquery.reservation.v1.BiReservation.preferredTables: object expected");
+ message.preferredTables[i] = $root.google.cloud.bigquery.reservation.v1.TableReference.fromObject(object.preferredTables[i]);
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a BiReservation message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.bigquery.reservation.v1.BiReservation
+ * @static
+ * @param {google.cloud.bigquery.reservation.v1.BiReservation} message BiReservation
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ BiReservation.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.preferredTables = [];
+ if (options.defaults) {
+ object.name = "";
+ object.updateTime = null;
+ if ($util.Long) {
+ var long = new $util.Long(0, 0, false);
+ object.size = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
+ } else
+ object.size = options.longs === String ? "0" : 0;
+ }
+ if (message.name != null && message.hasOwnProperty("name"))
+ object.name = message.name;
+ if (message.updateTime != null && message.hasOwnProperty("updateTime"))
+ object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options);
+ if (message.size != null && message.hasOwnProperty("size"))
+ if (typeof message.size === "number")
+ object.size = options.longs === String ? String(message.size) : message.size;
+ else
+ object.size = options.longs === String ? $util.Long.prototype.toString.call(message.size) : options.longs === Number ? new $util.LongBits(message.size.low >>> 0, message.size.high >>> 0).toNumber() : message.size;
+ if (message.preferredTables && message.preferredTables.length) {
+ object.preferredTables = [];
+ for (var j = 0; j < message.preferredTables.length; ++j)
+ object.preferredTables[j] = $root.google.cloud.bigquery.reservation.v1.TableReference.toObject(message.preferredTables[j], options);
+ }
+ return object;
+ };
+
+ /**
+ * Converts this BiReservation to JSON.
+ * @function toJSON
+ * @memberof google.cloud.bigquery.reservation.v1.BiReservation
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ BiReservation.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for BiReservation
+ * @function getTypeUrl
+ * @memberof google.cloud.bigquery.reservation.v1.BiReservation
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ BiReservation.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.bigquery.reservation.v1.BiReservation";
+ };
+
+ return BiReservation;
+ })();
+
+ v1.GetBiReservationRequest = (function() {
+
+ /**
+ * Properties of a GetBiReservationRequest.
+ * @memberof google.cloud.bigquery.reservation.v1
+ * @interface IGetBiReservationRequest
+ * @property {string|null} [name] GetBiReservationRequest name
+ */
+
+ /**
+ * Constructs a new GetBiReservationRequest.
+ * @memberof google.cloud.bigquery.reservation.v1
+ * @classdesc Represents a GetBiReservationRequest.
+ * @implements IGetBiReservationRequest
+ * @constructor
+ * @param {google.cloud.bigquery.reservation.v1.IGetBiReservationRequest=} [properties] Properties to set
+ */
+ function GetBiReservationRequest(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]];
+ }
+
+ /**
+ * GetBiReservationRequest name.
+ * @member {string} name
+ * @memberof google.cloud.bigquery.reservation.v1.GetBiReservationRequest
+ * @instance
+ */
+ GetBiReservationRequest.prototype.name = "";
+
+ /**
+ * Creates a new GetBiReservationRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.bigquery.reservation.v1.GetBiReservationRequest
+ * @static
+ * @param {google.cloud.bigquery.reservation.v1.IGetBiReservationRequest=} [properties] Properties to set
+ * @returns {google.cloud.bigquery.reservation.v1.GetBiReservationRequest} GetBiReservationRequest instance
+ */
+ GetBiReservationRequest.create = function create(properties) {
+ return new GetBiReservationRequest(properties);
+ };
+
+ /**
+ * Encodes the specified GetBiReservationRequest message. Does not implicitly {@link google.cloud.bigquery.reservation.v1.GetBiReservationRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.bigquery.reservation.v1.GetBiReservationRequest
+ * @static
+ * @param {google.cloud.bigquery.reservation.v1.IGetBiReservationRequest} message GetBiReservationRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GetBiReservationRequest.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 GetBiReservationRequest message, length delimited. Does not implicitly {@link google.cloud.bigquery.reservation.v1.GetBiReservationRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.bigquery.reservation.v1.GetBiReservationRequest
+ * @static
+ * @param {google.cloud.bigquery.reservation.v1.IGetBiReservationRequest} message GetBiReservationRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GetBiReservationRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a GetBiReservationRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.bigquery.reservation.v1.GetBiReservationRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.bigquery.reservation.v1.GetBiReservationRequest} GetBiReservationRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GetBiReservationRequest.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.bigquery.reservation.v1.GetBiReservationRequest();
+ 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 GetBiReservationRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.bigquery.reservation.v1.GetBiReservationRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.bigquery.reservation.v1.GetBiReservationRequest} GetBiReservationRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GetBiReservationRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a GetBiReservationRequest message.
+ * @function verify
+ * @memberof google.cloud.bigquery.reservation.v1.GetBiReservationRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ GetBiReservationRequest.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 GetBiReservationRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.bigquery.reservation.v1.GetBiReservationRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.bigquery.reservation.v1.GetBiReservationRequest} GetBiReservationRequest
+ */
+ GetBiReservationRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.bigquery.reservation.v1.GetBiReservationRequest)
+ return object;
+ var message = new $root.google.cloud.bigquery.reservation.v1.GetBiReservationRequest();
+ if (object.name != null)
+ message.name = String(object.name);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a GetBiReservationRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.bigquery.reservation.v1.GetBiReservationRequest
+ * @static
+ * @param {google.cloud.bigquery.reservation.v1.GetBiReservationRequest} message GetBiReservationRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ GetBiReservationRequest.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 GetBiReservationRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.bigquery.reservation.v1.GetBiReservationRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ GetBiReservationRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for GetBiReservationRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.bigquery.reservation.v1.GetBiReservationRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ GetBiReservationRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.bigquery.reservation.v1.GetBiReservationRequest";
+ };
+
+ return GetBiReservationRequest;
+ })();
+
+ v1.UpdateBiReservationRequest = (function() {
+
+ /**
+ * Properties of an UpdateBiReservationRequest.
+ * @memberof google.cloud.bigquery.reservation.v1
+ * @interface IUpdateBiReservationRequest
+ * @property {google.cloud.bigquery.reservation.v1.IBiReservation|null} [biReservation] UpdateBiReservationRequest biReservation
+ * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateBiReservationRequest updateMask
+ */
+
+ /**
+ * Constructs a new UpdateBiReservationRequest.
+ * @memberof google.cloud.bigquery.reservation.v1
+ * @classdesc Represents an UpdateBiReservationRequest.
+ * @implements IUpdateBiReservationRequest
+ * @constructor
+ * @param {google.cloud.bigquery.reservation.v1.IUpdateBiReservationRequest=} [properties] Properties to set
+ */
+ function UpdateBiReservationRequest(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]];
+ }
+
+ /**
+ * UpdateBiReservationRequest biReservation.
+ * @member {google.cloud.bigquery.reservation.v1.IBiReservation|null|undefined} biReservation
+ * @memberof google.cloud.bigquery.reservation.v1.UpdateBiReservationRequest
+ * @instance
+ */
+ UpdateBiReservationRequest.prototype.biReservation = null;
+
+ /**
+ * UpdateBiReservationRequest updateMask.
+ * @member {google.protobuf.IFieldMask|null|undefined} updateMask
+ * @memberof google.cloud.bigquery.reservation.v1.UpdateBiReservationRequest
+ * @instance
+ */
+ UpdateBiReservationRequest.prototype.updateMask = null;
+
+ /**
+ * Creates a new UpdateBiReservationRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.bigquery.reservation.v1.UpdateBiReservationRequest
+ * @static
+ * @param {google.cloud.bigquery.reservation.v1.IUpdateBiReservationRequest=} [properties] Properties to set
+ * @returns {google.cloud.bigquery.reservation.v1.UpdateBiReservationRequest} UpdateBiReservationRequest instance
+ */
+ UpdateBiReservationRequest.create = function create(properties) {
+ return new UpdateBiReservationRequest(properties);
+ };
+
+ /**
+ * Encodes the specified UpdateBiReservationRequest message. Does not implicitly {@link google.cloud.bigquery.reservation.v1.UpdateBiReservationRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.bigquery.reservation.v1.UpdateBiReservationRequest
+ * @static
+ * @param {google.cloud.bigquery.reservation.v1.IUpdateBiReservationRequest} message UpdateBiReservationRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ UpdateBiReservationRequest.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.biReservation != null && Object.hasOwnProperty.call(message, "biReservation"))
+ $root.google.cloud.bigquery.reservation.v1.BiReservation.encode(message.biReservation, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
+ if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask"))
+ $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified UpdateBiReservationRequest message, length delimited. Does not implicitly {@link google.cloud.bigquery.reservation.v1.UpdateBiReservationRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.bigquery.reservation.v1.UpdateBiReservationRequest
+ * @static
+ * @param {google.cloud.bigquery.reservation.v1.IUpdateBiReservationRequest} message UpdateBiReservationRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ UpdateBiReservationRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes an UpdateBiReservationRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.bigquery.reservation.v1.UpdateBiReservationRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.bigquery.reservation.v1.UpdateBiReservationRequest} UpdateBiReservationRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ UpdateBiReservationRequest.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.bigquery.reservation.v1.UpdateBiReservationRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.biReservation = $root.google.cloud.bigquery.reservation.v1.BiReservation.decode(reader, reader.uint32());
+ break;
+ }
+ case 2: {
+ message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an UpdateBiReservationRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.bigquery.reservation.v1.UpdateBiReservationRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.bigquery.reservation.v1.UpdateBiReservationRequest} UpdateBiReservationRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ UpdateBiReservationRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an UpdateBiReservationRequest message.
+ * @function verify
+ * @memberof google.cloud.bigquery.reservation.v1.UpdateBiReservationRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ UpdateBiReservationRequest.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.biReservation != null && message.hasOwnProperty("biReservation")) {
+ var error = $root.google.cloud.bigquery.reservation.v1.BiReservation.verify(message.biReservation);
+ if (error)
+ return "biReservation." + 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 UpdateBiReservationRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.bigquery.reservation.v1.UpdateBiReservationRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.bigquery.reservation.v1.UpdateBiReservationRequest} UpdateBiReservationRequest
+ */
+ UpdateBiReservationRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.bigquery.reservation.v1.UpdateBiReservationRequest)
+ return object;
+ var message = new $root.google.cloud.bigquery.reservation.v1.UpdateBiReservationRequest();
+ if (object.biReservation != null) {
+ if (typeof object.biReservation !== "object")
+ throw TypeError(".google.cloud.bigquery.reservation.v1.UpdateBiReservationRequest.biReservation: object expected");
+ message.biReservation = $root.google.cloud.bigquery.reservation.v1.BiReservation.fromObject(object.biReservation);
+ }
+ if (object.updateMask != null) {
+ if (typeof object.updateMask !== "object")
+ throw TypeError(".google.cloud.bigquery.reservation.v1.UpdateBiReservationRequest.updateMask: object expected");
+ message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an UpdateBiReservationRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.bigquery.reservation.v1.UpdateBiReservationRequest
+ * @static
+ * @param {google.cloud.bigquery.reservation.v1.UpdateBiReservationRequest} message UpdateBiReservationRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ UpdateBiReservationRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.biReservation = null;
+ object.updateMask = null;
+ }
+ if (message.biReservation != null && message.hasOwnProperty("biReservation"))
+ object.biReservation = $root.google.cloud.bigquery.reservation.v1.BiReservation.toObject(message.biReservation, options);
+ if (message.updateMask != null && message.hasOwnProperty("updateMask"))
+ object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options);
+ return object;
+ };
+
+ /**
+ * Converts this UpdateBiReservationRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.bigquery.reservation.v1.UpdateBiReservationRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ UpdateBiReservationRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for UpdateBiReservationRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.bigquery.reservation.v1.UpdateBiReservationRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ UpdateBiReservationRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.bigquery.reservation.v1.UpdateBiReservationRequest";
+ };
+
+ return UpdateBiReservationRequest;
+ })();
+
+ return v1;
+ })();
+
+ return reservation;
+ })();
+
+ return bigquery;
+ })();
+
+ return cloud;
+ })();
+
+ google.api = (function() {
+
+ /**
+ * Namespace api.
+ * @memberof google
+ * @namespace
+ */
+ var api = {};
+
+ api.Http = (function() {
+
+ /**
+ * Properties of a Http.
+ * @memberof google.api
+ * @interface IHttp
+ * @property {Array.|null} [rules] Http rules
+ * @property {boolean|null} [fullyDecodeReservedExpansion] Http fullyDecodeReservedExpansion
+ */
+
+ /**
+ * Constructs a new Http.
+ * @memberof google.api
+ * @classdesc Represents a Http.
+ * @implements IHttp
+ * @constructor
+ * @param {google.api.IHttp=} [properties] Properties to set
+ */
+ function Http(properties) {
+ this.rules = [];
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null)
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * Http rules.
+ * @member {Array.} rules
+ * @memberof google.api.Http
+ * @instance
+ */
+ Http.prototype.rules = $util.emptyArray;
+
+ /**
+ * Http fullyDecodeReservedExpansion.
+ * @member {boolean} fullyDecodeReservedExpansion
+ * @memberof google.api.Http
+ * @instance
+ */
+ Http.prototype.fullyDecodeReservedExpansion = false;
+
+ /**
+ * Creates a new Http instance using the specified properties.
+ * @function create
+ * @memberof google.api.Http
+ * @static
+ * @param {google.api.IHttp=} [properties] Properties to set
+ * @returns {google.api.Http} Http instance
+ */
+ Http.create = function create(properties) {
+ return new Http(properties);
+ };
+
+ /**
+ * Encodes the specified Http message. Does not implicitly {@link google.api.Http.verify|verify} messages.
+ * @function encode
+ * @memberof google.api.Http
+ * @static
+ * @param {google.api.IHttp} message Http message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Http.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.rules != null && message.rules.length)
+ for (var i = 0; i < message.rules.length; ++i)
+ $root.google.api.HttpRule.encode(message.rules[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
+ if (message.fullyDecodeReservedExpansion != null && Object.hasOwnProperty.call(message, "fullyDecodeReservedExpansion"))
+ writer.uint32(/* id 2, wireType 0 =*/16).bool(message.fullyDecodeReservedExpansion);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified Http message, length delimited. Does not implicitly {@link google.api.Http.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.api.Http
+ * @static
+ * @param {google.api.IHttp} message Http message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Http.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a Http message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.api.Http
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.api.Http} Http
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Http.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.Http();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ if (!(message.rules && message.rules.length))
+ message.rules = [];
+ message.rules.push($root.google.api.HttpRule.decode(reader, reader.uint32()));
+ break;
+ }
+ case 2: {
+ message.fullyDecodeReservedExpansion = reader.bool();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a Http message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.api.Http
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.api.Http} Http
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Http.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a Http message.
+ * @function verify
+ * @memberof google.api.Http
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ Http.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.rules != null && message.hasOwnProperty("rules")) {
+ if (!Array.isArray(message.rules))
+ return "rules: array expected";
+ for (var i = 0; i < message.rules.length; ++i) {
+ var error = $root.google.api.HttpRule.verify(message.rules[i]);
+ if (error)
+ return "rules." + error;
+ }
+ }
+ if (message.fullyDecodeReservedExpansion != null && message.hasOwnProperty("fullyDecodeReservedExpansion"))
+ if (typeof message.fullyDecodeReservedExpansion !== "boolean")
+ return "fullyDecodeReservedExpansion: boolean expected";
+ return null;
+ };
+
+ /**
+ * Creates a Http message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.api.Http
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.api.Http} Http
+ */
+ Http.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.api.Http)
+ return object;
+ var message = new $root.google.api.Http();
+ if (object.rules) {
+ if (!Array.isArray(object.rules))
+ throw TypeError(".google.api.Http.rules: array expected");
+ message.rules = [];
+ for (var i = 0; i < object.rules.length; ++i) {
+ if (typeof object.rules[i] !== "object")
+ throw TypeError(".google.api.Http.rules: object expected");
+ message.rules[i] = $root.google.api.HttpRule.fromObject(object.rules[i]);
+ }
+ }
+ if (object.fullyDecodeReservedExpansion != null)
+ message.fullyDecodeReservedExpansion = Boolean(object.fullyDecodeReservedExpansion);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a Http message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.api.Http
+ * @static
+ * @param {google.api.Http} message Http
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ Http.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.rules = [];
+ if (options.defaults)
+ object.fullyDecodeReservedExpansion = false;
+ if (message.rules && message.rules.length) {
+ object.rules = [];
+ for (var j = 0; j < message.rules.length; ++j)
+ object.rules[j] = $root.google.api.HttpRule.toObject(message.rules[j], options);
+ }
+ if (message.fullyDecodeReservedExpansion != null && message.hasOwnProperty("fullyDecodeReservedExpansion"))
+ object.fullyDecodeReservedExpansion = message.fullyDecodeReservedExpansion;
+ return object;
+ };
+
+ /**
+ * Converts this Http to JSON.
+ * @function toJSON
+ * @memberof google.api.Http
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ Http.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for Http
+ * @function getTypeUrl
+ * @memberof google.api.Http
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ Http.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.api.Http";
+ };
+
+ return Http;
+ })();
+
+ api.HttpRule = (function() {
+
+ /**
+ * Properties of a HttpRule.
+ * @memberof google.api
+ * @interface IHttpRule
+ * @property {string|null} [selector] HttpRule selector
+ * @property {string|null} [get] HttpRule get
+ * @property {string|null} [put] HttpRule put
+ * @property {string|null} [post] HttpRule post
+ * @property {string|null} ["delete"] HttpRule delete
+ * @property {string|null} [patch] HttpRule patch
+ * @property {google.api.ICustomHttpPattern|null} [custom] HttpRule custom
+ * @property {string|null} [body] HttpRule body
+ * @property {string|null} [responseBody] HttpRule responseBody
+ * @property {Array.|null} [additionalBindings] HttpRule additionalBindings
+ */
+
+ /**
+ * Constructs a new HttpRule.
+ * @memberof google.api
+ * @classdesc Represents a HttpRule.
+ * @implements IHttpRule
+ * @constructor
+ * @param {google.api.IHttpRule=} [properties] Properties to set
+ */
+ function HttpRule(properties) {
+ this.additionalBindings = [];
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null)
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * HttpRule selector.
+ * @member {string} selector
+ * @memberof google.api.HttpRule
+ * @instance
+ */
+ HttpRule.prototype.selector = "";
+
+ /**
+ * HttpRule get.
+ * @member {string|null|undefined} get
+ * @memberof google.api.HttpRule
+ * @instance
+ */
+ HttpRule.prototype.get = null;
+
+ /**
+ * HttpRule put.
+ * @member {string|null|undefined} put
+ * @memberof google.api.HttpRule
+ * @instance
+ */
+ HttpRule.prototype.put = null;
+
+ /**
+ * HttpRule post.
+ * @member {string|null|undefined} post
+ * @memberof google.api.HttpRule
+ * @instance
+ */
+ HttpRule.prototype.post = null;
+
+ /**
+ * HttpRule delete.
+ * @member {string|null|undefined} delete
+ * @memberof google.api.HttpRule
+ * @instance
+ */
+ HttpRule.prototype["delete"] = null;
+
+ /**
+ * HttpRule patch.
+ * @member {string|null|undefined} patch
+ * @memberof google.api.HttpRule
+ * @instance
+ */
+ HttpRule.prototype.patch = null;
+
+ /**
+ * HttpRule custom.
+ * @member {google.api.ICustomHttpPattern|null|undefined} custom
+ * @memberof google.api.HttpRule
+ * @instance
+ */
+ HttpRule.prototype.custom = null;
+
+ /**
+ * HttpRule body.
+ * @member {string} body
+ * @memberof google.api.HttpRule
+ * @instance
+ */
+ HttpRule.prototype.body = "";
+
+ /**
+ * HttpRule responseBody.
+ * @member {string} responseBody
+ * @memberof google.api.HttpRule
+ * @instance
+ */
+ HttpRule.prototype.responseBody = "";
+
+ /**
+ * HttpRule additionalBindings.
+ * @member {Array.} additionalBindings
+ * @memberof google.api.HttpRule
+ * @instance
+ */
+ HttpRule.prototype.additionalBindings = $util.emptyArray;
+
+ // OneOf field names bound to virtual getters and setters
+ var $oneOfFields;
+
+ /**
+ * HttpRule pattern.
+ * @member {"get"|"put"|"post"|"delete"|"patch"|"custom"|undefined} pattern
+ * @memberof google.api.HttpRule
+ * @instance
+ */
+ Object.defineProperty(HttpRule.prototype, "pattern", {
+ get: $util.oneOfGetter($oneOfFields = ["get", "put", "post", "delete", "patch", "custom"]),
+ set: $util.oneOfSetter($oneOfFields)
+ });
+
+ /**
+ * Creates a new HttpRule instance using the specified properties.
+ * @function create
+ * @memberof google.api.HttpRule
+ * @static
+ * @param {google.api.IHttpRule=} [properties] Properties to set
+ * @returns {google.api.HttpRule} HttpRule instance
+ */
+ HttpRule.create = function create(properties) {
+ return new HttpRule(properties);
+ };
+
+ /**
+ * Encodes the specified HttpRule message. Does not implicitly {@link google.api.HttpRule.verify|verify} messages.
+ * @function encode
+ * @memberof google.api.HttpRule
+ * @static
+ * @param {google.api.IHttpRule} message HttpRule message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ HttpRule.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.selector != null && Object.hasOwnProperty.call(message, "selector"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.selector);
+ if (message.get != null && Object.hasOwnProperty.call(message, "get"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.get);
+ if (message.put != null && Object.hasOwnProperty.call(message, "put"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.put);
+ if (message.post != null && Object.hasOwnProperty.call(message, "post"))
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.post);
+ if (message["delete"] != null && Object.hasOwnProperty.call(message, "delete"))
+ writer.uint32(/* id 5, wireType 2 =*/42).string(message["delete"]);
+ if (message.patch != null && Object.hasOwnProperty.call(message, "patch"))
+ writer.uint32(/* id 6, wireType 2 =*/50).string(message.patch);
+ if (message.body != null && Object.hasOwnProperty.call(message, "body"))
+ writer.uint32(/* id 7, wireType 2 =*/58).string(message.body);
+ if (message.custom != null && Object.hasOwnProperty.call(message, "custom"))
+ $root.google.api.CustomHttpPattern.encode(message.custom, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim();
+ if (message.additionalBindings != null && message.additionalBindings.length)
+ for (var i = 0; i < message.additionalBindings.length; ++i)
+ $root.google.api.HttpRule.encode(message.additionalBindings[i], writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim();
+ if (message.responseBody != null && Object.hasOwnProperty.call(message, "responseBody"))
+ writer.uint32(/* id 12, wireType 2 =*/98).string(message.responseBody);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified HttpRule message, length delimited. Does not implicitly {@link google.api.HttpRule.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.api.HttpRule
+ * @static
+ * @param {google.api.IHttpRule} message HttpRule message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ HttpRule.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a HttpRule message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.api.HttpRule
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.api.HttpRule} HttpRule
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ HttpRule.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.HttpRule();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.selector = reader.string();
+ break;
+ }
+ case 2: {
+ message.get = reader.string();
+ break;
+ }
+ case 3: {
+ message.put = reader.string();
+ break;
+ }
+ case 4: {
+ message.post = reader.string();
+ break;
+ }
+ case 5: {
+ message["delete"] = reader.string();
+ break;
+ }
+ case 6: {
+ message.patch = reader.string();
+ break;
+ }
+ case 8: {
+ message.custom = $root.google.api.CustomHttpPattern.decode(reader, reader.uint32());
+ break;
+ }
+ case 7: {
+ message.body = reader.string();
+ break;
+ }
+ case 12: {
+ message.responseBody = reader.string();
+ break;
+ }
+ case 11: {
+ if (!(message.additionalBindings && message.additionalBindings.length))
+ message.additionalBindings = [];
+ message.additionalBindings.push($root.google.api.HttpRule.decode(reader, reader.uint32()));
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a HttpRule message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.api.HttpRule
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.api.HttpRule} HttpRule
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ HttpRule.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a HttpRule message.
+ * @function verify
+ * @memberof google.api.HttpRule
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ HttpRule.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ var properties = {};
+ if (message.selector != null && message.hasOwnProperty("selector"))
+ if (!$util.isString(message.selector))
+ return "selector: string expected";
+ if (message.get != null && message.hasOwnProperty("get")) {
+ properties.pattern = 1;
+ if (!$util.isString(message.get))
+ return "get: string expected";
+ }
+ if (message.put != null && message.hasOwnProperty("put")) {
+ if (properties.pattern === 1)
+ return "pattern: multiple values";
+ properties.pattern = 1;
+ if (!$util.isString(message.put))
+ return "put: string expected";
+ }
+ if (message.post != null && message.hasOwnProperty("post")) {
+ if (properties.pattern === 1)
+ return "pattern: multiple values";
+ properties.pattern = 1;
+ if (!$util.isString(message.post))
+ return "post: string expected";
+ }
+ if (message["delete"] != null && message.hasOwnProperty("delete")) {
+ if (properties.pattern === 1)
+ return "pattern: multiple values";
+ properties.pattern = 1;
+ if (!$util.isString(message["delete"]))
+ return "delete: string expected";
+ }
+ if (message.patch != null && message.hasOwnProperty("patch")) {
+ if (properties.pattern === 1)
+ return "pattern: multiple values";
+ properties.pattern = 1;
+ if (!$util.isString(message.patch))
+ return "patch: string expected";
+ }
+ if (message.custom != null && message.hasOwnProperty("custom")) {
+ if (properties.pattern === 1)
+ return "pattern: multiple values";
+ properties.pattern = 1;
+ {
+ var error = $root.google.api.CustomHttpPattern.verify(message.custom);
+ if (error)
+ return "custom." + error;
+ }
+ }
+ if (message.body != null && message.hasOwnProperty("body"))
+ if (!$util.isString(message.body))
+ return "body: string expected";
+ if (message.responseBody != null && message.hasOwnProperty("responseBody"))
+ if (!$util.isString(message.responseBody))
+ return "responseBody: string expected";
+ if (message.additionalBindings != null && message.hasOwnProperty("additionalBindings")) {
+ if (!Array.isArray(message.additionalBindings))
+ return "additionalBindings: array expected";
+ for (var i = 0; i < message.additionalBindings.length; ++i) {
+ var error = $root.google.api.HttpRule.verify(message.additionalBindings[i]);
+ if (error)
+ return "additionalBindings." + error;
+ }
+ }
+ return null;
+ };
+
+ /**
+ * Creates a HttpRule message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.api.HttpRule
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.api.HttpRule} HttpRule
+ */
+ HttpRule.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.api.HttpRule)
+ return object;
+ var message = new $root.google.api.HttpRule();
+ if (object.selector != null)
+ message.selector = String(object.selector);
+ if (object.get != null)
+ message.get = String(object.get);
+ if (object.put != null)
+ message.put = String(object.put);
+ if (object.post != null)
+ message.post = String(object.post);
+ if (object["delete"] != null)
+ message["delete"] = String(object["delete"]);
+ if (object.patch != null)
+ message.patch = String(object.patch);
+ if (object.custom != null) {
+ if (typeof object.custom !== "object")
+ throw TypeError(".google.api.HttpRule.custom: object expected");
+ message.custom = $root.google.api.CustomHttpPattern.fromObject(object.custom);
+ }
+ if (object.body != null)
+ message.body = String(object.body);
+ if (object.responseBody != null)
+ message.responseBody = String(object.responseBody);
+ if (object.additionalBindings) {
+ if (!Array.isArray(object.additionalBindings))
+ throw TypeError(".google.api.HttpRule.additionalBindings: array expected");
+ message.additionalBindings = [];
+ for (var i = 0; i < object.additionalBindings.length; ++i) {
+ if (typeof object.additionalBindings[i] !== "object")
+ throw TypeError(".google.api.HttpRule.additionalBindings: object expected");
+ message.additionalBindings[i] = $root.google.api.HttpRule.fromObject(object.additionalBindings[i]);
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a HttpRule message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.api.HttpRule
+ * @static
+ * @param {google.api.HttpRule} message HttpRule
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ HttpRule.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.additionalBindings = [];
+ if (options.defaults) {
+ object.selector = "";
+ object.body = "";
+ object.responseBody = "";
+ }
+ if (message.selector != null && message.hasOwnProperty("selector"))
+ object.selector = message.selector;
+ if (message.get != null && message.hasOwnProperty("get")) {
+ object.get = message.get;
+ if (options.oneofs)
+ object.pattern = "get";
+ }
+ if (message.put != null && message.hasOwnProperty("put")) {
+ object.put = message.put;
+ if (options.oneofs)
+ object.pattern = "put";
+ }
+ if (message.post != null && message.hasOwnProperty("post")) {
+ object.post = message.post;
+ if (options.oneofs)
+ object.pattern = "post";
+ }
+ if (message["delete"] != null && message.hasOwnProperty("delete")) {
+ object["delete"] = message["delete"];
+ if (options.oneofs)
+ object.pattern = "delete";
+ }
+ if (message.patch != null && message.hasOwnProperty("patch")) {
+ object.patch = message.patch;
+ if (options.oneofs)
+ object.pattern = "patch";
+ }
+ if (message.body != null && message.hasOwnProperty("body"))
+ object.body = message.body;
+ if (message.custom != null && message.hasOwnProperty("custom")) {
+ object.custom = $root.google.api.CustomHttpPattern.toObject(message.custom, options);
+ if (options.oneofs)
+ object.pattern = "custom";
+ }
+ if (message.additionalBindings && message.additionalBindings.length) {
+ object.additionalBindings = [];
+ for (var j = 0; j < message.additionalBindings.length; ++j)
+ object.additionalBindings[j] = $root.google.api.HttpRule.toObject(message.additionalBindings[j], options);
+ }
+ if (message.responseBody != null && message.hasOwnProperty("responseBody"))
+ object.responseBody = message.responseBody;
+ return object;
+ };
+
+ /**
+ * Converts this HttpRule to JSON.
+ * @function toJSON
+ * @memberof google.api.HttpRule
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ HttpRule.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for HttpRule
+ * @function getTypeUrl
+ * @memberof google.api.HttpRule
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ HttpRule.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.api.HttpRule";
+ };
+
+ return HttpRule;
+ })();
+
+ api.CustomHttpPattern = (function() {
+
+ /**
+ * Properties of a CustomHttpPattern.
+ * @memberof google.api
+ * @interface ICustomHttpPattern
+ * @property {string|null} [kind] CustomHttpPattern kind
+ * @property {string|null} [path] CustomHttpPattern path
+ */
+
+ /**
+ * Constructs a new CustomHttpPattern.
+ * @memberof google.api
+ * @classdesc Represents a CustomHttpPattern.
+ * @implements ICustomHttpPattern
+ * @constructor
+ * @param {google.api.ICustomHttpPattern=} [properties] Properties to set
+ */
+ function CustomHttpPattern(properties) {
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null)
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * CustomHttpPattern kind.
+ * @member {string} kind
+ * @memberof google.api.CustomHttpPattern
+ * @instance
+ */
+ CustomHttpPattern.prototype.kind = "";
+
+ /**
+ * CustomHttpPattern path.
+ * @member {string} path
+ * @memberof google.api.CustomHttpPattern
+ * @instance
+ */
+ CustomHttpPattern.prototype.path = "";
+
+ /**
+ * Creates a new CustomHttpPattern instance using the specified properties.
+ * @function create
+ * @memberof google.api.CustomHttpPattern
+ * @static
+ * @param {google.api.ICustomHttpPattern=} [properties] Properties to set
+ * @returns {google.api.CustomHttpPattern} CustomHttpPattern instance
+ */
+ CustomHttpPattern.create = function create(properties) {
+ return new CustomHttpPattern(properties);
+ };
+
+ /**
+ * Encodes the specified CustomHttpPattern message. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages.
+ * @function encode
+ * @memberof google.api.CustomHttpPattern
+ * @static
+ * @param {google.api.ICustomHttpPattern} message CustomHttpPattern message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ CustomHttpPattern.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.kind != null && Object.hasOwnProperty.call(message, "kind"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.kind);
+ if (message.path != null && Object.hasOwnProperty.call(message, "path"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.path);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified CustomHttpPattern message, length delimited. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.api.CustomHttpPattern
+ * @static
+ * @param {google.api.ICustomHttpPattern} message CustomHttpPattern message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ CustomHttpPattern.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a CustomHttpPattern message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.api.CustomHttpPattern
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.api.CustomHttpPattern} CustomHttpPattern
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ CustomHttpPattern.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.CustomHttpPattern();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.kind = reader.string();
+ break;
+ }
+ case 2: {
+ message.path = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a CustomHttpPattern message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.api.CustomHttpPattern
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.api.CustomHttpPattern} CustomHttpPattern
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ CustomHttpPattern.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a CustomHttpPattern message.
+ * @function verify
+ * @memberof google.api.CustomHttpPattern
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ CustomHttpPattern.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.kind != null && message.hasOwnProperty("kind"))
+ if (!$util.isString(message.kind))
+ return "kind: string expected";
+ if (message.path != null && message.hasOwnProperty("path"))
+ if (!$util.isString(message.path))
+ return "path: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a CustomHttpPattern message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.api.CustomHttpPattern
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.api.CustomHttpPattern} CustomHttpPattern
+ */
+ CustomHttpPattern.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.api.CustomHttpPattern)
+ return object;
+ var message = new $root.google.api.CustomHttpPattern();
+ if (object.kind != null)
+ message.kind = String(object.kind);
+ if (object.path != null)
+ message.path = String(object.path);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a CustomHttpPattern message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.api.CustomHttpPattern
+ * @static
+ * @param {google.api.CustomHttpPattern} message CustomHttpPattern
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ CustomHttpPattern.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.kind = "";
+ object.path = "";
+ }
+ if (message.kind != null && message.hasOwnProperty("kind"))
+ object.kind = message.kind;
+ if (message.path != null && message.hasOwnProperty("path"))
+ object.path = message.path;
+ return object;
+ };
+
+ /**
+ * Converts this CustomHttpPattern to JSON.
+ * @function toJSON
+ * @memberof google.api.CustomHttpPattern
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ CustomHttpPattern.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for CustomHttpPattern
+ * @function getTypeUrl
+ * @memberof google.api.CustomHttpPattern
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ CustomHttpPattern.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.api.CustomHttpPattern";
+ };
+
+ return CustomHttpPattern;
+ })();
+
+ /**
+ * FieldBehavior enum.
+ * @name google.api.FieldBehavior
+ * @enum {number}
+ * @property {number} FIELD_BEHAVIOR_UNSPECIFIED=0 FIELD_BEHAVIOR_UNSPECIFIED value
+ * @property {number} OPTIONAL=1 OPTIONAL value
+ * @property {number} REQUIRED=2 REQUIRED value
+ * @property {number} OUTPUT_ONLY=3 OUTPUT_ONLY value
+ * @property {number} INPUT_ONLY=4 INPUT_ONLY value
+ * @property {number} IMMUTABLE=5 IMMUTABLE value
+ * @property {number} UNORDERED_LIST=6 UNORDERED_LIST value
+ * @property {number} NON_EMPTY_DEFAULT=7 NON_EMPTY_DEFAULT value
+ */
+ api.FieldBehavior = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "FIELD_BEHAVIOR_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "OPTIONAL"] = 1;
+ values[valuesById[2] = "REQUIRED"] = 2;
+ values[valuesById[3] = "OUTPUT_ONLY"] = 3;
+ values[valuesById[4] = "INPUT_ONLY"] = 4;
+ values[valuesById[5] = "IMMUTABLE"] = 5;
+ values[valuesById[6] = "UNORDERED_LIST"] = 6;
+ values[valuesById[7] = "NON_EMPTY_DEFAULT"] = 7;
+ return values;
+ })();
+
+ api.ResourceDescriptor = (function() {
+
+ /**
+ * Properties of a ResourceDescriptor.
+ * @memberof google.api
+ * @interface IResourceDescriptor
+ * @property {string|null} [type] ResourceDescriptor type
+ * @property {Array.|null} [pattern] ResourceDescriptor pattern
+ * @property {string|null} [nameField] ResourceDescriptor nameField
+ * @property {google.api.ResourceDescriptor.History|null} [history] ResourceDescriptor history
+ * @property {string|null} [plural] ResourceDescriptor plural
+ * @property {string|null} [singular] ResourceDescriptor singular
+ * @property {Array.|null} [style] ResourceDescriptor style
+ */
+
+ /**
+ * Constructs a new ResourceDescriptor.
+ * @memberof google.api
+ * @classdesc Represents a ResourceDescriptor.
+ * @implements IResourceDescriptor
+ * @constructor
+ * @param {google.api.IResourceDescriptor=} [properties] Properties to set
+ */
+ function ResourceDescriptor(properties) {
+ this.pattern = [];
+ this.style = [];
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null)
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * ResourceDescriptor type.
+ * @member {string} type
+ * @memberof google.api.ResourceDescriptor
+ * @instance
+ */
+ ResourceDescriptor.prototype.type = "";
+
+ /**
+ * ResourceDescriptor pattern.
+ * @member {Array.} pattern
+ * @memberof google.api.ResourceDescriptor
+ * @instance
+ */
+ ResourceDescriptor.prototype.pattern = $util.emptyArray;
+
+ /**
+ * ResourceDescriptor nameField.
+ * @member {string} nameField
+ * @memberof google.api.ResourceDescriptor
+ * @instance
+ */
+ ResourceDescriptor.prototype.nameField = "";
+
+ /**
+ * ResourceDescriptor history.
+ * @member {google.api.ResourceDescriptor.History} history
+ * @memberof google.api.ResourceDescriptor
+ * @instance
+ */
+ ResourceDescriptor.prototype.history = 0;
+
+ /**
+ * ResourceDescriptor plural.
+ * @member {string} plural
+ * @memberof google.api.ResourceDescriptor
+ * @instance
+ */
+ ResourceDescriptor.prototype.plural = "";
+
+ /**
+ * ResourceDescriptor singular.
+ * @member {string} singular
+ * @memberof google.api.ResourceDescriptor
+ * @instance
+ */
+ ResourceDescriptor.prototype.singular = "";
+
+ /**
+ * ResourceDescriptor style.
+ * @member {Array.} style
+ * @memberof google.api.ResourceDescriptor
+ * @instance
+ */
+ ResourceDescriptor.prototype.style = $util.emptyArray;
+
+ /**
+ * Creates a new ResourceDescriptor instance using the specified properties.
+ * @function create
+ * @memberof google.api.ResourceDescriptor
+ * @static
+ * @param {google.api.IResourceDescriptor=} [properties] Properties to set
+ * @returns {google.api.ResourceDescriptor} ResourceDescriptor instance
+ */
+ ResourceDescriptor.create = function create(properties) {
+ return new ResourceDescriptor(properties);
+ };
+
+ /**
+ * Encodes the specified ResourceDescriptor message. Does not implicitly {@link google.api.ResourceDescriptor.verify|verify} messages.
+ * @function encode
+ * @memberof google.api.ResourceDescriptor
+ * @static
+ * @param {google.api.IResourceDescriptor} message ResourceDescriptor message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ResourceDescriptor.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.type != null && Object.hasOwnProperty.call(message, "type"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.type);
+ if (message.pattern != null && message.pattern.length)
+ for (var i = 0; i < message.pattern.length; ++i)
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.pattern[i]);
+ if (message.nameField != null && Object.hasOwnProperty.call(message, "nameField"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.nameField);
+ if (message.history != null && Object.hasOwnProperty.call(message, "history"))
+ writer.uint32(/* id 4, wireType 0 =*/32).int32(message.history);
+ if (message.plural != null && Object.hasOwnProperty.call(message, "plural"))
+ writer.uint32(/* id 5, wireType 2 =*/42).string(message.plural);
+ if (message.singular != null && Object.hasOwnProperty.call(message, "singular"))
+ writer.uint32(/* id 6, wireType 2 =*/50).string(message.singular);
+ if (message.style != null && message.style.length) {
+ writer.uint32(/* id 10, wireType 2 =*/82).fork();
+ for (var i = 0; i < message.style.length; ++i)
+ writer.int32(message.style[i]);
+ writer.ldelim();
+ }
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ResourceDescriptor message, length delimited. Does not implicitly {@link google.api.ResourceDescriptor.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.api.ResourceDescriptor
+ * @static
+ * @param {google.api.IResourceDescriptor} message ResourceDescriptor message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ResourceDescriptor.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ResourceDescriptor message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.api.ResourceDescriptor
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.api.ResourceDescriptor} ResourceDescriptor
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ResourceDescriptor.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.ResourceDescriptor();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.type = reader.string();
+ break;
+ }
+ case 2: {
+ if (!(message.pattern && message.pattern.length))
+ message.pattern = [];
+ message.pattern.push(reader.string());
+ break;
+ }
+ case 3: {
+ message.nameField = reader.string();
+ break;
+ }
+ case 4: {
+ message.history = reader.int32();
+ break;
+ }
+ case 5: {
+ message.plural = reader.string();
+ break;
+ }
+ case 6: {
+ message.singular = reader.string();
+ break;
+ }
+ case 10: {
+ if (!(message.style && message.style.length))
+ message.style = [];
+ if ((tag & 7) === 2) {
+ var end2 = reader.uint32() + reader.pos;
+ while (reader.pos < end2)
+ message.style.push(reader.int32());
+ } else
+ message.style.push(reader.int32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ResourceDescriptor message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.api.ResourceDescriptor
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.api.ResourceDescriptor} ResourceDescriptor
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ResourceDescriptor.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ResourceDescriptor message.
+ * @function verify
+ * @memberof google.api.ResourceDescriptor
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ResourceDescriptor.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.type != null && message.hasOwnProperty("type"))
+ if (!$util.isString(message.type))
+ return "type: string expected";
+ if (message.pattern != null && message.hasOwnProperty("pattern")) {
+ if (!Array.isArray(message.pattern))
+ return "pattern: array expected";
+ for (var i = 0; i < message.pattern.length; ++i)
+ if (!$util.isString(message.pattern[i]))
+ return "pattern: string[] expected";
+ }
+ if (message.nameField != null && message.hasOwnProperty("nameField"))
+ if (!$util.isString(message.nameField))
+ return "nameField: string expected";
+ if (message.history != null && message.hasOwnProperty("history"))
+ switch (message.history) {
+ default:
+ return "history: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ break;
+ }
+ if (message.plural != null && message.hasOwnProperty("plural"))
+ if (!$util.isString(message.plural))
+ return "plural: string expected";
+ if (message.singular != null && message.hasOwnProperty("singular"))
+ if (!$util.isString(message.singular))
+ return "singular: string expected";
+ if (message.style != null && message.hasOwnProperty("style")) {
+ if (!Array.isArray(message.style))
+ return "style: array expected";
+ for (var i = 0; i < message.style.length; ++i)
+ switch (message.style[i]) {
+ default:
+ return "style: enum value[] expected";
+ case 0:
+ case 1:
+ break;
+ }
+ }
+ return null;
+ };
+
+ /**
+ * Creates a ResourceDescriptor message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.api.ResourceDescriptor
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.api.ResourceDescriptor} ResourceDescriptor
+ */
+ ResourceDescriptor.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.api.ResourceDescriptor)
+ return object;
+ var message = new $root.google.api.ResourceDescriptor();
+ if (object.type != null)
+ message.type = String(object.type);
+ if (object.pattern) {
+ if (!Array.isArray(object.pattern))
+ throw TypeError(".google.api.ResourceDescriptor.pattern: array expected");
+ message.pattern = [];
+ for (var i = 0; i < object.pattern.length; ++i)
+ message.pattern[i] = String(object.pattern[i]);
+ }
+ if (object.nameField != null)
+ message.nameField = String(object.nameField);
+ switch (object.history) {
+ case "HISTORY_UNSPECIFIED":
+ case 0:
+ message.history = 0;
+ break;
+ case "ORIGINALLY_SINGLE_PATTERN":
+ case 1:
+ message.history = 1;
+ break;
+ case "FUTURE_MULTI_PATTERN":
+ case 2:
+ message.history = 2;
+ break;
+ }
+ if (object.plural != null)
+ message.plural = String(object.plural);
+ if (object.singular != null)
+ message.singular = String(object.singular);
+ if (object.style) {
+ if (!Array.isArray(object.style))
+ throw TypeError(".google.api.ResourceDescriptor.style: array expected");
+ message.style = [];
+ for (var i = 0; i < object.style.length; ++i)
+ switch (object.style[i]) {
+ default:
+ case "STYLE_UNSPECIFIED":
+ case 0:
+ message.style[i] = 0;
+ break;
+ case "DECLARATIVE_FRIENDLY":
+ case 1:
+ message.style[i] = 1;
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ResourceDescriptor message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.api.ResourceDescriptor
+ * @static
+ * @param {google.api.ResourceDescriptor} message ResourceDescriptor
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ResourceDescriptor.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults) {
+ object.pattern = [];
+ object.style = [];
+ }
+ if (options.defaults) {
+ object.type = "";
+ object.nameField = "";
+ object.history = options.enums === String ? "HISTORY_UNSPECIFIED" : 0;
+ object.plural = "";
+ object.singular = "";
+ }
+ if (message.type != null && message.hasOwnProperty("type"))
+ object.type = message.type;
+ if (message.pattern && message.pattern.length) {
+ object.pattern = [];
+ for (var j = 0; j < message.pattern.length; ++j)
+ object.pattern[j] = message.pattern[j];
+ }
+ if (message.nameField != null && message.hasOwnProperty("nameField"))
+ object.nameField = message.nameField;
+ if (message.history != null && message.hasOwnProperty("history"))
+ object.history = options.enums === String ? $root.google.api.ResourceDescriptor.History[message.history] : message.history;
+ if (message.plural != null && message.hasOwnProperty("plural"))
+ object.plural = message.plural;
+ if (message.singular != null && message.hasOwnProperty("singular"))
+ object.singular = message.singular;
+ if (message.style && message.style.length) {
+ object.style = [];
+ for (var j = 0; j < message.style.length; ++j)
+ object.style[j] = options.enums === String ? $root.google.api.ResourceDescriptor.Style[message.style[j]] : message.style[j];
+ }
+ return object;
+ };
+
+ /**
+ * Converts this ResourceDescriptor to JSON.
+ * @function toJSON
+ * @memberof google.api.ResourceDescriptor
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ResourceDescriptor.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ResourceDescriptor
+ * @function getTypeUrl
+ * @memberof google.api.ResourceDescriptor
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ResourceDescriptor.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.api.ResourceDescriptor";
+ };
+
+ /**
+ * History enum.
+ * @name google.api.ResourceDescriptor.History
+ * @enum {number}
+ * @property {number} HISTORY_UNSPECIFIED=0 HISTORY_UNSPECIFIED value
+ * @property {number} ORIGINALLY_SINGLE_PATTERN=1 ORIGINALLY_SINGLE_PATTERN value
+ * @property {number} FUTURE_MULTI_PATTERN=2 FUTURE_MULTI_PATTERN value
+ */
+ ResourceDescriptor.History = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "HISTORY_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "ORIGINALLY_SINGLE_PATTERN"] = 1;
+ values[valuesById[2] = "FUTURE_MULTI_PATTERN"] = 2;
+ return values;
+ })();
+
+ /**
+ * Style enum.
+ * @name google.api.ResourceDescriptor.Style
+ * @enum {number}
+ * @property {number} STYLE_UNSPECIFIED=0 STYLE_UNSPECIFIED value
+ * @property {number} DECLARATIVE_FRIENDLY=1 DECLARATIVE_FRIENDLY value
+ */
+ ResourceDescriptor.Style = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "STYLE_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "DECLARATIVE_FRIENDLY"] = 1;
+ return values;
+ })();
+
+ return ResourceDescriptor;
+ })();
+
+ api.ResourceReference = (function() {
+
+ /**
+ * Properties of a ResourceReference.
+ * @memberof google.api
+ * @interface IResourceReference
+ * @property {string|null} [type] ResourceReference type
+ * @property {string|null} [childType] ResourceReference childType
+ */
+
+ /**
+ * Constructs a new ResourceReference.
+ * @memberof google.api
+ * @classdesc Represents a ResourceReference.
+ * @implements IResourceReference
+ * @constructor
+ * @param {google.api.IResourceReference=} [properties] Properties to set
+ */
+ function ResourceReference(properties) {
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null)
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * ResourceReference type.
+ * @member {string} type
+ * @memberof google.api.ResourceReference
+ * @instance
+ */
+ ResourceReference.prototype.type = "";
+
+ /**
+ * ResourceReference childType.
+ * @member {string} childType
+ * @memberof google.api.ResourceReference
+ * @instance
+ */
+ ResourceReference.prototype.childType = "";
+
+ /**
+ * Creates a new ResourceReference instance using the specified properties.
+ * @function create
+ * @memberof google.api.ResourceReference
+ * @static
+ * @param {google.api.IResourceReference=} [properties] Properties to set
+ * @returns {google.api.ResourceReference} ResourceReference instance
+ */
+ ResourceReference.create = function create(properties) {
+ return new ResourceReference(properties);
+ };
+
+ /**
+ * Encodes the specified ResourceReference message. Does not implicitly {@link google.api.ResourceReference.verify|verify} messages.
+ * @function encode
+ * @memberof google.api.ResourceReference
+ * @static
+ * @param {google.api.IResourceReference} message ResourceReference message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ResourceReference.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.type != null && Object.hasOwnProperty.call(message, "type"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.type);
+ if (message.childType != null && Object.hasOwnProperty.call(message, "childType"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.childType);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ResourceReference message, length delimited. Does not implicitly {@link google.api.ResourceReference.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.api.ResourceReference
+ * @static
+ * @param {google.api.IResourceReference} message ResourceReference message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ResourceReference.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ResourceReference message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.api.ResourceReference
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.api.ResourceReference} ResourceReference
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ResourceReference.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.ResourceReference();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.type = reader.string();
+ break;
+ }
+ case 2: {
+ message.childType = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ResourceReference message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.api.ResourceReference
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.api.ResourceReference} ResourceReference
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ResourceReference.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ResourceReference message.
+ * @function verify
+ * @memberof google.api.ResourceReference
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ResourceReference.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.type != null && message.hasOwnProperty("type"))
+ if (!$util.isString(message.type))
+ return "type: string expected";
+ if (message.childType != null && message.hasOwnProperty("childType"))
+ if (!$util.isString(message.childType))
+ return "childType: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a ResourceReference message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.api.ResourceReference
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.api.ResourceReference} ResourceReference
+ */
+ ResourceReference.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.api.ResourceReference)
+ return object;
+ var message = new $root.google.api.ResourceReference();
+ if (object.type != null)
+ message.type = String(object.type);
+ if (object.childType != null)
+ message.childType = String(object.childType);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ResourceReference message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.api.ResourceReference
+ * @static
+ * @param {google.api.ResourceReference} message ResourceReference
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ResourceReference.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.type = "";
+ object.childType = "";
+ }
+ if (message.type != null && message.hasOwnProperty("type"))
+ object.type = message.type;
+ if (message.childType != null && message.hasOwnProperty("childType"))
+ object.childType = message.childType;
+ return object;
+ };
+
+ /**
+ * Converts this ResourceReference to JSON.
+ * @function toJSON
+ * @memberof google.api.ResourceReference
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ResourceReference.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ResourceReference
+ * @function getTypeUrl
+ * @memberof google.api.ResourceReference
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ResourceReference.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.api.ResourceReference";
+ };
+
+ return ResourceReference;
+ })();
+
+ return api;
+ })();
+
+ google.protobuf = (function() {
+
+ /**
+ * Namespace protobuf.
+ * @memberof google
+ * @namespace
+ */
+ var protobuf = {};
+
+ protobuf.FileDescriptorSet = (function() {
+
+ /**
+ * Properties of a FileDescriptorSet.
+ * @memberof google.protobuf
+ * @interface IFileDescriptorSet
+ * @property {Array.|null} [file] FileDescriptorSet file
+ */
+
+ /**
+ * Constructs a new FileDescriptorSet.
+ * @memberof google.protobuf
+ * @classdesc Represents a FileDescriptorSet.
+ * @implements IFileDescriptorSet
+ * @constructor
+ * @param {google.protobuf.IFileDescriptorSet=} [properties] Properties to set
+ */
+ function FileDescriptorSet(properties) {
+ this.file = [];
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null)
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * FileDescriptorSet file.
+ * @member {Array.} file
+ * @memberof google.protobuf.FileDescriptorSet
+ * @instance
+ */
+ FileDescriptorSet.prototype.file = $util.emptyArray;
+
+ /**
+ * Creates a new FileDescriptorSet instance using the specified properties.
+ * @function create
+ * @memberof google.protobuf.FileDescriptorSet
+ * @static
+ * @param {google.protobuf.IFileDescriptorSet=} [properties] Properties to set
+ * @returns {google.protobuf.FileDescriptorSet} FileDescriptorSet instance
+ */
+ FileDescriptorSet.create = function create(properties) {
+ return new FileDescriptorSet(properties);
+ };
+
+ /**
+ * Encodes the specified FileDescriptorSet message. Does not implicitly {@link google.protobuf.FileDescriptorSet.verify|verify} messages.
+ * @function encode
+ * @memberof google.protobuf.FileDescriptorSet
+ * @static
+ * @param {google.protobuf.IFileDescriptorSet} message FileDescriptorSet message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ FileDescriptorSet.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.file != null && message.file.length)
+ for (var i = 0; i < message.file.length; ++i)
+ $root.google.protobuf.FileDescriptorProto.encode(message.file[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified FileDescriptorSet message, length delimited. Does not implicitly {@link google.protobuf.FileDescriptorSet.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.protobuf.FileDescriptorSet
+ * @static
+ * @param {google.protobuf.IFileDescriptorSet} message FileDescriptorSet message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ FileDescriptorSet.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a FileDescriptorSet message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.protobuf.FileDescriptorSet
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.protobuf.FileDescriptorSet} FileDescriptorSet
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ FileDescriptorSet.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FileDescriptorSet();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ if (!(message.file && message.file.length))
+ message.file = [];
+ message.file.push($root.google.protobuf.FileDescriptorProto.decode(reader, reader.uint32()));
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a FileDescriptorSet message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.protobuf.FileDescriptorSet
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.protobuf.FileDescriptorSet} FileDescriptorSet
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ FileDescriptorSet.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a FileDescriptorSet message.
+ * @function verify
+ * @memberof google.protobuf.FileDescriptorSet
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ FileDescriptorSet.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.file != null && message.hasOwnProperty("file")) {
+ if (!Array.isArray(message.file))
+ return "file: array expected";
+ for (var i = 0; i < message.file.length; ++i) {
+ var error = $root.google.protobuf.FileDescriptorProto.verify(message.file[i]);
+ if (error)
+ return "file." + error;
+ }
+ }
+ return null;
+ };
+
+ /**
+ * Creates a FileDescriptorSet message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.protobuf.FileDescriptorSet
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.protobuf.FileDescriptorSet} FileDescriptorSet
+ */
+ FileDescriptorSet.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.protobuf.FileDescriptorSet)
+ return object;
+ var message = new $root.google.protobuf.FileDescriptorSet();
+ if (object.file) {
+ if (!Array.isArray(object.file))
+ throw TypeError(".google.protobuf.FileDescriptorSet.file: array expected");
+ message.file = [];
+ for (var i = 0; i < object.file.length; ++i) {
+ if (typeof object.file[i] !== "object")
+ throw TypeError(".google.protobuf.FileDescriptorSet.file: object expected");
+ message.file[i] = $root.google.protobuf.FileDescriptorProto.fromObject(object.file[i]);
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a FileDescriptorSet message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.protobuf.FileDescriptorSet
+ * @static
+ * @param {google.protobuf.FileDescriptorSet} message FileDescriptorSet
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ FileDescriptorSet.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.file = [];
+ if (message.file && message.file.length) {
+ object.file = [];
+ for (var j = 0; j < message.file.length; ++j)
+ object.file[j] = $root.google.protobuf.FileDescriptorProto.toObject(message.file[j], options);
+ }
+ return object;
+ };
+
+ /**
+ * Converts this FileDescriptorSet to JSON.
+ * @function toJSON
+ * @memberof google.protobuf.FileDescriptorSet
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ FileDescriptorSet.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for FileDescriptorSet
+ * @function getTypeUrl
+ * @memberof google.protobuf.FileDescriptorSet
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ FileDescriptorSet.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.protobuf.FileDescriptorSet";
+ };
+
+ return FileDescriptorSet;
+ })();
+
+ protobuf.FileDescriptorProto = (function() {
+
+ /**
+ * Properties of a FileDescriptorProto.
+ * @memberof google.protobuf
+ * @interface IFileDescriptorProto
+ * @property {string|null} [name] FileDescriptorProto name
+ * @property {string|null} ["package"] FileDescriptorProto package
+ * @property {Array.|null} [dependency] FileDescriptorProto dependency
+ * @property {Array.|null} [publicDependency] FileDescriptorProto publicDependency
+ * @property {Array.|null} [weakDependency] FileDescriptorProto weakDependency
+ * @property {Array.|null} [messageType] FileDescriptorProto messageType
+ * @property {Array.|null} [enumType] FileDescriptorProto enumType
+ * @property {Array.|null} [service] FileDescriptorProto service
+ * @property {Array.|null} [extension] FileDescriptorProto extension
+ * @property {google.protobuf.IFileOptions|null} [options] FileDescriptorProto options
+ * @property {google.protobuf.ISourceCodeInfo|null} [sourceCodeInfo] FileDescriptorProto sourceCodeInfo
+ * @property {string|null} [syntax] FileDescriptorProto syntax
+ * @property {string|null} [edition] FileDescriptorProto edition
+ */
+
+ /**
+ * Constructs a new FileDescriptorProto.
+ * @memberof google.protobuf
+ * @classdesc Represents a FileDescriptorProto.
+ * @implements IFileDescriptorProto
+ * @constructor
+ * @param {google.protobuf.IFileDescriptorProto=} [properties] Properties to set
+ */
+ function FileDescriptorProto(properties) {
+ this.dependency = [];
+ this.publicDependency = [];
+ this.weakDependency = [];
+ this.messageType = [];
+ this.enumType = [];
+ this.service = [];
+ this.extension = [];
+ 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]];
+ }
+
+ /**
+ * FileDescriptorProto name.
+ * @member {string} name
+ * @memberof google.protobuf.FileDescriptorProto
+ * @instance
+ */
+ FileDescriptorProto.prototype.name = "";
+
+ /**
+ * FileDescriptorProto package.
+ * @member {string} package
+ * @memberof google.protobuf.FileDescriptorProto
+ * @instance
+ */
+ FileDescriptorProto.prototype["package"] = "";
+
+ /**
+ * FileDescriptorProto dependency.
+ * @member {Array.} dependency
+ * @memberof google.protobuf.FileDescriptorProto
+ * @instance
+ */
+ FileDescriptorProto.prototype.dependency = $util.emptyArray;
+
+ /**
+ * FileDescriptorProto publicDependency.
+ * @member {Array.} publicDependency
+ * @memberof google.protobuf.FileDescriptorProto
+ * @instance
+ */
+ FileDescriptorProto.prototype.publicDependency = $util.emptyArray;
+
+ /**
+ * FileDescriptorProto weakDependency.
+ * @member {Array.} weakDependency
+ * @memberof google.protobuf.FileDescriptorProto
+ * @instance
+ */
+ FileDescriptorProto.prototype.weakDependency = $util.emptyArray;
+
+ /**
+ * FileDescriptorProto messageType.
+ * @member {Array.} messageType
+ * @memberof google.protobuf.FileDescriptorProto
+ * @instance
+ */
+ FileDescriptorProto.prototype.messageType = $util.emptyArray;
+
+ /**
+ * FileDescriptorProto enumType.
+ * @member {Array.} enumType
+ * @memberof google.protobuf.FileDescriptorProto
+ * @instance
+ */
+ FileDescriptorProto.prototype.enumType = $util.emptyArray;
+
+ /**
+ * FileDescriptorProto service.
+ * @member {Array.} service
+ * @memberof google.protobuf.FileDescriptorProto
+ * @instance
+ */
+ FileDescriptorProto.prototype.service = $util.emptyArray;
+
+ /**
+ * FileDescriptorProto extension.
+ * @member {Array.} extension
+ * @memberof google.protobuf.FileDescriptorProto
+ * @instance
+ */
+ FileDescriptorProto.prototype.extension = $util.emptyArray;
+
+ /**
+ * FileDescriptorProto options.
+ * @member {google.protobuf.IFileOptions|null|undefined} options
+ * @memberof google.protobuf.FileDescriptorProto
+ * @instance
+ */
+ FileDescriptorProto.prototype.options = null;
+
+ /**
+ * FileDescriptorProto sourceCodeInfo.
+ * @member {google.protobuf.ISourceCodeInfo|null|undefined} sourceCodeInfo
+ * @memberof google.protobuf.FileDescriptorProto
+ * @instance
+ */
+ FileDescriptorProto.prototype.sourceCodeInfo = null;
+
+ /**
+ * FileDescriptorProto syntax.
+ * @member {string} syntax
+ * @memberof google.protobuf.FileDescriptorProto
+ * @instance
+ */
+ FileDescriptorProto.prototype.syntax = "";
+
+ /**
+ * FileDescriptorProto edition.
+ * @member {string} edition
+ * @memberof google.protobuf.FileDescriptorProto
+ * @instance
+ */
+ FileDescriptorProto.prototype.edition = "";
+
+ /**
+ * Creates a new FileDescriptorProto instance using the specified properties.
+ * @function create
+ * @memberof google.protobuf.FileDescriptorProto
+ * @static
+ * @param {google.protobuf.IFileDescriptorProto=} [properties] Properties to set
+ * @returns {google.protobuf.FileDescriptorProto} FileDescriptorProto instance
+ */
+ FileDescriptorProto.create = function create(properties) {
+ return new FileDescriptorProto(properties);
+ };
+
+ /**
+ * Encodes the specified FileDescriptorProto message. Does not implicitly {@link google.protobuf.FileDescriptorProto.verify|verify} messages.
+ * @function encode
+ * @memberof google.protobuf.FileDescriptorProto
+ * @static
+ * @param {google.protobuf.IFileDescriptorProto} message FileDescriptorProto message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ FileDescriptorProto.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["package"] != null && Object.hasOwnProperty.call(message, "package"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message["package"]);
+ if (message.dependency != null && message.dependency.length)
+ for (var i = 0; i < message.dependency.length; ++i)
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.dependency[i]);
+ if (message.messageType != null && message.messageType.length)
+ for (var i = 0; i < message.messageType.length; ++i)
+ $root.google.protobuf.DescriptorProto.encode(message.messageType[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
+ if (message.enumType != null && message.enumType.length)
+ for (var i = 0; i < message.enumType.length; ++i)
+ $root.google.protobuf.EnumDescriptorProto.encode(message.enumType[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
+ if (message.service != null && message.service.length)
+ for (var i = 0; i < message.service.length; ++i)
+ $root.google.protobuf.ServiceDescriptorProto.encode(message.service[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
+ if (message.extension != null && message.extension.length)
+ for (var i = 0; i < message.extension.length; ++i)
+ $root.google.protobuf.FieldDescriptorProto.encode(message.extension[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
+ if (message.options != null && Object.hasOwnProperty.call(message, "options"))
+ $root.google.protobuf.FileOptions.encode(message.options, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim();
+ if (message.sourceCodeInfo != null && Object.hasOwnProperty.call(message, "sourceCodeInfo"))
+ $root.google.protobuf.SourceCodeInfo.encode(message.sourceCodeInfo, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim();
+ if (message.publicDependency != null && message.publicDependency.length)
+ for (var i = 0; i < message.publicDependency.length; ++i)
+ writer.uint32(/* id 10, wireType 0 =*/80).int32(message.publicDependency[i]);
+ if (message.weakDependency != null && message.weakDependency.length)
+ for (var i = 0; i < message.weakDependency.length; ++i)
+ writer.uint32(/* id 11, wireType 0 =*/88).int32(message.weakDependency[i]);
+ if (message.syntax != null && Object.hasOwnProperty.call(message, "syntax"))
+ writer.uint32(/* id 12, wireType 2 =*/98).string(message.syntax);
+ if (message.edition != null && Object.hasOwnProperty.call(message, "edition"))
+ writer.uint32(/* id 13, wireType 2 =*/106).string(message.edition);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified FileDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.FileDescriptorProto.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.protobuf.FileDescriptorProto
+ * @static
+ * @param {google.protobuf.IFileDescriptorProto} message FileDescriptorProto message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ FileDescriptorProto.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a FileDescriptorProto message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.protobuf.FileDescriptorProto
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.protobuf.FileDescriptorProto} FileDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ FileDescriptorProto.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FileDescriptorProto();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.name = reader.string();
+ break;
+ }
+ case 2: {
+ message["package"] = reader.string();
+ break;
+ }
+ case 3: {
+ if (!(message.dependency && message.dependency.length))
+ message.dependency = [];
+ message.dependency.push(reader.string());
+ break;
+ }
+ case 10: {
+ if (!(message.publicDependency && message.publicDependency.length))
+ message.publicDependency = [];
+ if ((tag & 7) === 2) {
+ var end2 = reader.uint32() + reader.pos;
+ while (reader.pos < end2)
+ message.publicDependency.push(reader.int32());
+ } else
+ message.publicDependency.push(reader.int32());
+ break;
+ }
+ case 11: {
+ if (!(message.weakDependency && message.weakDependency.length))
+ message.weakDependency = [];
+ if ((tag & 7) === 2) {
+ var end2 = reader.uint32() + reader.pos;
+ while (reader.pos < end2)
+ message.weakDependency.push(reader.int32());
+ } else
+ message.weakDependency.push(reader.int32());
+ break;
+ }
+ case 4: {
+ if (!(message.messageType && message.messageType.length))
+ message.messageType = [];
+ message.messageType.push($root.google.protobuf.DescriptorProto.decode(reader, reader.uint32()));
+ break;
+ }
+ case 5: {
+ if (!(message.enumType && message.enumType.length))
+ message.enumType = [];
+ message.enumType.push($root.google.protobuf.EnumDescriptorProto.decode(reader, reader.uint32()));
+ break;
+ }
+ case 6: {
+ if (!(message.service && message.service.length))
+ message.service = [];
+ message.service.push($root.google.protobuf.ServiceDescriptorProto.decode(reader, reader.uint32()));
+ break;
+ }
+ case 7: {
+ if (!(message.extension && message.extension.length))
+ message.extension = [];
+ message.extension.push($root.google.protobuf.FieldDescriptorProto.decode(reader, reader.uint32()));
+ break;
+ }
+ case 8: {
+ message.options = $root.google.protobuf.FileOptions.decode(reader, reader.uint32());
+ break;
+ }
+ case 9: {
+ message.sourceCodeInfo = $root.google.protobuf.SourceCodeInfo.decode(reader, reader.uint32());
+ break;
+ }
+ case 12: {
+ message.syntax = reader.string();
+ break;
+ }
+ case 13: {
+ message.edition = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a FileDescriptorProto message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.protobuf.FileDescriptorProto
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.protobuf.FileDescriptorProto} FileDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ FileDescriptorProto.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a FileDescriptorProto message.
+ * @function verify
+ * @memberof google.protobuf.FileDescriptorProto
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ FileDescriptorProto.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["package"] != null && message.hasOwnProperty("package"))
+ if (!$util.isString(message["package"]))
+ return "package: string expected";
+ if (message.dependency != null && message.hasOwnProperty("dependency")) {
+ if (!Array.isArray(message.dependency))
+ return "dependency: array expected";
+ for (var i = 0; i < message.dependency.length; ++i)
+ if (!$util.isString(message.dependency[i]))
+ return "dependency: string[] expected";
+ }
+ if (message.publicDependency != null && message.hasOwnProperty("publicDependency")) {
+ if (!Array.isArray(message.publicDependency))
+ return "publicDependency: array expected";
+ for (var i = 0; i < message.publicDependency.length; ++i)
+ if (!$util.isInteger(message.publicDependency[i]))
+ return "publicDependency: integer[] expected";
+ }
+ if (message.weakDependency != null && message.hasOwnProperty("weakDependency")) {
+ if (!Array.isArray(message.weakDependency))
+ return "weakDependency: array expected";
+ for (var i = 0; i < message.weakDependency.length; ++i)
+ if (!$util.isInteger(message.weakDependency[i]))
+ return "weakDependency: integer[] expected";
+ }
+ if (message.messageType != null && message.hasOwnProperty("messageType")) {
+ if (!Array.isArray(message.messageType))
+ return "messageType: array expected";
+ for (var i = 0; i < message.messageType.length; ++i) {
+ var error = $root.google.protobuf.DescriptorProto.verify(message.messageType[i]);
+ if (error)
+ return "messageType." + error;
+ }
+ }
+ if (message.enumType != null && message.hasOwnProperty("enumType")) {
+ if (!Array.isArray(message.enumType))
+ return "enumType: array expected";
+ for (var i = 0; i < message.enumType.length; ++i) {
+ var error = $root.google.protobuf.EnumDescriptorProto.verify(message.enumType[i]);
+ if (error)
+ return "enumType." + error;
+ }
+ }
+ if (message.service != null && message.hasOwnProperty("service")) {
+ if (!Array.isArray(message.service))
+ return "service: array expected";
+ for (var i = 0; i < message.service.length; ++i) {
+ var error = $root.google.protobuf.ServiceDescriptorProto.verify(message.service[i]);
+ if (error)
+ return "service." + error;
+ }
+ }
+ if (message.extension != null && message.hasOwnProperty("extension")) {
+ if (!Array.isArray(message.extension))
+ return "extension: array expected";
+ for (var i = 0; i < message.extension.length; ++i) {
+ var error = $root.google.protobuf.FieldDescriptorProto.verify(message.extension[i]);
+ if (error)
+ return "extension." + error;
+ }
+ }
+ if (message.options != null && message.hasOwnProperty("options")) {
+ var error = $root.google.protobuf.FileOptions.verify(message.options);
+ if (error)
+ return "options." + error;
+ }
+ if (message.sourceCodeInfo != null && message.hasOwnProperty("sourceCodeInfo")) {
+ var error = $root.google.protobuf.SourceCodeInfo.verify(message.sourceCodeInfo);
+ if (error)
+ return "sourceCodeInfo." + error;
+ }
+ if (message.syntax != null && message.hasOwnProperty("syntax"))
+ if (!$util.isString(message.syntax))
+ return "syntax: string expected";
+ if (message.edition != null && message.hasOwnProperty("edition"))
+ if (!$util.isString(message.edition))
+ return "edition: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a FileDescriptorProto message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.protobuf.FileDescriptorProto
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.protobuf.FileDescriptorProto} FileDescriptorProto
+ */
+ FileDescriptorProto.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.protobuf.FileDescriptorProto)
+ return object;
+ var message = new $root.google.protobuf.FileDescriptorProto();
+ if (object.name != null)
+ message.name = String(object.name);
+ if (object["package"] != null)
+ message["package"] = String(object["package"]);
+ if (object.dependency) {
+ if (!Array.isArray(object.dependency))
+ throw TypeError(".google.protobuf.FileDescriptorProto.dependency: array expected");
+ message.dependency = [];
+ for (var i = 0; i < object.dependency.length; ++i)
+ message.dependency[i] = String(object.dependency[i]);
+ }
+ if (object.publicDependency) {
+ if (!Array.isArray(object.publicDependency))
+ throw TypeError(".google.protobuf.FileDescriptorProto.publicDependency: array expected");
+ message.publicDependency = [];
+ for (var i = 0; i < object.publicDependency.length; ++i)
+ message.publicDependency[i] = object.publicDependency[i] | 0;
+ }
+ if (object.weakDependency) {
+ if (!Array.isArray(object.weakDependency))
+ throw TypeError(".google.protobuf.FileDescriptorProto.weakDependency: array expected");
+ message.weakDependency = [];
+ for (var i = 0; i < object.weakDependency.length; ++i)
+ message.weakDependency[i] = object.weakDependency[i] | 0;
+ }
+ if (object.messageType) {
+ if (!Array.isArray(object.messageType))
+ throw TypeError(".google.protobuf.FileDescriptorProto.messageType: array expected");
+ message.messageType = [];
+ for (var i = 0; i < object.messageType.length; ++i) {
+ if (typeof object.messageType[i] !== "object")
+ throw TypeError(".google.protobuf.FileDescriptorProto.messageType: object expected");
+ message.messageType[i] = $root.google.protobuf.DescriptorProto.fromObject(object.messageType[i]);
+ }
+ }
+ if (object.enumType) {
+ if (!Array.isArray(object.enumType))
+ throw TypeError(".google.protobuf.FileDescriptorProto.enumType: array expected");
+ message.enumType = [];
+ for (var i = 0; i < object.enumType.length; ++i) {
+ if (typeof object.enumType[i] !== "object")
+ throw TypeError(".google.protobuf.FileDescriptorProto.enumType: object expected");
+ message.enumType[i] = $root.google.protobuf.EnumDescriptorProto.fromObject(object.enumType[i]);
+ }
+ }
+ if (object.service) {
+ if (!Array.isArray(object.service))
+ throw TypeError(".google.protobuf.FileDescriptorProto.service: array expected");
+ message.service = [];
+ for (var i = 0; i < object.service.length; ++i) {
+ if (typeof object.service[i] !== "object")
+ throw TypeError(".google.protobuf.FileDescriptorProto.service: object expected");
+ message.service[i] = $root.google.protobuf.ServiceDescriptorProto.fromObject(object.service[i]);
+ }
+ }
+ if (object.extension) {
+ if (!Array.isArray(object.extension))
+ throw TypeError(".google.protobuf.FileDescriptorProto.extension: array expected");
+ message.extension = [];
+ for (var i = 0; i < object.extension.length; ++i) {
+ if (typeof object.extension[i] !== "object")
+ throw TypeError(".google.protobuf.FileDescriptorProto.extension: object expected");
+ message.extension[i] = $root.google.protobuf.FieldDescriptorProto.fromObject(object.extension[i]);
+ }
+ }
+ if (object.options != null) {
+ if (typeof object.options !== "object")
+ throw TypeError(".google.protobuf.FileDescriptorProto.options: object expected");
+ message.options = $root.google.protobuf.FileOptions.fromObject(object.options);
+ }
+ if (object.sourceCodeInfo != null) {
+ if (typeof object.sourceCodeInfo !== "object")
+ throw TypeError(".google.protobuf.FileDescriptorProto.sourceCodeInfo: object expected");
+ message.sourceCodeInfo = $root.google.protobuf.SourceCodeInfo.fromObject(object.sourceCodeInfo);
+ }
+ if (object.syntax != null)
+ message.syntax = String(object.syntax);
+ if (object.edition != null)
+ message.edition = String(object.edition);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a FileDescriptorProto message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.protobuf.FileDescriptorProto
+ * @static
+ * @param {google.protobuf.FileDescriptorProto} message FileDescriptorProto
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ FileDescriptorProto.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults) {
+ object.dependency = [];
+ object.messageType = [];
+ object.enumType = [];
+ object.service = [];
+ object.extension = [];
+ object.publicDependency = [];
+ object.weakDependency = [];
+ }
+ if (options.defaults) {
+ object.name = "";
+ object["package"] = "";
+ object.options = null;
+ object.sourceCodeInfo = null;
+ object.syntax = "";
+ object.edition = "";
+ }
+ if (message.name != null && message.hasOwnProperty("name"))
+ object.name = message.name;
+ if (message["package"] != null && message.hasOwnProperty("package"))
+ object["package"] = message["package"];
+ if (message.dependency && message.dependency.length) {
+ object.dependency = [];
+ for (var j = 0; j < message.dependency.length; ++j)
+ object.dependency[j] = message.dependency[j];
+ }
+ if (message.messageType && message.messageType.length) {
+ object.messageType = [];
+ for (var j = 0; j < message.messageType.length; ++j)
+ object.messageType[j] = $root.google.protobuf.DescriptorProto.toObject(message.messageType[j], options);
+ }
+ if (message.enumType && message.enumType.length) {
+ object.enumType = [];
+ for (var j = 0; j < message.enumType.length; ++j)
+ object.enumType[j] = $root.google.protobuf.EnumDescriptorProto.toObject(message.enumType[j], options);
+ }
+ if (message.service && message.service.length) {
+ object.service = [];
+ for (var j = 0; j < message.service.length; ++j)
+ object.service[j] = $root.google.protobuf.ServiceDescriptorProto.toObject(message.service[j], options);
+ }
+ if (message.extension && message.extension.length) {
+ object.extension = [];
+ for (var j = 0; j < message.extension.length; ++j)
+ object.extension[j] = $root.google.protobuf.FieldDescriptorProto.toObject(message.extension[j], options);
+ }
+ if (message.options != null && message.hasOwnProperty("options"))
+ object.options = $root.google.protobuf.FileOptions.toObject(message.options, options);
+ if (message.sourceCodeInfo != null && message.hasOwnProperty("sourceCodeInfo"))
+ object.sourceCodeInfo = $root.google.protobuf.SourceCodeInfo.toObject(message.sourceCodeInfo, options);
+ if (message.publicDependency && message.publicDependency.length) {
+ object.publicDependency = [];
+ for (var j = 0; j < message.publicDependency.length; ++j)
+ object.publicDependency[j] = message.publicDependency[j];
+ }
+ if (message.weakDependency && message.weakDependency.length) {
+ object.weakDependency = [];
+ for (var j = 0; j < message.weakDependency.length; ++j)
+ object.weakDependency[j] = message.weakDependency[j];
+ }
+ if (message.syntax != null && message.hasOwnProperty("syntax"))
+ object.syntax = message.syntax;
+ if (message.edition != null && message.hasOwnProperty("edition"))
+ object.edition = message.edition;
+ return object;
+ };
+
+ /**
+ * Converts this FileDescriptorProto to JSON.
+ * @function toJSON
+ * @memberof google.protobuf.FileDescriptorProto
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ FileDescriptorProto.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for FileDescriptorProto
+ * @function getTypeUrl
+ * @memberof google.protobuf.FileDescriptorProto
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ FileDescriptorProto.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.protobuf.FileDescriptorProto";
+ };
+
+ return FileDescriptorProto;
+ })();
+
+ protobuf.DescriptorProto = (function() {
+
+ /**
+ * Properties of a DescriptorProto.
+ * @memberof google.protobuf
+ * @interface IDescriptorProto
+ * @property {string|null} [name] DescriptorProto name
+ * @property {Array.|null} [field] DescriptorProto field
+ * @property {Array.|null} [extension] DescriptorProto extension
+ * @property {Array.|null} [nestedType] DescriptorProto nestedType
+ * @property {Array.|null} [enumType] DescriptorProto enumType
+ * @property {Array.|null} [extensionRange] DescriptorProto extensionRange
+ * @property {Array.|null} [oneofDecl] DescriptorProto oneofDecl
+ * @property {google.protobuf.IMessageOptions|null} [options] DescriptorProto options
+ * @property {Array.|null} [reservedRange] DescriptorProto reservedRange
+ * @property {Array.|null} [reservedName] DescriptorProto reservedName
+ */
+
+ /**
+ * Constructs a new DescriptorProto.
+ * @memberof google.protobuf
+ * @classdesc Represents a DescriptorProto.
+ * @implements IDescriptorProto
+ * @constructor
+ * @param {google.protobuf.IDescriptorProto=} [properties] Properties to set
+ */
+ function DescriptorProto(properties) {
+ this.field = [];
+ this.extension = [];
+ this.nestedType = [];
+ this.enumType = [];
+ this.extensionRange = [];
+ this.oneofDecl = [];
+ this.reservedRange = [];
+ this.reservedName = [];
+ 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]];
+ }
+
+ /**
+ * DescriptorProto name.
+ * @member {string} name
+ * @memberof google.protobuf.DescriptorProto
+ * @instance
+ */
+ DescriptorProto.prototype.name = "";
+
+ /**
+ * DescriptorProto field.
+ * @member {Array.} field
+ * @memberof google.protobuf.DescriptorProto
+ * @instance
+ */
+ DescriptorProto.prototype.field = $util.emptyArray;
+
+ /**
+ * DescriptorProto extension.
+ * @member {Array.} extension
+ * @memberof google.protobuf.DescriptorProto
+ * @instance
+ */
+ DescriptorProto.prototype.extension = $util.emptyArray;
+
+ /**
+ * DescriptorProto nestedType.
+ * @member {Array.} nestedType
+ * @memberof google.protobuf.DescriptorProto
+ * @instance
+ */
+ DescriptorProto.prototype.nestedType = $util.emptyArray;
+
+ /**
+ * DescriptorProto enumType.
+ * @member {Array.} enumType
+ * @memberof google.protobuf.DescriptorProto
+ * @instance
+ */
+ DescriptorProto.prototype.enumType = $util.emptyArray;
+
+ /**
+ * DescriptorProto extensionRange.
+ * @member {Array.