diff --git a/packages/google-cloud-metastore/.eslintignore b/packages/google-cloud-metastore/.eslintignore
new file mode 100644
index 00000000000..ea5b04aebe6
--- /dev/null
+++ b/packages/google-cloud-metastore/.eslintignore
@@ -0,0 +1,7 @@
+**/node_modules
+**/coverage
+test/fixtures
+build/
+docs/
+protos/
+samples/generated/
diff --git a/packages/google-cloud-metastore/.eslintrc.json b/packages/google-cloud-metastore/.eslintrc.json
new file mode 100644
index 00000000000..78215349546
--- /dev/null
+++ b/packages/google-cloud-metastore/.eslintrc.json
@@ -0,0 +1,3 @@
+{
+ "extends": "./node_modules/gts"
+}
diff --git a/packages/google-cloud-metastore/.gitattributes b/packages/google-cloud-metastore/.gitattributes
new file mode 100644
index 00000000000..33739cb74e4
--- /dev/null
+++ b/packages/google-cloud-metastore/.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-metastore/.github/.OwlBot.yaml b/packages/google-cloud-metastore/.github/.OwlBot.yaml
new file mode 100644
index 00000000000..cd592fb01a1
--- /dev/null
+++ b/packages/google-cloud-metastore/.github/.OwlBot.yaml
@@ -0,0 +1,23 @@
+# Copyright 2021 Google LLC
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+docker:
+ image: gcr.io/cloud-devrel-public-resources/owlbot-nodejs:latest
+
+deep-remove-regex:
+ - /owl-bot-staging
+
+deep-copy-regex:
+ - source: /google/cloud/metastore/(.*)/.*-nodejs/(.*)
+ dest: /owl-bot-staging/$1/$2
+
diff --git a/packages/google-cloud-metastore/.gitignore b/packages/google-cloud-metastore/.gitignore
new file mode 100644
index 00000000000..5d32b23782f
--- /dev/null
+++ b/packages/google-cloud-metastore/.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-metastore/.jsdoc.js b/packages/google-cloud-metastore/.jsdoc.js
new file mode 100644
index 00000000000..bc8b6fc164f
--- /dev/null
+++ b/packages/google-cloud-metastore/.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/dataproc-metastore',
+ theme: 'lumen',
+ default: {
+ outputSourceFiles: false
+ }
+ },
+ markdown: {
+ idInHeadings: true
+ }
+};
diff --git a/packages/google-cloud-metastore/.mocharc.js b/packages/google-cloud-metastore/.mocharc.js
new file mode 100644
index 00000000000..0b600509bed
--- /dev/null
+++ b/packages/google-cloud-metastore/.mocharc.js
@@ -0,0 +1,29 @@
+// Copyright 2020 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+const config = {
+ "enable-source-maps": true,
+ "throw-deprecation": true,
+ "timeout": 10000,
+ "recursive": true
+}
+if (process.env.MOCHA_THROW_DEPRECATION === 'false') {
+ delete config['throw-deprecation'];
+}
+if (process.env.MOCHA_REPORTER) {
+ config.reporter = process.env.MOCHA_REPORTER;
+}
+if (process.env.MOCHA_REPORTER_OUTPUT) {
+ config['reporter-option'] = `output=${process.env.MOCHA_REPORTER_OUTPUT}`;
+}
+module.exports = config
diff --git a/packages/google-cloud-metastore/.nycrc b/packages/google-cloud-metastore/.nycrc
new file mode 100644
index 00000000000..b18d5472b62
--- /dev/null
+++ b/packages/google-cloud-metastore/.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-metastore/.prettierignore b/packages/google-cloud-metastore/.prettierignore
new file mode 100644
index 00000000000..9340ad9b86d
--- /dev/null
+++ b/packages/google-cloud-metastore/.prettierignore
@@ -0,0 +1,6 @@
+**/node_modules
+**/coverage
+test/fixtures
+build/
+docs/
+protos/
diff --git a/packages/google-cloud-metastore/.prettierrc.js b/packages/google-cloud-metastore/.prettierrc.js
new file mode 100644
index 00000000000..d1b95106f4c
--- /dev/null
+++ b/packages/google-cloud-metastore/.prettierrc.js
@@ -0,0 +1,17 @@
+// Copyright 2020 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// https://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+module.exports = {
+ ...require('gts/.prettierrc.json')
+}
diff --git a/packages/google-cloud-metastore/.repo-metadata.json b/packages/google-cloud-metastore/.repo-metadata.json
new file mode 100644
index 00000000000..76d14af5afd
--- /dev/null
+++ b/packages/google-cloud-metastore/.repo-metadata.json
@@ -0,0 +1,16 @@
+{
+ "client_documentation": "https://cloud.google.com/nodejs/docs/reference/dataproc-metastore/latest",
+ "api_id": "metastore.googleapis.com",
+ "distribution_name": "@google-cloud/dataproc-metastore",
+ "release_level": "stable",
+ "default_version": "v1",
+ "language": "nodejs",
+ "name_pretty": "Dataproc Metastore",
+ "repo": "googleapis/nodejs-dataproc-metastore",
+ "product_documentation": "https://cloud.google.com/dataproc-metastore/",
+ "requires_billing": true,
+ "name": "metastore",
+ "issue_tracker": "https://github.com/googleapis/nodejs-dataproc-metastore/issues",
+ "api_shortname": "metastore",
+ "library_type": "GAPIC_AUTO"
+}
diff --git a/packages/google-cloud-metastore/CHANGELOG.md b/packages/google-cloud-metastore/CHANGELOG.md
new file mode 100644
index 00000000000..090541b8b81
--- /dev/null
+++ b/packages/google-cloud-metastore/CHANGELOG.md
@@ -0,0 +1,152 @@
+# Changelog
+
+## [3.1.2](https://github.com/googleapis/nodejs-dataproc-metastore/compare/v3.1.1...v3.1.2) (2022-11-11)
+
+
+### Bug Fixes
+
+* **deps:** Use google-gax v3.5.2 ([#161](https://github.com/googleapis/nodejs-dataproc-metastore/issues/161)) ([805456b](https://github.com/googleapis/nodejs-dataproc-metastore/commit/805456ba20ea8ab7186de272fdf1496e33eed184))
+* Preserve default values in x-goog-request-params header ([#154](https://github.com/googleapis/nodejs-dataproc-metastore/issues/154)) ([f4b5e70](https://github.com/googleapis/nodejs-dataproc-metastore/commit/f4b5e703688084a52b34aacb1c7794cad34612b6))
+* Regenerated protos JS and TS definitions ([#164](https://github.com/googleapis/nodejs-dataproc-metastore/issues/164)) ([6240505](https://github.com/googleapis/nodejs-dataproc-metastore/commit/6240505d07404d92e255fbf8fefa67fbb133016f))
+
+## [3.1.1](https://github.com/googleapis/nodejs-dataproc-metastore/compare/v3.1.0...v3.1.1) (2022-09-01)
+
+
+### Bug Fixes
+
+* Allow passing gax instance to client constructor ([#152](https://github.com/googleapis/nodejs-dataproc-metastore/issues/152)) ([28e83b3](https://github.com/googleapis/nodejs-dataproc-metastore/commit/28e83b33281f67df3825eceb9acc2cc4f2df2abf))
+* Better support for fallback mode ([#147](https://github.com/googleapis/nodejs-dataproc-metastore/issues/147)) ([2d7557a](https://github.com/googleapis/nodejs-dataproc-metastore/commit/2d7557a5b691b843738a3f635bfe6cc481e0ff58))
+* Change import long to require ([#148](https://github.com/googleapis/nodejs-dataproc-metastore/issues/148)) ([7176158](https://github.com/googleapis/nodejs-dataproc-metastore/commit/717615861a0a7252ff3fa875147a149ef8f4b862))
+* Do not import the whole google-gax from proto JS ([#1553](https://github.com/googleapis/nodejs-dataproc-metastore/issues/1553)) ([#151](https://github.com/googleapis/nodejs-dataproc-metastore/issues/151)) ([61b4ed3](https://github.com/googleapis/nodejs-dataproc-metastore/commit/61b4ed3bdf64834d93bfe72c6891e81599729207))
+* Remove pip install statements ([#1546](https://github.com/googleapis/nodejs-dataproc-metastore/issues/1546)) ([#150](https://github.com/googleapis/nodejs-dataproc-metastore/issues/150)) ([928f44d](https://github.com/googleapis/nodejs-dataproc-metastore/commit/928f44d6be2a21f5e987a8ed85df9741ec27f2bf))
+
+## [3.1.0](https://github.com/googleapis/nodejs-dataproc-metastore/compare/v3.0.0...v3.1.0) (2022-06-30)
+
+
+### Features
+
+* support regapic LRO ([#143](https://github.com/googleapis/nodejs-dataproc-metastore/issues/143)) ([e77a813](https://github.com/googleapis/nodejs-dataproc-metastore/commit/e77a813aeb04a20d32c9c1f0096d4115220c90e2))
+
+## [3.0.0](https://github.com/googleapis/nodejs-dataproc-metastore/compare/v2.2.0...v3.0.0) (2022-05-19)
+
+
+### ⚠ BREAKING CHANGES
+
+* update library to use Node 12 (#137)
+
+### Build System
+
+* update library to use Node 12 ([#137](https://github.com/googleapis/nodejs-dataproc-metastore/issues/137)) ([fd42f32](https://github.com/googleapis/nodejs-dataproc-metastore/commit/fd42f3290bd1f221f0ea3a667414b4f87833980a))
+
+## [2.2.0](https://github.com/googleapis/nodejs-dataproc-metastore/compare/v2.1.0...v2.2.0) (2022-03-23)
+
+
+### Features
+
+* promote to stable ([#123](https://github.com/googleapis/nodejs-dataproc-metastore/issues/123)) ([76cbc74](https://github.com/googleapis/nodejs-dataproc-metastore/commit/76cbc74672d80bb36118619fa27d6b290fe8d40d))
+
+## [2.1.0](https://github.com/googleapis/nodejs-dataproc-metastore/compare/v2.0.0...v2.1.0) (2022-03-21)
+
+
+### Features
+
+* Added additional endTime field for MetadataImports ([097cf5f](https://github.com/googleapis/nodejs-dataproc-metastore/commit/097cf5fa1d2c32e2eab3fb53830ddabdef7ea2dc))
+* Added AuxiliaryVersionConfig for configuring the auxiliary hive versions during creation or update of the DPMS instance ([097cf5f](https://github.com/googleapis/nodejs-dataproc-metastore/commit/097cf5fa1d2c32e2eab3fb53830ddabdef7ea2dc))
+* Added AVRO DatabaseDumpSpec for importing and exporting Avro files ([097cf5f](https://github.com/googleapis/nodejs-dataproc-metastore/commit/097cf5fa1d2c32e2eab3fb53830ddabdef7ea2dc))
+* Added configuration for Dataplex integration ([097cf5f](https://github.com/googleapis/nodejs-dataproc-metastore/commit/097cf5fa1d2c32e2eab3fb53830ddabdef7ea2dc))
+* Added DatabaseType field for the type of backing store used ([#121](https://github.com/googleapis/nodejs-dataproc-metastore/issues/121)) ([097cf5f](https://github.com/googleapis/nodejs-dataproc-metastore/commit/097cf5fa1d2c32e2eab3fb53830ddabdef7ea2dc))
+* Added EncryptionConfig which contains information used to configure the Dataproc Metastore service to encrypt customer data at rest (CMEK) ([097cf5f](https://github.com/googleapis/nodejs-dataproc-metastore/commit/097cf5fa1d2c32e2eab3fb53830ddabdef7ea2dc))
+* Added NetworkConfig for exposing the DPMS endpoint in multiple subnetworks using PSC (this skips the need for VPC peering) ([097cf5f](https://github.com/googleapis/nodejs-dataproc-metastore/commit/097cf5fa1d2c32e2eab3fb53830ddabdef7ea2dc))
+* Added RESTORING status on Backups ([097cf5f](https://github.com/googleapis/nodejs-dataproc-metastore/commit/097cf5fa1d2c32e2eab3fb53830ddabdef7ea2dc))
+* Added support for IAM management for metadata resources ([097cf5f](https://github.com/googleapis/nodejs-dataproc-metastore/commit/097cf5fa1d2c32e2eab3fb53830ddabdef7ea2dc))
+* Added support to record the services that are restoring the backup ([097cf5f](https://github.com/googleapis/nodejs-dataproc-metastore/commit/097cf5fa1d2c32e2eab3fb53830ddabdef7ea2dc))
+
+## [2.0.0](https://www.github.com/googleapis/nodejs-dataproc-metastore/compare/v1.3.0...v2.0.0) (2021-08-30)
+
+
+### ⚠ BREAKING CHANGES
+
+* mark v1 as the default API version (#85)
+
+### Features
+
+* mark v1 as the default API version ([#85](https://www.github.com/googleapis/nodejs-dataproc-metastore/issues/85)) ([1869574](https://www.github.com/googleapis/nodejs-dataproc-metastore/commit/1869574b0deef84866f62c8f8550f7e3d5fed8c9))
+
+## [1.3.0](https://www.github.com/googleapis/nodejs-dataproc-metastore/compare/v1.2.0...v1.3.0) (2021-08-23)
+
+
+### Features
+
+* turns on self-signed JWT feature flag ([#82](https://www.github.com/googleapis/nodejs-dataproc-metastore/issues/82)) ([9f80543](https://www.github.com/googleapis/nodejs-dataproc-metastore/commit/9f8054386a3f39a570b0693f851a9aec12c6a739))
+
+## [1.2.0](https://www.github.com/googleapis/nodejs-dataproc-metastore/compare/v1.1.6...v1.2.0) (2021-08-17)
+
+
+### Features
+
+* Added the Backup resource and Backup resource GetIamPolicy/SetIamPolicy to V1 feat: Added the RestoreService method to V1 ([#80](https://www.github.com/googleapis/nodejs-dataproc-metastore/issues/80)) ([8d1df0e](https://www.github.com/googleapis/nodejs-dataproc-metastore/commit/8d1df0e23894a49e3c2b4ae4a9c1b7c76cd1de8f))
+
+### [1.1.6](https://www.github.com/googleapis/nodejs-dataproc-metastore/compare/v1.1.5...v1.1.6) (2021-08-17)
+
+
+### Bug Fixes
+
+* **build:** migrate to using main branch ([#77](https://www.github.com/googleapis/nodejs-dataproc-metastore/issues/77)) ([2a83f86](https://www.github.com/googleapis/nodejs-dataproc-metastore/commit/2a83f86b7bf920b9b1534085d6ffb00dbdcd1df9))
+* **deps:** google-gax v2.24.1 ([#79](https://www.github.com/googleapis/nodejs-dataproc-metastore/issues/79)) ([c9a1751](https://www.github.com/googleapis/nodejs-dataproc-metastore/commit/c9a1751187e1acfdad07d2b9eacbbdf2d5033fcf))
+
+### [1.1.5](https://www.github.com/googleapis/nodejs-dataproc-metastore/compare/v1.1.4...v1.1.5) (2021-07-12)
+
+
+### Bug Fixes
+
+* **deps:** google-gax v2.17.1 ([#68](https://www.github.com/googleapis/nodejs-dataproc-metastore/issues/68)) ([0770cc1](https://www.github.com/googleapis/nodejs-dataproc-metastore/commit/0770cc165a51bf8d6bf2aebe48a8eeaac64d6329))
+
+### [1.1.4](https://www.github.com/googleapis/nodejs-dataproc-metastore/compare/v1.1.3...v1.1.4) (2021-06-29)
+
+
+### Bug Fixes
+
+* **deps:** google-gax v2.17.0 with mTLS ([#65](https://www.github.com/googleapis/nodejs-dataproc-metastore/issues/65)) ([8840a84](https://www.github.com/googleapis/nodejs-dataproc-metastore/commit/8840a847a81a8c23c7d3273953a47a9add34f4c1))
+
+### [1.1.3](https://www.github.com/googleapis/nodejs-dataproc-metastore/compare/v1.1.2...v1.1.3) (2021-06-23)
+
+
+### Bug Fixes
+
+* make request optional in all cases ([#61](https://www.github.com/googleapis/nodejs-dataproc-metastore/issues/61)) ([ff13b45](https://www.github.com/googleapis/nodejs-dataproc-metastore/commit/ff13b45b9d75fee6630d2ba584279cf4f336f3f4))
+
+### [1.1.2](https://www.github.com/googleapis/nodejs-dataproc-metastore/compare/v1.1.1...v1.1.2) (2021-05-25)
+
+
+### Bug Fixes
+
+* GoogleAdsError missing using generator version after 1.3.0 ([#52](https://www.github.com/googleapis/nodejs-dataproc-metastore/issues/52)) ([664fa28](https://www.github.com/googleapis/nodejs-dataproc-metastore/commit/664fa28a1526bbed531d58c8e51eae714e51afce))
+
+### [1.1.1](https://www.github.com/googleapis/nodejs-dataproc-metastore/compare/v1.1.0...v1.1.1) (2021-05-12)
+
+
+### Bug Fixes
+
+* **deps:** require google-gax v2.12.0 ([#44](https://www.github.com/googleapis/nodejs-dataproc-metastore/issues/44)) ([fc2d8a3](https://www.github.com/googleapis/nodejs-dataproc-metastore/commit/fc2d8a313af1438e71c0b6f4890a0e774334afd7))
+* use require() to load JSON protos ([#47](https://www.github.com/googleapis/nodejs-dataproc-metastore/issues/47)) ([d607efa](https://www.github.com/googleapis/nodejs-dataproc-metastore/commit/d607efaeef14c8483743d97711c3937e84e5b032))
+
+## [1.1.0](https://www.github.com/googleapis/nodejs-dataproc-metastore/compare/v1.0.0...v1.1.0) (2021-03-18)
+
+
+### Features
+
+* add v1beta surface ([#13](https://www.github.com/googleapis/nodejs-dataproc-metastore/issues/13)) ([efb8cba](https://www.github.com/googleapis/nodejs-dataproc-metastore/commit/efb8cbad707044757f5d7a7afed9388b9afc9ab2))
+* added support for release channels when creating service ([#11](https://www.github.com/googleapis/nodejs-dataproc-metastore/issues/11)) ([787f2cc](https://www.github.com/googleapis/nodejs-dataproc-metastore/commit/787f2cc38106ddb147db2676bfa0baba966e7d12))
+* Publish Dataproc Metastore v1alpha API ([#9](https://www.github.com/googleapis/nodejs-dataproc-metastore/issues/9)) ([296571f](https://www.github.com/googleapis/nodejs-dataproc-metastore/commit/296571faeb647a495f25c8d12a9b4abd728b9e13))
+
+## 1.0.0 (2021-02-23)
+
+
+### ⚠ BREAKING CHANGES
+
+* initial stub of library
+
+### Features
+
+* add initial samples and tests ([#5](https://www.github.com/googleapis/nodejs-dataproc-metastore/issues/5)) ([a2abf2b](https://www.github.com/googleapis/nodejs-dataproc-metastore/commit/a2abf2bb9e36f7ce8fa5d7c36eddc5182059e84c))
+* initial stub of library ([2789dc7](https://www.github.com/googleapis/nodejs-dataproc-metastore/commit/2789dc733c46b35b73147925f65de1228a74a087))
diff --git a/packages/google-cloud-metastore/CODE_OF_CONDUCT.md b/packages/google-cloud-metastore/CODE_OF_CONDUCT.md
new file mode 100644
index 00000000000..2add2547a81
--- /dev/null
+++ b/packages/google-cloud-metastore/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-metastore/CONTRIBUTING.md b/packages/google-cloud-metastore/CONTRIBUTING.md
new file mode 100644
index 00000000000..d792254de8c
--- /dev/null
+++ b/packages/google-cloud-metastore/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 Dataproc Metastore 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=metastore.googleapis.com
+[auth]: https://cloud.google.com/docs/authentication/getting-started
\ No newline at end of file
diff --git a/packages/google-cloud-metastore/LICENSE b/packages/google-cloud-metastore/LICENSE
new file mode 100644
index 00000000000..d6456956733
--- /dev/null
+++ b/packages/google-cloud-metastore/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-metastore/README.md b/packages/google-cloud-metastore/README.md
new file mode 100644
index 00000000000..09bb6d8c10c
--- /dev/null
+++ b/packages/google-cloud-metastore/README.md
@@ -0,0 +1,159 @@
+[//]: # "This README.md file is auto-generated, all changes to this file will be lost."
+[//]: # "To regenerate it, use `python -m synthtool`."
+
+
+# [Dataproc Metastore: Node.js Client](https://github.com/googleapis/nodejs-dataproc-metastore)
+
+[](https://cloud.google.com/terms/launch-stages)
+[](https://www.npmjs.org/package/@google-cloud/dataproc-metastore)
+
+
+
+
+Metastore client for Node.js
+
+
+A comprehensive list of changes in each version may be found in
+[the CHANGELOG](https://github.com/googleapis/nodejs-dataproc-metastore/blob/main/CHANGELOG.md).
+
+* [Dataproc Metastore Node.js Client API Reference][client-docs]
+* [Dataproc Metastore Documentation][product-docs]
+* [github.com/googleapis/nodejs-dataproc-metastore](https://github.com/googleapis/nodejs-dataproc-metastore)
+
+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 Dataproc Metastore 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/dataproc-metastore
+```
+
+
+### Using the client library
+
+```javascript
+
+// Imports the Google Cloud client library
+const {DataprocMetastoreClient} = require('@google-cloud/dataproc-metastore');
+
+// TODO(developer): replace with your prefered project ID.
+// const projectId = 'my-project'
+// const location = 'my-location'
+
+// Creates a client
+const client = new DataprocMetastoreClient();
+
+async function listServices() {
+ const [services] = await client.listServices({
+ parent: `projects/${projectId}/locations/${location}`,
+ });
+ console.info(services);
+}
+listServices();
+
+```
+
+
+
+## Samples
+
+Samples are in the [`samples/`](https://github.com/googleapis/nodejs-dataproc-metastore/tree/main/samples) directory. Each sample's `README.md` has instructions for running its sample.
+
+| Sample | Source Code | Try it |
+| --------------------------- | --------------------------------- | ------ |
+| Quickstart | [source code](https://github.com/googleapis/nodejs-dataproc-metastore/blob/main/samples/quickstart.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-dataproc-metastore&page=editor&open_in_editor=samples/quickstart.js,samples/README.md) |
+
+
+
+The [Dataproc Metastore 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/dataproc-metastore@legacy-8` installs client libraries
+for versions compatible with Node.js 8.
+
+## Versioning
+
+This library follows [Semantic Versioning](http://semver.org/).
+
+
+
+This library is considered to be **stable**. The code surface will not change in backwards-incompatible ways
+unless absolutely necessary (e.g. because of critical security issues) or with
+an extensive deprecation period. Issues and requests against **stable** libraries
+are addressed with the highest priority.
+
+
+
+
+
+
+More Information: [Google Cloud Platform Launch Stages][launch_stages]
+
+[launch_stages]: https://cloud.google.com/terms/launch-stages
+
+## Contributing
+
+Contributions welcome! See the [Contributing Guide](https://github.com/googleapis/nodejs-dataproc-metastore/blob/main/CONTRIBUTING.md).
+
+Please note that this `README.md`, the `samples/README.md`,
+and a variety of configuration files in this repository (including `.nycrc` and `tsconfig.json`)
+are generated from a central template. To edit one of these files, make an edit
+to its templates in
+[directory](https://github.com/googleapis/synthtool).
+
+## License
+
+Apache Version 2.0
+
+See [LICENSE](https://github.com/googleapis/nodejs-dataproc-metastore/blob/main/LICENSE)
+
+[client-docs]: https://cloud.google.com/nodejs/docs/reference/dataproc-metastore/latest
+[product-docs]: https://cloud.google.com/dataproc-metastore/
+[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=metastore.googleapis.com
+[auth]: https://cloud.google.com/docs/authentication/getting-started
diff --git a/packages/google-cloud-metastore/linkinator.config.json b/packages/google-cloud-metastore/linkinator.config.json
new file mode 100644
index 00000000000..befd23c8633
--- /dev/null
+++ b/packages/google-cloud-metastore/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-metastore/package.json b/packages/google-cloud-metastore/package.json
new file mode 100644
index 00000000000..536981637d8
--- /dev/null
+++ b/packages/google-cloud-metastore/package.json
@@ -0,0 +1,66 @@
+{
+ "name": "@google-cloud/dataproc-metastore",
+ "version": "3.1.2",
+ "description": "Metastore client for Node.js",
+ "repository": "googleapis/nodejs-dataproc-metastore",
+ "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 metastore",
+ "metastore",
+ "dataproc metastore"
+ ],
+ "scripts": {
+ "clean": "gts clean",
+ "compile": "tsc -p . && cp -r protos build/",
+ "compile-protos": "compileProtos src",
+ "docs": "jsdoc -c .jsdoc.js",
+ "predocs-test": "npm run docs",
+ "docs-test": "linkinator docs",
+ "fix": "gts fix",
+ "lint": "gts check",
+ "prepare": "npm run compile-protos && npm run compile",
+ "system-test": "c8 mocha build/system-test",
+ "test": "c8 mocha build/test",
+ "samples-test": "cd samples/ && npm link ../ && npm test",
+ "prelint": "cd samples; npm link ../; npm i"
+ },
+ "dependencies": {
+ "google-gax": "^3.5.2"
+ },
+ "devDependencies": {
+ "@types/mocha": "^9.0.0",
+ "@types/node": "^18.0.0",
+ "@types/sinon": "^10.0.0",
+ "c8": "^7.3.5",
+ "gts": "^3.1.0",
+ "jsdoc": "^4.0.0",
+ "jsdoc-fresh": "^2.0.0",
+ "jsdoc-region-tag": "^2.0.0",
+ "linkinator": "^4.0.0",
+ "mocha": "^9.2.2",
+ "null-loader": "^4.0.1",
+ "pack-n-play": "^1.0.0-2",
+ "sinon": "^14.0.0",
+ "ts-loader": "^9.0.0",
+ "typescript": "^4.6.4",
+ "webpack": "^5.9.0",
+ "webpack-cli": "^4.2.0"
+ },
+ "engines": {
+ "node": ">=12.0.0"
+ }
+}
diff --git a/packages/google-cloud-metastore/protos/google/cloud/metastore/v1/metastore.proto b/packages/google-cloud-metastore/protos/google/cloud/metastore/v1/metastore.proto
new file mode 100644
index 00000000000..6a49abe207f
--- /dev/null
+++ b/packages/google-cloud-metastore/protos/google/cloud/metastore/v1/metastore.proto
@@ -0,0 +1,1224 @@
+// Copyright 2021 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.metastore.v1;
+
+import "google/api/annotations.proto";
+import "google/api/client.proto";
+import "google/api/field_behavior.proto";
+import "google/api/resource.proto";
+import "google/longrunning/operations.proto";
+import "google/protobuf/field_mask.proto";
+import "google/protobuf/timestamp.proto";
+import "google/protobuf/wrappers.proto";
+import "google/type/dayofweek.proto";
+
+option go_package = "google.golang.org/genproto/googleapis/cloud/metastore/v1;metastore";
+option java_multiple_files = true;
+option java_outer_classname = "MetastoreProto";
+option java_package = "com.google.cloud.metastore.v1";
+option (google.api.resource_definition) = {
+ type: "compute.googleapis.com/Network"
+ pattern: "projects/{project}/global/networks/{network}"
+};
+
+// Configures and manages metastore services.
+// Metastore services are fully managed, highly available, autoscaled,
+// autohealing, OSS-native deployments of technical metadata management
+// software. Each metastore service exposes a network endpoint through which
+// metadata queries are served. Metadata queries can originate from a variety
+// of sources, including Apache Hive, Apache Presto, and Apache Spark.
+//
+// The Dataproc Metastore API defines the following resource model:
+//
+// * The service works with a collection of Google Cloud projects, named:
+// `/projects/*`
+// * Each project has a collection of available locations, named: `/locations/*`
+// (a location must refer to a Google Cloud `region`)
+// * Each location has a collection of services, named: `/services/*`
+// * Dataproc Metastore services are resources with names of the form:
+//
+// `/projects/{project_number}/locations/{location_id}/services/{service_id}`.
+service DataprocMetastore {
+ option (google.api.default_host) = "metastore.googleapis.com";
+ option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform";
+
+ // Lists services in a project and location.
+ rpc ListServices(ListServicesRequest) returns (ListServicesResponse) {
+ option (google.api.http) = {
+ get: "/v1/{parent=projects/*/locations/*}/services"
+ };
+ option (google.api.method_signature) = "parent";
+ }
+
+ // Gets the details of a single service.
+ rpc GetService(GetServiceRequest) returns (Service) {
+ option (google.api.http) = {
+ get: "/v1/{name=projects/*/locations/*/services/*}"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // Creates a metastore service in a project and location.
+ rpc CreateService(CreateServiceRequest) returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ post: "/v1/{parent=projects/*/locations/*}/services"
+ body: "service"
+ };
+ option (google.api.method_signature) = "parent,service,service_id";
+ option (google.longrunning.operation_info) = {
+ response_type: "Service"
+ metadata_type: "OperationMetadata"
+ };
+ }
+
+ // Updates the parameters of a single service.
+ rpc UpdateService(UpdateServiceRequest) returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ patch: "/v1/{service.name=projects/*/locations/*/services/*}"
+ body: "service"
+ };
+ option (google.api.method_signature) = "service,update_mask";
+ option (google.longrunning.operation_info) = {
+ response_type: "Service"
+ metadata_type: "OperationMetadata"
+ };
+ }
+
+ // Deletes a single service.
+ rpc DeleteService(DeleteServiceRequest) returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ delete: "/v1/{name=projects/*/locations/*/services/*}"
+ };
+ option (google.api.method_signature) = "name";
+ option (google.longrunning.operation_info) = {
+ response_type: "google.protobuf.Empty"
+ metadata_type: "OperationMetadata"
+ };
+ }
+
+ // Lists imports in a service.
+ rpc ListMetadataImports(ListMetadataImportsRequest) returns (ListMetadataImportsResponse) {
+ option (google.api.http) = {
+ get: "/v1/{parent=projects/*/locations/*/services/*}/metadataImports"
+ };
+ option (google.api.method_signature) = "parent";
+ }
+
+ // Gets details of a single import.
+ rpc GetMetadataImport(GetMetadataImportRequest) returns (MetadataImport) {
+ option (google.api.http) = {
+ get: "/v1/{name=projects/*/locations/*/services/*/metadataImports/*}"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // Creates a new MetadataImport in a given project and location.
+ rpc CreateMetadataImport(CreateMetadataImportRequest) returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ post: "/v1/{parent=projects/*/locations/*/services/*}/metadataImports"
+ body: "metadata_import"
+ };
+ option (google.api.method_signature) = "parent,metadata_import,metadata_import_id";
+ option (google.longrunning.operation_info) = {
+ response_type: "MetadataImport"
+ metadata_type: "OperationMetadata"
+ };
+ }
+
+ // Updates a single import.
+ // Only the description field of MetadataImport is supported to be updated.
+ rpc UpdateMetadataImport(UpdateMetadataImportRequest) returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ patch: "/v1/{metadata_import.name=projects/*/locations/*/services/*/metadataImports/*}"
+ body: "metadata_import"
+ };
+ option (google.api.method_signature) = "metadata_import,update_mask";
+ option (google.longrunning.operation_info) = {
+ response_type: "MetadataImport"
+ metadata_type: "OperationMetadata"
+ };
+ }
+
+ // Exports metadata from a service.
+ rpc ExportMetadata(ExportMetadataRequest) returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ post: "/v1/{service=projects/*/locations/*/services/*}:exportMetadata"
+ body: "*"
+ };
+ option (google.longrunning.operation_info) = {
+ response_type: "MetadataExport"
+ metadata_type: "OperationMetadata"
+ };
+ }
+
+ // Restores a service from a backup.
+ rpc RestoreService(RestoreServiceRequest) returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ post: "/v1/{service=projects/*/locations/*/services/*}:restore"
+ body: "*"
+ };
+ option (google.api.method_signature) = "service,backup";
+ option (google.longrunning.operation_info) = {
+ response_type: "Restore"
+ metadata_type: "OperationMetadata"
+ };
+ }
+
+ // Lists backups in a service.
+ rpc ListBackups(ListBackupsRequest) returns (ListBackupsResponse) {
+ option (google.api.http) = {
+ get: "/v1/{parent=projects/*/locations/*/services/*}/backups"
+ };
+ option (google.api.method_signature) = "parent";
+ }
+
+ // Gets details of a single backup.
+ rpc GetBackup(GetBackupRequest) returns (Backup) {
+ option (google.api.http) = {
+ get: "/v1/{name=projects/*/locations/*/services/*/backups/*}"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // Creates a new backup in a given project and location.
+ rpc CreateBackup(CreateBackupRequest) returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ post: "/v1/{parent=projects/*/locations/*/services/*}/backups"
+ body: "backup"
+ };
+ option (google.api.method_signature) = "parent,backup,backup_id";
+ option (google.longrunning.operation_info) = {
+ response_type: "Backup"
+ metadata_type: "OperationMetadata"
+ };
+ }
+
+ // Deletes a single backup.
+ rpc DeleteBackup(DeleteBackupRequest) returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ delete: "/v1/{name=projects/*/locations/*/services/*/backups/*}"
+ };
+ option (google.api.method_signature) = "name";
+ option (google.longrunning.operation_info) = {
+ response_type: "google.protobuf.Empty"
+ metadata_type: "OperationMetadata"
+ };
+ }
+}
+
+// A managed metastore service that serves metadata queries.
+message Service {
+ option (google.api.resource) = {
+ type: "metastore.googleapis.com/Service"
+ pattern: "projects/{project}/locations/{location}/services/{service}"
+ };
+
+ // The current state of the metastore service.
+ enum State {
+ // The state of the metastore service is unknown.
+ STATE_UNSPECIFIED = 0;
+
+ // The metastore service is in the process of being created.
+ CREATING = 1;
+
+ // The metastore service is running and ready to serve queries.
+ ACTIVE = 2;
+
+ // The metastore service is entering suspension. Its query-serving
+ // availability may cease unexpectedly.
+ SUSPENDING = 3;
+
+ // The metastore service is suspended and unable to serve queries.
+ SUSPENDED = 4;
+
+ // The metastore service is being updated. It remains usable but cannot
+ // accept additional update requests or be deleted at this time.
+ UPDATING = 5;
+
+ // The metastore service is undergoing deletion. It cannot be used.
+ DELETING = 6;
+
+ // The metastore service has encountered an error and cannot be used. The
+ // metastore service should be deleted.
+ ERROR = 7;
+ }
+
+ // Available service tiers.
+ enum Tier {
+ // The tier is not set.
+ TIER_UNSPECIFIED = 0;
+
+ // The developer tier provides limited scalability and no fault tolerance.
+ // Good for low-cost proof-of-concept.
+ DEVELOPER = 1;
+
+ // The enterprise tier provides multi-zone high availability, and sufficient
+ // scalability for enterprise-level Dataproc Metastore workloads.
+ ENTERPRISE = 3;
+ }
+
+ // Release channels bundle features of varying levels of stability. Newer
+ // features may be introduced initially into less stable release channels and
+ // can be automatically promoted into more stable release channels.
+ enum ReleaseChannel {
+ // Release channel is not specified.
+ RELEASE_CHANNEL_UNSPECIFIED = 0;
+
+ // The `CANARY` release channel contains the newest features, which may be
+ // unstable and subject to unresolved issues with no known workarounds.
+ // Services using the `CANARY` release channel are not subject to any SLAs.
+ CANARY = 1;
+
+ // The `STABLE` release channel contains features that are considered stable
+ // and have been validated for production use.
+ STABLE = 2;
+ }
+
+ // Configuration properties specific to the underlying metastore service
+ // technology (the software that serves metastore queries).
+ oneof metastore_config {
+ // Configuration information specific to running Hive metastore
+ // software as the metastore service.
+ HiveMetastoreConfig hive_metastore_config = 5;
+ }
+
+ // Immutable. The relative resource name of the metastore service, of the form:
+ //
+ // `projects/{project_number}/locations/{location_id}/services/{service_id}`.
+ string name = 1 [(google.api.field_behavior) = IMMUTABLE];
+
+ // Output only. The time when the metastore service was created.
+ google.protobuf.Timestamp create_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The time when the metastore service was last updated.
+ google.protobuf.Timestamp update_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // User-defined labels for the metastore service.
+ map labels = 4;
+
+ // Immutable. The relative resource name of the VPC network on which the instance can be
+ // accessed. It is specified in the following form:
+ //
+ // `projects/{project_number}/global/networks/{network_id}`.
+ string network = 7 [
+ (google.api.field_behavior) = IMMUTABLE,
+ (google.api.resource_reference) = {
+ type: "compute.googleapis.com/Network"
+ }
+ ];
+
+ // Output only. The URI of the endpoint used to access the metastore service.
+ string endpoint_uri = 8 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // The TCP port at which the metastore service is reached. Default: 9083.
+ int32 port = 9;
+
+ // Output only. The current state of the metastore service.
+ State state = 10 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Additional information about the current state of the metastore service, if
+ // available.
+ string state_message = 11 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. A Cloud Storage URI (starting with `gs://`) that specifies where artifacts
+ // related to the metastore service are stored.
+ string artifact_gcs_uri = 12 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // The tier of the service.
+ Tier tier = 13;
+
+ // The one hour maintenance window of the metastore service. This specifies
+ // when the service can be restarted for maintenance purposes in UTC time.
+ MaintenanceWindow maintenance_window = 15;
+
+ // Output only. The globally unique resource identifier of the metastore service.
+ string uid = 16 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The metadata management activities of the metastore service.
+ MetadataManagementActivity metadata_management_activity = 17 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Immutable. The release channel of the service.
+ // If unspecified, defaults to `STABLE`.
+ ReleaseChannel release_channel = 19 [(google.api.field_behavior) = IMMUTABLE];
+}
+
+// Maintenance window. This specifies when Dataproc Metastore
+// may perform system maintenance operation to the service.
+message MaintenanceWindow {
+ // The hour of day (0-23) when the window starts.
+ google.protobuf.Int32Value hour_of_day = 1;
+
+ // The day of week, when the window starts.
+ google.type.DayOfWeek day_of_week = 2;
+}
+
+// Specifies configuration information specific to running Hive metastore
+// software as the metastore service.
+message HiveMetastoreConfig {
+ // Immutable. The Hive metastore schema version.
+ string version = 1 [(google.api.field_behavior) = IMMUTABLE];
+
+ // A mapping of Hive metastore configuration key-value pairs to apply to the
+ // Hive metastore (configured in `hive-site.xml`). The mappings
+ // override system defaults (some keys cannot be overridden).
+ map config_overrides = 2;
+
+ // Information used to configure the Hive metastore service as a service
+ // principal in a Kerberos realm. To disable Kerberos, use the `UpdateService`
+ // method and specify this field's path
+ // (`hive_metastore_config.kerberos_config`) in the request's `update_mask`
+ // while omitting this field from the request's `service`.
+ KerberosConfig kerberos_config = 3;
+}
+
+// Configuration information for a Kerberos principal.
+message KerberosConfig {
+ // A Kerberos keytab file that can be used to authenticate a service principal
+ // with a Kerberos Key Distribution Center (KDC).
+ Secret keytab = 1;
+
+ // A Kerberos principal that exists in the both the keytab the KDC
+ // to authenticate as. A typical principal is of the form
+ // `primary/instance@REALM`, but there is no exact format.
+ string principal = 2;
+
+ // A Cloud Storage URI that specifies the path to a
+ // krb5.conf file. It is of the form `gs://{bucket_name}/path/to/krb5.conf`,
+ // although the file does not need to be named krb5.conf explicitly.
+ string krb5_config_gcs_uri = 3;
+}
+
+// A securely stored value.
+message Secret {
+ oneof value {
+ // The relative resource name of a Secret Manager secret version, in the
+ // following form:
+ //
+ // `projects/{project_number}/secrets/{secret_id}/versions/{version_id}`.
+ string cloud_secret = 2;
+ }
+}
+
+// The metadata management activities of the metastore service.
+message MetadataManagementActivity {
+ // Output only. The latest metadata exports of the metastore service.
+ repeated MetadataExport metadata_exports = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The latest restores of the metastore service.
+ repeated Restore restores = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
+}
+
+// A metastore resource that imports metadata.
+message MetadataImport {
+ option (google.api.resource) = {
+ type: "metastore.googleapis.com/MetadataImport"
+ pattern: "projects/{project}/locations/{location}/services/{service}/metadataImports/{metadata_import}"
+ };
+
+ // A specification of the location of and metadata about a database dump from
+ // a relational database management system.
+ message DatabaseDump {
+ // The type of the database.
+ enum DatabaseType {
+ // The type of the source database is unknown.
+ DATABASE_TYPE_UNSPECIFIED = 0;
+
+ // The type of the source database is MySQL.
+ MYSQL = 1;
+ }
+
+ // The type of the database.
+ DatabaseType database_type = 1 [deprecated = true];
+
+ // A Cloud Storage object or folder URI that specifies the source from which
+ // to import metadata. It must begin with `gs://`.
+ string gcs_uri = 2;
+
+ // Optional. The type of the database dump. If unspecified, defaults to `MYSQL`.
+ DatabaseDumpSpec.Type type = 4 [(google.api.field_behavior) = OPTIONAL];
+ }
+
+ // The current state of the metadata import.
+ enum State {
+ // The state of the metadata import is unknown.
+ STATE_UNSPECIFIED = 0;
+
+ // The metadata import is running.
+ RUNNING = 1;
+
+ // The metadata import completed successfully.
+ SUCCEEDED = 2;
+
+ // The metadata import is being updated.
+ UPDATING = 3;
+
+ // The metadata import failed, and attempted metadata changes were rolled
+ // back.
+ FAILED = 4;
+ }
+
+ // The metadata to be imported.
+ oneof metadata {
+ // Immutable. A database dump from a pre-existing metastore's database.
+ DatabaseDump database_dump = 6 [(google.api.field_behavior) = IMMUTABLE];
+ }
+
+ // Immutable. The relative resource name of the metadata import, of the form:
+ //
+ // `projects/{project_number}/locations/{location_id}/services/{service_id}/metadataImports/{metadata_import_id}`.
+ string name = 1 [(google.api.field_behavior) = IMMUTABLE];
+
+ // The description of the metadata import.
+ string description = 2;
+
+ // Output only. The time when the metadata import was started.
+ google.protobuf.Timestamp create_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The time when the metadata import was last updated.
+ google.protobuf.Timestamp update_time = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The time when the metadata import finished.
+ google.protobuf.Timestamp end_time = 7 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The current state of the metadata import.
+ State state = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
+}
+
+// The details of a metadata export operation.
+message MetadataExport {
+ // The current state of the metadata export.
+ enum State {
+ // The state of the metadata export is unknown.
+ STATE_UNSPECIFIED = 0;
+
+ // The metadata export is running.
+ RUNNING = 1;
+
+ // The metadata export completed successfully.
+ SUCCEEDED = 2;
+
+ // The metadata export failed.
+ FAILED = 3;
+
+ // The metadata export is cancelled.
+ CANCELLED = 4;
+ }
+
+ oneof destination {
+ // Output only. A Cloud Storage URI of a folder that metadata are exported to, in the
+ // form of `gs:////`, where
+ // `` is automatically generated.
+ string destination_gcs_uri = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
+ }
+
+ // Output only. The time when the export started.
+ google.protobuf.Timestamp start_time = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The time when the export ended.
+ google.protobuf.Timestamp end_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The current state of the export.
+ State state = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The type of the database dump.
+ DatabaseDumpSpec.Type database_dump_type = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
+}
+
+// The details of a backup resource.
+message Backup {
+ option (google.api.resource) = {
+ type: "metastore.googleapis.com/Backup"
+ pattern: "projects/{project}/locations/{location}/services/{service}/backups/{backup}"
+ };
+
+ // The current state of the backup.
+ enum State {
+ // The state of the backup is unknown.
+ STATE_UNSPECIFIED = 0;
+
+ // The backup is being created.
+ CREATING = 1;
+
+ // The backup is being deleted.
+ DELETING = 2;
+
+ // The backup is active and ready to use.
+ ACTIVE = 3;
+
+ // The backup failed.
+ FAILED = 4;
+
+ // The backup is being restored.
+ RESTORING = 5;
+ }
+
+ // Immutable. The relative resource name of the backup, in the following form:
+ //
+ // `projects/{project_number}/locations/{location_id}/services/{service_id}/backups/{backup_id}`
+ string name = 1 [(google.api.field_behavior) = IMMUTABLE];
+
+ // Output only. The time when the backup was started.
+ google.protobuf.Timestamp create_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The time when the backup finished creating.
+ google.protobuf.Timestamp end_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The current state of the backup.
+ State state = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The revision of the service at the time of backup.
+ Service service_revision = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // The description of the backup.
+ string description = 6;
+
+ // Output only. Services that are restoring from the backup.
+ repeated string restoring_services = 7 [(google.api.field_behavior) = OUTPUT_ONLY];
+}
+
+// The details of a metadata restore operation.
+message Restore {
+ // The current state of the restore.
+ enum State {
+ // The state of the metadata restore is unknown.
+ STATE_UNSPECIFIED = 0;
+
+ // The metadata restore is running.
+ RUNNING = 1;
+
+ // The metadata restore completed successfully.
+ SUCCEEDED = 2;
+
+ // The metadata restore failed.
+ FAILED = 3;
+
+ // The metadata restore is cancelled.
+ CANCELLED = 4;
+ }
+
+ // The type of restore. If unspecified, defaults to `METADATA_ONLY`.
+ enum RestoreType {
+ // The restore type is unknown.
+ RESTORE_TYPE_UNSPECIFIED = 0;
+
+ // The service's metadata and configuration are restored.
+ FULL = 1;
+
+ // Only the service's metadata is restored.
+ METADATA_ONLY = 2;
+ }
+
+ // Output only. The time when the restore started.
+ google.protobuf.Timestamp start_time = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The time when the restore ended.
+ google.protobuf.Timestamp end_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The current state of the restore.
+ State state = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The relative resource name of the metastore service backup to restore
+ // from, in the following form:
+ //
+ // `projects/{project_id}/locations/{location_id}/services/{service_id}/backups/{backup_id}`.
+ string backup = 4 [
+ (google.api.field_behavior) = OUTPUT_ONLY,
+ (google.api.resource_reference) = {
+ type: "metastore.googleapis.com/Backup"
+ }
+ ];
+
+ // Output only. The type of restore.
+ RestoreType type = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The restore details containing the revision of the service to be restored
+ // to, in format of JSON.
+ string details = 6 [(google.api.field_behavior) = OUTPUT_ONLY];
+}
+
+// Request message for [DataprocMetastore.ListServices][google.cloud.metastore.v1.DataprocMetastore.ListServices].
+message ListServicesRequest {
+ // Required. The relative resource name of the location of metastore services to
+ // list, in the following form:
+ //
+ // `projects/{project_number}/locations/{location_id}`.
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "locations.googleapis.com/Location"
+ }
+ ];
+
+ // Optional. The maximum number of services to return. The response may contain less
+ // than the maximum number. If unspecified, no more than 500 services are
+ // returned. The maximum value is 1000; values above 1000 are changed to 1000.
+ int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. A page token, received from a previous [DataprocMetastore.ListServices][google.cloud.metastore.v1.DataprocMetastore.ListServices]
+ // call. Provide this token to retrieve the subsequent page.
+ //
+ // To retrieve the first page, supply an empty page token.
+ //
+ // When paginating, other parameters provided to
+ // [DataprocMetastore.ListServices][google.cloud.metastore.v1.DataprocMetastore.ListServices] must match the call that provided the
+ // page token.
+ string page_token = 3 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The filter to apply to list results.
+ string filter = 4 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Specify the ordering of results as described in [Sorting
+ // Order](https://cloud.google.com/apis/design/design_patterns#sorting_order).
+ // If not specified, the results will be sorted in the default order.
+ string order_by = 5 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Response message for [DataprocMetastore.ListServices][google.cloud.metastore.v1.DataprocMetastore.ListServices].
+message ListServicesResponse {
+ // The services in the specified location.
+ repeated Service services = 1;
+
+ // A token that can be sent as `page_token` to retrieve the next page. If this
+ // field is omitted, there are no subsequent pages.
+ string next_page_token = 2;
+
+ // Locations that could not be reached.
+ repeated string unreachable = 3;
+}
+
+// Request message for [DataprocMetastore.GetService][google.cloud.metastore.v1.DataprocMetastore.GetService].
+message GetServiceRequest {
+ // Required. The relative resource name of the metastore service to retrieve, in the
+ // following form:
+ //
+ // `projects/{project_number}/locations/{location_id}/services/{service_id}`.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "metastore.googleapis.com/Service"
+ }
+ ];
+}
+
+// Request message for [DataprocMetastore.CreateService][google.cloud.metastore.v1.DataprocMetastore.CreateService].
+message CreateServiceRequest {
+ // Required. The relative resource name of the location in which to create a metastore
+ // service, in the following form:
+ //
+ // `projects/{project_number}/locations/{location_id}`.
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "locations.googleapis.com/Location"
+ }
+ ];
+
+ // Required. The ID of the metastore service, which is used as the final
+ // component of the metastore service's name.
+ //
+ // This value must be between 2 and 63 characters long inclusive, begin with a
+ // letter, end with a letter or number, and consist of alpha-numeric
+ // ASCII characters or hyphens.
+ string service_id = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. The Metastore service to create. The `name` field is
+ // ignored. The ID of the created metastore service must be provided in
+ // the request's `service_id` field.
+ Service service = 3 [(google.api.field_behavior) = REQUIRED];
+
+ // Optional. A request ID. Specify a unique request ID to allow the server to ignore the
+ // request if it has completed. The server will ignore subsequent requests
+ // that provide a duplicate request ID for at least 60 minutes after the first
+ // request.
+ //
+ // For example, if an initial request times out, followed by another request
+ // with the same request ID, the server ignores the second request to prevent
+ // the creation of duplicate commitments.
+ //
+ // The request ID must be a valid
+ // [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format)
+ // A zero UUID (00000000-0000-0000-0000-000000000000) is not supported.
+ string request_id = 4 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Request message for [DataprocMetastore.UpdateService][google.cloud.metastore.v1.DataprocMetastore.UpdateService].
+message UpdateServiceRequest {
+ // Required. A field mask used to specify the fields to be overwritten in the
+ // metastore service resource by the update.
+ // Fields specified in the `update_mask` are relative to the resource (not
+ // to the full request). A field is overwritten if it is in the mask.
+ google.protobuf.FieldMask update_mask = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. The metastore service to update. The server only merges fields
+ // in the service if they are specified in `update_mask`.
+ //
+ // The metastore service's `name` field is used to identify the metastore
+ // service to be updated.
+ Service service = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // Optional. A request ID. Specify a unique request ID to allow the server to ignore the
+ // request if it has completed. The server will ignore subsequent requests
+ // that provide a duplicate request ID for at least 60 minutes after the first
+ // request.
+ //
+ // For example, if an initial request times out, followed by another request
+ // with the same request ID, the server ignores the second request to prevent
+ // the creation of duplicate commitments.
+ //
+ // The request ID must be a valid
+ // [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format)
+ // A zero UUID (00000000-0000-0000-0000-000000000000) is not supported.
+ string request_id = 3 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Request message for [DataprocMetastore.DeleteService][google.cloud.metastore.v1.DataprocMetastore.DeleteService].
+message DeleteServiceRequest {
+ // Required. The relative resource name of the metastore service to delete, in the
+ // following form:
+ //
+ // `projects/{project_number}/locations/{location_id}/services/{service_id}`.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "metastore.googleapis.com/Service"
+ }
+ ];
+
+ // Optional. A request ID. Specify a unique request ID to allow the server to ignore the
+ // request if it has completed. The server will ignore subsequent requests
+ // that provide a duplicate request ID for at least 60 minutes after the first
+ // request.
+ //
+ // For example, if an initial request times out, followed by another request
+ // with the same request ID, the server ignores the second request to prevent
+ // the creation of duplicate commitments.
+ //
+ // The request ID must be a valid
+ // [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format)
+ // A zero UUID (00000000-0000-0000-0000-000000000000) is not supported.
+ string request_id = 2 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Request message for [DataprocMetastore.ListMetadataImports][google.cloud.metastore.v1.DataprocMetastore.ListMetadataImports].
+message ListMetadataImportsRequest {
+ // Required. The relative resource name of the service whose metadata imports to
+ // list, in the following form:
+ //
+ // `projects/{project_number}/locations/{location_id}/services/{service_id}/metadataImports`.
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "metastore.googleapis.com/Service"
+ }
+ ];
+
+ // Optional. The maximum number of imports to return. The response may contain less
+ // than the maximum number. If unspecified, no more than 500 imports are
+ // returned. The maximum value is 1000; values above 1000 are changed to 1000.
+ int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. A page token, received from a previous [DataprocMetastore.ListServices][google.cloud.metastore.v1.DataprocMetastore.ListServices]
+ // call. Provide this token to retrieve the subsequent page.
+ //
+ // To retrieve the first page, supply an empty page token.
+ //
+ // When paginating, other parameters provided to
+ // [DataprocMetastore.ListServices][google.cloud.metastore.v1.DataprocMetastore.ListServices] must match the call that provided the
+ // page token.
+ string page_token = 3 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The filter to apply to list results.
+ string filter = 4 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Specify the ordering of results as described in [Sorting
+ // Order](https://cloud.google.com/apis/design/design_patterns#sorting_order).
+ // If not specified, the results will be sorted in the default order.
+ string order_by = 5 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Response message for [DataprocMetastore.ListMetadataImports][google.cloud.metastore.v1.DataprocMetastore.ListMetadataImports].
+message ListMetadataImportsResponse {
+ // The imports in the specified service.
+ repeated MetadataImport metadata_imports = 1;
+
+ // A token that can be sent as `page_token` to retrieve the next page. If this
+ // field is omitted, there are no subsequent pages.
+ string next_page_token = 2;
+
+ // Locations that could not be reached.
+ repeated string unreachable = 3;
+}
+
+// Request message for [DataprocMetastore.GetMetadataImport][google.cloud.metastore.v1.DataprocMetastore.GetMetadataImport].
+message GetMetadataImportRequest {
+ // Required. The relative resource name of the metadata import to retrieve, in the
+ // following form:
+ //
+ // `projects/{project_number}/locations/{location_id}/services/{service_id}/metadataImports/{import_id}`.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "metastore.googleapis.com/MetadataImport"
+ }
+ ];
+}
+
+// Request message for [DataprocMetastore.CreateMetadataImport][google.cloud.metastore.v1.DataprocMetastore.CreateMetadataImport].
+message CreateMetadataImportRequest {
+ // Required. The relative resource name of the service in which to create a metastore
+ // import, in the following form:
+ //
+ // `projects/{project_number}/locations/{location_id}/services/{service_id}`.
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "metastore.googleapis.com/Service"
+ }
+ ];
+
+ // Required. The ID of the metadata import, which is used as the final component of the
+ // metadata import's name.
+ //
+ // This value must be between 1 and 64 characters long, begin with a letter,
+ // end with a letter or number, and consist of alpha-numeric ASCII characters
+ // or hyphens.
+ string metadata_import_id = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. The metadata import to create. The `name` field is ignored. The ID of the
+ // created metadata import must be provided in the request's
+ // `metadata_import_id` field.
+ MetadataImport metadata_import = 3 [(google.api.field_behavior) = REQUIRED];
+
+ // Optional. A request ID. Specify a unique request ID to allow the server to ignore the
+ // request if it has completed. The server will ignore subsequent requests
+ // that provide a duplicate request ID for at least 60 minutes after the first
+ // request.
+ //
+ // For example, if an initial request times out, followed by another request
+ // with the same request ID, the server ignores the second request to prevent
+ // the creation of duplicate commitments.
+ //
+ // The request ID must be a valid
+ // [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format)
+ // A zero UUID (00000000-0000-0000-0000-000000000000) is not supported.
+ string request_id = 4 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Request message for [DataprocMetastore.UpdateMetadataImport][google.cloud.metastore.v1.DataprocMetastore.UpdateMetadataImport].
+message UpdateMetadataImportRequest {
+ // Required. A field mask used to specify the fields to be overwritten in the
+ // metadata import resource by the update.
+ // Fields specified in the `update_mask` are relative to the resource (not
+ // to the full request). A field is overwritten if it is in the mask.
+ google.protobuf.FieldMask update_mask = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. The metadata import to update. The server only merges fields
+ // in the import if they are specified in `update_mask`.
+ //
+ // The metadata import's `name` field is used to identify the metastore
+ // import to be updated.
+ MetadataImport metadata_import = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // Optional. A request ID. Specify a unique request ID to allow the server to ignore the
+ // request if it has completed. The server will ignore subsequent requests
+ // that provide a duplicate request ID for at least 60 minutes after the first
+ // request.
+ //
+ // For example, if an initial request times out, followed by another request
+ // with the same request ID, the server ignores the second request to prevent
+ // the creation of duplicate commitments.
+ //
+ // The request ID must be a valid
+ // [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format)
+ // A zero UUID (00000000-0000-0000-0000-000000000000) is not supported.
+ string request_id = 3 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Request message for [DataprocMetastore.ListBackups][google.cloud.metastore.v1.DataprocMetastore.ListBackups].
+message ListBackupsRequest {
+ // Required. The relative resource name of the service whose backups to
+ // list, in the following form:
+ //
+ // `projects/{project_number}/locations/{location_id}/services/{service_id}/backups`.
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "metastore.googleapis.com/Service"
+ }
+ ];
+
+ // Optional. The maximum number of backups to return. The response may contain less
+ // than the maximum number. If unspecified, no more than 500 backups are
+ // returned. The maximum value is 1000; values above 1000 are changed to 1000.
+ int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. A page token, received from a previous [DataprocMetastore.ListBackups][google.cloud.metastore.v1.DataprocMetastore.ListBackups]
+ // call. Provide this token to retrieve the subsequent page.
+ //
+ // To retrieve the first page, supply an empty page token.
+ //
+ // When paginating, other parameters provided to
+ // [DataprocMetastore.ListBackups][google.cloud.metastore.v1.DataprocMetastore.ListBackups] must match the call that provided the
+ // page token.
+ string page_token = 3 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The filter to apply to list results.
+ string filter = 4 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Specify the ordering of results as described in [Sorting
+ // Order](https://cloud.google.com/apis/design/design_patterns#sorting_order).
+ // If not specified, the results will be sorted in the default order.
+ string order_by = 5 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Response message for [DataprocMetastore.ListBackups][google.cloud.metastore.v1.DataprocMetastore.ListBackups].
+message ListBackupsResponse {
+ // The backups of the specified service.
+ repeated Backup backups = 1;
+
+ // A token that can be sent as `page_token` to retrieve the next page. If this
+ // field is omitted, there are no subsequent pages.
+ string next_page_token = 2;
+
+ // Locations that could not be reached.
+ repeated string unreachable = 3;
+}
+
+// Request message for [DataprocMetastore.GetBackup][google.cloud.metastore.v1.DataprocMetastore.GetBackup].
+message GetBackupRequest {
+ // Required. The relative resource name of the backup to retrieve, in the
+ // following form:
+ //
+ // `projects/{project_number}/locations/{location_id}/services/{service_id}/backups/{backup_id}`.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "metastore.googleapis.com/Backup"
+ }
+ ];
+}
+
+// Request message for [DataprocMetastore.CreateBackup][google.cloud.metastore.v1.DataprocMetastore.CreateBackup].
+message CreateBackupRequest {
+ // Required. The relative resource name of the service in which to create a backup
+ // of the following form:
+ //
+ // `projects/{project_number}/locations/{location_id}/services/{service_id}`.
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "metastore.googleapis.com/Service"
+ }
+ ];
+
+ // Required. The ID of the backup, which is used as the final component of the
+ // backup's name.
+ //
+ // This value must be between 1 and 64 characters long, begin with a letter,
+ // end with a letter or number, and consist of alpha-numeric ASCII characters
+ // or hyphens.
+ string backup_id = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. The backup to create. The `name` field is ignored. The ID of the created
+ // backup must be provided in the request's `backup_id` field.
+ Backup backup = 3 [(google.api.field_behavior) = REQUIRED];
+
+ // Optional. A request ID. Specify a unique request ID to allow the server to ignore the
+ // request if it has completed. The server will ignore subsequent requests
+ // that provide a duplicate request ID for at least 60 minutes after the first
+ // request.
+ //
+ // For example, if an initial request times out, followed by another request
+ // with the same request ID, the server ignores the second request to prevent
+ // the creation of duplicate commitments.
+ //
+ // The request ID must be a valid
+ // [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format)
+ // A zero UUID (00000000-0000-0000-0000-000000000000) is not supported.
+ string request_id = 4 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Request message for [DataprocMetastore.DeleteBackup][google.cloud.metastore.v1.DataprocMetastore.DeleteBackup].
+message DeleteBackupRequest {
+ // Required. The relative resource name of the backup to delete, in the
+ // following form:
+ //
+ // `projects/{project_number}/locations/{location_id}/services/{service_id}/backups/{backup_id}`.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "metastore.googleapis.com/Backup"
+ }
+ ];
+
+ // Optional. A request ID. Specify a unique request ID to allow the server to ignore the
+ // request if it has completed. The server will ignore subsequent requests
+ // that provide a duplicate request ID for at least 60 minutes after the first
+ // request.
+ //
+ // For example, if an initial request times out, followed by another request
+ // with the same request ID, the server ignores the second request to prevent
+ // the creation of duplicate commitments.
+ //
+ // The request ID must be a valid
+ // [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format)
+ // A zero UUID (00000000-0000-0000-0000-000000000000) is not supported.
+ string request_id = 2 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Request message for [DataprocMetastore.ExportMetadata][google.cloud.metastore.v1.DataprocMetastore.ExportMetadata].
+message ExportMetadataRequest {
+ // Required. Destination that metadata is exported to.
+ oneof destination {
+ // A Cloud Storage URI of a folder, in the format
+ // `gs:///`. A sub-folder
+ // `` containing exported files will be created below it.
+ string destination_gcs_folder = 2;
+ }
+
+ // Required. The relative resource name of the metastore service to run export, in the
+ // following form:
+ //
+ // `projects/{project_id}/locations/{location_id}/services/{service_id}`.
+ string service = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "metastore.googleapis.com/Service"
+ }
+ ];
+
+ // Optional. A request ID. Specify a unique request ID to allow the server to ignore the
+ // request if it has completed. The server will ignore subsequent requests
+ // that provide a duplicate request ID for at least 60 minutes after the first
+ // request.
+ //
+ // For example, if an initial request times out, followed by another request
+ // with the same request ID, the server ignores the second request to prevent
+ // the creation of duplicate commitments.
+ //
+ // The request ID must be a valid
+ // [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format).
+ // A zero UUID (00000000-0000-0000-0000-000000000000) is not supported.
+ string request_id = 3 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The type of the database dump. If unspecified, defaults to `MYSQL`.
+ DatabaseDumpSpec.Type database_dump_type = 4 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Request message for [DataprocMetastore.Restore][].
+message RestoreServiceRequest {
+ // Required. The relative resource name of the metastore service to run restore, in the
+ // following form:
+ //
+ // `projects/{project_id}/locations/{location_id}/services/{service_id}`.
+ string service = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "metastore.googleapis.com/Service"
+ }
+ ];
+
+ // Required. The relative resource name of the metastore service backup to restore
+ // from, in the following form:
+ //
+ // `projects/{project_id}/locations/{location_id}/services/{service_id}/backups/{backup_id}`.
+ string backup = 2 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "metastore.googleapis.com/Backup"
+ }
+ ];
+
+ // Optional. The type of restore. If unspecified, defaults to `METADATA_ONLY`.
+ Restore.RestoreType restore_type = 3 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. A request ID. Specify a unique request ID to allow the server to ignore the
+ // request if it has completed. The server will ignore subsequent requests
+ // that provide a duplicate request ID for at least 60 minutes after the first
+ // request.
+ //
+ // For example, if an initial request times out, followed by another request
+ // with the same request ID, the server ignores the second request to prevent
+ // the creation of duplicate commitments.
+ //
+ // The request ID must be a valid
+ // [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format).
+ // A zero UUID (00000000-0000-0000-0000-000000000000) is not supported.
+ string request_id = 4 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Represents the metadata of a long-running operation.
+message OperationMetadata {
+ // Output only. The time the operation was created.
+ google.protobuf.Timestamp create_time = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The time the operation finished running.
+ google.protobuf.Timestamp end_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Server-defined resource path for the target of the operation.
+ string target = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Name of the verb executed by the operation.
+ string verb = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Human-readable status of the operation, if any.
+ string status_message = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Identifies whether the caller has requested cancellation
+ // of the operation. Operations that have successfully been cancelled
+ // have [Operation.error][] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1,
+ // corresponding to `Code.CANCELLED`.
+ bool requested_cancellation = 6 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. API version used to start the operation.
+ string api_version = 7 [(google.api.field_behavior) = OUTPUT_ONLY];
+}
+
+// Metadata about the service in a location.
+message LocationMetadata {
+ // A specification of a supported version of the Hive Metastore software.
+ message HiveMetastoreVersion {
+ // The semantic version of the Hive Metastore software.
+ string version = 1;
+
+ // Whether `version` will be chosen by the server if a metastore service is
+ // created with a `HiveMetastoreConfig` that omits the `version`.
+ bool is_default = 2;
+ }
+
+ // The versions of Hive Metastore that can be used when creating a new
+ // metastore service in this location. The server guarantees that exactly one
+ // `HiveMetastoreVersion` in the list will set `is_default`.
+ repeated HiveMetastoreVersion supported_hive_metastore_versions = 1;
+}
+
+// The specification of database dump to import from or export to.
+message DatabaseDumpSpec {
+ // The type of the database dump.
+ enum Type {
+ // The type of the database dump is unknown.
+ TYPE_UNSPECIFIED = 0;
+
+ // Database dump is a MySQL dump file.
+ MYSQL = 1;
+
+ // Database dump contains Avro files.
+ AVRO = 2;
+ }
+
+
+}
diff --git a/packages/google-cloud-metastore/protos/google/cloud/metastore/v1alpha/metastore.proto b/packages/google-cloud-metastore/protos/google/cloud/metastore/v1alpha/metastore.proto
new file mode 100644
index 00000000000..d5b96385e33
--- /dev/null
+++ b/packages/google-cloud-metastore/protos/google/cloud/metastore/v1alpha/metastore.proto
@@ -0,0 +1,1383 @@
+// 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.metastore.v1alpha;
+
+import "google/api/annotations.proto";
+import "google/api/client.proto";
+import "google/api/field_behavior.proto";
+import "google/api/resource.proto";
+import "google/longrunning/operations.proto";
+import "google/protobuf/field_mask.proto";
+import "google/protobuf/timestamp.proto";
+import "google/protobuf/wrappers.proto";
+import "google/type/dayofweek.proto";
+
+option go_package = "google.golang.org/genproto/googleapis/cloud/metastore/v1alpha;metastore";
+option java_multiple_files = true;
+option java_outer_classname = "MetastoreProto";
+option java_package = "com.google.cloud.metastore.v1alpha";
+option php_namespace = "Google\\Cloud\\Metastore\\V1alpha";
+option (google.api.resource_definition) = {
+ type: "compute.googleapis.com/Network"
+ pattern: "projects/{project}/global/networks/{network}"
+};
+option (google.api.resource_definition) = {
+ type: "compute.googleapis.com/Subnetwork"
+ pattern: "projects/{project}/regions/{region}/subnetworks/{subnetwork}"
+};
+option (google.api.resource_definition) = {
+ type: "dataplex.googleapis.com/Lake"
+ pattern: "projects/{project}/locations/{location}/lakes/{lake}"
+};
+
+// Configures and manages metastore services.
+// Metastore services are fully managed, highly available, autoscaled,
+// autohealing, OSS-native deployments of technical metadata management
+// software. Each metastore service exposes a network endpoint through which
+// metadata queries are served. Metadata queries can originate from a variety
+// of sources, including Apache Hive, Apache Presto, and Apache Spark.
+//
+// The Dataproc Metastore API defines the following resource model:
+//
+// * The service works with a collection of Google Cloud projects, named:
+// `/projects/*`
+// * Each project has a collection of available locations, named: `/locations/*`
+// (a location must refer to a Google Cloud `region`)
+// * Each location has a collection of services, named: `/services/*`
+// * Dataproc Metastore services are resources with names of the form:
+//
+// `/projects/{project_number}/locations/{location_id}/services/{service_id}`.
+service DataprocMetastore {
+ option (google.api.default_host) = "metastore.googleapis.com";
+ option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform";
+
+ // Lists services in a project and location.
+ rpc ListServices(ListServicesRequest) returns (ListServicesResponse) {
+ option (google.api.http) = {
+ get: "/v1alpha/{parent=projects/*/locations/*}/services"
+ };
+ option (google.api.method_signature) = "parent";
+ }
+
+ // Gets the details of a single service.
+ rpc GetService(GetServiceRequest) returns (Service) {
+ option (google.api.http) = {
+ get: "/v1alpha/{name=projects/*/locations/*/services/*}"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // Creates a metastore service in a project and location.
+ rpc CreateService(CreateServiceRequest) returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ post: "/v1alpha/{parent=projects/*/locations/*}/services"
+ body: "service"
+ };
+ option (google.api.method_signature) = "parent,service,service_id";
+ option (google.longrunning.operation_info) = {
+ response_type: "Service"
+ metadata_type: "OperationMetadata"
+ };
+ }
+
+ // Updates the parameters of a single service.
+ rpc UpdateService(UpdateServiceRequest) returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ patch: "/v1alpha/{service.name=projects/*/locations/*/services/*}"
+ body: "service"
+ };
+ option (google.api.method_signature) = "service,update_mask";
+ option (google.longrunning.operation_info) = {
+ response_type: "Service"
+ metadata_type: "OperationMetadata"
+ };
+ }
+
+ // Deletes a single service.
+ rpc DeleteService(DeleteServiceRequest) returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ delete: "/v1alpha/{name=projects/*/locations/*/services/*}"
+ };
+ option (google.api.method_signature) = "name";
+ option (google.longrunning.operation_info) = {
+ response_type: "google.protobuf.Empty"
+ metadata_type: "OperationMetadata"
+ };
+ }
+
+ // Lists imports in a service.
+ rpc ListMetadataImports(ListMetadataImportsRequest) returns (ListMetadataImportsResponse) {
+ option (google.api.http) = {
+ get: "/v1alpha/{parent=projects/*/locations/*/services/*}/metadataImports"
+ };
+ option (google.api.method_signature) = "parent";
+ }
+
+ // Gets details of a single import.
+ rpc GetMetadataImport(GetMetadataImportRequest) returns (MetadataImport) {
+ option (google.api.http) = {
+ get: "/v1alpha/{name=projects/*/locations/*/services/*/metadataImports/*}"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // Creates a new MetadataImport in a given project and location.
+ rpc CreateMetadataImport(CreateMetadataImportRequest) returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ post: "/v1alpha/{parent=projects/*/locations/*/services/*}/metadataImports"
+ body: "metadata_import"
+ };
+ option (google.api.method_signature) = "parent,metadata_import,metadata_import_id";
+ option (google.longrunning.operation_info) = {
+ response_type: "MetadataImport"
+ metadata_type: "OperationMetadata"
+ };
+ }
+
+ // Updates a single import.
+ // Only the description field of MetadataImport is supported to be updated.
+ rpc UpdateMetadataImport(UpdateMetadataImportRequest) returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ patch: "/v1alpha/{metadata_import.name=projects/*/locations/*/services/*/metadataImports/*}"
+ body: "metadata_import"
+ };
+ option (google.api.method_signature) = "metadata_import,update_mask";
+ option (google.longrunning.operation_info) = {
+ response_type: "MetadataImport"
+ metadata_type: "OperationMetadata"
+ };
+ }
+
+ // Exports metadata from a service.
+ rpc ExportMetadata(ExportMetadataRequest) returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ post: "/v1alpha/{service=projects/*/locations/*/services/*}:exportMetadata"
+ body: "*"
+ };
+ option (google.longrunning.operation_info) = {
+ response_type: "MetadataExport"
+ metadata_type: "OperationMetadata"
+ };
+ }
+
+ // Restores a service from a backup.
+ rpc RestoreService(RestoreServiceRequest) returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ post: "/v1alpha/{service=projects/*/locations/*/services/*}:restore"
+ body: "*"
+ };
+ option (google.api.method_signature) = "service,backup";
+ option (google.longrunning.operation_info) = {
+ response_type: "Restore"
+ metadata_type: "OperationMetadata"
+ };
+ }
+
+ // Lists backups in a service.
+ rpc ListBackups(ListBackupsRequest) returns (ListBackupsResponse) {
+ option (google.api.http) = {
+ get: "/v1alpha/{parent=projects/*/locations/*/services/*}/backups"
+ };
+ option (google.api.method_signature) = "parent";
+ }
+
+ // Gets details of a single backup.
+ rpc GetBackup(GetBackupRequest) returns (Backup) {
+ option (google.api.http) = {
+ get: "/v1alpha/{name=projects/*/locations/*/services/*/backups/*}"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // Creates a new backup in a given project and location.
+ rpc CreateBackup(CreateBackupRequest) returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ post: "/v1alpha/{parent=projects/*/locations/*/services/*}/backups"
+ body: "backup"
+ };
+ option (google.api.method_signature) = "parent,backup,backup_id";
+ option (google.longrunning.operation_info) = {
+ response_type: "Backup"
+ metadata_type: "OperationMetadata"
+ };
+ }
+
+ // Deletes a single backup.
+ rpc DeleteBackup(DeleteBackupRequest) returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ delete: "/v1alpha/{name=projects/*/locations/*/services/*/backups/*}"
+ };
+ option (google.api.method_signature) = "name";
+ option (google.longrunning.operation_info) = {
+ response_type: "google.protobuf.Empty"
+ metadata_type: "OperationMetadata"
+ };
+ }
+}
+
+// A managed metastore service that serves metadata queries.
+message Service {
+ option (google.api.resource) = {
+ type: "metastore.googleapis.com/Service"
+ pattern: "projects/{project}/locations/{location}/services/{service}"
+ };
+
+ // The current state of the metastore service.
+ enum State {
+ // The state of the metastore service is unknown.
+ STATE_UNSPECIFIED = 0;
+
+ // The metastore service is in the process of being created.
+ CREATING = 1;
+
+ // The metastore service is running and ready to serve queries.
+ ACTIVE = 2;
+
+ // The metastore service is entering suspension. Its query-serving
+ // availability may cease unexpectedly.
+ SUSPENDING = 3;
+
+ // The metastore service is suspended and unable to serve queries.
+ SUSPENDED = 4;
+
+ // The metastore service is being updated. It remains usable but cannot
+ // accept additional update requests or be deleted at this time.
+ UPDATING = 5;
+
+ // The metastore service is undergoing deletion. It cannot be used.
+ DELETING = 6;
+
+ // The metastore service has encountered an error and cannot be used. The
+ // metastore service should be deleted.
+ ERROR = 7;
+ }
+
+ // Available service tiers.
+ enum Tier {
+ // The tier is not set.
+ TIER_UNSPECIFIED = 0;
+
+ // The developer tier provides limited scalability and no fault tolerance.
+ // Good for low-cost proof-of-concept.
+ DEVELOPER = 1;
+
+ // The enterprise tier provides multi-zone high availability, and sufficient
+ // scalability for enterprise-level Dataproc Metastore workloads.
+ ENTERPRISE = 3;
+ }
+
+ // Release channels bundle features of varying levels of stability. Newer
+ // features may be introduced initially into less stable release channels and
+ // can be automatically promoted into more stable release channels.
+ enum ReleaseChannel {
+ // Release channel is not specified.
+ RELEASE_CHANNEL_UNSPECIFIED = 0;
+
+ // The `CANARY` release channel contains the newest features, which may be
+ // unstable and subject to unresolved issues with no known workarounds.
+ // Services using the `CANARY` release channel are not subject to any SLAs.
+ CANARY = 1;
+
+ // The `STABLE` release channel contains features that are considered stable
+ // and have been validated for production use.
+ STABLE = 2;
+ }
+
+ // The backend database type for the metastore service.
+ enum DatabaseType {
+ // The DATABASE_TYPE is not set.
+ DATABASE_TYPE_UNSPECIFIED = 0;
+
+ // MySQL is used to persist the metastore data.
+ MYSQL = 1;
+
+ // Spanner is used to persist the metastore data.
+ SPANNER = 2;
+ }
+
+ // Configuration properties specific to the underlying metastore service
+ // technology (the software that serves metastore queries).
+ oneof metastore_config {
+ // Configuration information specific to running Hive metastore
+ // software as the metastore service.
+ HiveMetastoreConfig hive_metastore_config = 5;
+ }
+
+ // Immutable. The relative resource name of the metastore service, of the form:
+ //
+ // `projects/{project_number}/locations/{location_id}/services/{service_id}`.
+ string name = 1 [(google.api.field_behavior) = IMMUTABLE];
+
+ // Output only. The time when the metastore service was created.
+ google.protobuf.Timestamp create_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The time when the metastore service was last updated.
+ google.protobuf.Timestamp update_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // User-defined labels for the metastore service.
+ map labels = 4;
+
+ // Immutable. The relative resource name of the VPC network on which the instance can be
+ // accessed. It is specified in the following form:
+ //
+ // `projects/{project_number}/global/networks/{network_id}`.
+ string network = 7 [
+ (google.api.field_behavior) = IMMUTABLE,
+ (google.api.resource_reference) = {
+ type: "compute.googleapis.com/Network"
+ }
+ ];
+
+ // Output only. The URI of the endpoint used to access the metastore service.
+ string endpoint_uri = 8 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // The TCP port at which the metastore service is reached. Default: 9083.
+ int32 port = 9;
+
+ // Output only. The current state of the metastore service.
+ State state = 10 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Additional information about the current state of the metastore service, if
+ // available.
+ string state_message = 11 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. A Cloud Storage URI (starting with `gs://`) that specifies where artifacts
+ // related to the metastore service are stored.
+ string artifact_gcs_uri = 12 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // The tier of the service.
+ Tier tier = 13;
+
+ // The setting that defines how metastore metadata should be integrated with
+ // external services and systems.
+ MetadataIntegration metadata_integration = 14;
+
+ // The one hour maintenance window of the metastore service. This specifies
+ // when the service can be restarted for maintenance purposes in UTC time.
+ // Maintenance window is not needed for services with the SPANNER
+ // database type.
+ MaintenanceWindow maintenance_window = 15;
+
+ // Output only. The globally unique resource identifier of the metastore service.
+ string uid = 16 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The metadata management activities of the metastore service.
+ MetadataManagementActivity metadata_management_activity = 17 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Immutable. The release channel of the service.
+ // If unspecified, defaults to `STABLE`.
+ ReleaseChannel release_channel = 19 [(google.api.field_behavior) = IMMUTABLE];
+
+ // Immutable. Information used to configure the Dataproc Metastore service to encrypt
+ // customer data at rest. Cannot be updated.
+ EncryptionConfig encryption_config = 20 [(google.api.field_behavior) = IMMUTABLE];
+
+ // Immutable. The configuration specifying the network settings for the
+ // Dataproc Metastore service.
+ NetworkConfig network_config = 21 [(google.api.field_behavior) = IMMUTABLE];
+
+ // Immutable. The database type that the Metastore service stores its data.
+ DatabaseType database_type = 22 [(google.api.field_behavior) = IMMUTABLE];
+}
+
+// Specifies how metastore metadata should be integrated with external services.
+message MetadataIntegration {
+ // The integration config for the Data Catalog service.
+ DataCatalogConfig data_catalog_config = 1;
+
+ // The integration config for the Dataplex service.
+ DataplexConfig dataplex_config = 2;
+}
+
+// Specifies how metastore metadata should be integrated with the Data Catalog
+// service.
+message DataCatalogConfig {
+ // Defines whether the metastore metadata should be synced to Data Catalog.
+ // The default value is to disable syncing metastore metadata to Data Catalog.
+ bool enabled = 2;
+}
+
+// Specifies how metastore metadata should be integrated with the Dataplex
+// service.
+message DataplexConfig {
+ // A reference to the Lake resources that this metastore service is attached
+ // to. The key is the lake resource name. Example:
+ // `projects/{project_number}/locations/{location_id}/lakes/{lake_id}`.
+ map lake_resources = 1;
+}
+
+// Represents a Lake resource
+message Lake {
+ // The Lake resource name.
+ // Example:
+ // `projects/{project_number}/locations/{location_id}/lakes/{lake_id}`
+ string name = 1 [(google.api.resource_reference) = {
+ type: "dataplex.googleapis.com/Lake"
+ }];
+}
+
+// Maintenance window. This specifies when Dataproc Metastore
+// may perform system maintenance operation to the service.
+message MaintenanceWindow {
+ // The hour of day (0-23) when the window starts.
+ google.protobuf.Int32Value hour_of_day = 1;
+
+ // The day of week, when the window starts.
+ google.type.DayOfWeek day_of_week = 2;
+}
+
+// Specifies configuration information specific to running Hive metastore
+// software as the metastore service.
+message HiveMetastoreConfig {
+ // Protocols available for serving the metastore service endpoint.
+ enum EndpointProtocol {
+ // The protocol is not set.
+ ENDPOINT_PROTOCOL_UNSPECIFIED = 0;
+
+ // Use the legacy Apache Thrift protocol for the metastore service endpoint.
+ THRIFT = 1;
+
+ // Use the modernized gRPC protocol for the metastore service endpoint.
+ GRPC = 2;
+ }
+
+ // Immutable. The Hive metastore schema version.
+ string version = 1 [(google.api.field_behavior) = IMMUTABLE];
+
+ // A mapping of Hive metastore configuration key-value pairs to apply to the
+ // Hive metastore (configured in `hive-site.xml`). The mappings
+ // override system defaults (some keys cannot be overridden). These
+ // overrides are also applied to auxiliary versions and can be further
+ // customized in the auxiliary version's `AuxiliaryVersionConfig`.
+ map config_overrides = 2;
+
+ // Information used to configure the Hive metastore service as a service
+ // principal in a Kerberos realm. To disable Kerberos, use the `UpdateService`
+ // method and specify this field's path
+ // (`hive_metastore_config.kerberos_config`) in the request's `update_mask`
+ // while omitting this field from the request's `service`.
+ KerberosConfig kerberos_config = 3;
+
+ // The protocol to use for the metastore service endpoint. If unspecified,
+ // defaults to `THRIFT`.
+ EndpointProtocol endpoint_protocol = 4;
+
+ // A mapping of Hive metastore version to the auxiliary version
+ // configuration. When specified, a secondary Hive metastore service is
+ // created along with the primary service. All auxiliary versions must be less
+ // than the service's primary version. The key is the auxiliary service name
+ // and it must match the regular expression [a-z]([-a-z0-9]*[a-z0-9])?. This
+ // means that the first character must be a lowercase letter, and all the
+ // following characters must be hyphens, lowercase letters, or digits, except
+ // the last character, which cannot be a hyphen.
+ map auxiliary_versions = 5;
+}
+
+// Configuration information for a Kerberos principal.
+message KerberosConfig {
+ // A Kerberos keytab file that can be used to authenticate a service principal
+ // with a Kerberos Key Distribution Center (KDC).
+ Secret keytab = 1;
+
+ // A Kerberos principal that exists in the both the keytab the KDC
+ // to authenticate as. A typical principal is of the form
+ // `primary/instance@REALM`, but there is no exact format.
+ string principal = 2;
+
+ // A Cloud Storage URI that specifies the path to a
+ // krb5.conf file. It is of the form `gs://{bucket_name}/path/to/krb5.conf`,
+ // although the file does not need to be named krb5.conf explicitly.
+ string krb5_config_gcs_uri = 3;
+}
+
+// A securely stored value.
+message Secret {
+ oneof value {
+ // The relative resource name of a Secret Manager secret version, in the
+ // following form:
+ //
+ // `projects/{project_number}/secrets/{secret_id}/versions/{version_id}`.
+ string cloud_secret = 2;
+ }
+}
+
+// Encryption settings for the service.
+message EncryptionConfig {
+ // The fully qualified customer provided Cloud KMS key name to use for
+ // customer data encryption, in the following form:
+ //
+ // `projects/{project_number}/locations/{location_id}/keyRings/{key_ring_id}/cryptoKeys/{crypto_key_id}`.
+ string kms_key = 1;
+}
+
+// Configuration information for the auxiliary service versions.
+message AuxiliaryVersionConfig {
+ // The Hive metastore version of the auxiliary service. It must be less
+ // than the primary Hive metastore service's version.
+ string version = 1;
+
+ // A mapping of Hive metastore configuration key-value pairs to apply to the
+ // auxiliary Hive metastore (configured in `hive-site.xml`) in addition to
+ // the primary version's overrides. If keys are present in both the auxiliary
+ // version's overrides and the primary version's overrides, the value from
+ // the auxiliary version's overrides takes precedence.
+ map config_overrides = 2;
+
+ // Output only. The network configuration contains the endpoint URI(s) of the auxiliary
+ // Hive metastore service.
+ NetworkConfig network_config = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
+}
+
+// Network configuration for the Dataproc Metastore service.
+message NetworkConfig {
+ // Contains information of the customer's network configurations.
+ message Consumer {
+ oneof vpc_resource {
+ // The subnetwork of the customer project from which an IP address is
+ // reserved and used as the Dataproc Metastore service's
+ // endpoint. It is accessible to hosts in the subnet and to all
+ // hosts in a subnet in the same region and same network. There must
+ // be at least one IP address available in the subnet's primary range. The
+ // subnet is specified in the following form:
+ //
+ // `projects/{project_number}/regions/{region_id}/subnetworks/{subnetwork_id}
+ string subnetwork = 1 [(google.api.resource_reference) = {
+ type: "compute.googleapis.com/Subnetwork"
+ }];
+ }
+
+ // Output only. The URI of the endpoint used to access the metastore service.
+ string endpoint_uri = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
+ }
+
+ // Immutable. The consumer-side network configuration for the Dataproc Metastore
+ // instance.
+ repeated Consumer consumers = 1 [(google.api.field_behavior) = IMMUTABLE];
+}
+
+// The metadata management activities of the metastore service.
+message MetadataManagementActivity {
+ // Output only. The latest metadata exports of the metastore service.
+ repeated MetadataExport metadata_exports = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The latest restores of the metastore service.
+ repeated Restore restores = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
+}
+
+// A metastore resource that imports metadata.
+message MetadataImport {
+ option (google.api.resource) = {
+ type: "metastore.googleapis.com/MetadataImport"
+ pattern: "projects/{project}/locations/{location}/services/{service}/metadataImports/{metadata_import}"
+ };
+
+ // A specification of the location of and metadata about a database dump from
+ // a relational database management system.
+ message DatabaseDump {
+ // The type of the database.
+ enum DatabaseType {
+ // The type of the source database is unknown.
+ DATABASE_TYPE_UNSPECIFIED = 0;
+
+ // The type of the source database is MySQL.
+ MYSQL = 1;
+ }
+
+ // The type of the database.
+ DatabaseType database_type = 1 [deprecated = true];
+
+ // A Cloud Storage object or folder URI that specifies the source from which
+ // to import metadata. It must begin with `gs://`.
+ string gcs_uri = 2;
+
+ // The name of the source database.
+ string source_database = 3 [deprecated = true];
+
+ // Optional. The type of the database dump. If unspecified, defaults to `MYSQL`.
+ DatabaseDumpSpec.Type type = 4 [(google.api.field_behavior) = OPTIONAL];
+ }
+
+ // The current state of the metadata import.
+ enum State {
+ // The state of the metadata import is unknown.
+ STATE_UNSPECIFIED = 0;
+
+ // The metadata import is running.
+ RUNNING = 1;
+
+ // The metadata import completed successfully.
+ SUCCEEDED = 2;
+
+ // The metadata import is being updated.
+ UPDATING = 3;
+
+ // The metadata import failed, and attempted metadata changes were rolled
+ // back.
+ FAILED = 4;
+ }
+
+ // The metadata to be imported.
+ oneof metadata {
+ // Immutable. A database dump from a pre-existing metastore's database.
+ DatabaseDump database_dump = 6 [(google.api.field_behavior) = IMMUTABLE];
+ }
+
+ // Immutable. The relative resource name of the metadata import, of the form:
+ //
+ // `projects/{project_number}/locations/{location_id}/services/{service_id}/metadataImports/{metadata_import_id}`.
+ string name = 1 [(google.api.field_behavior) = IMMUTABLE];
+
+ // The description of the metadata import.
+ string description = 2;
+
+ // Output only. The time when the metadata import was started.
+ google.protobuf.Timestamp create_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The time when the metadata import was last updated.
+ google.protobuf.Timestamp update_time = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The time when the metadata import finished.
+ google.protobuf.Timestamp end_time = 7 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The current state of the metadata import.
+ State state = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
+}
+
+// The details of a metadata export operation.
+message MetadataExport {
+ // The current state of the metadata export.
+ enum State {
+ // The state of the metadata export is unknown.
+ STATE_UNSPECIFIED = 0;
+
+ // The metadata export is running.
+ RUNNING = 1;
+
+ // The metadata export completed successfully.
+ SUCCEEDED = 2;
+
+ // The metadata export failed.
+ FAILED = 3;
+
+ // The metadata export is cancelled.
+ CANCELLED = 4;
+ }
+
+ oneof destination {
+ // Output only. A Cloud Storage URI of a folder that metadata are exported to, in the
+ // form of `gs:////`, where
+ // `` is automatically generated.
+ string destination_gcs_uri = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
+ }
+
+ // Output only. The time when the export started.
+ google.protobuf.Timestamp start_time = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The time when the export ended.
+ google.protobuf.Timestamp end_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The current state of the export.
+ State state = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The type of the database dump.
+ DatabaseDumpSpec.Type database_dump_type = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
+}
+
+// The details of a backup resource.
+message Backup {
+ option (google.api.resource) = {
+ type: "metastore.googleapis.com/Backup"
+ pattern: "projects/{project}/locations/{location}/services/{service}/backups/{backup}"
+ };
+
+ // The current state of the backup.
+ enum State {
+ // The state of the backup is unknown.
+ STATE_UNSPECIFIED = 0;
+
+ // The backup is being created.
+ CREATING = 1;
+
+ // The backup is being deleted.
+ DELETING = 2;
+
+ // The backup is active and ready to use.
+ ACTIVE = 3;
+
+ // The backup failed.
+ FAILED = 4;
+
+ // The backup is being restored.
+ RESTORING = 5;
+ }
+
+ // Immutable. The relative resource name of the backup, in the following form:
+ //
+ // `projects/{project_number}/locations/{location_id}/services/{service_id}/backups/{backup_id}`
+ string name = 1 [(google.api.field_behavior) = IMMUTABLE];
+
+ // Output only. The time when the backup was started.
+ google.protobuf.Timestamp create_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The time when the backup finished creating.
+ google.protobuf.Timestamp end_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The current state of the backup.
+ State state = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The revision of the service at the time of backup.
+ Service service_revision = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // The description of the backup.
+ string description = 6;
+
+ // Output only. Services that are restoring from the backup.
+ repeated string restoring_services = 7 [(google.api.field_behavior) = OUTPUT_ONLY];
+}
+
+// The details of a metadata restore operation.
+message Restore {
+ // The current state of the restore.
+ enum State {
+ // The state of the metadata restore is unknown.
+ STATE_UNSPECIFIED = 0;
+
+ // The metadata restore is running.
+ RUNNING = 1;
+
+ // The metadata restore completed successfully.
+ SUCCEEDED = 2;
+
+ // The metadata restore failed.
+ FAILED = 3;
+
+ // The metadata restore is cancelled.
+ CANCELLED = 4;
+ }
+
+ // The type of restore. If unspecified, defaults to `METADATA_ONLY`.
+ enum RestoreType {
+ // The restore type is unknown.
+ RESTORE_TYPE_UNSPECIFIED = 0;
+
+ // The service's metadata and configuration are restored.
+ FULL = 1;
+
+ // Only the service's metadata is restored.
+ METADATA_ONLY = 2;
+ }
+
+ // Output only. The time when the restore started.
+ google.protobuf.Timestamp start_time = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The time when the restore ended.
+ google.protobuf.Timestamp end_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The current state of the restore.
+ State state = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The relative resource name of the metastore service backup to restore
+ // from, in the following form:
+ //
+ // `projects/{project_id}/locations/{location_id}/services/{service_id}/backups/{backup_id}`.
+ string backup = 4 [
+ (google.api.field_behavior) = OUTPUT_ONLY,
+ (google.api.resource_reference) = {
+ type: "metastore.googleapis.com/Backup"
+ }
+ ];
+
+ // Output only. The type of restore.
+ RestoreType type = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The restore details containing the revision of the service to be restored
+ // to, in format of JSON.
+ string details = 6 [(google.api.field_behavior) = OUTPUT_ONLY];
+}
+
+// Request message for [DataprocMetastore.ListServices][google.cloud.metastore.v1alpha.DataprocMetastore.ListServices].
+message ListServicesRequest {
+ // Required. The relative resource name of the location of metastore services to
+ // list, in the following form:
+ //
+ // `projects/{project_number}/locations/{location_id}`.
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "locations.googleapis.com/Location"
+ }
+ ];
+
+ // Optional. The maximum number of services to return. The response may contain less
+ // than the maximum number. If unspecified, no more than 500 services are
+ // returned. The maximum value is 1000; values above 1000 are changed to 1000.
+ int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. A page token, received from a previous [DataprocMetastore.ListServices][google.cloud.metastore.v1alpha.DataprocMetastore.ListServices]
+ // call. Provide this token to retrieve the subsequent page.
+ //
+ // To retrieve the first page, supply an empty page token.
+ //
+ // When paginating, other parameters provided to
+ // [DataprocMetastore.ListServices][google.cloud.metastore.v1alpha.DataprocMetastore.ListServices] must match the call that provided the
+ // page token.
+ string page_token = 3 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The filter to apply to list results.
+ string filter = 4 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Specify the ordering of results as described in [Sorting
+ // Order](https://cloud.google.com/apis/design/design_patterns#sorting_order).
+ // If not specified, the results will be sorted in the default order.
+ string order_by = 5 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Response message for [DataprocMetastore.ListServices][google.cloud.metastore.v1alpha.DataprocMetastore.ListServices].
+message ListServicesResponse {
+ // The services in the specified location.
+ repeated Service services = 1;
+
+ // A token that can be sent as `page_token` to retrieve the next page. If this
+ // field is omitted, there are no subsequent pages.
+ string next_page_token = 2;
+
+ // Locations that could not be reached.
+ repeated string unreachable = 3;
+}
+
+// Request message for [DataprocMetastore.GetService][google.cloud.metastore.v1alpha.DataprocMetastore.GetService].
+message GetServiceRequest {
+ // Required. The relative resource name of the metastore service to retrieve, in the
+ // following form:
+ //
+ // `projects/{project_number}/locations/{location_id}/services/{service_id}`.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "metastore.googleapis.com/Service"
+ }
+ ];
+}
+
+// Request message for [DataprocMetastore.CreateService][google.cloud.metastore.v1alpha.DataprocMetastore.CreateService].
+message CreateServiceRequest {
+ // Required. The relative resource name of the location in which to create a metastore
+ // service, in the following form:
+ //
+ // `projects/{project_number}/locations/{location_id}`.
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "locations.googleapis.com/Location"
+ }
+ ];
+
+ // Required. The ID of the metastore service, which is used as the final
+ // component of the metastore service's name.
+ //
+ // This value must be between 2 and 63 characters long inclusive, begin with a
+ // letter, end with a letter or number, and consist of alpha-numeric
+ // ASCII characters or hyphens.
+ string service_id = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. The Metastore service to create. The `name` field is
+ // ignored. The ID of the created metastore service must be provided in
+ // the request's `service_id` field.
+ Service service = 3 [(google.api.field_behavior) = REQUIRED];
+
+ // Optional. A request ID. Specify a unique request ID to allow the server to ignore the
+ // request if it has completed. The server will ignore subsequent requests
+ // that provide a duplicate request ID for at least 60 minutes after the first
+ // request.
+ //
+ // For example, if an initial request times out, followed by another request
+ // with the same request ID, the server ignores the second request to prevent
+ // the creation of duplicate commitments.
+ //
+ // The request ID must be a valid
+ // [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format)
+ // A zero UUID (00000000-0000-0000-0000-000000000000) is not supported.
+ string request_id = 4 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Request message for [DataprocMetastore.UpdateService][google.cloud.metastore.v1alpha.DataprocMetastore.UpdateService].
+message UpdateServiceRequest {
+ // Required. A field mask used to specify the fields to be overwritten in the
+ // metastore service resource by the update.
+ // Fields specified in the `update_mask` are relative to the resource (not
+ // to the full request). A field is overwritten if it is in the mask.
+ google.protobuf.FieldMask update_mask = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. The metastore service to update. The server only merges fields
+ // in the service if they are specified in `update_mask`.
+ //
+ // The metastore service's `name` field is used to identify the metastore
+ // service to be updated.
+ Service service = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // Optional. A request ID. Specify a unique request ID to allow the server to ignore the
+ // request if it has completed. The server will ignore subsequent requests
+ // that provide a duplicate request ID for at least 60 minutes after the first
+ // request.
+ //
+ // For example, if an initial request times out, followed by another request
+ // with the same request ID, the server ignores the second request to prevent
+ // the creation of duplicate commitments.
+ //
+ // The request ID must be a valid
+ // [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format)
+ // A zero UUID (00000000-0000-0000-0000-000000000000) is not supported.
+ string request_id = 3 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Request message for [DataprocMetastore.DeleteService][google.cloud.metastore.v1alpha.DataprocMetastore.DeleteService].
+message DeleteServiceRequest {
+ // Required. The relative resource name of the metastore service to delete, in the
+ // following form:
+ //
+ // `projects/{project_number}/locations/{location_id}/services/{service_id}`.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "metastore.googleapis.com/Service"
+ }
+ ];
+
+ // Optional. A request ID. Specify a unique request ID to allow the server to ignore the
+ // request if it has completed. The server will ignore subsequent requests
+ // that provide a duplicate request ID for at least 60 minutes after the first
+ // request.
+ //
+ // For example, if an initial request times out, followed by another request
+ // with the same request ID, the server ignores the second request to prevent
+ // the creation of duplicate commitments.
+ //
+ // The request ID must be a valid
+ // [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format)
+ // A zero UUID (00000000-0000-0000-0000-000000000000) is not supported.
+ string request_id = 2 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Request message for [DataprocMetastore.ListMetadataImports][google.cloud.metastore.v1alpha.DataprocMetastore.ListMetadataImports].
+message ListMetadataImportsRequest {
+ // Required. The relative resource name of the service whose metadata imports to
+ // list, in the following form:
+ //
+ // `projects/{project_number}/locations/{location_id}/services/{service_id}/metadataImports`.
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "metastore.googleapis.com/Service"
+ }
+ ];
+
+ // Optional. The maximum number of imports to return. The response may contain less
+ // than the maximum number. If unspecified, no more than 500 imports are
+ // returned. The maximum value is 1000; values above 1000 are changed to 1000.
+ int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. A page token, received from a previous [DataprocMetastore.ListServices][google.cloud.metastore.v1alpha.DataprocMetastore.ListServices]
+ // call. Provide this token to retrieve the subsequent page.
+ //
+ // To retrieve the first page, supply an empty page token.
+ //
+ // When paginating, other parameters provided to
+ // [DataprocMetastore.ListServices][google.cloud.metastore.v1alpha.DataprocMetastore.ListServices] must match the call that provided the
+ // page token.
+ string page_token = 3 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The filter to apply to list results.
+ string filter = 4 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Specify the ordering of results as described in [Sorting
+ // Order](https://cloud.google.com/apis/design/design_patterns#sorting_order).
+ // If not specified, the results will be sorted in the default order.
+ string order_by = 5 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Response message for [DataprocMetastore.ListMetadataImports][google.cloud.metastore.v1alpha.DataprocMetastore.ListMetadataImports].
+message ListMetadataImportsResponse {
+ // The imports in the specified service.
+ repeated MetadataImport metadata_imports = 1;
+
+ // A token that can be sent as `page_token` to retrieve the next page. If this
+ // field is omitted, there are no subsequent pages.
+ string next_page_token = 2;
+
+ // Locations that could not be reached.
+ repeated string unreachable = 3;
+}
+
+// Request message for [DataprocMetastore.GetMetadataImport][google.cloud.metastore.v1alpha.DataprocMetastore.GetMetadataImport].
+message GetMetadataImportRequest {
+ // Required. The relative resource name of the metadata import to retrieve, in the
+ // following form:
+ //
+ // `projects/{project_number}/locations/{location_id}/services/{service_id}/metadataImports/{import_id}`.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "metastore.googleapis.com/MetadataImport"
+ }
+ ];
+}
+
+// Request message for [DataprocMetastore.CreateMetadataImport][google.cloud.metastore.v1alpha.DataprocMetastore.CreateMetadataImport].
+message CreateMetadataImportRequest {
+ // Required. The relative resource name of the service in which to create a metastore
+ // import, in the following form:
+ //
+ // `projects/{project_number}/locations/{location_id}/services/{service_id}`.
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "metastore.googleapis.com/Service"
+ }
+ ];
+
+ // Required. The ID of the metadata import, which is used as the final component of the
+ // metadata import's name.
+ //
+ // This value must be between 1 and 64 characters long, begin with a letter,
+ // end with a letter or number, and consist of alpha-numeric ASCII characters
+ // or hyphens.
+ string metadata_import_id = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. The metadata import to create. The `name` field is ignored. The ID of the
+ // created metadata import must be provided in the request's
+ // `metadata_import_id` field.
+ MetadataImport metadata_import = 3 [(google.api.field_behavior) = REQUIRED];
+
+ // Optional. A request ID. Specify a unique request ID to allow the server to ignore the
+ // request if it has completed. The server will ignore subsequent requests
+ // that provide a duplicate request ID for at least 60 minutes after the first
+ // request.
+ //
+ // For example, if an initial request times out, followed by another request
+ // with the same request ID, the server ignores the second request to prevent
+ // the creation of duplicate commitments.
+ //
+ // The request ID must be a valid
+ // [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format)
+ // A zero UUID (00000000-0000-0000-0000-000000000000) is not supported.
+ string request_id = 4 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Request message for [DataprocMetastore.UpdateMetadataImport][google.cloud.metastore.v1alpha.DataprocMetastore.UpdateMetadataImport].
+message UpdateMetadataImportRequest {
+ // Required. A field mask used to specify the fields to be overwritten in the
+ // metadata import resource by the update.
+ // Fields specified in the `update_mask` are relative to the resource (not
+ // to the full request). A field is overwritten if it is in the mask.
+ google.protobuf.FieldMask update_mask = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. The metadata import to update. The server only merges fields
+ // in the import if they are specified in `update_mask`.
+ //
+ // The metadata import's `name` field is used to identify the metastore
+ // import to be updated.
+ MetadataImport metadata_import = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // Optional. A request ID. Specify a unique request ID to allow the server to ignore the
+ // request if it has completed. The server will ignore subsequent requests
+ // that provide a duplicate request ID for at least 60 minutes after the first
+ // request.
+ //
+ // For example, if an initial request times out, followed by another request
+ // with the same request ID, the server ignores the second request to prevent
+ // the creation of duplicate commitments.
+ //
+ // The request ID must be a valid
+ // [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format)
+ // A zero UUID (00000000-0000-0000-0000-000000000000) is not supported.
+ string request_id = 3 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Request message for [DataprocMetastore.ListBackups][google.cloud.metastore.v1alpha.DataprocMetastore.ListBackups].
+message ListBackupsRequest {
+ // Required. The relative resource name of the service whose backups to
+ // list, in the following form:
+ //
+ // `projects/{project_number}/locations/{location_id}/services/{service_id}/backups`.
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "metastore.googleapis.com/Service"
+ }
+ ];
+
+ // Optional. The maximum number of backups to return. The response may contain less
+ // than the maximum number. If unspecified, no more than 500 backups are
+ // returned. The maximum value is 1000; values above 1000 are changed to 1000.
+ int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. A page token, received from a previous [DataprocMetastore.ListBackups][google.cloud.metastore.v1alpha.DataprocMetastore.ListBackups]
+ // call. Provide this token to retrieve the subsequent page.
+ //
+ // To retrieve the first page, supply an empty page token.
+ //
+ // When paginating, other parameters provided to
+ // [DataprocMetastore.ListBackups][google.cloud.metastore.v1alpha.DataprocMetastore.ListBackups] must match the call that provided the
+ // page token.
+ string page_token = 3 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The filter to apply to list results.
+ string filter = 4 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Specify the ordering of results as described in [Sorting
+ // Order](https://cloud.google.com/apis/design/design_patterns#sorting_order).
+ // If not specified, the results will be sorted in the default order.
+ string order_by = 5 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Response message for [DataprocMetastore.ListBackups][google.cloud.metastore.v1alpha.DataprocMetastore.ListBackups].
+message ListBackupsResponse {
+ // The backups of the specified service.
+ repeated Backup backups = 1;
+
+ // A token that can be sent as `page_token` to retrieve the next page. If this
+ // field is omitted, there are no subsequent pages.
+ string next_page_token = 2;
+
+ // Locations that could not be reached.
+ repeated string unreachable = 3;
+}
+
+// Request message for [DataprocMetastore.GetBackup][google.cloud.metastore.v1alpha.DataprocMetastore.GetBackup].
+message GetBackupRequest {
+ // Required. The relative resource name of the backup to retrieve, in the
+ // following form:
+ //
+ // `projects/{project_number}/locations/{location_id}/services/{service_id}/backups/{backup_id}`.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "metastore.googleapis.com/Backup"
+ }
+ ];
+}
+
+// Request message for [DataprocMetastore.CreateBackup][google.cloud.metastore.v1alpha.DataprocMetastore.CreateBackup].
+message CreateBackupRequest {
+ // Required. The relative resource name of the service in which to create a backup
+ // of the following form:
+ //
+ // `projects/{project_number}/locations/{location_id}/services/{service_id}`.
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "metastore.googleapis.com/Service"
+ }
+ ];
+
+ // Required. The ID of the backup, which is used as the final component of the
+ // backup's name.
+ //
+ // This value must be between 1 and 64 characters long, begin with a letter,
+ // end with a letter or number, and consist of alpha-numeric ASCII characters
+ // or hyphens.
+ string backup_id = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. The backup to create. The `name` field is ignored. The ID of the created
+ // backup must be provided in the request's `backup_id` field.
+ Backup backup = 3 [(google.api.field_behavior) = REQUIRED];
+
+ // Optional. A request ID. Specify a unique request ID to allow the server to ignore the
+ // request if it has completed. The server will ignore subsequent requests
+ // that provide a duplicate request ID for at least 60 minutes after the first
+ // request.
+ //
+ // For example, if an initial request times out, followed by another request
+ // with the same request ID, the server ignores the second request to prevent
+ // the creation of duplicate commitments.
+ //
+ // The request ID must be a valid
+ // [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format)
+ // A zero UUID (00000000-0000-0000-0000-000000000000) is not supported.
+ string request_id = 4 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Request message for [DataprocMetastore.DeleteBackup][google.cloud.metastore.v1alpha.DataprocMetastore.DeleteBackup].
+message DeleteBackupRequest {
+ // Required. The relative resource name of the backup to delete, in the
+ // following form:
+ //
+ // `projects/{project_number}/locations/{location_id}/services/{service_id}/backups/{backup_id}`.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "metastore.googleapis.com/Backup"
+ }
+ ];
+
+ // Optional. A request ID. Specify a unique request ID to allow the server to ignore the
+ // request if it has completed. The server will ignore subsequent requests
+ // that provide a duplicate request ID for at least 60 minutes after the first
+ // request.
+ //
+ // For example, if an initial request times out, followed by another request
+ // with the same request ID, the server ignores the second request to prevent
+ // the creation of duplicate commitments.
+ //
+ // The request ID must be a valid
+ // [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format)
+ // A zero UUID (00000000-0000-0000-0000-000000000000) is not supported.
+ string request_id = 2 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Request message for [DataprocMetastore.ExportMetadata][google.cloud.metastore.v1alpha.DataprocMetastore.ExportMetadata].
+message ExportMetadataRequest {
+ // Required. Destination that metadata is exported to.
+ oneof destination {
+ // A Cloud Storage URI of a folder, in the format
+ // `gs:///`. A sub-folder
+ // `` containing exported files will be created below it.
+ string destination_gcs_folder = 2;
+ }
+
+ // Required. The relative resource name of the metastore service to run export, in the
+ // following form:
+ //
+ // `projects/{project_id}/locations/{location_id}/services/{service_id}`.
+ string service = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "metastore.googleapis.com/Service"
+ }
+ ];
+
+ // Optional. A request ID. Specify a unique request ID to allow the server to ignore the
+ // request if it has completed. The server will ignore subsequent requests
+ // that provide a duplicate request ID for at least 60 minutes after the first
+ // request.
+ //
+ // For example, if an initial request times out, followed by another request
+ // with the same request ID, the server ignores the second request to prevent
+ // the creation of duplicate commitments.
+ //
+ // The request ID must be a valid
+ // [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format).
+ // A zero UUID (00000000-0000-0000-0000-000000000000) is not supported.
+ string request_id = 3 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The type of the database dump. If unspecified, defaults to `MYSQL`.
+ DatabaseDumpSpec.Type database_dump_type = 4 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Request message for [DataprocMetastore.Restore][].
+message RestoreServiceRequest {
+ // Required. The relative resource name of the metastore service to run restore, in the
+ // following form:
+ //
+ // `projects/{project_id}/locations/{location_id}/services/{service_id}`.
+ string service = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "metastore.googleapis.com/Service"
+ }
+ ];
+
+ // Required. The relative resource name of the metastore service backup to restore
+ // from, in the following form:
+ //
+ // `projects/{project_id}/locations/{location_id}/services/{service_id}/backups/{backup_id}`.
+ string backup = 2 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "metastore.googleapis.com/Backup"
+ }
+ ];
+
+ // Optional. The type of restore. If unspecified, defaults to `METADATA_ONLY`.
+ Restore.RestoreType restore_type = 3 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. A request ID. Specify a unique request ID to allow the server to ignore the
+ // request if it has completed. The server will ignore subsequent requests
+ // that provide a duplicate request ID for at least 60 minutes after the first
+ // request.
+ //
+ // For example, if an initial request times out, followed by another request
+ // with the same request ID, the server ignores the second request to prevent
+ // the creation of duplicate commitments.
+ //
+ // The request ID must be a valid
+ // [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format).
+ // A zero UUID (00000000-0000-0000-0000-000000000000) is not supported.
+ string request_id = 4 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Represents the metadata of a long-running operation.
+message OperationMetadata {
+ // Output only. The time the operation was created.
+ google.protobuf.Timestamp create_time = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The time the operation finished running.
+ google.protobuf.Timestamp end_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Server-defined resource path for the target of the operation.
+ string target = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Name of the verb executed by the operation.
+ string verb = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Human-readable status of the operation, if any.
+ string status_message = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Identifies whether the caller has requested cancellation
+ // of the operation. Operations that have successfully been cancelled
+ // have [Operation.error][] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1,
+ // corresponding to `Code.CANCELLED`.
+ bool requested_cancellation = 6 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. API version used to start the operation.
+ string api_version = 7 [(google.api.field_behavior) = OUTPUT_ONLY];
+}
+
+// Metadata about the service in a location.
+message LocationMetadata {
+ // A specification of a supported version of the Hive Metastore software.
+ message HiveMetastoreVersion {
+ // The semantic version of the Hive Metastore software.
+ string version = 1;
+
+ // Whether `version` will be chosen by the server if a metastore service is
+ // created with a `HiveMetastoreConfig` that omits the `version`.
+ bool is_default = 2;
+ }
+
+ // The versions of Hive Metastore that can be used when creating a new
+ // metastore service in this location. The server guarantees that exactly one
+ // `HiveMetastoreVersion` in the list will set `is_default`.
+ repeated HiveMetastoreVersion supported_hive_metastore_versions = 1;
+}
+
+// The specification of database dump to import from or export to.
+message DatabaseDumpSpec {
+ // The type of the database dump.
+ enum Type {
+ // The type of the database dump is unknown.
+ TYPE_UNSPECIFIED = 0;
+
+ // Database dump is a MySQL dump file.
+ MYSQL = 1;
+
+ // Database dump contains Avro files.
+ AVRO = 2;
+ }
+
+
+}
diff --git a/packages/google-cloud-metastore/protos/google/cloud/metastore/v1beta/metastore.proto b/packages/google-cloud-metastore/protos/google/cloud/metastore/v1beta/metastore.proto
new file mode 100644
index 00000000000..350c6bbf3d6
--- /dev/null
+++ b/packages/google-cloud-metastore/protos/google/cloud/metastore/v1beta/metastore.proto
@@ -0,0 +1,1285 @@
+// Copyright 2021 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.metastore.v1beta;
+
+import "google/api/annotations.proto";
+import "google/api/client.proto";
+import "google/api/field_behavior.proto";
+import "google/api/resource.proto";
+import "google/longrunning/operations.proto";
+import "google/protobuf/field_mask.proto";
+import "google/protobuf/timestamp.proto";
+import "google/protobuf/wrappers.proto";
+import "google/type/dayofweek.proto";
+
+option go_package = "google.golang.org/genproto/googleapis/cloud/metastore/v1beta;metastore";
+option php_namespace = "Google\\Cloud\\Metastore\\V1beta";
+option java_multiple_files = true;
+option java_outer_classname = "MetastoreProto";
+option java_package = "com.google.cloud.metastore.v1beta";
+option (google.api.resource_definition) = {
+ type: "compute.googleapis.com/Network"
+ pattern: "projects/{project}/global/networks/{network}"
+};
+
+// Configures and manages metastore services.
+// Metastore services are fully managed, highly available, auto-scaled,
+// auto-healing, OSS-native deployments of technical metadata management
+// software. Each metastore service exposes a network endpoint through which
+// metadata queries are served. Metadata queries can originate from a variety
+// of sources, including Apache Hive, Apache Presto, and Apache Spark.
+//
+// The Dataproc Metastore API defines the following resource model:
+//
+// * The service works with a collection of Google Cloud projects, named:
+// `/projects/*`
+// * Each project has a collection of available locations, named: `/locations/*`
+// (a location must refer to a Google Cloud `region`)
+// * Each location has a collection of services, named: `/services/*`
+// * Dataproc Metastore services are resources with names of the form:
+//
+// `/projects/{project_number}/locations/{location_id}/services/{service_id}`.
+service DataprocMetastore {
+ option (google.api.default_host) = "metastore.googleapis.com";
+ option (google.api.oauth_scopes) =
+ "https://www.googleapis.com/auth/cloud-platform";
+
+ // Lists services in a project and location.
+ rpc ListServices(ListServicesRequest) returns (ListServicesResponse) {
+ option (google.api.http) = {
+ get: "/v1beta/{parent=projects/*/locations/*}/services"
+ };
+ option (google.api.method_signature) = "parent";
+ }
+
+ // Gets the details of a single service.
+ rpc GetService(GetServiceRequest) returns (Service) {
+ option (google.api.http) = {
+ get: "/v1beta/{name=projects/*/locations/*/services/*}"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // Creates a metastore service in a project and location.
+ rpc CreateService(CreateServiceRequest)
+ returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ post: "/v1beta/{parent=projects/*/locations/*}/services"
+ body: "service"
+ };
+ option (google.api.method_signature) = "parent,service,service_id";
+ option (google.longrunning.operation_info) = {
+ response_type: "Service"
+ metadata_type: "OperationMetadata"
+ };
+ }
+
+ // Updates the parameters of a single service.
+ rpc UpdateService(UpdateServiceRequest)
+ returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ patch: "/v1beta/{service.name=projects/*/locations/*/services/*}"
+ body: "service"
+ };
+ option (google.api.method_signature) = "service,update_mask";
+ option (google.longrunning.operation_info) = {
+ response_type: "Service"
+ metadata_type: "OperationMetadata"
+ };
+ }
+
+ // Deletes a single service.
+ rpc DeleteService(DeleteServiceRequest)
+ returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ delete: "/v1beta/{name=projects/*/locations/*/services/*}"
+ };
+ option (google.api.method_signature) = "name";
+ option (google.longrunning.operation_info) = {
+ response_type: "google.protobuf.Empty"
+ metadata_type: "OperationMetadata"
+ };
+ }
+
+ // Lists imports in a service.
+ rpc ListMetadataImports(ListMetadataImportsRequest)
+ returns (ListMetadataImportsResponse) {
+ option (google.api.http) = {
+ get: "/v1beta/{parent=projects/*/locations/*/services/*}/metadataImports"
+ };
+ option (google.api.method_signature) = "parent";
+ }
+
+ // Gets details of a single import.
+ rpc GetMetadataImport(GetMetadataImportRequest) returns (MetadataImport) {
+ option (google.api.http) = {
+ get: "/v1beta/{name=projects/*/locations/*/services/*/metadataImports/*}"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // Creates a new MetadataImport in a given project and location.
+ rpc CreateMetadataImport(CreateMetadataImportRequest)
+ returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ post: "/v1beta/{parent=projects/*/locations/*/services/*}/metadataImports"
+ body: "metadata_import"
+ };
+ option (google.api.method_signature) =
+ "parent,metadata_import,metadata_import_id";
+ option (google.longrunning.operation_info) = {
+ response_type: "MetadataImport"
+ metadata_type: "OperationMetadata"
+ };
+ }
+
+ // Updates a single import.
+ // Only the description field of MetadataImport is supported to be updated.
+ rpc UpdateMetadataImport(UpdateMetadataImportRequest)
+ returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ patch: "/v1beta/{metadata_import.name=projects/*/locations/*/services/*/metadataImports/*}"
+ body: "metadata_import"
+ };
+ option (google.api.method_signature) = "metadata_import,update_mask";
+ option (google.longrunning.operation_info) = {
+ response_type: "MetadataImport"
+ metadata_type: "OperationMetadata"
+ };
+ }
+
+ // Exports metadata from a service.
+ rpc ExportMetadata(ExportMetadataRequest)
+ returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ post: "/v1beta/{service=projects/*/locations/*/services/*}:exportMetadata"
+ body: "*"
+ };
+ option (google.longrunning.operation_info) = {
+ response_type: "MetadataExport"
+ metadata_type: "OperationMetadata"
+ };
+ }
+
+ // Restores a service from a backup.
+ rpc RestoreService(RestoreServiceRequest)
+ returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ post: "/v1beta/{service=projects/*/locations/*/services/*}:restore"
+ body: "*"
+ };
+ option (google.api.method_signature) = "service,backup";
+ option (google.longrunning.operation_info) = {
+ response_type: "Restore"
+ metadata_type: "OperationMetadata"
+ };
+ }
+
+ // Lists backups in a service.
+ rpc ListBackups(ListBackupsRequest) returns (ListBackupsResponse) {
+ option (google.api.http) = {
+ get: "/v1beta/{parent=projects/*/locations/*/services/*}/backups"
+ };
+ option (google.api.method_signature) = "parent";
+ }
+
+ // Gets details of a single backup.
+ rpc GetBackup(GetBackupRequest) returns (Backup) {
+ option (google.api.http) = {
+ get: "/v1beta/{name=projects/*/locations/*/services/*/backups/*}"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // Creates a new Backup in a given project and location.
+ rpc CreateBackup(CreateBackupRequest) returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ post: "/v1beta/{parent=projects/*/locations/*/services/*}/backups"
+ body: "backup"
+ };
+ option (google.api.method_signature) = "parent,backup,backup_id";
+ option (google.longrunning.operation_info) = {
+ response_type: "Backup"
+ metadata_type: "OperationMetadata"
+ };
+ }
+
+ // Deletes a single backup.
+ rpc DeleteBackup(DeleteBackupRequest) returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ delete: "/v1beta/{name=projects/*/locations/*/services/*/backups/*}"
+ };
+ option (google.api.method_signature) = "name";
+ option (google.longrunning.operation_info) = {
+ response_type: "google.protobuf.Empty"
+ metadata_type: "OperationMetadata"
+ };
+ }
+}
+
+// A managed metastore service that serves metadata queries.
+message Service {
+ option (google.api.resource) = {
+ type: "metastore.googleapis.com/Service"
+ pattern: "projects/{project}/locations/{location}/services/{service}"
+ };
+
+ // The current state of the metastore service.
+ enum State {
+ // The state of the metastore service is unknown.
+ STATE_UNSPECIFIED = 0;
+
+ // The metastore service is in the process of being created.
+ CREATING = 1;
+
+ // The metastore service is running and ready to serve queries.
+ ACTIVE = 2;
+
+ // The metastore service is entering suspension. Its query-serving
+ // availability may cease unexpectedly.
+ SUSPENDING = 3;
+
+ // The metastore service is suspended and unable to serve queries.
+ SUSPENDED = 4;
+
+ // The metastore service is being updated. It remains usable but cannot
+ // accept additional update requests or be deleted at this time.
+ UPDATING = 5;
+
+ // The metastore service is undergoing deletion. It cannot be used.
+ DELETING = 6;
+
+ // The metastore service has encountered an error and cannot be used. The
+ // metastore service should be deleted.
+ ERROR = 7;
+ }
+
+ // Available service tiers.
+ enum Tier {
+ // The tier is not set.
+ TIER_UNSPECIFIED = 0;
+
+ // The developer tier provides limited scalability and no fault tolerance.
+ // Good for low-cost proof-of-concept.
+ DEVELOPER = 1;
+
+ // The enterprise tier provides multi-zone high availability, and sufficient
+ // scalability for enterprise-level Dataproc Metastore workloads.
+ ENTERPRISE = 3;
+ }
+
+ // Release channels bundle features of varying levels of stability. Newer
+ // features may be introduced initially into less stable release channels and
+ // can be automatically promoted into more stable release channels.
+ enum ReleaseChannel {
+ // Release channel is not specified.
+ RELEASE_CHANNEL_UNSPECIFIED = 0;
+
+ // The `CANARY` release channel contains the newest features, which may be
+ // unstable and subject to unresolved issues with no known workarounds.
+ // Services using the `CANARY` release channel are not subject to any SLAs.
+ CANARY = 1;
+
+ // The `STABLE` release channel contains features that are considered stable
+ // and have been validated for production use.
+ STABLE = 2;
+ }
+
+ // Configuration properties specific to the underlying metastore service
+ // technology (the software that serves metastore queries).
+ oneof metastore_config {
+ // Configuration information specific to running Hive metastore
+ // software as the metastore service.
+ HiveMetastoreConfig hive_metastore_config = 5;
+ }
+
+ // Immutable. The relative resource name of the metastore service, of the
+ // form:
+ //
+ // `projects/{project_number}/locations/{location_id}/services/{service_id}`.
+ string name = 1 [(google.api.field_behavior) = IMMUTABLE];
+
+ // Output only. The time when the metastore service was created.
+ google.protobuf.Timestamp create_time = 2
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The time when the metastore service was last updated.
+ google.protobuf.Timestamp update_time = 3
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // User-defined labels for the metastore service.
+ map labels = 4;
+
+ // Immutable. The relative resource name of the VPC network on which the
+ // instance can be accessed. It is specified in the following form:
+ //
+ // `projects/{project_number}/global/networks/{network_id}`.
+ string network = 7 [
+ (google.api.field_behavior) = IMMUTABLE,
+ (google.api.resource_reference) = { type: "compute.googleapis.com/Network" }
+ ];
+
+ // Output only. The URI of the endpoint used to access the metastore service.
+ string endpoint_uri = 8 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // The TCP port at which the metastore service is reached. Default: 9083.
+ int32 port = 9;
+
+ // Output only. The current state of the metastore service.
+ State state = 10 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Additional information about the current state of the
+ // metastore service, if available.
+ string state_message = 11 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. A Cloud Storage URI (starting with `gs://`) that specifies
+ // where artifacts related to the metastore service are stored.
+ string artifact_gcs_uri = 12 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // The tier of the service.
+ Tier tier = 13;
+
+ // The setting that defines how metastore metadata should be integrated with
+ // external services and systems.
+ MetadataIntegration metadata_integration = 14;
+
+ // The one hour maintenance window of the metastore service. This specifies
+ // when the service can be restarted for maintenance purposes in UTC time.
+ MaintenanceWindow maintenance_window = 15;
+
+ // Output only. The globally unique resource identifier of the metastore
+ // service.
+ string uid = 16 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The metadata management activities of the metastore service.
+ MetadataManagementActivity metadata_management_activity = 17
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Immutable. The release channel of the service.
+ // If unspecified, defaults to `STABLE`.
+ ReleaseChannel release_channel = 19 [(google.api.field_behavior) = IMMUTABLE];
+}
+
+// Specifies how metastore metadata should be integrated with external services.
+message MetadataIntegration {
+ // The integration config for the Data Catalog service.
+ DataCatalogConfig data_catalog_config = 1;
+}
+
+// Specifies how metastore metadata should be integrated with the Data Catalog
+// service.
+message DataCatalogConfig {
+ // Defines whether the metastore metadata should be synced to Data Catalog.
+ // The default value is to disable syncing metastore metadata to Data Catalog.
+ bool enabled = 2;
+}
+
+// Maintenance window. This specifies when Dataproc Metastore
+// may perform system maintenance operation to the service.
+message MaintenanceWindow {
+ // The hour of day (0-23) when the window starts.
+ google.protobuf.Int32Value hour_of_day = 1;
+
+ // The day of week, when the window starts.
+ google.type.DayOfWeek day_of_week = 2;
+}
+
+// Specifies configuration information specific to running Hive metastore
+// software as the metastore service.
+message HiveMetastoreConfig {
+ // Immutable. The Hive metastore schema version.
+ string version = 1 [(google.api.field_behavior) = IMMUTABLE];
+
+ // A mapping of Hive metastore configuration key-value pairs to apply to the
+ // Hive metastore (configured in `hive-site.xml`). The mappings
+ // override system defaults (some keys cannot be overridden).
+ map config_overrides = 2;
+
+ // Information used to configure the Hive metastore service as a service
+ // principal in a Kerberos realm. To disable Kerberos, use the `UpdateService`
+ // method and specify this field's path
+ // (`hive_metastore_config.kerberos_config`) in the request's `update_mask`
+ // while omitting this field from the request's `service`.
+ KerberosConfig kerberos_config = 3;
+}
+
+// Configuration information for a Kerberos principal.
+message KerberosConfig {
+ // A Kerberos keytab file that can be used to authenticate a service principal
+ // with a Kerberos Key Distribution Center (KDC).
+ Secret keytab = 1;
+
+ // A Kerberos principal that exists in the both the keytab the KDC
+ // to authenticate as. A typical principal is of the form
+ // `primary/instance@REALM`, but there is no exact format.
+ string principal = 2;
+
+ // A Cloud Storage URI that specifies the path to a
+ // krb5.conf file. It is of the form gs://{bucket_name}/path/to/krb5.conf,
+ // although the file does not need to be named krb5.conf explicitly.
+ string krb5_config_gcs_uri = 3;
+}
+
+// A securely stored value.
+message Secret {
+ oneof value {
+ // The relative resource name of a Secret Manager secret version, in the
+ // following form:
+ //
+ // `projects/{project_number}/secrets/{secret_id}/versions/{version_id}`.
+ string cloud_secret = 2;
+ }
+}
+
+// The metadata management activities of the metastore service.
+message MetadataManagementActivity {
+ // Output only. The latest metadata exports of the metastore service.
+ repeated MetadataExport metadata_exports = 1
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The latest restores of the metastore service.
+ repeated Restore restores = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
+}
+
+// A metastore resource that imports metadata.
+message MetadataImport {
+ option (google.api.resource) = {
+ type: "metastore.googleapis.com/MetadataImport"
+ pattern: "projects/{project}/locations/{location}/services/{service}/metadataImports/{metadata_import}"
+ };
+
+ // A specification of the location of and metadata about a database dump from
+ // a relational database management system.
+ message DatabaseDump {
+ // The type of the database.
+ enum DatabaseType {
+ // The type of the source database is unknown.
+ DATABASE_TYPE_UNSPECIFIED = 0;
+
+ // The type of the source database is MySQL.
+ MYSQL = 1;
+ }
+
+ // The type of the database.
+ DatabaseType database_type = 1 [deprecated = true];
+
+ // A Cloud Storage object or folder URI that specifies the source from which
+ // to import metadata. It must begin with `gs://`.
+ string gcs_uri = 2;
+
+ // The name of the source database.
+ string source_database = 3 [deprecated = true];
+
+ // Optional. The type of the database dump. If unspecified, defaults to
+ // `MYSQL`.
+ DatabaseDumpSpec.Type type = 4 [(google.api.field_behavior) = OPTIONAL];
+ }
+
+ // The current state of the metadata import.
+ enum State {
+ // The state of the metadata import is unknown.
+ STATE_UNSPECIFIED = 0;
+
+ // The metadata import is running.
+ RUNNING = 1;
+
+ // The metadata import completed successfully.
+ SUCCEEDED = 2;
+
+ // The metadata import is being updated.
+ UPDATING = 3;
+
+ // The metadata import failed, and attempted metadata changes were rolled
+ // back.
+ FAILED = 4;
+ }
+
+ // The metadata to be imported.
+ oneof metadata {
+ // Immutable. A database dump from a pre-existing metastore's database.
+ DatabaseDump database_dump = 6 [(google.api.field_behavior) = IMMUTABLE];
+ }
+
+ // Immutable. The relative resource name of the metadata import, of the form:
+ //
+ // `projects/{project_number}/locations/{location_id}/services/{service_id}/metadataImports/{metadata_import_id}`.
+ string name = 1 [(google.api.field_behavior) = IMMUTABLE];
+
+ // The description of the metadata import.
+ string description = 2;
+
+ // Output only. The time when the metadata import was created.
+ google.protobuf.Timestamp create_time = 3
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The time when the metadata import was last updated.
+ google.protobuf.Timestamp update_time = 4
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The current state of the metadata import.
+ State state = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
+}
+
+// The details of a metadata export operation.
+message MetadataExport {
+ // The current state of the metadata export.
+ enum State {
+ // The state of the metadata export is unknown.
+ STATE_UNSPECIFIED = 0;
+
+ // The metadata export is running.
+ RUNNING = 1;
+
+ // The metadata export completed successfully.
+ SUCCEEDED = 2;
+
+ // The metadata export failed.
+ FAILED = 3;
+
+ // The metadata export is cancelled.
+ CANCELLED = 4;
+ }
+
+ oneof destination {
+ // Output only. A Cloud Storage URI of a folder that metadata are exported
+ // to, in the form of
+ // `gs:////`, where
+ // `` is automatically generated.
+ string destination_gcs_uri = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
+ }
+
+ // Output only. The time when the export started.
+ google.protobuf.Timestamp start_time = 1
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The time when the export ended.
+ google.protobuf.Timestamp end_time = 2
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The current state of the export.
+ State state = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The type of the database dump.
+ DatabaseDumpSpec.Type database_dump_type = 5
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+}
+
+// The details of a backup resource.
+message Backup {
+ option (google.api.resource) = {
+ type: "metastore.googleapis.com/Backup"
+ pattern: "projects/{project}/locations/{location}/services/{service}/backups/{backup}"
+ };
+
+ // The current state of the backup.
+ enum State {
+ // The state of the backup is unknown.
+ STATE_UNSPECIFIED = 0;
+
+ // The backup is being created.
+ CREATING = 1;
+
+ // The backup is being deleted.
+ DELETING = 2;
+
+ // The backup is active and ready to use.
+ ACTIVE = 3;
+
+ // The backup failed.
+ FAILED = 4;
+ }
+
+ // Immutable. The relative resource name of the backup, in the following form:
+ //
+ // `projects/{project_number}/locations/{location_id}/services/{service_id}/backups/{backup_id}`
+ string name = 1 [(google.api.field_behavior) = IMMUTABLE];
+
+ // Output only. The time when the backup was started.
+ google.protobuf.Timestamp create_time = 2
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The time when the backup finished creating.
+ google.protobuf.Timestamp end_time = 3
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The current state of the backup.
+ State state = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The revision of the service at the time of backup.
+ Service service_revision = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // The description of the backup.
+ string description = 6;
+}
+
+// The details of a metadata restore operation.
+message Restore {
+ // The current state of the restore.
+ enum State {
+ // The state of the metadata restore is unknown.
+ STATE_UNSPECIFIED = 0;
+
+ // The metadata restore is running.
+ RUNNING = 1;
+
+ // The metadata restore completed successfully.
+ SUCCEEDED = 2;
+
+ // The metadata restore failed.
+ FAILED = 3;
+
+ // The metadata restore is cancelled.
+ CANCELLED = 4;
+ }
+
+ // The type of restore.
+ enum RestoreType {
+ // The restore type is unknown.
+ RESTORE_TYPE_UNSPECIFIED = 0;
+
+ // The service's metadata and configuration are restored.
+ FULL = 1;
+
+ // Only the service's metadata is restored.
+ METADATA_ONLY = 2;
+ }
+
+ // Output only. The time when the restore started.
+ google.protobuf.Timestamp start_time = 1
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The time when the restore ended.
+ google.protobuf.Timestamp end_time = 2
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The current state of the restore.
+ State state = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The relative resource name of the metastore service backup to
+ // restore from, in the following form:
+ //
+ // `projects/{project_id}/locations/{location_id}/services/{service_id}/backups/{backup_id}`
+ string backup = 4 [
+ (google.api.field_behavior) = OUTPUT_ONLY,
+ (google.api.resource_reference) = {
+ type: "metastore.googleapis.com/Backup"
+ }
+ ];
+
+ // Output only. The type of restore.
+ RestoreType type = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The restore details containing the revision of the service to
+ // be restored to, in format of JSON.
+ string details = 6 [(google.api.field_behavior) = OUTPUT_ONLY];
+}
+
+// Request message for
+// [DataprocMetastore.ListServices][google.cloud.metastore.v1beta.DataprocMetastore.ListServices].
+message ListServicesRequest {
+ // Required. The relative resource name of the location of metastore services
+ // to list, in the following form:
+ //
+ // `projects/{project_number}/locations/{location_id}`.
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "locations.googleapis.com/Location"
+ }
+ ];
+
+ // Optional. The maximum number of services to return. The response may
+ // contain less than the maximum number. If unspecified, no more than 500
+ // services are returned. The maximum value is 1000; values above 1000 are
+ // changed to 1000.
+ int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. A page token, received from a previous
+ // [DataprocMetastore.ListServices][google.cloud.metastore.v1beta.DataprocMetastore.ListServices]
+ // call. Provide this token to retrieve the subsequent page.
+ //
+ // To retrieve the first page, supply an empty page token.
+ //
+ // When paginating, other parameters provided to
+ // [DataprocMetastore.ListServices][google.cloud.metastore.v1beta.DataprocMetastore.ListServices]
+ // must match the call that provided the page token.
+ string page_token = 3 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The filter to apply to list results.
+ string filter = 4 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Specify the ordering of results as described in [Sorting
+ // Order](https://cloud.google.com/apis/design/design_patterns#sorting_order).
+ // If not specified, the results will be sorted in the default order.
+ string order_by = 5 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Response message for
+// [DataprocMetastore.ListServices][google.cloud.metastore.v1beta.DataprocMetastore.ListServices].
+message ListServicesResponse {
+ // The services in the specified location.
+ repeated Service services = 1;
+
+ // A token that can be sent as `page_token` to retrieve the next page. If this
+ // field is omitted, there are no subsequent pages.
+ string next_page_token = 2;
+
+ // Locations that could not be reached.
+ repeated string unreachable = 3;
+}
+
+// Request message for
+// [DataprocMetastore.GetService][google.cloud.metastore.v1beta.DataprocMetastore.GetService].
+message GetServiceRequest {
+ // Required. The relative resource name of the metastore service to retrieve,
+ // in the following form:
+ //
+ // `projects/{project_number}/locations/{location_id}/services/{service_id}`.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "metastore.googleapis.com/Service"
+ }
+ ];
+}
+
+// Request message for
+// [DataprocMetastore.CreateService][google.cloud.metastore.v1beta.DataprocMetastore.CreateService].
+message CreateServiceRequest {
+ // Required. The relative resource name of the location in which to create a
+ // metastore service, in the following form:
+ //
+ // `projects/{project_number}/locations/{location_id}`.
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "locations.googleapis.com/Location"
+ }
+ ];
+
+ // Required. The ID of the metastore service, which is used as the final
+ // component of the metastore service's name.
+ //
+ // This value must be between 2 and 63 characters long inclusive, begin with a
+ // letter, end with a letter or number, and consist of alpha-numeric
+ // ASCII characters or hyphens.
+ string service_id = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. The Metastore service to create. The `name` field is
+ // ignored. The ID of the created metastore service must be provided in
+ // the request's `service_id` field.
+ Service service = 3 [(google.api.field_behavior) = REQUIRED];
+
+ // Optional. A request ID. Specify a unique request ID to allow the server to
+ // ignore the request if it has completed. The server will ignore subsequent
+ // requests that provide a duplicate request ID for at least 60 minutes after
+ // the first request.
+ //
+ // For example, if an initial request times out, followed by another request
+ // with the same request ID, the server ignores the second request to prevent
+ // the creation of duplicate commitments.
+ //
+ // The request ID must be a valid
+ // [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format)
+ // A zero UUID (00000000-0000-0000-0000-000000000000) is not supported.
+ string request_id = 4 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Request message for
+// [DataprocMetastore.UpdateService][google.cloud.metastore.v1beta.DataprocMetastore.UpdateService].
+message UpdateServiceRequest {
+ // Required. A field mask used to specify the fields to be overwritten in the
+ // metastore service resource by the update.
+ // Fields specified in the `update_mask` are relative to the resource (not
+ // to the full request). A field is overwritten if it is in the mask.
+ google.protobuf.FieldMask update_mask = 1
+ [(google.api.field_behavior) = REQUIRED];
+
+ // Required. The metastore service to update. The server only merges fields
+ // in the service if they are specified in `update_mask`.
+ //
+ // The metastore service's `name` field is used to identify the metastore
+ // service to be updated.
+ Service service = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // Optional. A request ID. Specify a unique request ID to allow the server to
+ // ignore the request if it has completed. The server will ignore subsequent
+ // requests that provide a duplicate request ID for at least 60 minutes after
+ // the first request.
+ //
+ // For example, if an initial request times out, followed by another request
+ // with the same request ID, the server ignores the second request to prevent
+ // the creation of duplicate commitments.
+ //
+ // The request ID must be a valid
+ // [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format)
+ // A zero UUID (00000000-0000-0000-0000-000000000000) is not supported.
+ string request_id = 3 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Request message for
+// [DataprocMetastore.DeleteService][google.cloud.metastore.v1beta.DataprocMetastore.DeleteService].
+message DeleteServiceRequest {
+ // Required. The relative resource name of the metastore service to delete, in
+ // the following form:
+ //
+ // `projects/{project_number}/locations/{location_id}/services/{service_id}`.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "metastore.googleapis.com/Service"
+ }
+ ];
+
+ // Optional. A request ID. Specify a unique request ID to allow the server to
+ // ignore the request if it has completed. The server will ignore subsequent
+ // requests that provide a duplicate request ID for at least 60 minutes after
+ // the first request.
+ //
+ // For example, if an initial request times out, followed by another request
+ // with the same request ID, the server ignores the second request to prevent
+ // the creation of duplicate commitments.
+ //
+ // The request ID must be a valid
+ // [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format)
+ // A zero UUID (00000000-0000-0000-0000-000000000000) is not supported.
+ string request_id = 2 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Request message for
+// [DataprocMetastore.ListMetadataImports][google.cloud.metastore.v1beta.DataprocMetastore.ListMetadataImports].
+message ListMetadataImportsRequest {
+ // Required. The relative resource name of the service whose metadata imports
+ // to list, in the following form:
+ //
+ // `projects/{project_number}/locations/{location_id}/services/{service_id}/metadataImports`.
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "metastore.googleapis.com/Service"
+ }
+ ];
+
+ // Optional. The maximum number of imports to return. The response may contain
+ // less than the maximum number. If unspecified, no more than 500 imports are
+ // returned. The maximum value is 1000; values above 1000 are changed to 1000.
+ int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. A page token, received from a previous
+ // [DataprocMetastore.ListServices][google.cloud.metastore.v1beta.DataprocMetastore.ListServices]
+ // call. Provide this token to retrieve the subsequent page.
+ //
+ // To retrieve the first page, supply an empty page token.
+ //
+ // When paginating, other parameters provided to
+ // [DataprocMetastore.ListServices][google.cloud.metastore.v1beta.DataprocMetastore.ListServices]
+ // must match the call that provided the page token.
+ string page_token = 3 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The filter to apply to list results.
+ string filter = 4 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Specify the ordering of results as described in [Sorting
+ // Order](https://cloud.google.com/apis/design/design_patterns#sorting_order).
+ // If not specified, the results will be sorted in the default order.
+ string order_by = 5 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Response message for
+// [DataprocMetastore.ListMetadataImports][google.cloud.metastore.v1beta.DataprocMetastore.ListMetadataImports].
+message ListMetadataImportsResponse {
+ // The imports in the specified service.
+ repeated MetadataImport metadata_imports = 1;
+
+ // A token that can be sent as `page_token` to retrieve the next page. If this
+ // field is omitted, there are no subsequent pages.
+ string next_page_token = 2;
+
+ // Locations that could not be reached.
+ repeated string unreachable = 3;
+}
+
+// Request message for
+// [DataprocMetastore.GetMetadataImport][google.cloud.metastore.v1beta.DataprocMetastore.GetMetadataImport].
+message GetMetadataImportRequest {
+ // Required. The relative resource name of the metadata import to retrieve, in
+ // the following form:
+ //
+ // `projects/{project_number}/locations/{location_id}/services/{service_id}/metadataImports/{import_id}`.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "metastore.googleapis.com/MetadataImport"
+ }
+ ];
+}
+
+// Request message for
+// [DataprocMetastore.CreateMetadataImport][google.cloud.metastore.v1beta.DataprocMetastore.CreateMetadataImport].
+message CreateMetadataImportRequest {
+ // Required. The relative resource name of the service in which to create a
+ // metastore import, in the following form:
+ //
+ // `projects/{project_number}/locations/{location_id}/services/{service_id}`
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "metastore.googleapis.com/Service"
+ }
+ ];
+
+ // Required. The ID of the metadata import, which is used as the final
+ // component of the metadata import's name.
+ //
+ // This value must be between 1 and 64 characters long, begin with a letter,
+ // end with a letter or number, and consist of alpha-numeric ASCII characters
+ // or hyphens.
+ string metadata_import_id = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. The metadata import to create. The `name` field is ignored. The
+ // ID of the created metadata import must be provided in the request's
+ // `metadata_import_id` field.
+ MetadataImport metadata_import = 3 [(google.api.field_behavior) = REQUIRED];
+
+ // Optional. A request ID. Specify a unique request ID to allow the server to
+ // ignore the request if it has completed. The server will ignore subsequent
+ // requests that provide a duplicate request ID for at least 60 minutes after
+ // the first request.
+ //
+ // For example, if an initial request times out, followed by another request
+ // with the same request ID, the server ignores the second request to prevent
+ // the creation of duplicate commitments.
+ //
+ // The request ID must be a valid
+ // [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format)
+ // A zero UUID (00000000-0000-0000-0000-000000000000) is not supported.
+ string request_id = 4 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Request message for
+// [DataprocMetastore.UpdateMetadataImport][google.cloud.metastore.v1beta.DataprocMetastore.UpdateMetadataImport].
+message UpdateMetadataImportRequest {
+ // Required. A field mask used to specify the fields to be overwritten in the
+ // metadata import resource by the update.
+ // Fields specified in the `update_mask` are relative to the resource (not
+ // to the full request). A field is overwritten if it is in the mask.
+ google.protobuf.FieldMask update_mask = 1
+ [(google.api.field_behavior) = REQUIRED];
+
+ // Required. The metadata import to update. The server only merges fields
+ // in the import if they are specified in `update_mask`.
+ //
+ // The metadata import's `name` field is used to identify the metastore
+ // import to be updated.
+ MetadataImport metadata_import = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // Optional. A request ID. Specify a unique request ID to allow the server to
+ // ignore the request if it has completed. The server will ignore subsequent
+ // requests that provide a duplicate request ID for at least 60 minutes after
+ // the first request.
+ //
+ // For example, if an initial request times out, followed by another request
+ // with the same request ID, the server ignores the second request to prevent
+ // the creation of duplicate commitments.
+ //
+ // The request ID must be a valid
+ // [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format)
+ // A zero UUID (00000000-0000-0000-0000-000000000000) is not supported.
+ string request_id = 3 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Request message for
+// [DataprocMetastore.ListBackups][google.cloud.metastore.v1beta.DataprocMetastore.ListBackups].
+message ListBackupsRequest {
+ // Required. The relative resource name of the service whose backups to
+ // list, in the following form:
+ //
+ // `projects/{project_number}/locations/{location_id}/services/{service_id}/backups`.
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "metastore.googleapis.com/Service"
+ }
+ ];
+
+ // Optional. The maximum number of backups to return. The response may contain
+ // less than the maximum number. If unspecified, no more than 500 backups are
+ // returned. The maximum value is 1000; values above 1000 are changed to 1000.
+ int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. A page token, received from a previous
+ // [DataprocMetastore.ListBackups][google.cloud.metastore.v1beta.DataprocMetastore.ListBackups]
+ // call. Provide this token to retrieve the subsequent page.
+ //
+ // To retrieve the first page, supply an empty page token.
+ //
+ // When paginating, other parameters provided to
+ // [DataprocMetastore.ListBackups][google.cloud.metastore.v1beta.DataprocMetastore.ListBackups]
+ // must match the call that provided the page token.
+ string page_token = 3 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The filter to apply to list results.
+ string filter = 4 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Specify the ordering of results as described in [Sorting
+ // Order](https://cloud.google.com/apis/design/design_patterns#sorting_order).
+ // If not specified, the results will be sorted in the default order.
+ string order_by = 5 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Response message for
+// [DataprocMetastore.ListBackups][google.cloud.metastore.v1beta.DataprocMetastore.ListBackups].
+message ListBackupsResponse {
+ // The backups of the specified service.
+ repeated Backup backups = 1;
+
+ // A token that can be sent as `page_token` to retrieve the next page. If this
+ // field is omitted, there are no subsequent pages.
+ string next_page_token = 2;
+
+ // Locations that could not be reached.
+ repeated string unreachable = 3;
+}
+
+// Request message for
+// [DataprocMetastore.GetBackup][google.cloud.metastore.v1beta.DataprocMetastore.GetBackup].
+message GetBackupRequest {
+ // Required. The relative resource name of the backup to retrieve, in the
+ // following form:
+ //
+ // `projects/{project_number}/locations/{location_id}/services/{service_id}/backups/{backup_id}`.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "metastore.googleapis.com/Backup"
+ }
+ ];
+}
+
+// Request message for
+// [DataprocMetastore.CreateBackup][google.cloud.metastore.v1beta.DataprocMetastore.CreateBackup].
+message CreateBackupRequest {
+ // Required. The relative resource name of the service in which to create a
+ // backup of the following form:
+ //
+ // `projects/{project_number}/locations/{location_id}/services/{service_id}`
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "metastore.googleapis.com/Service"
+ }
+ ];
+
+ // Required. The ID of the backup, which is used as the final component of the
+ // backup's name.
+ //
+ // This value must be between 1 and 64 characters long, begin with a letter,
+ // end with a letter or number, and consist of alpha-numeric ASCII characters
+ // or hyphens.
+ string backup_id = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. The backup to create. The `name` field is ignored. The ID of the
+ // created backup must be provided in the request's `backup_id` field.
+ Backup backup = 3 [(google.api.field_behavior) = REQUIRED];
+
+ // Optional. A request ID. Specify a unique request ID to allow the server to
+ // ignore the request if it has completed. The server will ignore subsequent
+ // requests that provide a duplicate request ID for at least 60 minutes after
+ // the first request.
+ //
+ // For example, if an initial request times out, followed by another request
+ // with the same request ID, the server ignores the second request to prevent
+ // the creation of duplicate commitments.
+ //
+ // The request ID must be a valid
+ // [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format)
+ // A zero UUID (00000000-0000-0000-0000-000000000000) is not supported.
+ string request_id = 4 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Request message for
+// [DataprocMetastore.DeleteBackup][google.cloud.metastore.v1beta.DataprocMetastore.DeleteBackup].
+message DeleteBackupRequest {
+ // Required. The relative resource name of the backup to delete, in the
+ // following form:
+ //
+ // `projects/{project_number}/locations/{location_id}/services/{service_id}/backups/{backup_id}`.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "metastore.googleapis.com/Backup"
+ }
+ ];
+
+ // Optional. A request ID. Specify a unique request ID to allow the server to
+ // ignore the request if it has completed. The server will ignore subsequent
+ // requests that provide a duplicate request ID for at least 60 minutes after
+ // the first request.
+ //
+ // For example, if an initial request times out, followed by another request
+ // with the same request ID, the server ignores the second request to prevent
+ // the creation of duplicate commitments.
+ //
+ // The request ID must be a valid
+ // [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format)
+ // A zero UUID (00000000-0000-0000-0000-000000000000) is not supported.
+ string request_id = 2 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Request message for
+// [DataprocMetastore.ExportMetadata][google.cloud.metastore.v1beta.DataprocMetastore.ExportMetadata].
+message ExportMetadataRequest {
+ // Required. Destination that metadata is exported to.
+ oneof destination {
+ // A Cloud Storage URI of a folder, in the format
+ // `gs:///`. A sub-folder
+ // `` containing exported files will be created below it.
+ string destination_gcs_folder = 2;
+ }
+
+ // Required. The relative resource name of the metastore service to run
+ // export, in the following form:
+ //
+ // `projects/{project_id}/locations/{location_id}/services/{service_id}`
+ string service = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "metastore.googleapis.com/Service"
+ }
+ ];
+
+ // Optional. A request ID. Specify a unique request ID to allow the server to
+ // ignore the request if it has completed. The server will ignore subsequent
+ // requests that provide a duplicate request ID for at least 60 minutes after
+ // the first request.
+ //
+ // For example, if an initial request times out, followed by another request
+ // with the same request ID, the server ignores the second request to prevent
+ // the creation of duplicate commitments.
+ //
+ // The request ID must be a valid
+ // [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format).
+ // A zero UUID (00000000-0000-0000-0000-000000000000) is not supported.
+ string request_id = 3 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The type of the database dump. If unspecified, defaults to
+ // `MYSQL`.
+ DatabaseDumpSpec.Type database_dump_type = 4
+ [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Request message for [DataprocMetastore.Restore][].
+message RestoreServiceRequest {
+ // Required. The relative resource name of the metastore service to run
+ // restore, in the following form:
+ //
+ // `projects/{project_id}/locations/{location_id}/services/{service_id}`
+ string service = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "metastore.googleapis.com/Service"
+ }
+ ];
+
+ // Required. The relative resource name of the metastore service backup to
+ // restore from, in the following form:
+ //
+ // `projects/{project_id}/locations/{location_id}/services/{service_id}/backups/{backup_id}`
+ string backup = 2 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "metastore.googleapis.com/Backup"
+ }
+ ];
+
+ // Optional. The type of restore. If unspecified, defaults to `METADATA_ONLY`.
+ Restore.RestoreType restore_type = 3 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. A request ID. Specify a unique request ID to allow the server to
+ // ignore the request if it has completed. The server will ignore subsequent
+ // requests that provide a duplicate request ID for at least 60 minutes after
+ // the first request.
+ //
+ // For example, if an initial request times out, followed by another request
+ // with the same request ID, the server ignores the second request to prevent
+ // the creation of duplicate commitments.
+ //
+ // The request ID must be a valid
+ // [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format).
+ // A zero UUID (00000000-0000-0000-0000-000000000000) is not supported.
+ string request_id = 4 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Represents the metadata of a long-running operation.
+message OperationMetadata {
+ // Output only. The time the operation was created.
+ google.protobuf.Timestamp create_time = 1
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The time the operation finished running.
+ google.protobuf.Timestamp end_time = 2
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Server-defined resource path for the target of the operation.
+ string target = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Name of the verb executed by the operation.
+ string verb = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Human-readable status of the operation, if any.
+ string status_message = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Identifies whether the caller has requested cancellation
+ // of the operation. Operations that have successfully been cancelled
+ // have [Operation.error][] value with a
+ // [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
+ // `Code.CANCELLED`.
+ bool requested_cancellation = 6 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. API version used to start the operation.
+ string api_version = 7 [(google.api.field_behavior) = OUTPUT_ONLY];
+}
+
+// Metadata about the service in a location.
+message LocationMetadata {
+ // A specification of a supported version of the Hive Metastore software.
+ message HiveMetastoreVersion {
+ // The semantic version of the Hive Metastore software.
+ string version = 1;
+
+ // Whether `version` will be chosen by the server if a metastore service is
+ // created with a `HiveMetastoreConfig` that omits the `version`.
+ bool is_default = 2;
+ }
+
+ // The versions of Hive Metastore that can be used when creating a new
+ // metastore service in this location. The server guarantees that exactly one
+ // `HiveMetastoreVersion` in the list will set `is_default`.
+ repeated HiveMetastoreVersion supported_hive_metastore_versions = 1;
+}
+
+// The specification of database dump to import from or export to.
+message DatabaseDumpSpec {
+ // The type of the database dump.
+ enum Type {
+ // The type of the database dump is unknown.
+ TYPE_UNSPECIFIED = 0;
+
+ // Database dump is a MySQL dump file.
+ MYSQL = 1;
+ }
+}
diff --git a/packages/google-cloud-metastore/protos/protos.d.ts b/packages/google-cloud-metastore/protos/protos.d.ts
new file mode 100644
index 00000000000..06364f1ba28
--- /dev/null
+++ b/packages/google-cloud-metastore/protos/protos.d.ts
@@ -0,0 +1,20133 @@
+// Copyright 2022 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+import type {protobuf as $protobuf} from "google-gax";
+import Long = require("long");
+/** Namespace google. */
+export namespace google {
+
+ /** Namespace cloud. */
+ namespace cloud {
+
+ /** Namespace metastore. */
+ namespace metastore {
+
+ /** Namespace v1. */
+ namespace v1 {
+
+ /** Represents a DataprocMetastore */
+ class DataprocMetastore extends $protobuf.rpc.Service {
+
+ /**
+ * Constructs a new DataprocMetastore 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 DataprocMetastore 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): DataprocMetastore;
+
+ /**
+ * Calls ListServices.
+ * @param request ListServicesRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListServicesResponse
+ */
+ public listServices(request: google.cloud.metastore.v1.IListServicesRequest, callback: google.cloud.metastore.v1.DataprocMetastore.ListServicesCallback): void;
+
+ /**
+ * Calls ListServices.
+ * @param request ListServicesRequest message or plain object
+ * @returns Promise
+ */
+ public listServices(request: google.cloud.metastore.v1.IListServicesRequest): Promise;
+
+ /**
+ * Calls GetService.
+ * @param request GetServiceRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Service
+ */
+ public getService(request: google.cloud.metastore.v1.IGetServiceRequest, callback: google.cloud.metastore.v1.DataprocMetastore.GetServiceCallback): void;
+
+ /**
+ * Calls GetService.
+ * @param request GetServiceRequest message or plain object
+ * @returns Promise
+ */
+ public getService(request: google.cloud.metastore.v1.IGetServiceRequest): Promise;
+
+ /**
+ * Calls CreateService.
+ * @param request CreateServiceRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public createService(request: google.cloud.metastore.v1.ICreateServiceRequest, callback: google.cloud.metastore.v1.DataprocMetastore.CreateServiceCallback): void;
+
+ /**
+ * Calls CreateService.
+ * @param request CreateServiceRequest message or plain object
+ * @returns Promise
+ */
+ public createService(request: google.cloud.metastore.v1.ICreateServiceRequest): Promise;
+
+ /**
+ * Calls UpdateService.
+ * @param request UpdateServiceRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public updateService(request: google.cloud.metastore.v1.IUpdateServiceRequest, callback: google.cloud.metastore.v1.DataprocMetastore.UpdateServiceCallback): void;
+
+ /**
+ * Calls UpdateService.
+ * @param request UpdateServiceRequest message or plain object
+ * @returns Promise
+ */
+ public updateService(request: google.cloud.metastore.v1.IUpdateServiceRequest): Promise;
+
+ /**
+ * Calls DeleteService.
+ * @param request DeleteServiceRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public deleteService(request: google.cloud.metastore.v1.IDeleteServiceRequest, callback: google.cloud.metastore.v1.DataprocMetastore.DeleteServiceCallback): void;
+
+ /**
+ * Calls DeleteService.
+ * @param request DeleteServiceRequest message or plain object
+ * @returns Promise
+ */
+ public deleteService(request: google.cloud.metastore.v1.IDeleteServiceRequest): Promise;
+
+ /**
+ * Calls ListMetadataImports.
+ * @param request ListMetadataImportsRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListMetadataImportsResponse
+ */
+ public listMetadataImports(request: google.cloud.metastore.v1.IListMetadataImportsRequest, callback: google.cloud.metastore.v1.DataprocMetastore.ListMetadataImportsCallback): void;
+
+ /**
+ * Calls ListMetadataImports.
+ * @param request ListMetadataImportsRequest message or plain object
+ * @returns Promise
+ */
+ public listMetadataImports(request: google.cloud.metastore.v1.IListMetadataImportsRequest): Promise;
+
+ /**
+ * Calls GetMetadataImport.
+ * @param request GetMetadataImportRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and MetadataImport
+ */
+ public getMetadataImport(request: google.cloud.metastore.v1.IGetMetadataImportRequest, callback: google.cloud.metastore.v1.DataprocMetastore.GetMetadataImportCallback): void;
+
+ /**
+ * Calls GetMetadataImport.
+ * @param request GetMetadataImportRequest message or plain object
+ * @returns Promise
+ */
+ public getMetadataImport(request: google.cloud.metastore.v1.IGetMetadataImportRequest): Promise;
+
+ /**
+ * Calls CreateMetadataImport.
+ * @param request CreateMetadataImportRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public createMetadataImport(request: google.cloud.metastore.v1.ICreateMetadataImportRequest, callback: google.cloud.metastore.v1.DataprocMetastore.CreateMetadataImportCallback): void;
+
+ /**
+ * Calls CreateMetadataImport.
+ * @param request CreateMetadataImportRequest message or plain object
+ * @returns Promise
+ */
+ public createMetadataImport(request: google.cloud.metastore.v1.ICreateMetadataImportRequest): Promise;
+
+ /**
+ * Calls UpdateMetadataImport.
+ * @param request UpdateMetadataImportRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public updateMetadataImport(request: google.cloud.metastore.v1.IUpdateMetadataImportRequest, callback: google.cloud.metastore.v1.DataprocMetastore.UpdateMetadataImportCallback): void;
+
+ /**
+ * Calls UpdateMetadataImport.
+ * @param request UpdateMetadataImportRequest message or plain object
+ * @returns Promise
+ */
+ public updateMetadataImport(request: google.cloud.metastore.v1.IUpdateMetadataImportRequest): Promise;
+
+ /**
+ * Calls ExportMetadata.
+ * @param request ExportMetadataRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public exportMetadata(request: google.cloud.metastore.v1.IExportMetadataRequest, callback: google.cloud.metastore.v1.DataprocMetastore.ExportMetadataCallback): void;
+
+ /**
+ * Calls ExportMetadata.
+ * @param request ExportMetadataRequest message or plain object
+ * @returns Promise
+ */
+ public exportMetadata(request: google.cloud.metastore.v1.IExportMetadataRequest): Promise;
+
+ /**
+ * Calls RestoreService.
+ * @param request RestoreServiceRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public restoreService(request: google.cloud.metastore.v1.IRestoreServiceRequest, callback: google.cloud.metastore.v1.DataprocMetastore.RestoreServiceCallback): void;
+
+ /**
+ * Calls RestoreService.
+ * @param request RestoreServiceRequest message or plain object
+ * @returns Promise
+ */
+ public restoreService(request: google.cloud.metastore.v1.IRestoreServiceRequest): Promise;
+
+ /**
+ * Calls ListBackups.
+ * @param request ListBackupsRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListBackupsResponse
+ */
+ public listBackups(request: google.cloud.metastore.v1.IListBackupsRequest, callback: google.cloud.metastore.v1.DataprocMetastore.ListBackupsCallback): void;
+
+ /**
+ * Calls ListBackups.
+ * @param request ListBackupsRequest message or plain object
+ * @returns Promise
+ */
+ public listBackups(request: google.cloud.metastore.v1.IListBackupsRequest): Promise;
+
+ /**
+ * Calls GetBackup.
+ * @param request GetBackupRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Backup
+ */
+ public getBackup(request: google.cloud.metastore.v1.IGetBackupRequest, callback: google.cloud.metastore.v1.DataprocMetastore.GetBackupCallback): void;
+
+ /**
+ * Calls GetBackup.
+ * @param request GetBackupRequest message or plain object
+ * @returns Promise
+ */
+ public getBackup(request: google.cloud.metastore.v1.IGetBackupRequest): Promise;
+
+ /**
+ * Calls CreateBackup.
+ * @param request CreateBackupRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public createBackup(request: google.cloud.metastore.v1.ICreateBackupRequest, callback: google.cloud.metastore.v1.DataprocMetastore.CreateBackupCallback): void;
+
+ /**
+ * Calls CreateBackup.
+ * @param request CreateBackupRequest message or plain object
+ * @returns Promise
+ */
+ public createBackup(request: google.cloud.metastore.v1.ICreateBackupRequest): Promise;
+
+ /**
+ * Calls DeleteBackup.
+ * @param request DeleteBackupRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public deleteBackup(request: google.cloud.metastore.v1.IDeleteBackupRequest, callback: google.cloud.metastore.v1.DataprocMetastore.DeleteBackupCallback): void;
+
+ /**
+ * Calls DeleteBackup.
+ * @param request DeleteBackupRequest message or plain object
+ * @returns Promise
+ */
+ public deleteBackup(request: google.cloud.metastore.v1.IDeleteBackupRequest): Promise;
+ }
+
+ namespace DataprocMetastore {
+
+ /**
+ * Callback as used by {@link google.cloud.metastore.v1.DataprocMetastore|listServices}.
+ * @param error Error, if any
+ * @param [response] ListServicesResponse
+ */
+ type ListServicesCallback = (error: (Error|null), response?: google.cloud.metastore.v1.ListServicesResponse) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.metastore.v1.DataprocMetastore|getService}.
+ * @param error Error, if any
+ * @param [response] Service
+ */
+ type GetServiceCallback = (error: (Error|null), response?: google.cloud.metastore.v1.Service) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.metastore.v1.DataprocMetastore|createService}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type CreateServiceCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.metastore.v1.DataprocMetastore|updateService}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type UpdateServiceCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.metastore.v1.DataprocMetastore|deleteService}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type DeleteServiceCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.metastore.v1.DataprocMetastore|listMetadataImports}.
+ * @param error Error, if any
+ * @param [response] ListMetadataImportsResponse
+ */
+ type ListMetadataImportsCallback = (error: (Error|null), response?: google.cloud.metastore.v1.ListMetadataImportsResponse) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.metastore.v1.DataprocMetastore|getMetadataImport}.
+ * @param error Error, if any
+ * @param [response] MetadataImport
+ */
+ type GetMetadataImportCallback = (error: (Error|null), response?: google.cloud.metastore.v1.MetadataImport) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.metastore.v1.DataprocMetastore|createMetadataImport}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type CreateMetadataImportCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.metastore.v1.DataprocMetastore|updateMetadataImport}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type UpdateMetadataImportCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.metastore.v1.DataprocMetastore|exportMetadata}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type ExportMetadataCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.metastore.v1.DataprocMetastore|restoreService}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type RestoreServiceCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.metastore.v1.DataprocMetastore|listBackups}.
+ * @param error Error, if any
+ * @param [response] ListBackupsResponse
+ */
+ type ListBackupsCallback = (error: (Error|null), response?: google.cloud.metastore.v1.ListBackupsResponse) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.metastore.v1.DataprocMetastore|getBackup}.
+ * @param error Error, if any
+ * @param [response] Backup
+ */
+ type GetBackupCallback = (error: (Error|null), response?: google.cloud.metastore.v1.Backup) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.metastore.v1.DataprocMetastore|createBackup}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type CreateBackupCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.metastore.v1.DataprocMetastore|deleteBackup}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type DeleteBackupCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+ }
+
+ /** Properties of a Service. */
+ interface IService {
+
+ /** Service hiveMetastoreConfig */
+ hiveMetastoreConfig?: (google.cloud.metastore.v1.IHiveMetastoreConfig|null);
+
+ /** Service name */
+ name?: (string|null);
+
+ /** Service createTime */
+ createTime?: (google.protobuf.ITimestamp|null);
+
+ /** Service updateTime */
+ updateTime?: (google.protobuf.ITimestamp|null);
+
+ /** Service labels */
+ labels?: ({ [k: string]: string }|null);
+
+ /** Service network */
+ network?: (string|null);
+
+ /** Service endpointUri */
+ endpointUri?: (string|null);
+
+ /** Service port */
+ port?: (number|null);
+
+ /** Service state */
+ state?: (google.cloud.metastore.v1.Service.State|keyof typeof google.cloud.metastore.v1.Service.State|null);
+
+ /** Service stateMessage */
+ stateMessage?: (string|null);
+
+ /** Service artifactGcsUri */
+ artifactGcsUri?: (string|null);
+
+ /** Service tier */
+ tier?: (google.cloud.metastore.v1.Service.Tier|keyof typeof google.cloud.metastore.v1.Service.Tier|null);
+
+ /** Service maintenanceWindow */
+ maintenanceWindow?: (google.cloud.metastore.v1.IMaintenanceWindow|null);
+
+ /** Service uid */
+ uid?: (string|null);
+
+ /** Service metadataManagementActivity */
+ metadataManagementActivity?: (google.cloud.metastore.v1.IMetadataManagementActivity|null);
+
+ /** Service releaseChannel */
+ releaseChannel?: (google.cloud.metastore.v1.Service.ReleaseChannel|keyof typeof google.cloud.metastore.v1.Service.ReleaseChannel|null);
+ }
+
+ /** Represents a Service. */
+ class Service implements IService {
+
+ /**
+ * Constructs a new Service.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.metastore.v1.IService);
+
+ /** Service hiveMetastoreConfig. */
+ public hiveMetastoreConfig?: (google.cloud.metastore.v1.IHiveMetastoreConfig|null);
+
+ /** Service name. */
+ public name: string;
+
+ /** Service createTime. */
+ public createTime?: (google.protobuf.ITimestamp|null);
+
+ /** Service updateTime. */
+ public updateTime?: (google.protobuf.ITimestamp|null);
+
+ /** Service labels. */
+ public labels: { [k: string]: string };
+
+ /** Service network. */
+ public network: string;
+
+ /** Service endpointUri. */
+ public endpointUri: string;
+
+ /** Service port. */
+ public port: number;
+
+ /** Service state. */
+ public state: (google.cloud.metastore.v1.Service.State|keyof typeof google.cloud.metastore.v1.Service.State);
+
+ /** Service stateMessage. */
+ public stateMessage: string;
+
+ /** Service artifactGcsUri. */
+ public artifactGcsUri: string;
+
+ /** Service tier. */
+ public tier: (google.cloud.metastore.v1.Service.Tier|keyof typeof google.cloud.metastore.v1.Service.Tier);
+
+ /** Service maintenanceWindow. */
+ public maintenanceWindow?: (google.cloud.metastore.v1.IMaintenanceWindow|null);
+
+ /** Service uid. */
+ public uid: string;
+
+ /** Service metadataManagementActivity. */
+ public metadataManagementActivity?: (google.cloud.metastore.v1.IMetadataManagementActivity|null);
+
+ /** Service releaseChannel. */
+ public releaseChannel: (google.cloud.metastore.v1.Service.ReleaseChannel|keyof typeof google.cloud.metastore.v1.Service.ReleaseChannel);
+
+ /** Service metastoreConfig. */
+ public metastoreConfig?: "hiveMetastoreConfig";
+
+ /**
+ * Creates a new Service instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Service instance
+ */
+ public static create(properties?: google.cloud.metastore.v1.IService): google.cloud.metastore.v1.Service;
+
+ /**
+ * Encodes the specified Service message. Does not implicitly {@link google.cloud.metastore.v1.Service.verify|verify} messages.
+ * @param message Service message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.metastore.v1.IService, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Service message, length delimited. Does not implicitly {@link google.cloud.metastore.v1.Service.verify|verify} messages.
+ * @param message Service message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.metastore.v1.IService, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Service message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Service
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.metastore.v1.Service;
+
+ /**
+ * Decodes a Service message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Service
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.metastore.v1.Service;
+
+ /**
+ * Verifies a Service message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Service message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Service
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.metastore.v1.Service;
+
+ /**
+ * Creates a plain object from a Service message. Also converts values to other types if specified.
+ * @param message Service
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.metastore.v1.Service, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Service to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Service
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace Service {
+
+ /** State enum. */
+ enum State {
+ STATE_UNSPECIFIED = 0,
+ CREATING = 1,
+ ACTIVE = 2,
+ SUSPENDING = 3,
+ SUSPENDED = 4,
+ UPDATING = 5,
+ DELETING = 6,
+ ERROR = 7
+ }
+
+ /** Tier enum. */
+ enum Tier {
+ TIER_UNSPECIFIED = 0,
+ DEVELOPER = 1,
+ ENTERPRISE = 3
+ }
+
+ /** ReleaseChannel enum. */
+ enum ReleaseChannel {
+ RELEASE_CHANNEL_UNSPECIFIED = 0,
+ CANARY = 1,
+ STABLE = 2
+ }
+ }
+
+ /** Properties of a MaintenanceWindow. */
+ interface IMaintenanceWindow {
+
+ /** MaintenanceWindow hourOfDay */
+ hourOfDay?: (google.protobuf.IInt32Value|null);
+
+ /** MaintenanceWindow dayOfWeek */
+ dayOfWeek?: (google.type.DayOfWeek|keyof typeof google.type.DayOfWeek|null);
+ }
+
+ /** Represents a MaintenanceWindow. */
+ class MaintenanceWindow implements IMaintenanceWindow {
+
+ /**
+ * Constructs a new MaintenanceWindow.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.metastore.v1.IMaintenanceWindow);
+
+ /** MaintenanceWindow hourOfDay. */
+ public hourOfDay?: (google.protobuf.IInt32Value|null);
+
+ /** MaintenanceWindow dayOfWeek. */
+ public dayOfWeek: (google.type.DayOfWeek|keyof typeof google.type.DayOfWeek);
+
+ /**
+ * Creates a new MaintenanceWindow instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns MaintenanceWindow instance
+ */
+ public static create(properties?: google.cloud.metastore.v1.IMaintenanceWindow): google.cloud.metastore.v1.MaintenanceWindow;
+
+ /**
+ * Encodes the specified MaintenanceWindow message. Does not implicitly {@link google.cloud.metastore.v1.MaintenanceWindow.verify|verify} messages.
+ * @param message MaintenanceWindow message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.metastore.v1.IMaintenanceWindow, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified MaintenanceWindow message, length delimited. Does not implicitly {@link google.cloud.metastore.v1.MaintenanceWindow.verify|verify} messages.
+ * @param message MaintenanceWindow message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.metastore.v1.IMaintenanceWindow, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a MaintenanceWindow message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns MaintenanceWindow
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.metastore.v1.MaintenanceWindow;
+
+ /**
+ * Decodes a MaintenanceWindow message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns MaintenanceWindow
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.metastore.v1.MaintenanceWindow;
+
+ /**
+ * Verifies a MaintenanceWindow message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a MaintenanceWindow message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns MaintenanceWindow
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.metastore.v1.MaintenanceWindow;
+
+ /**
+ * Creates a plain object from a MaintenanceWindow message. Also converts values to other types if specified.
+ * @param message MaintenanceWindow
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.metastore.v1.MaintenanceWindow, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this MaintenanceWindow to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for MaintenanceWindow
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a HiveMetastoreConfig. */
+ interface IHiveMetastoreConfig {
+
+ /** HiveMetastoreConfig version */
+ version?: (string|null);
+
+ /** HiveMetastoreConfig configOverrides */
+ configOverrides?: ({ [k: string]: string }|null);
+
+ /** HiveMetastoreConfig kerberosConfig */
+ kerberosConfig?: (google.cloud.metastore.v1.IKerberosConfig|null);
+ }
+
+ /** Represents a HiveMetastoreConfig. */
+ class HiveMetastoreConfig implements IHiveMetastoreConfig {
+
+ /**
+ * Constructs a new HiveMetastoreConfig.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.metastore.v1.IHiveMetastoreConfig);
+
+ /** HiveMetastoreConfig version. */
+ public version: string;
+
+ /** HiveMetastoreConfig configOverrides. */
+ public configOverrides: { [k: string]: string };
+
+ /** HiveMetastoreConfig kerberosConfig. */
+ public kerberosConfig?: (google.cloud.metastore.v1.IKerberosConfig|null);
+
+ /**
+ * Creates a new HiveMetastoreConfig instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns HiveMetastoreConfig instance
+ */
+ public static create(properties?: google.cloud.metastore.v1.IHiveMetastoreConfig): google.cloud.metastore.v1.HiveMetastoreConfig;
+
+ /**
+ * Encodes the specified HiveMetastoreConfig message. Does not implicitly {@link google.cloud.metastore.v1.HiveMetastoreConfig.verify|verify} messages.
+ * @param message HiveMetastoreConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.metastore.v1.IHiveMetastoreConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified HiveMetastoreConfig message, length delimited. Does not implicitly {@link google.cloud.metastore.v1.HiveMetastoreConfig.verify|verify} messages.
+ * @param message HiveMetastoreConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.metastore.v1.IHiveMetastoreConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a HiveMetastoreConfig message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns HiveMetastoreConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.metastore.v1.HiveMetastoreConfig;
+
+ /**
+ * Decodes a HiveMetastoreConfig message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns HiveMetastoreConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.metastore.v1.HiveMetastoreConfig;
+
+ /**
+ * Verifies a HiveMetastoreConfig message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a HiveMetastoreConfig message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns HiveMetastoreConfig
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.metastore.v1.HiveMetastoreConfig;
+
+ /**
+ * Creates a plain object from a HiveMetastoreConfig message. Also converts values to other types if specified.
+ * @param message HiveMetastoreConfig
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.metastore.v1.HiveMetastoreConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this HiveMetastoreConfig to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for HiveMetastoreConfig
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a KerberosConfig. */
+ interface IKerberosConfig {
+
+ /** KerberosConfig keytab */
+ keytab?: (google.cloud.metastore.v1.ISecret|null);
+
+ /** KerberosConfig principal */
+ principal?: (string|null);
+
+ /** KerberosConfig krb5ConfigGcsUri */
+ krb5ConfigGcsUri?: (string|null);
+ }
+
+ /** Represents a KerberosConfig. */
+ class KerberosConfig implements IKerberosConfig {
+
+ /**
+ * Constructs a new KerberosConfig.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.metastore.v1.IKerberosConfig);
+
+ /** KerberosConfig keytab. */
+ public keytab?: (google.cloud.metastore.v1.ISecret|null);
+
+ /** KerberosConfig principal. */
+ public principal: string;
+
+ /** KerberosConfig krb5ConfigGcsUri. */
+ public krb5ConfigGcsUri: string;
+
+ /**
+ * Creates a new KerberosConfig instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns KerberosConfig instance
+ */
+ public static create(properties?: google.cloud.metastore.v1.IKerberosConfig): google.cloud.metastore.v1.KerberosConfig;
+
+ /**
+ * Encodes the specified KerberosConfig message. Does not implicitly {@link google.cloud.metastore.v1.KerberosConfig.verify|verify} messages.
+ * @param message KerberosConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.metastore.v1.IKerberosConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified KerberosConfig message, length delimited. Does not implicitly {@link google.cloud.metastore.v1.KerberosConfig.verify|verify} messages.
+ * @param message KerberosConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.metastore.v1.IKerberosConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a KerberosConfig message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns KerberosConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.metastore.v1.KerberosConfig;
+
+ /**
+ * Decodes a KerberosConfig message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns KerberosConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.metastore.v1.KerberosConfig;
+
+ /**
+ * Verifies a KerberosConfig message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a KerberosConfig message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns KerberosConfig
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.metastore.v1.KerberosConfig;
+
+ /**
+ * Creates a plain object from a KerberosConfig message. Also converts values to other types if specified.
+ * @param message KerberosConfig
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.metastore.v1.KerberosConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this KerberosConfig to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for KerberosConfig
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Secret. */
+ interface ISecret {
+
+ /** Secret cloudSecret */
+ cloudSecret?: (string|null);
+ }
+
+ /** Represents a Secret. */
+ class Secret implements ISecret {
+
+ /**
+ * Constructs a new Secret.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.metastore.v1.ISecret);
+
+ /** Secret cloudSecret. */
+ public cloudSecret?: (string|null);
+
+ /** Secret value. */
+ public value?: "cloudSecret";
+
+ /**
+ * Creates a new Secret instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Secret instance
+ */
+ public static create(properties?: google.cloud.metastore.v1.ISecret): google.cloud.metastore.v1.Secret;
+
+ /**
+ * Encodes the specified Secret message. Does not implicitly {@link google.cloud.metastore.v1.Secret.verify|verify} messages.
+ * @param message Secret message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.metastore.v1.ISecret, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Secret message, length delimited. Does not implicitly {@link google.cloud.metastore.v1.Secret.verify|verify} messages.
+ * @param message Secret message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.metastore.v1.ISecret, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Secret message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Secret
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.metastore.v1.Secret;
+
+ /**
+ * Decodes a Secret message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Secret
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.metastore.v1.Secret;
+
+ /**
+ * Verifies a Secret message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Secret message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Secret
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.metastore.v1.Secret;
+
+ /**
+ * Creates a plain object from a Secret message. Also converts values to other types if specified.
+ * @param message Secret
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.metastore.v1.Secret, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Secret to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Secret
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a MetadataManagementActivity. */
+ interface IMetadataManagementActivity {
+
+ /** MetadataManagementActivity metadataExports */
+ metadataExports?: (google.cloud.metastore.v1.IMetadataExport[]|null);
+
+ /** MetadataManagementActivity restores */
+ restores?: (google.cloud.metastore.v1.IRestore[]|null);
+ }
+
+ /** Represents a MetadataManagementActivity. */
+ class MetadataManagementActivity implements IMetadataManagementActivity {
+
+ /**
+ * Constructs a new MetadataManagementActivity.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.metastore.v1.IMetadataManagementActivity);
+
+ /** MetadataManagementActivity metadataExports. */
+ public metadataExports: google.cloud.metastore.v1.IMetadataExport[];
+
+ /** MetadataManagementActivity restores. */
+ public restores: google.cloud.metastore.v1.IRestore[];
+
+ /**
+ * Creates a new MetadataManagementActivity instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns MetadataManagementActivity instance
+ */
+ public static create(properties?: google.cloud.metastore.v1.IMetadataManagementActivity): google.cloud.metastore.v1.MetadataManagementActivity;
+
+ /**
+ * Encodes the specified MetadataManagementActivity message. Does not implicitly {@link google.cloud.metastore.v1.MetadataManagementActivity.verify|verify} messages.
+ * @param message MetadataManagementActivity message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.metastore.v1.IMetadataManagementActivity, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified MetadataManagementActivity message, length delimited. Does not implicitly {@link google.cloud.metastore.v1.MetadataManagementActivity.verify|verify} messages.
+ * @param message MetadataManagementActivity message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.metastore.v1.IMetadataManagementActivity, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a MetadataManagementActivity message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns MetadataManagementActivity
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.metastore.v1.MetadataManagementActivity;
+
+ /**
+ * Decodes a MetadataManagementActivity message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns MetadataManagementActivity
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.metastore.v1.MetadataManagementActivity;
+
+ /**
+ * Verifies a MetadataManagementActivity message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a MetadataManagementActivity message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns MetadataManagementActivity
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.metastore.v1.MetadataManagementActivity;
+
+ /**
+ * Creates a plain object from a MetadataManagementActivity message. Also converts values to other types if specified.
+ * @param message MetadataManagementActivity
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.metastore.v1.MetadataManagementActivity, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this MetadataManagementActivity to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for MetadataManagementActivity
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a MetadataImport. */
+ interface IMetadataImport {
+
+ /** MetadataImport databaseDump */
+ databaseDump?: (google.cloud.metastore.v1.MetadataImport.IDatabaseDump|null);
+
+ /** MetadataImport name */
+ name?: (string|null);
+
+ /** MetadataImport description */
+ description?: (string|null);
+
+ /** MetadataImport createTime */
+ createTime?: (google.protobuf.ITimestamp|null);
+
+ /** MetadataImport updateTime */
+ updateTime?: (google.protobuf.ITimestamp|null);
+
+ /** MetadataImport endTime */
+ endTime?: (google.protobuf.ITimestamp|null);
+
+ /** MetadataImport state */
+ state?: (google.cloud.metastore.v1.MetadataImport.State|keyof typeof google.cloud.metastore.v1.MetadataImport.State|null);
+ }
+
+ /** Represents a MetadataImport. */
+ class MetadataImport implements IMetadataImport {
+
+ /**
+ * Constructs a new MetadataImport.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.metastore.v1.IMetadataImport);
+
+ /** MetadataImport databaseDump. */
+ public databaseDump?: (google.cloud.metastore.v1.MetadataImport.IDatabaseDump|null);
+
+ /** MetadataImport name. */
+ public name: string;
+
+ /** MetadataImport description. */
+ public description: string;
+
+ /** MetadataImport createTime. */
+ public createTime?: (google.protobuf.ITimestamp|null);
+
+ /** MetadataImport updateTime. */
+ public updateTime?: (google.protobuf.ITimestamp|null);
+
+ /** MetadataImport endTime. */
+ public endTime?: (google.protobuf.ITimestamp|null);
+
+ /** MetadataImport state. */
+ public state: (google.cloud.metastore.v1.MetadataImport.State|keyof typeof google.cloud.metastore.v1.MetadataImport.State);
+
+ /** MetadataImport metadata. */
+ public metadata?: "databaseDump";
+
+ /**
+ * Creates a new MetadataImport instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns MetadataImport instance
+ */
+ public static create(properties?: google.cloud.metastore.v1.IMetadataImport): google.cloud.metastore.v1.MetadataImport;
+
+ /**
+ * Encodes the specified MetadataImport message. Does not implicitly {@link google.cloud.metastore.v1.MetadataImport.verify|verify} messages.
+ * @param message MetadataImport message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.metastore.v1.IMetadataImport, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified MetadataImport message, length delimited. Does not implicitly {@link google.cloud.metastore.v1.MetadataImport.verify|verify} messages.
+ * @param message MetadataImport message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.metastore.v1.IMetadataImport, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a MetadataImport message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns MetadataImport
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.metastore.v1.MetadataImport;
+
+ /**
+ * Decodes a MetadataImport message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns MetadataImport
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.metastore.v1.MetadataImport;
+
+ /**
+ * Verifies a MetadataImport message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a MetadataImport message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns MetadataImport
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.metastore.v1.MetadataImport;
+
+ /**
+ * Creates a plain object from a MetadataImport message. Also converts values to other types if specified.
+ * @param message MetadataImport
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.metastore.v1.MetadataImport, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this MetadataImport to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for MetadataImport
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace MetadataImport {
+
+ /** Properties of a DatabaseDump. */
+ interface IDatabaseDump {
+
+ /** DatabaseDump databaseType */
+ databaseType?: (google.cloud.metastore.v1.MetadataImport.DatabaseDump.DatabaseType|keyof typeof google.cloud.metastore.v1.MetadataImport.DatabaseDump.DatabaseType|null);
+
+ /** DatabaseDump gcsUri */
+ gcsUri?: (string|null);
+
+ /** DatabaseDump type */
+ type?: (google.cloud.metastore.v1.DatabaseDumpSpec.Type|keyof typeof google.cloud.metastore.v1.DatabaseDumpSpec.Type|null);
+ }
+
+ /** Represents a DatabaseDump. */
+ class DatabaseDump implements IDatabaseDump {
+
+ /**
+ * Constructs a new DatabaseDump.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.metastore.v1.MetadataImport.IDatabaseDump);
+
+ /** DatabaseDump databaseType. */
+ public databaseType: (google.cloud.metastore.v1.MetadataImport.DatabaseDump.DatabaseType|keyof typeof google.cloud.metastore.v1.MetadataImport.DatabaseDump.DatabaseType);
+
+ /** DatabaseDump gcsUri. */
+ public gcsUri: string;
+
+ /** DatabaseDump type. */
+ public type: (google.cloud.metastore.v1.DatabaseDumpSpec.Type|keyof typeof google.cloud.metastore.v1.DatabaseDumpSpec.Type);
+
+ /**
+ * Creates a new DatabaseDump instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DatabaseDump instance
+ */
+ public static create(properties?: google.cloud.metastore.v1.MetadataImport.IDatabaseDump): google.cloud.metastore.v1.MetadataImport.DatabaseDump;
+
+ /**
+ * Encodes the specified DatabaseDump message. Does not implicitly {@link google.cloud.metastore.v1.MetadataImport.DatabaseDump.verify|verify} messages.
+ * @param message DatabaseDump message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.metastore.v1.MetadataImport.IDatabaseDump, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DatabaseDump message, length delimited. Does not implicitly {@link google.cloud.metastore.v1.MetadataImport.DatabaseDump.verify|verify} messages.
+ * @param message DatabaseDump message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.metastore.v1.MetadataImport.IDatabaseDump, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DatabaseDump message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DatabaseDump
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.metastore.v1.MetadataImport.DatabaseDump;
+
+ /**
+ * Decodes a DatabaseDump message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DatabaseDump
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.metastore.v1.MetadataImport.DatabaseDump;
+
+ /**
+ * Verifies a DatabaseDump message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DatabaseDump message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DatabaseDump
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.metastore.v1.MetadataImport.DatabaseDump;
+
+ /**
+ * Creates a plain object from a DatabaseDump message. Also converts values to other types if specified.
+ * @param message DatabaseDump
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.metastore.v1.MetadataImport.DatabaseDump, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DatabaseDump to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DatabaseDump
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace DatabaseDump {
+
+ /** DatabaseType enum. */
+ enum DatabaseType {
+ DATABASE_TYPE_UNSPECIFIED = 0,
+ MYSQL = 1
+ }
+ }
+
+ /** State enum. */
+ enum State {
+ STATE_UNSPECIFIED = 0,
+ RUNNING = 1,
+ SUCCEEDED = 2,
+ UPDATING = 3,
+ FAILED = 4
+ }
+ }
+
+ /** Properties of a MetadataExport. */
+ interface IMetadataExport {
+
+ /** MetadataExport destinationGcsUri */
+ destinationGcsUri?: (string|null);
+
+ /** MetadataExport startTime */
+ startTime?: (google.protobuf.ITimestamp|null);
+
+ /** MetadataExport endTime */
+ endTime?: (google.protobuf.ITimestamp|null);
+
+ /** MetadataExport state */
+ state?: (google.cloud.metastore.v1.MetadataExport.State|keyof typeof google.cloud.metastore.v1.MetadataExport.State|null);
+
+ /** MetadataExport databaseDumpType */
+ databaseDumpType?: (google.cloud.metastore.v1.DatabaseDumpSpec.Type|keyof typeof google.cloud.metastore.v1.DatabaseDumpSpec.Type|null);
+ }
+
+ /** Represents a MetadataExport. */
+ class MetadataExport implements IMetadataExport {
+
+ /**
+ * Constructs a new MetadataExport.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.metastore.v1.IMetadataExport);
+
+ /** MetadataExport destinationGcsUri. */
+ public destinationGcsUri?: (string|null);
+
+ /** MetadataExport startTime. */
+ public startTime?: (google.protobuf.ITimestamp|null);
+
+ /** MetadataExport endTime. */
+ public endTime?: (google.protobuf.ITimestamp|null);
+
+ /** MetadataExport state. */
+ public state: (google.cloud.metastore.v1.MetadataExport.State|keyof typeof google.cloud.metastore.v1.MetadataExport.State);
+
+ /** MetadataExport databaseDumpType. */
+ public databaseDumpType: (google.cloud.metastore.v1.DatabaseDumpSpec.Type|keyof typeof google.cloud.metastore.v1.DatabaseDumpSpec.Type);
+
+ /** MetadataExport destination. */
+ public destination?: "destinationGcsUri";
+
+ /**
+ * Creates a new MetadataExport instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns MetadataExport instance
+ */
+ public static create(properties?: google.cloud.metastore.v1.IMetadataExport): google.cloud.metastore.v1.MetadataExport;
+
+ /**
+ * Encodes the specified MetadataExport message. Does not implicitly {@link google.cloud.metastore.v1.MetadataExport.verify|verify} messages.
+ * @param message MetadataExport message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.metastore.v1.IMetadataExport, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified MetadataExport message, length delimited. Does not implicitly {@link google.cloud.metastore.v1.MetadataExport.verify|verify} messages.
+ * @param message MetadataExport message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.metastore.v1.IMetadataExport, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a MetadataExport message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns MetadataExport
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.metastore.v1.MetadataExport;
+
+ /**
+ * Decodes a MetadataExport message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns MetadataExport
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.metastore.v1.MetadataExport;
+
+ /**
+ * Verifies a MetadataExport message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a MetadataExport message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns MetadataExport
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.metastore.v1.MetadataExport;
+
+ /**
+ * Creates a plain object from a MetadataExport message. Also converts values to other types if specified.
+ * @param message MetadataExport
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.metastore.v1.MetadataExport, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this MetadataExport to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for MetadataExport
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace MetadataExport {
+
+ /** State enum. */
+ enum State {
+ STATE_UNSPECIFIED = 0,
+ RUNNING = 1,
+ SUCCEEDED = 2,
+ FAILED = 3,
+ CANCELLED = 4
+ }
+ }
+
+ /** Properties of a Backup. */
+ interface IBackup {
+
+ /** Backup name */
+ name?: (string|null);
+
+ /** Backup createTime */
+ createTime?: (google.protobuf.ITimestamp|null);
+
+ /** Backup endTime */
+ endTime?: (google.protobuf.ITimestamp|null);
+
+ /** Backup state */
+ state?: (google.cloud.metastore.v1.Backup.State|keyof typeof google.cloud.metastore.v1.Backup.State|null);
+
+ /** Backup serviceRevision */
+ serviceRevision?: (google.cloud.metastore.v1.IService|null);
+
+ /** Backup description */
+ description?: (string|null);
+
+ /** Backup restoringServices */
+ restoringServices?: (string[]|null);
+ }
+
+ /** Represents a Backup. */
+ class Backup implements IBackup {
+
+ /**
+ * Constructs a new Backup.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.metastore.v1.IBackup);
+
+ /** Backup name. */
+ public name: string;
+
+ /** Backup createTime. */
+ public createTime?: (google.protobuf.ITimestamp|null);
+
+ /** Backup endTime. */
+ public endTime?: (google.protobuf.ITimestamp|null);
+
+ /** Backup state. */
+ public state: (google.cloud.metastore.v1.Backup.State|keyof typeof google.cloud.metastore.v1.Backup.State);
+
+ /** Backup serviceRevision. */
+ public serviceRevision?: (google.cloud.metastore.v1.IService|null);
+
+ /** Backup description. */
+ public description: string;
+
+ /** Backup restoringServices. */
+ public restoringServices: string[];
+
+ /**
+ * Creates a new Backup instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Backup instance
+ */
+ public static create(properties?: google.cloud.metastore.v1.IBackup): google.cloud.metastore.v1.Backup;
+
+ /**
+ * Encodes the specified Backup message. Does not implicitly {@link google.cloud.metastore.v1.Backup.verify|verify} messages.
+ * @param message Backup message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.metastore.v1.IBackup, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Backup message, length delimited. Does not implicitly {@link google.cloud.metastore.v1.Backup.verify|verify} messages.
+ * @param message Backup message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.metastore.v1.IBackup, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Backup message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Backup
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.metastore.v1.Backup;
+
+ /**
+ * Decodes a Backup message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Backup
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.metastore.v1.Backup;
+
+ /**
+ * Verifies a Backup message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Backup message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Backup
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.metastore.v1.Backup;
+
+ /**
+ * Creates a plain object from a Backup message. Also converts values to other types if specified.
+ * @param message Backup
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.metastore.v1.Backup, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Backup to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Backup
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace Backup {
+
+ /** State enum. */
+ enum State {
+ STATE_UNSPECIFIED = 0,
+ CREATING = 1,
+ DELETING = 2,
+ ACTIVE = 3,
+ FAILED = 4,
+ RESTORING = 5
+ }
+ }
+
+ /** Properties of a Restore. */
+ interface IRestore {
+
+ /** Restore startTime */
+ startTime?: (google.protobuf.ITimestamp|null);
+
+ /** Restore endTime */
+ endTime?: (google.protobuf.ITimestamp|null);
+
+ /** Restore state */
+ state?: (google.cloud.metastore.v1.Restore.State|keyof typeof google.cloud.metastore.v1.Restore.State|null);
+
+ /** Restore backup */
+ backup?: (string|null);
+
+ /** Restore type */
+ type?: (google.cloud.metastore.v1.Restore.RestoreType|keyof typeof google.cloud.metastore.v1.Restore.RestoreType|null);
+
+ /** Restore details */
+ details?: (string|null);
+ }
+
+ /** Represents a Restore. */
+ class Restore implements IRestore {
+
+ /**
+ * Constructs a new Restore.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.metastore.v1.IRestore);
+
+ /** Restore startTime. */
+ public startTime?: (google.protobuf.ITimestamp|null);
+
+ /** Restore endTime. */
+ public endTime?: (google.protobuf.ITimestamp|null);
+
+ /** Restore state. */
+ public state: (google.cloud.metastore.v1.Restore.State|keyof typeof google.cloud.metastore.v1.Restore.State);
+
+ /** Restore backup. */
+ public backup: string;
+
+ /** Restore type. */
+ public type: (google.cloud.metastore.v1.Restore.RestoreType|keyof typeof google.cloud.metastore.v1.Restore.RestoreType);
+
+ /** Restore details. */
+ public details: string;
+
+ /**
+ * Creates a new Restore instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Restore instance
+ */
+ public static create(properties?: google.cloud.metastore.v1.IRestore): google.cloud.metastore.v1.Restore;
+
+ /**
+ * Encodes the specified Restore message. Does not implicitly {@link google.cloud.metastore.v1.Restore.verify|verify} messages.
+ * @param message Restore message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.metastore.v1.IRestore, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Restore message, length delimited. Does not implicitly {@link google.cloud.metastore.v1.Restore.verify|verify} messages.
+ * @param message Restore message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.metastore.v1.IRestore, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Restore message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Restore
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.metastore.v1.Restore;
+
+ /**
+ * Decodes a Restore message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Restore
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.metastore.v1.Restore;
+
+ /**
+ * Verifies a Restore message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Restore message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Restore
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.metastore.v1.Restore;
+
+ /**
+ * Creates a plain object from a Restore message. Also converts values to other types if specified.
+ * @param message Restore
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.metastore.v1.Restore, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Restore to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Restore
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace Restore {
+
+ /** State enum. */
+ enum State {
+ STATE_UNSPECIFIED = 0,
+ RUNNING = 1,
+ SUCCEEDED = 2,
+ FAILED = 3,
+ CANCELLED = 4
+ }
+
+ /** RestoreType enum. */
+ enum RestoreType {
+ RESTORE_TYPE_UNSPECIFIED = 0,
+ FULL = 1,
+ METADATA_ONLY = 2
+ }
+ }
+
+ /** Properties of a ListServicesRequest. */
+ interface IListServicesRequest {
+
+ /** ListServicesRequest parent */
+ parent?: (string|null);
+
+ /** ListServicesRequest pageSize */
+ pageSize?: (number|null);
+
+ /** ListServicesRequest pageToken */
+ pageToken?: (string|null);
+
+ /** ListServicesRequest filter */
+ filter?: (string|null);
+
+ /** ListServicesRequest orderBy */
+ orderBy?: (string|null);
+ }
+
+ /** Represents a ListServicesRequest. */
+ class ListServicesRequest implements IListServicesRequest {
+
+ /**
+ * Constructs a new ListServicesRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.metastore.v1.IListServicesRequest);
+
+ /** ListServicesRequest parent. */
+ public parent: string;
+
+ /** ListServicesRequest pageSize. */
+ public pageSize: number;
+
+ /** ListServicesRequest pageToken. */
+ public pageToken: string;
+
+ /** ListServicesRequest filter. */
+ public filter: string;
+
+ /** ListServicesRequest orderBy. */
+ public orderBy: string;
+
+ /**
+ * Creates a new ListServicesRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListServicesRequest instance
+ */
+ public static create(properties?: google.cloud.metastore.v1.IListServicesRequest): google.cloud.metastore.v1.ListServicesRequest;
+
+ /**
+ * Encodes the specified ListServicesRequest message. Does not implicitly {@link google.cloud.metastore.v1.ListServicesRequest.verify|verify} messages.
+ * @param message ListServicesRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.metastore.v1.IListServicesRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListServicesRequest message, length delimited. Does not implicitly {@link google.cloud.metastore.v1.ListServicesRequest.verify|verify} messages.
+ * @param message ListServicesRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.metastore.v1.IListServicesRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListServicesRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListServicesRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.metastore.v1.ListServicesRequest;
+
+ /**
+ * Decodes a ListServicesRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListServicesRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.metastore.v1.ListServicesRequest;
+
+ /**
+ * Verifies a ListServicesRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListServicesRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListServicesRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.metastore.v1.ListServicesRequest;
+
+ /**
+ * Creates a plain object from a ListServicesRequest message. Also converts values to other types if specified.
+ * @param message ListServicesRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.metastore.v1.ListServicesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListServicesRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListServicesRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListServicesResponse. */
+ interface IListServicesResponse {
+
+ /** ListServicesResponse services */
+ services?: (google.cloud.metastore.v1.IService[]|null);
+
+ /** ListServicesResponse nextPageToken */
+ nextPageToken?: (string|null);
+
+ /** ListServicesResponse unreachable */
+ unreachable?: (string[]|null);
+ }
+
+ /** Represents a ListServicesResponse. */
+ class ListServicesResponse implements IListServicesResponse {
+
+ /**
+ * Constructs a new ListServicesResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.metastore.v1.IListServicesResponse);
+
+ /** ListServicesResponse services. */
+ public services: google.cloud.metastore.v1.IService[];
+
+ /** ListServicesResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /** ListServicesResponse unreachable. */
+ public unreachable: string[];
+
+ /**
+ * Creates a new ListServicesResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListServicesResponse instance
+ */
+ public static create(properties?: google.cloud.metastore.v1.IListServicesResponse): google.cloud.metastore.v1.ListServicesResponse;
+
+ /**
+ * Encodes the specified ListServicesResponse message. Does not implicitly {@link google.cloud.metastore.v1.ListServicesResponse.verify|verify} messages.
+ * @param message ListServicesResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.metastore.v1.IListServicesResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListServicesResponse message, length delimited. Does not implicitly {@link google.cloud.metastore.v1.ListServicesResponse.verify|verify} messages.
+ * @param message ListServicesResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.metastore.v1.IListServicesResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListServicesResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListServicesResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.metastore.v1.ListServicesResponse;
+
+ /**
+ * Decodes a ListServicesResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListServicesResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.metastore.v1.ListServicesResponse;
+
+ /**
+ * Verifies a ListServicesResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListServicesResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListServicesResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.metastore.v1.ListServicesResponse;
+
+ /**
+ * Creates a plain object from a ListServicesResponse message. Also converts values to other types if specified.
+ * @param message ListServicesResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.metastore.v1.ListServicesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListServicesResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListServicesResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GetServiceRequest. */
+ interface IGetServiceRequest {
+
+ /** GetServiceRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a GetServiceRequest. */
+ class GetServiceRequest implements IGetServiceRequest {
+
+ /**
+ * Constructs a new GetServiceRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.metastore.v1.IGetServiceRequest);
+
+ /** GetServiceRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new GetServiceRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetServiceRequest instance
+ */
+ public static create(properties?: google.cloud.metastore.v1.IGetServiceRequest): google.cloud.metastore.v1.GetServiceRequest;
+
+ /**
+ * Encodes the specified GetServiceRequest message. Does not implicitly {@link google.cloud.metastore.v1.GetServiceRequest.verify|verify} messages.
+ * @param message GetServiceRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.metastore.v1.IGetServiceRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetServiceRequest message, length delimited. Does not implicitly {@link google.cloud.metastore.v1.GetServiceRequest.verify|verify} messages.
+ * @param message GetServiceRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.metastore.v1.IGetServiceRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetServiceRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetServiceRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.metastore.v1.GetServiceRequest;
+
+ /**
+ * Decodes a GetServiceRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetServiceRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.metastore.v1.GetServiceRequest;
+
+ /**
+ * Verifies a GetServiceRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GetServiceRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetServiceRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.metastore.v1.GetServiceRequest;
+
+ /**
+ * Creates a plain object from a GetServiceRequest message. Also converts values to other types if specified.
+ * @param message GetServiceRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.metastore.v1.GetServiceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetServiceRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetServiceRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CreateServiceRequest. */
+ interface ICreateServiceRequest {
+
+ /** CreateServiceRequest parent */
+ parent?: (string|null);
+
+ /** CreateServiceRequest serviceId */
+ serviceId?: (string|null);
+
+ /** CreateServiceRequest service */
+ service?: (google.cloud.metastore.v1.IService|null);
+
+ /** CreateServiceRequest requestId */
+ requestId?: (string|null);
+ }
+
+ /** Represents a CreateServiceRequest. */
+ class CreateServiceRequest implements ICreateServiceRequest {
+
+ /**
+ * Constructs a new CreateServiceRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.metastore.v1.ICreateServiceRequest);
+
+ /** CreateServiceRequest parent. */
+ public parent: string;
+
+ /** CreateServiceRequest serviceId. */
+ public serviceId: string;
+
+ /** CreateServiceRequest service. */
+ public service?: (google.cloud.metastore.v1.IService|null);
+
+ /** CreateServiceRequest requestId. */
+ public requestId: string;
+
+ /**
+ * Creates a new CreateServiceRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CreateServiceRequest instance
+ */
+ public static create(properties?: google.cloud.metastore.v1.ICreateServiceRequest): google.cloud.metastore.v1.CreateServiceRequest;
+
+ /**
+ * Encodes the specified CreateServiceRequest message. Does not implicitly {@link google.cloud.metastore.v1.CreateServiceRequest.verify|verify} messages.
+ * @param message CreateServiceRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.metastore.v1.ICreateServiceRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CreateServiceRequest message, length delimited. Does not implicitly {@link google.cloud.metastore.v1.CreateServiceRequest.verify|verify} messages.
+ * @param message CreateServiceRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.metastore.v1.ICreateServiceRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CreateServiceRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CreateServiceRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.metastore.v1.CreateServiceRequest;
+
+ /**
+ * Decodes a CreateServiceRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CreateServiceRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.metastore.v1.CreateServiceRequest;
+
+ /**
+ * Verifies a CreateServiceRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a CreateServiceRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CreateServiceRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.metastore.v1.CreateServiceRequest;
+
+ /**
+ * Creates a plain object from a CreateServiceRequest message. Also converts values to other types if specified.
+ * @param message CreateServiceRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.metastore.v1.CreateServiceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CreateServiceRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CreateServiceRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an UpdateServiceRequest. */
+ interface IUpdateServiceRequest {
+
+ /** UpdateServiceRequest updateMask */
+ updateMask?: (google.protobuf.IFieldMask|null);
+
+ /** UpdateServiceRequest service */
+ service?: (google.cloud.metastore.v1.IService|null);
+
+ /** UpdateServiceRequest requestId */
+ requestId?: (string|null);
+ }
+
+ /** Represents an UpdateServiceRequest. */
+ class UpdateServiceRequest implements IUpdateServiceRequest {
+
+ /**
+ * Constructs a new UpdateServiceRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.metastore.v1.IUpdateServiceRequest);
+
+ /** UpdateServiceRequest updateMask. */
+ public updateMask?: (google.protobuf.IFieldMask|null);
+
+ /** UpdateServiceRequest service. */
+ public service?: (google.cloud.metastore.v1.IService|null);
+
+ /** UpdateServiceRequest requestId. */
+ public requestId: string;
+
+ /**
+ * Creates a new UpdateServiceRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns UpdateServiceRequest instance
+ */
+ public static create(properties?: google.cloud.metastore.v1.IUpdateServiceRequest): google.cloud.metastore.v1.UpdateServiceRequest;
+
+ /**
+ * Encodes the specified UpdateServiceRequest message. Does not implicitly {@link google.cloud.metastore.v1.UpdateServiceRequest.verify|verify} messages.
+ * @param message UpdateServiceRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.metastore.v1.IUpdateServiceRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified UpdateServiceRequest message, length delimited. Does not implicitly {@link google.cloud.metastore.v1.UpdateServiceRequest.verify|verify} messages.
+ * @param message UpdateServiceRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.metastore.v1.IUpdateServiceRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an UpdateServiceRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns UpdateServiceRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.metastore.v1.UpdateServiceRequest;
+
+ /**
+ * Decodes an UpdateServiceRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns UpdateServiceRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.metastore.v1.UpdateServiceRequest;
+
+ /**
+ * Verifies an UpdateServiceRequest message.
+ * @param message Plain 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 UpdateServiceRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns UpdateServiceRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.metastore.v1.UpdateServiceRequest;
+
+ /**
+ * Creates a plain object from an UpdateServiceRequest message. Also converts values to other types if specified.
+ * @param message UpdateServiceRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.metastore.v1.UpdateServiceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this UpdateServiceRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for UpdateServiceRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DeleteServiceRequest. */
+ interface IDeleteServiceRequest {
+
+ /** DeleteServiceRequest name */
+ name?: (string|null);
+
+ /** DeleteServiceRequest requestId */
+ requestId?: (string|null);
+ }
+
+ /** Represents a DeleteServiceRequest. */
+ class DeleteServiceRequest implements IDeleteServiceRequest {
+
+ /**
+ * Constructs a new DeleteServiceRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.metastore.v1.IDeleteServiceRequest);
+
+ /** DeleteServiceRequest name. */
+ public name: string;
+
+ /** DeleteServiceRequest requestId. */
+ public requestId: string;
+
+ /**
+ * Creates a new DeleteServiceRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DeleteServiceRequest instance
+ */
+ public static create(properties?: google.cloud.metastore.v1.IDeleteServiceRequest): google.cloud.metastore.v1.DeleteServiceRequest;
+
+ /**
+ * Encodes the specified DeleteServiceRequest message. Does not implicitly {@link google.cloud.metastore.v1.DeleteServiceRequest.verify|verify} messages.
+ * @param message DeleteServiceRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.metastore.v1.IDeleteServiceRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DeleteServiceRequest message, length delimited. Does not implicitly {@link google.cloud.metastore.v1.DeleteServiceRequest.verify|verify} messages.
+ * @param message DeleteServiceRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.metastore.v1.IDeleteServiceRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DeleteServiceRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DeleteServiceRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.metastore.v1.DeleteServiceRequest;
+
+ /**
+ * Decodes a DeleteServiceRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DeleteServiceRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.metastore.v1.DeleteServiceRequest;
+
+ /**
+ * Verifies a DeleteServiceRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DeleteServiceRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DeleteServiceRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.metastore.v1.DeleteServiceRequest;
+
+ /**
+ * Creates a plain object from a DeleteServiceRequest message. Also converts values to other types if specified.
+ * @param message DeleteServiceRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.metastore.v1.DeleteServiceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DeleteServiceRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DeleteServiceRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListMetadataImportsRequest. */
+ interface IListMetadataImportsRequest {
+
+ /** ListMetadataImportsRequest parent */
+ parent?: (string|null);
+
+ /** ListMetadataImportsRequest pageSize */
+ pageSize?: (number|null);
+
+ /** ListMetadataImportsRequest pageToken */
+ pageToken?: (string|null);
+
+ /** ListMetadataImportsRequest filter */
+ filter?: (string|null);
+
+ /** ListMetadataImportsRequest orderBy */
+ orderBy?: (string|null);
+ }
+
+ /** Represents a ListMetadataImportsRequest. */
+ class ListMetadataImportsRequest implements IListMetadataImportsRequest {
+
+ /**
+ * Constructs a new ListMetadataImportsRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.metastore.v1.IListMetadataImportsRequest);
+
+ /** ListMetadataImportsRequest parent. */
+ public parent: string;
+
+ /** ListMetadataImportsRequest pageSize. */
+ public pageSize: number;
+
+ /** ListMetadataImportsRequest pageToken. */
+ public pageToken: string;
+
+ /** ListMetadataImportsRequest filter. */
+ public filter: string;
+
+ /** ListMetadataImportsRequest orderBy. */
+ public orderBy: string;
+
+ /**
+ * Creates a new ListMetadataImportsRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListMetadataImportsRequest instance
+ */
+ public static create(properties?: google.cloud.metastore.v1.IListMetadataImportsRequest): google.cloud.metastore.v1.ListMetadataImportsRequest;
+
+ /**
+ * Encodes the specified ListMetadataImportsRequest message. Does not implicitly {@link google.cloud.metastore.v1.ListMetadataImportsRequest.verify|verify} messages.
+ * @param message ListMetadataImportsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.metastore.v1.IListMetadataImportsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListMetadataImportsRequest message, length delimited. Does not implicitly {@link google.cloud.metastore.v1.ListMetadataImportsRequest.verify|verify} messages.
+ * @param message ListMetadataImportsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.metastore.v1.IListMetadataImportsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListMetadataImportsRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListMetadataImportsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.metastore.v1.ListMetadataImportsRequest;
+
+ /**
+ * Decodes a ListMetadataImportsRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListMetadataImportsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.metastore.v1.ListMetadataImportsRequest;
+
+ /**
+ * Verifies a ListMetadataImportsRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListMetadataImportsRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListMetadataImportsRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.metastore.v1.ListMetadataImportsRequest;
+
+ /**
+ * Creates a plain object from a ListMetadataImportsRequest message. Also converts values to other types if specified.
+ * @param message ListMetadataImportsRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.metastore.v1.ListMetadataImportsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListMetadataImportsRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListMetadataImportsRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListMetadataImportsResponse. */
+ interface IListMetadataImportsResponse {
+
+ /** ListMetadataImportsResponse metadataImports */
+ metadataImports?: (google.cloud.metastore.v1.IMetadataImport[]|null);
+
+ /** ListMetadataImportsResponse nextPageToken */
+ nextPageToken?: (string|null);
+
+ /** ListMetadataImportsResponse unreachable */
+ unreachable?: (string[]|null);
+ }
+
+ /** Represents a ListMetadataImportsResponse. */
+ class ListMetadataImportsResponse implements IListMetadataImportsResponse {
+
+ /**
+ * Constructs a new ListMetadataImportsResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.metastore.v1.IListMetadataImportsResponse);
+
+ /** ListMetadataImportsResponse metadataImports. */
+ public metadataImports: google.cloud.metastore.v1.IMetadataImport[];
+
+ /** ListMetadataImportsResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /** ListMetadataImportsResponse unreachable. */
+ public unreachable: string[];
+
+ /**
+ * Creates a new ListMetadataImportsResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListMetadataImportsResponse instance
+ */
+ public static create(properties?: google.cloud.metastore.v1.IListMetadataImportsResponse): google.cloud.metastore.v1.ListMetadataImportsResponse;
+
+ /**
+ * Encodes the specified ListMetadataImportsResponse message. Does not implicitly {@link google.cloud.metastore.v1.ListMetadataImportsResponse.verify|verify} messages.
+ * @param message ListMetadataImportsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.metastore.v1.IListMetadataImportsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListMetadataImportsResponse message, length delimited. Does not implicitly {@link google.cloud.metastore.v1.ListMetadataImportsResponse.verify|verify} messages.
+ * @param message ListMetadataImportsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.metastore.v1.IListMetadataImportsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListMetadataImportsResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListMetadataImportsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.metastore.v1.ListMetadataImportsResponse;
+
+ /**
+ * Decodes a ListMetadataImportsResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListMetadataImportsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.metastore.v1.ListMetadataImportsResponse;
+
+ /**
+ * Verifies a ListMetadataImportsResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListMetadataImportsResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListMetadataImportsResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.metastore.v1.ListMetadataImportsResponse;
+
+ /**
+ * Creates a plain object from a ListMetadataImportsResponse message. Also converts values to other types if specified.
+ * @param message ListMetadataImportsResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.metastore.v1.ListMetadataImportsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListMetadataImportsResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListMetadataImportsResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GetMetadataImportRequest. */
+ interface IGetMetadataImportRequest {
+
+ /** GetMetadataImportRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a GetMetadataImportRequest. */
+ class GetMetadataImportRequest implements IGetMetadataImportRequest {
+
+ /**
+ * Constructs a new GetMetadataImportRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.metastore.v1.IGetMetadataImportRequest);
+
+ /** GetMetadataImportRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new GetMetadataImportRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetMetadataImportRequest instance
+ */
+ public static create(properties?: google.cloud.metastore.v1.IGetMetadataImportRequest): google.cloud.metastore.v1.GetMetadataImportRequest;
+
+ /**
+ * Encodes the specified GetMetadataImportRequest message. Does not implicitly {@link google.cloud.metastore.v1.GetMetadataImportRequest.verify|verify} messages.
+ * @param message GetMetadataImportRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.metastore.v1.IGetMetadataImportRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetMetadataImportRequest message, length delimited. Does not implicitly {@link google.cloud.metastore.v1.GetMetadataImportRequest.verify|verify} messages.
+ * @param message GetMetadataImportRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.metastore.v1.IGetMetadataImportRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetMetadataImportRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetMetadataImportRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.metastore.v1.GetMetadataImportRequest;
+
+ /**
+ * Decodes a GetMetadataImportRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetMetadataImportRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.metastore.v1.GetMetadataImportRequest;
+
+ /**
+ * Verifies a GetMetadataImportRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GetMetadataImportRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetMetadataImportRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.metastore.v1.GetMetadataImportRequest;
+
+ /**
+ * Creates a plain object from a GetMetadataImportRequest message. Also converts values to other types if specified.
+ * @param message GetMetadataImportRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.metastore.v1.GetMetadataImportRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetMetadataImportRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetMetadataImportRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CreateMetadataImportRequest. */
+ interface ICreateMetadataImportRequest {
+
+ /** CreateMetadataImportRequest parent */
+ parent?: (string|null);
+
+ /** CreateMetadataImportRequest metadataImportId */
+ metadataImportId?: (string|null);
+
+ /** CreateMetadataImportRequest metadataImport */
+ metadataImport?: (google.cloud.metastore.v1.IMetadataImport|null);
+
+ /** CreateMetadataImportRequest requestId */
+ requestId?: (string|null);
+ }
+
+ /** Represents a CreateMetadataImportRequest. */
+ class CreateMetadataImportRequest implements ICreateMetadataImportRequest {
+
+ /**
+ * Constructs a new CreateMetadataImportRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.metastore.v1.ICreateMetadataImportRequest);
+
+ /** CreateMetadataImportRequest parent. */
+ public parent: string;
+
+ /** CreateMetadataImportRequest metadataImportId. */
+ public metadataImportId: string;
+
+ /** CreateMetadataImportRequest metadataImport. */
+ public metadataImport?: (google.cloud.metastore.v1.IMetadataImport|null);
+
+ /** CreateMetadataImportRequest requestId. */
+ public requestId: string;
+
+ /**
+ * Creates a new CreateMetadataImportRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CreateMetadataImportRequest instance
+ */
+ public static create(properties?: google.cloud.metastore.v1.ICreateMetadataImportRequest): google.cloud.metastore.v1.CreateMetadataImportRequest;
+
+ /**
+ * Encodes the specified CreateMetadataImportRequest message. Does not implicitly {@link google.cloud.metastore.v1.CreateMetadataImportRequest.verify|verify} messages.
+ * @param message CreateMetadataImportRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.metastore.v1.ICreateMetadataImportRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CreateMetadataImportRequest message, length delimited. Does not implicitly {@link google.cloud.metastore.v1.CreateMetadataImportRequest.verify|verify} messages.
+ * @param message CreateMetadataImportRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.metastore.v1.ICreateMetadataImportRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CreateMetadataImportRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CreateMetadataImportRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.metastore.v1.CreateMetadataImportRequest;
+
+ /**
+ * Decodes a CreateMetadataImportRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CreateMetadataImportRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.metastore.v1.CreateMetadataImportRequest;
+
+ /**
+ * Verifies a CreateMetadataImportRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a CreateMetadataImportRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CreateMetadataImportRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.metastore.v1.CreateMetadataImportRequest;
+
+ /**
+ * Creates a plain object from a CreateMetadataImportRequest message. Also converts values to other types if specified.
+ * @param message CreateMetadataImportRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.metastore.v1.CreateMetadataImportRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CreateMetadataImportRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CreateMetadataImportRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an UpdateMetadataImportRequest. */
+ interface IUpdateMetadataImportRequest {
+
+ /** UpdateMetadataImportRequest updateMask */
+ updateMask?: (google.protobuf.IFieldMask|null);
+
+ /** UpdateMetadataImportRequest metadataImport */
+ metadataImport?: (google.cloud.metastore.v1.IMetadataImport|null);
+
+ /** UpdateMetadataImportRequest requestId */
+ requestId?: (string|null);
+ }
+
+ /** Represents an UpdateMetadataImportRequest. */
+ class UpdateMetadataImportRequest implements IUpdateMetadataImportRequest {
+
+ /**
+ * Constructs a new UpdateMetadataImportRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.metastore.v1.IUpdateMetadataImportRequest);
+
+ /** UpdateMetadataImportRequest updateMask. */
+ public updateMask?: (google.protobuf.IFieldMask|null);
+
+ /** UpdateMetadataImportRequest metadataImport. */
+ public metadataImport?: (google.cloud.metastore.v1.IMetadataImport|null);
+
+ /** UpdateMetadataImportRequest requestId. */
+ public requestId: string;
+
+ /**
+ * Creates a new UpdateMetadataImportRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns UpdateMetadataImportRequest instance
+ */
+ public static create(properties?: google.cloud.metastore.v1.IUpdateMetadataImportRequest): google.cloud.metastore.v1.UpdateMetadataImportRequest;
+
+ /**
+ * Encodes the specified UpdateMetadataImportRequest message. Does not implicitly {@link google.cloud.metastore.v1.UpdateMetadataImportRequest.verify|verify} messages.
+ * @param message UpdateMetadataImportRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.metastore.v1.IUpdateMetadataImportRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified UpdateMetadataImportRequest message, length delimited. Does not implicitly {@link google.cloud.metastore.v1.UpdateMetadataImportRequest.verify|verify} messages.
+ * @param message UpdateMetadataImportRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.metastore.v1.IUpdateMetadataImportRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an UpdateMetadataImportRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns UpdateMetadataImportRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.metastore.v1.UpdateMetadataImportRequest;
+
+ /**
+ * Decodes an UpdateMetadataImportRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns UpdateMetadataImportRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.metastore.v1.UpdateMetadataImportRequest;
+
+ /**
+ * Verifies an UpdateMetadataImportRequest message.
+ * @param message Plain 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 UpdateMetadataImportRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns UpdateMetadataImportRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.metastore.v1.UpdateMetadataImportRequest;
+
+ /**
+ * Creates a plain object from an UpdateMetadataImportRequest message. Also converts values to other types if specified.
+ * @param message UpdateMetadataImportRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.metastore.v1.UpdateMetadataImportRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this UpdateMetadataImportRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for UpdateMetadataImportRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListBackupsRequest. */
+ interface IListBackupsRequest {
+
+ /** ListBackupsRequest parent */
+ parent?: (string|null);
+
+ /** ListBackupsRequest pageSize */
+ pageSize?: (number|null);
+
+ /** ListBackupsRequest pageToken */
+ pageToken?: (string|null);
+
+ /** ListBackupsRequest filter */
+ filter?: (string|null);
+
+ /** ListBackupsRequest orderBy */
+ orderBy?: (string|null);
+ }
+
+ /** Represents a ListBackupsRequest. */
+ class ListBackupsRequest implements IListBackupsRequest {
+
+ /**
+ * Constructs a new ListBackupsRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.metastore.v1.IListBackupsRequest);
+
+ /** ListBackupsRequest parent. */
+ public parent: string;
+
+ /** ListBackupsRequest pageSize. */
+ public pageSize: number;
+
+ /** ListBackupsRequest pageToken. */
+ public pageToken: string;
+
+ /** ListBackupsRequest filter. */
+ public filter: string;
+
+ /** ListBackupsRequest orderBy. */
+ public orderBy: string;
+
+ /**
+ * Creates a new ListBackupsRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListBackupsRequest instance
+ */
+ public static create(properties?: google.cloud.metastore.v1.IListBackupsRequest): google.cloud.metastore.v1.ListBackupsRequest;
+
+ /**
+ * Encodes the specified ListBackupsRequest message. Does not implicitly {@link google.cloud.metastore.v1.ListBackupsRequest.verify|verify} messages.
+ * @param message ListBackupsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.metastore.v1.IListBackupsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListBackupsRequest message, length delimited. Does not implicitly {@link google.cloud.metastore.v1.ListBackupsRequest.verify|verify} messages.
+ * @param message ListBackupsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.metastore.v1.IListBackupsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListBackupsRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListBackupsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.metastore.v1.ListBackupsRequest;
+
+ /**
+ * Decodes a ListBackupsRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListBackupsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.metastore.v1.ListBackupsRequest;
+
+ /**
+ * Verifies a ListBackupsRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListBackupsRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListBackupsRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.metastore.v1.ListBackupsRequest;
+
+ /**
+ * Creates a plain object from a ListBackupsRequest message. Also converts values to other types if specified.
+ * @param message ListBackupsRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.metastore.v1.ListBackupsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListBackupsRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListBackupsRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListBackupsResponse. */
+ interface IListBackupsResponse {
+
+ /** ListBackupsResponse backups */
+ backups?: (google.cloud.metastore.v1.IBackup[]|null);
+
+ /** ListBackupsResponse nextPageToken */
+ nextPageToken?: (string|null);
+
+ /** ListBackupsResponse unreachable */
+ unreachable?: (string[]|null);
+ }
+
+ /** Represents a ListBackupsResponse. */
+ class ListBackupsResponse implements IListBackupsResponse {
+
+ /**
+ * Constructs a new ListBackupsResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.metastore.v1.IListBackupsResponse);
+
+ /** ListBackupsResponse backups. */
+ public backups: google.cloud.metastore.v1.IBackup[];
+
+ /** ListBackupsResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /** ListBackupsResponse unreachable. */
+ public unreachable: string[];
+
+ /**
+ * Creates a new ListBackupsResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListBackupsResponse instance
+ */
+ public static create(properties?: google.cloud.metastore.v1.IListBackupsResponse): google.cloud.metastore.v1.ListBackupsResponse;
+
+ /**
+ * Encodes the specified ListBackupsResponse message. Does not implicitly {@link google.cloud.metastore.v1.ListBackupsResponse.verify|verify} messages.
+ * @param message ListBackupsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.metastore.v1.IListBackupsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListBackupsResponse message, length delimited. Does not implicitly {@link google.cloud.metastore.v1.ListBackupsResponse.verify|verify} messages.
+ * @param message ListBackupsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.metastore.v1.IListBackupsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListBackupsResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListBackupsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.metastore.v1.ListBackupsResponse;
+
+ /**
+ * Decodes a ListBackupsResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListBackupsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.metastore.v1.ListBackupsResponse;
+
+ /**
+ * Verifies a ListBackupsResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListBackupsResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListBackupsResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.metastore.v1.ListBackupsResponse;
+
+ /**
+ * Creates a plain object from a ListBackupsResponse message. Also converts values to other types if specified.
+ * @param message ListBackupsResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.metastore.v1.ListBackupsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListBackupsResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListBackupsResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GetBackupRequest. */
+ interface IGetBackupRequest {
+
+ /** GetBackupRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a GetBackupRequest. */
+ class GetBackupRequest implements IGetBackupRequest {
+
+ /**
+ * Constructs a new GetBackupRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.metastore.v1.IGetBackupRequest);
+
+ /** GetBackupRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new GetBackupRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetBackupRequest instance
+ */
+ public static create(properties?: google.cloud.metastore.v1.IGetBackupRequest): google.cloud.metastore.v1.GetBackupRequest;
+
+ /**
+ * Encodes the specified GetBackupRequest message. Does not implicitly {@link google.cloud.metastore.v1.GetBackupRequest.verify|verify} messages.
+ * @param message GetBackupRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.metastore.v1.IGetBackupRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetBackupRequest message, length delimited. Does not implicitly {@link google.cloud.metastore.v1.GetBackupRequest.verify|verify} messages.
+ * @param message GetBackupRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.metastore.v1.IGetBackupRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetBackupRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetBackupRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.metastore.v1.GetBackupRequest;
+
+ /**
+ * Decodes a GetBackupRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetBackupRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.metastore.v1.GetBackupRequest;
+
+ /**
+ * Verifies a GetBackupRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GetBackupRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetBackupRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.metastore.v1.GetBackupRequest;
+
+ /**
+ * Creates a plain object from a GetBackupRequest message. Also converts values to other types if specified.
+ * @param message GetBackupRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.metastore.v1.GetBackupRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetBackupRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetBackupRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CreateBackupRequest. */
+ interface ICreateBackupRequest {
+
+ /** CreateBackupRequest parent */
+ parent?: (string|null);
+
+ /** CreateBackupRequest backupId */
+ backupId?: (string|null);
+
+ /** CreateBackupRequest backup */
+ backup?: (google.cloud.metastore.v1.IBackup|null);
+
+ /** CreateBackupRequest requestId */
+ requestId?: (string|null);
+ }
+
+ /** Represents a CreateBackupRequest. */
+ class CreateBackupRequest implements ICreateBackupRequest {
+
+ /**
+ * Constructs a new CreateBackupRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.metastore.v1.ICreateBackupRequest);
+
+ /** CreateBackupRequest parent. */
+ public parent: string;
+
+ /** CreateBackupRequest backupId. */
+ public backupId: string;
+
+ /** CreateBackupRequest backup. */
+ public backup?: (google.cloud.metastore.v1.IBackup|null);
+
+ /** CreateBackupRequest requestId. */
+ public requestId: string;
+
+ /**
+ * Creates a new CreateBackupRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CreateBackupRequest instance
+ */
+ public static create(properties?: google.cloud.metastore.v1.ICreateBackupRequest): google.cloud.metastore.v1.CreateBackupRequest;
+
+ /**
+ * Encodes the specified CreateBackupRequest message. Does not implicitly {@link google.cloud.metastore.v1.CreateBackupRequest.verify|verify} messages.
+ * @param message CreateBackupRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.metastore.v1.ICreateBackupRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CreateBackupRequest message, length delimited. Does not implicitly {@link google.cloud.metastore.v1.CreateBackupRequest.verify|verify} messages.
+ * @param message CreateBackupRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.metastore.v1.ICreateBackupRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CreateBackupRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CreateBackupRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.metastore.v1.CreateBackupRequest;
+
+ /**
+ * Decodes a CreateBackupRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CreateBackupRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.metastore.v1.CreateBackupRequest;
+
+ /**
+ * Verifies a CreateBackupRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a CreateBackupRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CreateBackupRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.metastore.v1.CreateBackupRequest;
+
+ /**
+ * Creates a plain object from a CreateBackupRequest message. Also converts values to other types if specified.
+ * @param message CreateBackupRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.metastore.v1.CreateBackupRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CreateBackupRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CreateBackupRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DeleteBackupRequest. */
+ interface IDeleteBackupRequest {
+
+ /** DeleteBackupRequest name */
+ name?: (string|null);
+
+ /** DeleteBackupRequest requestId */
+ requestId?: (string|null);
+ }
+
+ /** Represents a DeleteBackupRequest. */
+ class DeleteBackupRequest implements IDeleteBackupRequest {
+
+ /**
+ * Constructs a new DeleteBackupRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.metastore.v1.IDeleteBackupRequest);
+
+ /** DeleteBackupRequest name. */
+ public name: string;
+
+ /** DeleteBackupRequest requestId. */
+ public requestId: string;
+
+ /**
+ * Creates a new DeleteBackupRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DeleteBackupRequest instance
+ */
+ public static create(properties?: google.cloud.metastore.v1.IDeleteBackupRequest): google.cloud.metastore.v1.DeleteBackupRequest;
+
+ /**
+ * Encodes the specified DeleteBackupRequest message. Does not implicitly {@link google.cloud.metastore.v1.DeleteBackupRequest.verify|verify} messages.
+ * @param message DeleteBackupRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.metastore.v1.IDeleteBackupRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DeleteBackupRequest message, length delimited. Does not implicitly {@link google.cloud.metastore.v1.DeleteBackupRequest.verify|verify} messages.
+ * @param message DeleteBackupRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.metastore.v1.IDeleteBackupRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DeleteBackupRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DeleteBackupRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.metastore.v1.DeleteBackupRequest;
+
+ /**
+ * Decodes a DeleteBackupRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DeleteBackupRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.metastore.v1.DeleteBackupRequest;
+
+ /**
+ * Verifies a DeleteBackupRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DeleteBackupRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DeleteBackupRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.metastore.v1.DeleteBackupRequest;
+
+ /**
+ * Creates a plain object from a DeleteBackupRequest message. Also converts values to other types if specified.
+ * @param message DeleteBackupRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.metastore.v1.DeleteBackupRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DeleteBackupRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DeleteBackupRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an ExportMetadataRequest. */
+ interface IExportMetadataRequest {
+
+ /** ExportMetadataRequest destinationGcsFolder */
+ destinationGcsFolder?: (string|null);
+
+ /** ExportMetadataRequest service */
+ service?: (string|null);
+
+ /** ExportMetadataRequest requestId */
+ requestId?: (string|null);
+
+ /** ExportMetadataRequest databaseDumpType */
+ databaseDumpType?: (google.cloud.metastore.v1.DatabaseDumpSpec.Type|keyof typeof google.cloud.metastore.v1.DatabaseDumpSpec.Type|null);
+ }
+
+ /** Represents an ExportMetadataRequest. */
+ class ExportMetadataRequest implements IExportMetadataRequest {
+
+ /**
+ * Constructs a new ExportMetadataRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.metastore.v1.IExportMetadataRequest);
+
+ /** ExportMetadataRequest destinationGcsFolder. */
+ public destinationGcsFolder?: (string|null);
+
+ /** ExportMetadataRequest service. */
+ public service: string;
+
+ /** ExportMetadataRequest requestId. */
+ public requestId: string;
+
+ /** ExportMetadataRequest databaseDumpType. */
+ public databaseDumpType: (google.cloud.metastore.v1.DatabaseDumpSpec.Type|keyof typeof google.cloud.metastore.v1.DatabaseDumpSpec.Type);
+
+ /** ExportMetadataRequest destination. */
+ public destination?: "destinationGcsFolder";
+
+ /**
+ * Creates a new ExportMetadataRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ExportMetadataRequest instance
+ */
+ public static create(properties?: google.cloud.metastore.v1.IExportMetadataRequest): google.cloud.metastore.v1.ExportMetadataRequest;
+
+ /**
+ * Encodes the specified ExportMetadataRequest message. Does not implicitly {@link google.cloud.metastore.v1.ExportMetadataRequest.verify|verify} messages.
+ * @param message ExportMetadataRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.metastore.v1.IExportMetadataRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ExportMetadataRequest message, length delimited. Does not implicitly {@link google.cloud.metastore.v1.ExportMetadataRequest.verify|verify} messages.
+ * @param message ExportMetadataRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.metastore.v1.IExportMetadataRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an ExportMetadataRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ExportMetadataRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.metastore.v1.ExportMetadataRequest;
+
+ /**
+ * Decodes an ExportMetadataRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ExportMetadataRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.metastore.v1.ExportMetadataRequest;
+
+ /**
+ * Verifies an ExportMetadataRequest message.
+ * @param message Plain 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 ExportMetadataRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ExportMetadataRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.metastore.v1.ExportMetadataRequest;
+
+ /**
+ * Creates a plain object from an ExportMetadataRequest message. Also converts values to other types if specified.
+ * @param message ExportMetadataRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.metastore.v1.ExportMetadataRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ExportMetadataRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ExportMetadataRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a RestoreServiceRequest. */
+ interface IRestoreServiceRequest {
+
+ /** RestoreServiceRequest service */
+ service?: (string|null);
+
+ /** RestoreServiceRequest backup */
+ backup?: (string|null);
+
+ /** RestoreServiceRequest restoreType */
+ restoreType?: (google.cloud.metastore.v1.Restore.RestoreType|keyof typeof google.cloud.metastore.v1.Restore.RestoreType|null);
+
+ /** RestoreServiceRequest requestId */
+ requestId?: (string|null);
+ }
+
+ /** Represents a RestoreServiceRequest. */
+ class RestoreServiceRequest implements IRestoreServiceRequest {
+
+ /**
+ * Constructs a new RestoreServiceRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.metastore.v1.IRestoreServiceRequest);
+
+ /** RestoreServiceRequest service. */
+ public service: string;
+
+ /** RestoreServiceRequest backup. */
+ public backup: string;
+
+ /** RestoreServiceRequest restoreType. */
+ public restoreType: (google.cloud.metastore.v1.Restore.RestoreType|keyof typeof google.cloud.metastore.v1.Restore.RestoreType);
+
+ /** RestoreServiceRequest requestId. */
+ public requestId: string;
+
+ /**
+ * Creates a new RestoreServiceRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns RestoreServiceRequest instance
+ */
+ public static create(properties?: google.cloud.metastore.v1.IRestoreServiceRequest): google.cloud.metastore.v1.RestoreServiceRequest;
+
+ /**
+ * Encodes the specified RestoreServiceRequest message. Does not implicitly {@link google.cloud.metastore.v1.RestoreServiceRequest.verify|verify} messages.
+ * @param message RestoreServiceRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.metastore.v1.IRestoreServiceRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified RestoreServiceRequest message, length delimited. Does not implicitly {@link google.cloud.metastore.v1.RestoreServiceRequest.verify|verify} messages.
+ * @param message RestoreServiceRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.metastore.v1.IRestoreServiceRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a RestoreServiceRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns RestoreServiceRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.metastore.v1.RestoreServiceRequest;
+
+ /**
+ * Decodes a RestoreServiceRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns RestoreServiceRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.metastore.v1.RestoreServiceRequest;
+
+ /**
+ * Verifies a RestoreServiceRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a RestoreServiceRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns RestoreServiceRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.metastore.v1.RestoreServiceRequest;
+
+ /**
+ * Creates a plain object from a RestoreServiceRequest message. Also converts values to other types if specified.
+ * @param message RestoreServiceRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.metastore.v1.RestoreServiceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this RestoreServiceRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for RestoreServiceRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an OperationMetadata. */
+ interface IOperationMetadata {
+
+ /** OperationMetadata createTime */
+ createTime?: (google.protobuf.ITimestamp|null);
+
+ /** OperationMetadata endTime */
+ endTime?: (google.protobuf.ITimestamp|null);
+
+ /** OperationMetadata target */
+ target?: (string|null);
+
+ /** OperationMetadata verb */
+ verb?: (string|null);
+
+ /** OperationMetadata statusMessage */
+ statusMessage?: (string|null);
+
+ /** OperationMetadata requestedCancellation */
+ requestedCancellation?: (boolean|null);
+
+ /** OperationMetadata apiVersion */
+ apiVersion?: (string|null);
+ }
+
+ /** Represents an OperationMetadata. */
+ class OperationMetadata implements IOperationMetadata {
+
+ /**
+ * Constructs a new OperationMetadata.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.metastore.v1.IOperationMetadata);
+
+ /** OperationMetadata createTime. */
+ public createTime?: (google.protobuf.ITimestamp|null);
+
+ /** OperationMetadata endTime. */
+ public endTime?: (google.protobuf.ITimestamp|null);
+
+ /** OperationMetadata target. */
+ public target: string;
+
+ /** OperationMetadata verb. */
+ public verb: string;
+
+ /** OperationMetadata statusMessage. */
+ public statusMessage: string;
+
+ /** OperationMetadata requestedCancellation. */
+ public requestedCancellation: boolean;
+
+ /** OperationMetadata apiVersion. */
+ public apiVersion: string;
+
+ /**
+ * Creates a new OperationMetadata instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns OperationMetadata instance
+ */
+ public static create(properties?: google.cloud.metastore.v1.IOperationMetadata): google.cloud.metastore.v1.OperationMetadata;
+
+ /**
+ * Encodes the specified OperationMetadata message. Does not implicitly {@link google.cloud.metastore.v1.OperationMetadata.verify|verify} messages.
+ * @param message OperationMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.metastore.v1.IOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified OperationMetadata message, length delimited. Does not implicitly {@link google.cloud.metastore.v1.OperationMetadata.verify|verify} messages.
+ * @param message OperationMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.metastore.v1.IOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an OperationMetadata message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns OperationMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.metastore.v1.OperationMetadata;
+
+ /**
+ * Decodes an OperationMetadata message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns OperationMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.metastore.v1.OperationMetadata;
+
+ /**
+ * Verifies an OperationMetadata message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an OperationMetadata message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns OperationMetadata
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.metastore.v1.OperationMetadata;
+
+ /**
+ * Creates a plain object from an OperationMetadata message. Also converts values to other types if specified.
+ * @param message OperationMetadata
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.metastore.v1.OperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this OperationMetadata to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for OperationMetadata
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a LocationMetadata. */
+ interface ILocationMetadata {
+
+ /** LocationMetadata supportedHiveMetastoreVersions */
+ supportedHiveMetastoreVersions?: (google.cloud.metastore.v1.LocationMetadata.IHiveMetastoreVersion[]|null);
+ }
+
+ /** Represents a LocationMetadata. */
+ class LocationMetadata implements ILocationMetadata {
+
+ /**
+ * Constructs a new LocationMetadata.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.metastore.v1.ILocationMetadata);
+
+ /** LocationMetadata supportedHiveMetastoreVersions. */
+ public supportedHiveMetastoreVersions: google.cloud.metastore.v1.LocationMetadata.IHiveMetastoreVersion[];
+
+ /**
+ * Creates a new LocationMetadata instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns LocationMetadata instance
+ */
+ public static create(properties?: google.cloud.metastore.v1.ILocationMetadata): google.cloud.metastore.v1.LocationMetadata;
+
+ /**
+ * Encodes the specified LocationMetadata message. Does not implicitly {@link google.cloud.metastore.v1.LocationMetadata.verify|verify} messages.
+ * @param message LocationMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.metastore.v1.ILocationMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified LocationMetadata message, length delimited. Does not implicitly {@link google.cloud.metastore.v1.LocationMetadata.verify|verify} messages.
+ * @param message LocationMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.metastore.v1.ILocationMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a LocationMetadata message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns LocationMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.metastore.v1.LocationMetadata;
+
+ /**
+ * Decodes a LocationMetadata message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns LocationMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.metastore.v1.LocationMetadata;
+
+ /**
+ * Verifies a LocationMetadata message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a LocationMetadata message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns LocationMetadata
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.metastore.v1.LocationMetadata;
+
+ /**
+ * Creates a plain object from a LocationMetadata message. Also converts values to other types if specified.
+ * @param message LocationMetadata
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.metastore.v1.LocationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this LocationMetadata to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for LocationMetadata
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace LocationMetadata {
+
+ /** Properties of a HiveMetastoreVersion. */
+ interface IHiveMetastoreVersion {
+
+ /** HiveMetastoreVersion version */
+ version?: (string|null);
+
+ /** HiveMetastoreVersion isDefault */
+ isDefault?: (boolean|null);
+ }
+
+ /** Represents a HiveMetastoreVersion. */
+ class HiveMetastoreVersion implements IHiveMetastoreVersion {
+
+ /**
+ * Constructs a new HiveMetastoreVersion.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.metastore.v1.LocationMetadata.IHiveMetastoreVersion);
+
+ /** HiveMetastoreVersion version. */
+ public version: string;
+
+ /** HiveMetastoreVersion isDefault. */
+ public isDefault: boolean;
+
+ /**
+ * Creates a new HiveMetastoreVersion instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns HiveMetastoreVersion instance
+ */
+ public static create(properties?: google.cloud.metastore.v1.LocationMetadata.IHiveMetastoreVersion): google.cloud.metastore.v1.LocationMetadata.HiveMetastoreVersion;
+
+ /**
+ * Encodes the specified HiveMetastoreVersion message. Does not implicitly {@link google.cloud.metastore.v1.LocationMetadata.HiveMetastoreVersion.verify|verify} messages.
+ * @param message HiveMetastoreVersion message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.metastore.v1.LocationMetadata.IHiveMetastoreVersion, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified HiveMetastoreVersion message, length delimited. Does not implicitly {@link google.cloud.metastore.v1.LocationMetadata.HiveMetastoreVersion.verify|verify} messages.
+ * @param message HiveMetastoreVersion message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.metastore.v1.LocationMetadata.IHiveMetastoreVersion, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a HiveMetastoreVersion message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns HiveMetastoreVersion
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.metastore.v1.LocationMetadata.HiveMetastoreVersion;
+
+ /**
+ * Decodes a HiveMetastoreVersion message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns HiveMetastoreVersion
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.metastore.v1.LocationMetadata.HiveMetastoreVersion;
+
+ /**
+ * Verifies a HiveMetastoreVersion message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a HiveMetastoreVersion message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns HiveMetastoreVersion
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.metastore.v1.LocationMetadata.HiveMetastoreVersion;
+
+ /**
+ * Creates a plain object from a HiveMetastoreVersion message. Also converts values to other types if specified.
+ * @param message HiveMetastoreVersion
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.metastore.v1.LocationMetadata.HiveMetastoreVersion, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this HiveMetastoreVersion to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for HiveMetastoreVersion
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of a DatabaseDumpSpec. */
+ interface IDatabaseDumpSpec {
+ }
+
+ /** Represents a DatabaseDumpSpec. */
+ class DatabaseDumpSpec implements IDatabaseDumpSpec {
+
+ /**
+ * Constructs a new DatabaseDumpSpec.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.metastore.v1.IDatabaseDumpSpec);
+
+ /**
+ * Creates a new DatabaseDumpSpec instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DatabaseDumpSpec instance
+ */
+ public static create(properties?: google.cloud.metastore.v1.IDatabaseDumpSpec): google.cloud.metastore.v1.DatabaseDumpSpec;
+
+ /**
+ * Encodes the specified DatabaseDumpSpec message. Does not implicitly {@link google.cloud.metastore.v1.DatabaseDumpSpec.verify|verify} messages.
+ * @param message DatabaseDumpSpec message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.metastore.v1.IDatabaseDumpSpec, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DatabaseDumpSpec message, length delimited. Does not implicitly {@link google.cloud.metastore.v1.DatabaseDumpSpec.verify|verify} messages.
+ * @param message DatabaseDumpSpec message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.metastore.v1.IDatabaseDumpSpec, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DatabaseDumpSpec message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DatabaseDumpSpec
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.metastore.v1.DatabaseDumpSpec;
+
+ /**
+ * Decodes a DatabaseDumpSpec message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DatabaseDumpSpec
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.metastore.v1.DatabaseDumpSpec;
+
+ /**
+ * Verifies a DatabaseDumpSpec message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DatabaseDumpSpec message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DatabaseDumpSpec
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.metastore.v1.DatabaseDumpSpec;
+
+ /**
+ * Creates a plain object from a DatabaseDumpSpec message. Also converts values to other types if specified.
+ * @param message DatabaseDumpSpec
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.metastore.v1.DatabaseDumpSpec, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DatabaseDumpSpec to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DatabaseDumpSpec
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace DatabaseDumpSpec {
+
+ /** Type enum. */
+ enum Type {
+ TYPE_UNSPECIFIED = 0,
+ MYSQL = 1,
+ AVRO = 2
+ }
+ }
+ }
+
+ /** Namespace v1alpha. */
+ namespace v1alpha {
+
+ /** Represents a DataprocMetastore */
+ class DataprocMetastore extends $protobuf.rpc.Service {
+
+ /**
+ * Constructs a new DataprocMetastore 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 DataprocMetastore 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): DataprocMetastore;
+
+ /**
+ * Calls ListServices.
+ * @param request ListServicesRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListServicesResponse
+ */
+ public listServices(request: google.cloud.metastore.v1alpha.IListServicesRequest, callback: google.cloud.metastore.v1alpha.DataprocMetastore.ListServicesCallback): void;
+
+ /**
+ * Calls ListServices.
+ * @param request ListServicesRequest message or plain object
+ * @returns Promise
+ */
+ public listServices(request: google.cloud.metastore.v1alpha.IListServicesRequest): Promise;
+
+ /**
+ * Calls GetService.
+ * @param request GetServiceRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Service
+ */
+ public getService(request: google.cloud.metastore.v1alpha.IGetServiceRequest, callback: google.cloud.metastore.v1alpha.DataprocMetastore.GetServiceCallback): void;
+
+ /**
+ * Calls GetService.
+ * @param request GetServiceRequest message or plain object
+ * @returns Promise
+ */
+ public getService(request: google.cloud.metastore.v1alpha.IGetServiceRequest): Promise;
+
+ /**
+ * Calls CreateService.
+ * @param request CreateServiceRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public createService(request: google.cloud.metastore.v1alpha.ICreateServiceRequest, callback: google.cloud.metastore.v1alpha.DataprocMetastore.CreateServiceCallback): void;
+
+ /**
+ * Calls CreateService.
+ * @param request CreateServiceRequest message or plain object
+ * @returns Promise
+ */
+ public createService(request: google.cloud.metastore.v1alpha.ICreateServiceRequest): Promise;
+
+ /**
+ * Calls UpdateService.
+ * @param request UpdateServiceRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public updateService(request: google.cloud.metastore.v1alpha.IUpdateServiceRequest, callback: google.cloud.metastore.v1alpha.DataprocMetastore.UpdateServiceCallback): void;
+
+ /**
+ * Calls UpdateService.
+ * @param request UpdateServiceRequest message or plain object
+ * @returns Promise
+ */
+ public updateService(request: google.cloud.metastore.v1alpha.IUpdateServiceRequest): Promise;
+
+ /**
+ * Calls DeleteService.
+ * @param request DeleteServiceRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public deleteService(request: google.cloud.metastore.v1alpha.IDeleteServiceRequest, callback: google.cloud.metastore.v1alpha.DataprocMetastore.DeleteServiceCallback): void;
+
+ /**
+ * Calls DeleteService.
+ * @param request DeleteServiceRequest message or plain object
+ * @returns Promise
+ */
+ public deleteService(request: google.cloud.metastore.v1alpha.IDeleteServiceRequest): Promise;
+
+ /**
+ * Calls ListMetadataImports.
+ * @param request ListMetadataImportsRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListMetadataImportsResponse
+ */
+ public listMetadataImports(request: google.cloud.metastore.v1alpha.IListMetadataImportsRequest, callback: google.cloud.metastore.v1alpha.DataprocMetastore.ListMetadataImportsCallback): void;
+
+ /**
+ * Calls ListMetadataImports.
+ * @param request ListMetadataImportsRequest message or plain object
+ * @returns Promise
+ */
+ public listMetadataImports(request: google.cloud.metastore.v1alpha.IListMetadataImportsRequest): Promise;
+
+ /**
+ * Calls GetMetadataImport.
+ * @param request GetMetadataImportRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and MetadataImport
+ */
+ public getMetadataImport(request: google.cloud.metastore.v1alpha.IGetMetadataImportRequest, callback: google.cloud.metastore.v1alpha.DataprocMetastore.GetMetadataImportCallback): void;
+
+ /**
+ * Calls GetMetadataImport.
+ * @param request GetMetadataImportRequest message or plain object
+ * @returns Promise
+ */
+ public getMetadataImport(request: google.cloud.metastore.v1alpha.IGetMetadataImportRequest): Promise;
+
+ /**
+ * Calls CreateMetadataImport.
+ * @param request CreateMetadataImportRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public createMetadataImport(request: google.cloud.metastore.v1alpha.ICreateMetadataImportRequest, callback: google.cloud.metastore.v1alpha.DataprocMetastore.CreateMetadataImportCallback): void;
+
+ /**
+ * Calls CreateMetadataImport.
+ * @param request CreateMetadataImportRequest message or plain object
+ * @returns Promise
+ */
+ public createMetadataImport(request: google.cloud.metastore.v1alpha.ICreateMetadataImportRequest): Promise;
+
+ /**
+ * Calls UpdateMetadataImport.
+ * @param request UpdateMetadataImportRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public updateMetadataImport(request: google.cloud.metastore.v1alpha.IUpdateMetadataImportRequest, callback: google.cloud.metastore.v1alpha.DataprocMetastore.UpdateMetadataImportCallback): void;
+
+ /**
+ * Calls UpdateMetadataImport.
+ * @param request UpdateMetadataImportRequest message or plain object
+ * @returns Promise
+ */
+ public updateMetadataImport(request: google.cloud.metastore.v1alpha.IUpdateMetadataImportRequest): Promise;
+
+ /**
+ * Calls ExportMetadata.
+ * @param request ExportMetadataRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public exportMetadata(request: google.cloud.metastore.v1alpha.IExportMetadataRequest, callback: google.cloud.metastore.v1alpha.DataprocMetastore.ExportMetadataCallback): void;
+
+ /**
+ * Calls ExportMetadata.
+ * @param request ExportMetadataRequest message or plain object
+ * @returns Promise
+ */
+ public exportMetadata(request: google.cloud.metastore.v1alpha.IExportMetadataRequest): Promise;
+
+ /**
+ * Calls RestoreService.
+ * @param request RestoreServiceRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public restoreService(request: google.cloud.metastore.v1alpha.IRestoreServiceRequest, callback: google.cloud.metastore.v1alpha.DataprocMetastore.RestoreServiceCallback): void;
+
+ /**
+ * Calls RestoreService.
+ * @param request RestoreServiceRequest message or plain object
+ * @returns Promise
+ */
+ public restoreService(request: google.cloud.metastore.v1alpha.IRestoreServiceRequest): Promise;
+
+ /**
+ * Calls ListBackups.
+ * @param request ListBackupsRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListBackupsResponse
+ */
+ public listBackups(request: google.cloud.metastore.v1alpha.IListBackupsRequest, callback: google.cloud.metastore.v1alpha.DataprocMetastore.ListBackupsCallback): void;
+
+ /**
+ * Calls ListBackups.
+ * @param request ListBackupsRequest message or plain object
+ * @returns Promise
+ */
+ public listBackups(request: google.cloud.metastore.v1alpha.IListBackupsRequest): Promise;
+
+ /**
+ * Calls GetBackup.
+ * @param request GetBackupRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Backup
+ */
+ public getBackup(request: google.cloud.metastore.v1alpha.IGetBackupRequest, callback: google.cloud.metastore.v1alpha.DataprocMetastore.GetBackupCallback): void;
+
+ /**
+ * Calls GetBackup.
+ * @param request GetBackupRequest message or plain object
+ * @returns Promise
+ */
+ public getBackup(request: google.cloud.metastore.v1alpha.IGetBackupRequest): Promise;
+
+ /**
+ * Calls CreateBackup.
+ * @param request CreateBackupRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public createBackup(request: google.cloud.metastore.v1alpha.ICreateBackupRequest, callback: google.cloud.metastore.v1alpha.DataprocMetastore.CreateBackupCallback): void;
+
+ /**
+ * Calls CreateBackup.
+ * @param request CreateBackupRequest message or plain object
+ * @returns Promise
+ */
+ public createBackup(request: google.cloud.metastore.v1alpha.ICreateBackupRequest): Promise;
+
+ /**
+ * Calls DeleteBackup.
+ * @param request DeleteBackupRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public deleteBackup(request: google.cloud.metastore.v1alpha.IDeleteBackupRequest, callback: google.cloud.metastore.v1alpha.DataprocMetastore.DeleteBackupCallback): void;
+
+ /**
+ * Calls DeleteBackup.
+ * @param request DeleteBackupRequest message or plain object
+ * @returns Promise
+ */
+ public deleteBackup(request: google.cloud.metastore.v1alpha.IDeleteBackupRequest): Promise;
+ }
+
+ namespace DataprocMetastore {
+
+ /**
+ * Callback as used by {@link google.cloud.metastore.v1alpha.DataprocMetastore|listServices}.
+ * @param error Error, if any
+ * @param [response] ListServicesResponse
+ */
+ type ListServicesCallback = (error: (Error|null), response?: google.cloud.metastore.v1alpha.ListServicesResponse) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.metastore.v1alpha.DataprocMetastore|getService}.
+ * @param error Error, if any
+ * @param [response] Service
+ */
+ type GetServiceCallback = (error: (Error|null), response?: google.cloud.metastore.v1alpha.Service) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.metastore.v1alpha.DataprocMetastore|createService}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type CreateServiceCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.metastore.v1alpha.DataprocMetastore|updateService}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type UpdateServiceCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.metastore.v1alpha.DataprocMetastore|deleteService}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type DeleteServiceCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.metastore.v1alpha.DataprocMetastore|listMetadataImports}.
+ * @param error Error, if any
+ * @param [response] ListMetadataImportsResponse
+ */
+ type ListMetadataImportsCallback = (error: (Error|null), response?: google.cloud.metastore.v1alpha.ListMetadataImportsResponse) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.metastore.v1alpha.DataprocMetastore|getMetadataImport}.
+ * @param error Error, if any
+ * @param [response] MetadataImport
+ */
+ type GetMetadataImportCallback = (error: (Error|null), response?: google.cloud.metastore.v1alpha.MetadataImport) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.metastore.v1alpha.DataprocMetastore|createMetadataImport}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type CreateMetadataImportCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.metastore.v1alpha.DataprocMetastore|updateMetadataImport}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type UpdateMetadataImportCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.metastore.v1alpha.DataprocMetastore|exportMetadata}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type ExportMetadataCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.metastore.v1alpha.DataprocMetastore|restoreService}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type RestoreServiceCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.metastore.v1alpha.DataprocMetastore|listBackups}.
+ * @param error Error, if any
+ * @param [response] ListBackupsResponse
+ */
+ type ListBackupsCallback = (error: (Error|null), response?: google.cloud.metastore.v1alpha.ListBackupsResponse) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.metastore.v1alpha.DataprocMetastore|getBackup}.
+ * @param error Error, if any
+ * @param [response] Backup
+ */
+ type GetBackupCallback = (error: (Error|null), response?: google.cloud.metastore.v1alpha.Backup) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.metastore.v1alpha.DataprocMetastore|createBackup}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type CreateBackupCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.metastore.v1alpha.DataprocMetastore|deleteBackup}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type DeleteBackupCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+ }
+
+ /** Properties of a Service. */
+ interface IService {
+
+ /** Service hiveMetastoreConfig */
+ hiveMetastoreConfig?: (google.cloud.metastore.v1alpha.IHiveMetastoreConfig|null);
+
+ /** Service name */
+ name?: (string|null);
+
+ /** Service createTime */
+ createTime?: (google.protobuf.ITimestamp|null);
+
+ /** Service updateTime */
+ updateTime?: (google.protobuf.ITimestamp|null);
+
+ /** Service labels */
+ labels?: ({ [k: string]: string }|null);
+
+ /** Service network */
+ network?: (string|null);
+
+ /** Service endpointUri */
+ endpointUri?: (string|null);
+
+ /** Service port */
+ port?: (number|null);
+
+ /** Service state */
+ state?: (google.cloud.metastore.v1alpha.Service.State|keyof typeof google.cloud.metastore.v1alpha.Service.State|null);
+
+ /** Service stateMessage */
+ stateMessage?: (string|null);
+
+ /** Service artifactGcsUri */
+ artifactGcsUri?: (string|null);
+
+ /** Service tier */
+ tier?: (google.cloud.metastore.v1alpha.Service.Tier|keyof typeof google.cloud.metastore.v1alpha.Service.Tier|null);
+
+ /** Service metadataIntegration */
+ metadataIntegration?: (google.cloud.metastore.v1alpha.IMetadataIntegration|null);
+
+ /** Service maintenanceWindow */
+ maintenanceWindow?: (google.cloud.metastore.v1alpha.IMaintenanceWindow|null);
+
+ /** Service uid */
+ uid?: (string|null);
+
+ /** Service metadataManagementActivity */
+ metadataManagementActivity?: (google.cloud.metastore.v1alpha.IMetadataManagementActivity|null);
+
+ /** Service releaseChannel */
+ releaseChannel?: (google.cloud.metastore.v1alpha.Service.ReleaseChannel|keyof typeof google.cloud.metastore.v1alpha.Service.ReleaseChannel|null);
+
+ /** Service encryptionConfig */
+ encryptionConfig?: (google.cloud.metastore.v1alpha.IEncryptionConfig|null);
+
+ /** Service networkConfig */
+ networkConfig?: (google.cloud.metastore.v1alpha.INetworkConfig|null);
+
+ /** Service databaseType */
+ databaseType?: (google.cloud.metastore.v1alpha.Service.DatabaseType|keyof typeof google.cloud.metastore.v1alpha.Service.DatabaseType|null);
+ }
+
+ /** Represents a Service. */
+ class Service implements IService {
+
+ /**
+ * Constructs a new Service.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.metastore.v1alpha.IService);
+
+ /** Service hiveMetastoreConfig. */
+ public hiveMetastoreConfig?: (google.cloud.metastore.v1alpha.IHiveMetastoreConfig|null);
+
+ /** Service name. */
+ public name: string;
+
+ /** Service createTime. */
+ public createTime?: (google.protobuf.ITimestamp|null);
+
+ /** Service updateTime. */
+ public updateTime?: (google.protobuf.ITimestamp|null);
+
+ /** Service labels. */
+ public labels: { [k: string]: string };
+
+ /** Service network. */
+ public network: string;
+
+ /** Service endpointUri. */
+ public endpointUri: string;
+
+ /** Service port. */
+ public port: number;
+
+ /** Service state. */
+ public state: (google.cloud.metastore.v1alpha.Service.State|keyof typeof google.cloud.metastore.v1alpha.Service.State);
+
+ /** Service stateMessage. */
+ public stateMessage: string;
+
+ /** Service artifactGcsUri. */
+ public artifactGcsUri: string;
+
+ /** Service tier. */
+ public tier: (google.cloud.metastore.v1alpha.Service.Tier|keyof typeof google.cloud.metastore.v1alpha.Service.Tier);
+
+ /** Service metadataIntegration. */
+ public metadataIntegration?: (google.cloud.metastore.v1alpha.IMetadataIntegration|null);
+
+ /** Service maintenanceWindow. */
+ public maintenanceWindow?: (google.cloud.metastore.v1alpha.IMaintenanceWindow|null);
+
+ /** Service uid. */
+ public uid: string;
+
+ /** Service metadataManagementActivity. */
+ public metadataManagementActivity?: (google.cloud.metastore.v1alpha.IMetadataManagementActivity|null);
+
+ /** Service releaseChannel. */
+ public releaseChannel: (google.cloud.metastore.v1alpha.Service.ReleaseChannel|keyof typeof google.cloud.metastore.v1alpha.Service.ReleaseChannel);
+
+ /** Service encryptionConfig. */
+ public encryptionConfig?: (google.cloud.metastore.v1alpha.IEncryptionConfig|null);
+
+ /** Service networkConfig. */
+ public networkConfig?: (google.cloud.metastore.v1alpha.INetworkConfig|null);
+
+ /** Service databaseType. */
+ public databaseType: (google.cloud.metastore.v1alpha.Service.DatabaseType|keyof typeof google.cloud.metastore.v1alpha.Service.DatabaseType);
+
+ /** Service metastoreConfig. */
+ public metastoreConfig?: "hiveMetastoreConfig";
+
+ /**
+ * Creates a new Service instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Service instance
+ */
+ public static create(properties?: google.cloud.metastore.v1alpha.IService): google.cloud.metastore.v1alpha.Service;
+
+ /**
+ * Encodes the specified Service message. Does not implicitly {@link google.cloud.metastore.v1alpha.Service.verify|verify} messages.
+ * @param message Service message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.metastore.v1alpha.IService, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Service message, length delimited. Does not implicitly {@link google.cloud.metastore.v1alpha.Service.verify|verify} messages.
+ * @param message Service message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.metastore.v1alpha.IService, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Service message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Service
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.metastore.v1alpha.Service;
+
+ /**
+ * Decodes a Service message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Service
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.metastore.v1alpha.Service;
+
+ /**
+ * Verifies a Service message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Service message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Service
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.metastore.v1alpha.Service;
+
+ /**
+ * Creates a plain object from a Service message. Also converts values to other types if specified.
+ * @param message Service
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.metastore.v1alpha.Service, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Service to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Service
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace Service {
+
+ /** State enum. */
+ enum State {
+ STATE_UNSPECIFIED = 0,
+ CREATING = 1,
+ ACTIVE = 2,
+ SUSPENDING = 3,
+ SUSPENDED = 4,
+ UPDATING = 5,
+ DELETING = 6,
+ ERROR = 7
+ }
+
+ /** Tier enum. */
+ enum Tier {
+ TIER_UNSPECIFIED = 0,
+ DEVELOPER = 1,
+ ENTERPRISE = 3
+ }
+
+ /** ReleaseChannel enum. */
+ enum ReleaseChannel {
+ RELEASE_CHANNEL_UNSPECIFIED = 0,
+ CANARY = 1,
+ STABLE = 2
+ }
+
+ /** DatabaseType enum. */
+ enum DatabaseType {
+ DATABASE_TYPE_UNSPECIFIED = 0,
+ MYSQL = 1,
+ SPANNER = 2
+ }
+ }
+
+ /** Properties of a MetadataIntegration. */
+ interface IMetadataIntegration {
+
+ /** MetadataIntegration dataCatalogConfig */
+ dataCatalogConfig?: (google.cloud.metastore.v1alpha.IDataCatalogConfig|null);
+
+ /** MetadataIntegration dataplexConfig */
+ dataplexConfig?: (google.cloud.metastore.v1alpha.IDataplexConfig|null);
+ }
+
+ /** Represents a MetadataIntegration. */
+ class MetadataIntegration implements IMetadataIntegration {
+
+ /**
+ * Constructs a new MetadataIntegration.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.metastore.v1alpha.IMetadataIntegration);
+
+ /** MetadataIntegration dataCatalogConfig. */
+ public dataCatalogConfig?: (google.cloud.metastore.v1alpha.IDataCatalogConfig|null);
+
+ /** MetadataIntegration dataplexConfig. */
+ public dataplexConfig?: (google.cloud.metastore.v1alpha.IDataplexConfig|null);
+
+ /**
+ * Creates a new MetadataIntegration instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns MetadataIntegration instance
+ */
+ public static create(properties?: google.cloud.metastore.v1alpha.IMetadataIntegration): google.cloud.metastore.v1alpha.MetadataIntegration;
+
+ /**
+ * Encodes the specified MetadataIntegration message. Does not implicitly {@link google.cloud.metastore.v1alpha.MetadataIntegration.verify|verify} messages.
+ * @param message MetadataIntegration message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.metastore.v1alpha.IMetadataIntegration, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified MetadataIntegration message, length delimited. Does not implicitly {@link google.cloud.metastore.v1alpha.MetadataIntegration.verify|verify} messages.
+ * @param message MetadataIntegration message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.metastore.v1alpha.IMetadataIntegration, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a MetadataIntegration message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns MetadataIntegration
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.metastore.v1alpha.MetadataIntegration;
+
+ /**
+ * Decodes a MetadataIntegration message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns MetadataIntegration
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.metastore.v1alpha.MetadataIntegration;
+
+ /**
+ * Verifies a MetadataIntegration message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a MetadataIntegration message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns MetadataIntegration
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.metastore.v1alpha.MetadataIntegration;
+
+ /**
+ * Creates a plain object from a MetadataIntegration message. Also converts values to other types if specified.
+ * @param message MetadataIntegration
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.metastore.v1alpha.MetadataIntegration, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this MetadataIntegration to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for MetadataIntegration
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DataCatalogConfig. */
+ interface IDataCatalogConfig {
+
+ /** DataCatalogConfig enabled */
+ enabled?: (boolean|null);
+ }
+
+ /** Represents a DataCatalogConfig. */
+ class DataCatalogConfig implements IDataCatalogConfig {
+
+ /**
+ * Constructs a new DataCatalogConfig.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.metastore.v1alpha.IDataCatalogConfig);
+
+ /** DataCatalogConfig enabled. */
+ public enabled: boolean;
+
+ /**
+ * Creates a new DataCatalogConfig instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DataCatalogConfig instance
+ */
+ public static create(properties?: google.cloud.metastore.v1alpha.IDataCatalogConfig): google.cloud.metastore.v1alpha.DataCatalogConfig;
+
+ /**
+ * Encodes the specified DataCatalogConfig message. Does not implicitly {@link google.cloud.metastore.v1alpha.DataCatalogConfig.verify|verify} messages.
+ * @param message DataCatalogConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.metastore.v1alpha.IDataCatalogConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DataCatalogConfig message, length delimited. Does not implicitly {@link google.cloud.metastore.v1alpha.DataCatalogConfig.verify|verify} messages.
+ * @param message DataCatalogConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.metastore.v1alpha.IDataCatalogConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DataCatalogConfig message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DataCatalogConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.metastore.v1alpha.DataCatalogConfig;
+
+ /**
+ * Decodes a DataCatalogConfig message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DataCatalogConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.metastore.v1alpha.DataCatalogConfig;
+
+ /**
+ * Verifies a DataCatalogConfig message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DataCatalogConfig message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DataCatalogConfig
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.metastore.v1alpha.DataCatalogConfig;
+
+ /**
+ * Creates a plain object from a DataCatalogConfig message. Also converts values to other types if specified.
+ * @param message DataCatalogConfig
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.metastore.v1alpha.DataCatalogConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DataCatalogConfig to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DataCatalogConfig
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DataplexConfig. */
+ interface IDataplexConfig {
+
+ /** DataplexConfig lakeResources */
+ lakeResources?: ({ [k: string]: google.cloud.metastore.v1alpha.ILake }|null);
+ }
+
+ /** Represents a DataplexConfig. */
+ class DataplexConfig implements IDataplexConfig {
+
+ /**
+ * Constructs a new DataplexConfig.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.metastore.v1alpha.IDataplexConfig);
+
+ /** DataplexConfig lakeResources. */
+ public lakeResources: { [k: string]: google.cloud.metastore.v1alpha.ILake };
+
+ /**
+ * Creates a new DataplexConfig instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DataplexConfig instance
+ */
+ public static create(properties?: google.cloud.metastore.v1alpha.IDataplexConfig): google.cloud.metastore.v1alpha.DataplexConfig;
+
+ /**
+ * Encodes the specified DataplexConfig message. Does not implicitly {@link google.cloud.metastore.v1alpha.DataplexConfig.verify|verify} messages.
+ * @param message DataplexConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.metastore.v1alpha.IDataplexConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DataplexConfig message, length delimited. Does not implicitly {@link google.cloud.metastore.v1alpha.DataplexConfig.verify|verify} messages.
+ * @param message DataplexConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.metastore.v1alpha.IDataplexConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DataplexConfig message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DataplexConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.metastore.v1alpha.DataplexConfig;
+
+ /**
+ * Decodes a DataplexConfig message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DataplexConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.metastore.v1alpha.DataplexConfig;
+
+ /**
+ * Verifies a DataplexConfig message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DataplexConfig message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DataplexConfig
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.metastore.v1alpha.DataplexConfig;
+
+ /**
+ * Creates a plain object from a DataplexConfig message. Also converts values to other types if specified.
+ * @param message DataplexConfig
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.metastore.v1alpha.DataplexConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DataplexConfig to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DataplexConfig
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Lake. */
+ interface ILake {
+
+ /** Lake name */
+ name?: (string|null);
+ }
+
+ /** Represents a Lake. */
+ class Lake implements ILake {
+
+ /**
+ * Constructs a new Lake.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.metastore.v1alpha.ILake);
+
+ /** Lake name. */
+ public name: string;
+
+ /**
+ * Creates a new Lake instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Lake instance
+ */
+ public static create(properties?: google.cloud.metastore.v1alpha.ILake): google.cloud.metastore.v1alpha.Lake;
+
+ /**
+ * Encodes the specified Lake message. Does not implicitly {@link google.cloud.metastore.v1alpha.Lake.verify|verify} messages.
+ * @param message Lake message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.metastore.v1alpha.ILake, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Lake message, length delimited. Does not implicitly {@link google.cloud.metastore.v1alpha.Lake.verify|verify} messages.
+ * @param message Lake message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.metastore.v1alpha.ILake, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Lake message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Lake
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.metastore.v1alpha.Lake;
+
+ /**
+ * Decodes a Lake message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Lake
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.metastore.v1alpha.Lake;
+
+ /**
+ * Verifies a Lake message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Lake message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Lake
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.metastore.v1alpha.Lake;
+
+ /**
+ * Creates a plain object from a Lake message. Also converts values to other types if specified.
+ * @param message Lake
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.metastore.v1alpha.Lake, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Lake to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Lake
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a MaintenanceWindow. */
+ interface IMaintenanceWindow {
+
+ /** MaintenanceWindow hourOfDay */
+ hourOfDay?: (google.protobuf.IInt32Value|null);
+
+ /** MaintenanceWindow dayOfWeek */
+ dayOfWeek?: (google.type.DayOfWeek|keyof typeof google.type.DayOfWeek|null);
+ }
+
+ /** Represents a MaintenanceWindow. */
+ class MaintenanceWindow implements IMaintenanceWindow {
+
+ /**
+ * Constructs a new MaintenanceWindow.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.metastore.v1alpha.IMaintenanceWindow);
+
+ /** MaintenanceWindow hourOfDay. */
+ public hourOfDay?: (google.protobuf.IInt32Value|null);
+
+ /** MaintenanceWindow dayOfWeek. */
+ public dayOfWeek: (google.type.DayOfWeek|keyof typeof google.type.DayOfWeek);
+
+ /**
+ * Creates a new MaintenanceWindow instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns MaintenanceWindow instance
+ */
+ public static create(properties?: google.cloud.metastore.v1alpha.IMaintenanceWindow): google.cloud.metastore.v1alpha.MaintenanceWindow;
+
+ /**
+ * Encodes the specified MaintenanceWindow message. Does not implicitly {@link google.cloud.metastore.v1alpha.MaintenanceWindow.verify|verify} messages.
+ * @param message MaintenanceWindow message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.metastore.v1alpha.IMaintenanceWindow, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified MaintenanceWindow message, length delimited. Does not implicitly {@link google.cloud.metastore.v1alpha.MaintenanceWindow.verify|verify} messages.
+ * @param message MaintenanceWindow message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.metastore.v1alpha.IMaintenanceWindow, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a MaintenanceWindow message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns MaintenanceWindow
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.metastore.v1alpha.MaintenanceWindow;
+
+ /**
+ * Decodes a MaintenanceWindow message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns MaintenanceWindow
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.metastore.v1alpha.MaintenanceWindow;
+
+ /**
+ * Verifies a MaintenanceWindow message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a MaintenanceWindow message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns MaintenanceWindow
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.metastore.v1alpha.MaintenanceWindow;
+
+ /**
+ * Creates a plain object from a MaintenanceWindow message. Also converts values to other types if specified.
+ * @param message MaintenanceWindow
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.metastore.v1alpha.MaintenanceWindow, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this MaintenanceWindow to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for MaintenanceWindow
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a HiveMetastoreConfig. */
+ interface IHiveMetastoreConfig {
+
+ /** HiveMetastoreConfig version */
+ version?: (string|null);
+
+ /** HiveMetastoreConfig configOverrides */
+ configOverrides?: ({ [k: string]: string }|null);
+
+ /** HiveMetastoreConfig kerberosConfig */
+ kerberosConfig?: (google.cloud.metastore.v1alpha.IKerberosConfig|null);
+
+ /** HiveMetastoreConfig endpointProtocol */
+ endpointProtocol?: (google.cloud.metastore.v1alpha.HiveMetastoreConfig.EndpointProtocol|keyof typeof google.cloud.metastore.v1alpha.HiveMetastoreConfig.EndpointProtocol|null);
+
+ /** HiveMetastoreConfig auxiliaryVersions */
+ auxiliaryVersions?: ({ [k: string]: google.cloud.metastore.v1alpha.IAuxiliaryVersionConfig }|null);
+ }
+
+ /** Represents a HiveMetastoreConfig. */
+ class HiveMetastoreConfig implements IHiveMetastoreConfig {
+
+ /**
+ * Constructs a new HiveMetastoreConfig.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.metastore.v1alpha.IHiveMetastoreConfig);
+
+ /** HiveMetastoreConfig version. */
+ public version: string;
+
+ /** HiveMetastoreConfig configOverrides. */
+ public configOverrides: { [k: string]: string };
+
+ /** HiveMetastoreConfig kerberosConfig. */
+ public kerberosConfig?: (google.cloud.metastore.v1alpha.IKerberosConfig|null);
+
+ /** HiveMetastoreConfig endpointProtocol. */
+ public endpointProtocol: (google.cloud.metastore.v1alpha.HiveMetastoreConfig.EndpointProtocol|keyof typeof google.cloud.metastore.v1alpha.HiveMetastoreConfig.EndpointProtocol);
+
+ /** HiveMetastoreConfig auxiliaryVersions. */
+ public auxiliaryVersions: { [k: string]: google.cloud.metastore.v1alpha.IAuxiliaryVersionConfig };
+
+ /**
+ * Creates a new HiveMetastoreConfig instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns HiveMetastoreConfig instance
+ */
+ public static create(properties?: google.cloud.metastore.v1alpha.IHiveMetastoreConfig): google.cloud.metastore.v1alpha.HiveMetastoreConfig;
+
+ /**
+ * Encodes the specified HiveMetastoreConfig message. Does not implicitly {@link google.cloud.metastore.v1alpha.HiveMetastoreConfig.verify|verify} messages.
+ * @param message HiveMetastoreConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.metastore.v1alpha.IHiveMetastoreConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified HiveMetastoreConfig message, length delimited. Does not implicitly {@link google.cloud.metastore.v1alpha.HiveMetastoreConfig.verify|verify} messages.
+ * @param message HiveMetastoreConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.metastore.v1alpha.IHiveMetastoreConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a HiveMetastoreConfig message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns HiveMetastoreConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.metastore.v1alpha.HiveMetastoreConfig;
+
+ /**
+ * Decodes a HiveMetastoreConfig message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns HiveMetastoreConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.metastore.v1alpha.HiveMetastoreConfig;
+
+ /**
+ * Verifies a HiveMetastoreConfig message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a HiveMetastoreConfig message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns HiveMetastoreConfig
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.metastore.v1alpha.HiveMetastoreConfig;
+
+ /**
+ * Creates a plain object from a HiveMetastoreConfig message. Also converts values to other types if specified.
+ * @param message HiveMetastoreConfig
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.metastore.v1alpha.HiveMetastoreConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this HiveMetastoreConfig to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for HiveMetastoreConfig
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace HiveMetastoreConfig {
+
+ /** EndpointProtocol enum. */
+ enum EndpointProtocol {
+ ENDPOINT_PROTOCOL_UNSPECIFIED = 0,
+ THRIFT = 1,
+ GRPC = 2
+ }
+ }
+
+ /** Properties of a KerberosConfig. */
+ interface IKerberosConfig {
+
+ /** KerberosConfig keytab */
+ keytab?: (google.cloud.metastore.v1alpha.ISecret|null);
+
+ /** KerberosConfig principal */
+ principal?: (string|null);
+
+ /** KerberosConfig krb5ConfigGcsUri */
+ krb5ConfigGcsUri?: (string|null);
+ }
+
+ /** Represents a KerberosConfig. */
+ class KerberosConfig implements IKerberosConfig {
+
+ /**
+ * Constructs a new KerberosConfig.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.metastore.v1alpha.IKerberosConfig);
+
+ /** KerberosConfig keytab. */
+ public keytab?: (google.cloud.metastore.v1alpha.ISecret|null);
+
+ /** KerberosConfig principal. */
+ public principal: string;
+
+ /** KerberosConfig krb5ConfigGcsUri. */
+ public krb5ConfigGcsUri: string;
+
+ /**
+ * Creates a new KerberosConfig instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns KerberosConfig instance
+ */
+ public static create(properties?: google.cloud.metastore.v1alpha.IKerberosConfig): google.cloud.metastore.v1alpha.KerberosConfig;
+
+ /**
+ * Encodes the specified KerberosConfig message. Does not implicitly {@link google.cloud.metastore.v1alpha.KerberosConfig.verify|verify} messages.
+ * @param message KerberosConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.metastore.v1alpha.IKerberosConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified KerberosConfig message, length delimited. Does not implicitly {@link google.cloud.metastore.v1alpha.KerberosConfig.verify|verify} messages.
+ * @param message KerberosConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.metastore.v1alpha.IKerberosConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a KerberosConfig message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns KerberosConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.metastore.v1alpha.KerberosConfig;
+
+ /**
+ * Decodes a KerberosConfig message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns KerberosConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.metastore.v1alpha.KerberosConfig;
+
+ /**
+ * Verifies a KerberosConfig message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a KerberosConfig message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns KerberosConfig
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.metastore.v1alpha.KerberosConfig;
+
+ /**
+ * Creates a plain object from a KerberosConfig message. Also converts values to other types if specified.
+ * @param message KerberosConfig
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.metastore.v1alpha.KerberosConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this KerberosConfig to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for KerberosConfig
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Secret. */
+ interface ISecret {
+
+ /** Secret cloudSecret */
+ cloudSecret?: (string|null);
+ }
+
+ /** Represents a Secret. */
+ class Secret implements ISecret {
+
+ /**
+ * Constructs a new Secret.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.metastore.v1alpha.ISecret);
+
+ /** Secret cloudSecret. */
+ public cloudSecret?: (string|null);
+
+ /** Secret value. */
+ public value?: "cloudSecret";
+
+ /**
+ * Creates a new Secret instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Secret instance
+ */
+ public static create(properties?: google.cloud.metastore.v1alpha.ISecret): google.cloud.metastore.v1alpha.Secret;
+
+ /**
+ * Encodes the specified Secret message. Does not implicitly {@link google.cloud.metastore.v1alpha.Secret.verify|verify} messages.
+ * @param message Secret message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.metastore.v1alpha.ISecret, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Secret message, length delimited. Does not implicitly {@link google.cloud.metastore.v1alpha.Secret.verify|verify} messages.
+ * @param message Secret message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.metastore.v1alpha.ISecret, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Secret message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Secret
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.metastore.v1alpha.Secret;
+
+ /**
+ * Decodes a Secret message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Secret
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.metastore.v1alpha.Secret;
+
+ /**
+ * Verifies a Secret message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Secret message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Secret
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.metastore.v1alpha.Secret;
+
+ /**
+ * Creates a plain object from a Secret message. Also converts values to other types if specified.
+ * @param message Secret
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.metastore.v1alpha.Secret, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Secret to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Secret
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an EncryptionConfig. */
+ interface IEncryptionConfig {
+
+ /** EncryptionConfig kmsKey */
+ kmsKey?: (string|null);
+ }
+
+ /** Represents an EncryptionConfig. */
+ class EncryptionConfig implements IEncryptionConfig {
+
+ /**
+ * Constructs a new EncryptionConfig.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.metastore.v1alpha.IEncryptionConfig);
+
+ /** EncryptionConfig kmsKey. */
+ public kmsKey: string;
+
+ /**
+ * Creates a new EncryptionConfig instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns EncryptionConfig instance
+ */
+ public static create(properties?: google.cloud.metastore.v1alpha.IEncryptionConfig): google.cloud.metastore.v1alpha.EncryptionConfig;
+
+ /**
+ * Encodes the specified EncryptionConfig message. Does not implicitly {@link google.cloud.metastore.v1alpha.EncryptionConfig.verify|verify} messages.
+ * @param message EncryptionConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.metastore.v1alpha.IEncryptionConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified EncryptionConfig message, length delimited. Does not implicitly {@link google.cloud.metastore.v1alpha.EncryptionConfig.verify|verify} messages.
+ * @param message EncryptionConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.metastore.v1alpha.IEncryptionConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an EncryptionConfig message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns EncryptionConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.metastore.v1alpha.EncryptionConfig;
+
+ /**
+ * Decodes an EncryptionConfig message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns EncryptionConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.metastore.v1alpha.EncryptionConfig;
+
+ /**
+ * Verifies an EncryptionConfig message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an EncryptionConfig message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns EncryptionConfig
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.metastore.v1alpha.EncryptionConfig;
+
+ /**
+ * Creates a plain object from an EncryptionConfig message. Also converts values to other types if specified.
+ * @param message EncryptionConfig
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.metastore.v1alpha.EncryptionConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this EncryptionConfig to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for EncryptionConfig
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an AuxiliaryVersionConfig. */
+ interface IAuxiliaryVersionConfig {
+
+ /** AuxiliaryVersionConfig version */
+ version?: (string|null);
+
+ /** AuxiliaryVersionConfig configOverrides */
+ configOverrides?: ({ [k: string]: string }|null);
+
+ /** AuxiliaryVersionConfig networkConfig */
+ networkConfig?: (google.cloud.metastore.v1alpha.INetworkConfig|null);
+ }
+
+ /** Represents an AuxiliaryVersionConfig. */
+ class AuxiliaryVersionConfig implements IAuxiliaryVersionConfig {
+
+ /**
+ * Constructs a new AuxiliaryVersionConfig.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.metastore.v1alpha.IAuxiliaryVersionConfig);
+
+ /** AuxiliaryVersionConfig version. */
+ public version: string;
+
+ /** AuxiliaryVersionConfig configOverrides. */
+ public configOverrides: { [k: string]: string };
+
+ /** AuxiliaryVersionConfig networkConfig. */
+ public networkConfig?: (google.cloud.metastore.v1alpha.INetworkConfig|null);
+
+ /**
+ * Creates a new AuxiliaryVersionConfig instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns AuxiliaryVersionConfig instance
+ */
+ public static create(properties?: google.cloud.metastore.v1alpha.IAuxiliaryVersionConfig): google.cloud.metastore.v1alpha.AuxiliaryVersionConfig;
+
+ /**
+ * Encodes the specified AuxiliaryVersionConfig message. Does not implicitly {@link google.cloud.metastore.v1alpha.AuxiliaryVersionConfig.verify|verify} messages.
+ * @param message AuxiliaryVersionConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.metastore.v1alpha.IAuxiliaryVersionConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified AuxiliaryVersionConfig message, length delimited. Does not implicitly {@link google.cloud.metastore.v1alpha.AuxiliaryVersionConfig.verify|verify} messages.
+ * @param message AuxiliaryVersionConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.metastore.v1alpha.IAuxiliaryVersionConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an AuxiliaryVersionConfig message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns AuxiliaryVersionConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.metastore.v1alpha.AuxiliaryVersionConfig;
+
+ /**
+ * Decodes an AuxiliaryVersionConfig message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns AuxiliaryVersionConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.metastore.v1alpha.AuxiliaryVersionConfig;
+
+ /**
+ * Verifies an AuxiliaryVersionConfig message.
+ * @param message Plain 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 AuxiliaryVersionConfig message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns AuxiliaryVersionConfig
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.metastore.v1alpha.AuxiliaryVersionConfig;
+
+ /**
+ * Creates a plain object from an AuxiliaryVersionConfig message. Also converts values to other types if specified.
+ * @param message AuxiliaryVersionConfig
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.metastore.v1alpha.AuxiliaryVersionConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this AuxiliaryVersionConfig to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for AuxiliaryVersionConfig
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a NetworkConfig. */
+ interface INetworkConfig {
+
+ /** NetworkConfig consumers */
+ consumers?: (google.cloud.metastore.v1alpha.NetworkConfig.IConsumer[]|null);
+ }
+
+ /** Represents a NetworkConfig. */
+ class NetworkConfig implements INetworkConfig {
+
+ /**
+ * Constructs a new NetworkConfig.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.metastore.v1alpha.INetworkConfig);
+
+ /** NetworkConfig consumers. */
+ public consumers: google.cloud.metastore.v1alpha.NetworkConfig.IConsumer[];
+
+ /**
+ * Creates a new NetworkConfig instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns NetworkConfig instance
+ */
+ public static create(properties?: google.cloud.metastore.v1alpha.INetworkConfig): google.cloud.metastore.v1alpha.NetworkConfig;
+
+ /**
+ * Encodes the specified NetworkConfig message. Does not implicitly {@link google.cloud.metastore.v1alpha.NetworkConfig.verify|verify} messages.
+ * @param message NetworkConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.metastore.v1alpha.INetworkConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified NetworkConfig message, length delimited. Does not implicitly {@link google.cloud.metastore.v1alpha.NetworkConfig.verify|verify} messages.
+ * @param message NetworkConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.metastore.v1alpha.INetworkConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a NetworkConfig message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns NetworkConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.metastore.v1alpha.NetworkConfig;
+
+ /**
+ * Decodes a NetworkConfig message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns NetworkConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.metastore.v1alpha.NetworkConfig;
+
+ /**
+ * Verifies a NetworkConfig message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a NetworkConfig message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns NetworkConfig
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.metastore.v1alpha.NetworkConfig;
+
+ /**
+ * Creates a plain object from a NetworkConfig message. Also converts values to other types if specified.
+ * @param message NetworkConfig
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.metastore.v1alpha.NetworkConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this NetworkConfig to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for NetworkConfig
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace NetworkConfig {
+
+ /** Properties of a Consumer. */
+ interface IConsumer {
+
+ /** Consumer subnetwork */
+ subnetwork?: (string|null);
+
+ /** Consumer endpointUri */
+ endpointUri?: (string|null);
+ }
+
+ /** Represents a Consumer. */
+ class Consumer implements IConsumer {
+
+ /**
+ * Constructs a new Consumer.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.metastore.v1alpha.NetworkConfig.IConsumer);
+
+ /** Consumer subnetwork. */
+ public subnetwork?: (string|null);
+
+ /** Consumer endpointUri. */
+ public endpointUri: string;
+
+ /** Consumer vpcResource. */
+ public vpcResource?: "subnetwork";
+
+ /**
+ * Creates a new Consumer instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Consumer instance
+ */
+ public static create(properties?: google.cloud.metastore.v1alpha.NetworkConfig.IConsumer): google.cloud.metastore.v1alpha.NetworkConfig.Consumer;
+
+ /**
+ * Encodes the specified Consumer message. Does not implicitly {@link google.cloud.metastore.v1alpha.NetworkConfig.Consumer.verify|verify} messages.
+ * @param message Consumer message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.metastore.v1alpha.NetworkConfig.IConsumer, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Consumer message, length delimited. Does not implicitly {@link google.cloud.metastore.v1alpha.NetworkConfig.Consumer.verify|verify} messages.
+ * @param message Consumer message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.metastore.v1alpha.NetworkConfig.IConsumer, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Consumer message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Consumer
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.metastore.v1alpha.NetworkConfig.Consumer;
+
+ /**
+ * Decodes a Consumer message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Consumer
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.metastore.v1alpha.NetworkConfig.Consumer;
+
+ /**
+ * Verifies a Consumer message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Consumer message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Consumer
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.metastore.v1alpha.NetworkConfig.Consumer;
+
+ /**
+ * Creates a plain object from a Consumer message. Also converts values to other types if specified.
+ * @param message Consumer
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.metastore.v1alpha.NetworkConfig.Consumer, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Consumer to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Consumer
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of a MetadataManagementActivity. */
+ interface IMetadataManagementActivity {
+
+ /** MetadataManagementActivity metadataExports */
+ metadataExports?: (google.cloud.metastore.v1alpha.IMetadataExport[]|null);
+
+ /** MetadataManagementActivity restores */
+ restores?: (google.cloud.metastore.v1alpha.IRestore[]|null);
+ }
+
+ /** Represents a MetadataManagementActivity. */
+ class MetadataManagementActivity implements IMetadataManagementActivity {
+
+ /**
+ * Constructs a new MetadataManagementActivity.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.metastore.v1alpha.IMetadataManagementActivity);
+
+ /** MetadataManagementActivity metadataExports. */
+ public metadataExports: google.cloud.metastore.v1alpha.IMetadataExport[];
+
+ /** MetadataManagementActivity restores. */
+ public restores: google.cloud.metastore.v1alpha.IRestore[];
+
+ /**
+ * Creates a new MetadataManagementActivity instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns MetadataManagementActivity instance
+ */
+ public static create(properties?: google.cloud.metastore.v1alpha.IMetadataManagementActivity): google.cloud.metastore.v1alpha.MetadataManagementActivity;
+
+ /**
+ * Encodes the specified MetadataManagementActivity message. Does not implicitly {@link google.cloud.metastore.v1alpha.MetadataManagementActivity.verify|verify} messages.
+ * @param message MetadataManagementActivity message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.metastore.v1alpha.IMetadataManagementActivity, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified MetadataManagementActivity message, length delimited. Does not implicitly {@link google.cloud.metastore.v1alpha.MetadataManagementActivity.verify|verify} messages.
+ * @param message MetadataManagementActivity message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.metastore.v1alpha.IMetadataManagementActivity, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a MetadataManagementActivity message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns MetadataManagementActivity
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.metastore.v1alpha.MetadataManagementActivity;
+
+ /**
+ * Decodes a MetadataManagementActivity message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns MetadataManagementActivity
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.metastore.v1alpha.MetadataManagementActivity;
+
+ /**
+ * Verifies a MetadataManagementActivity message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a MetadataManagementActivity message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns MetadataManagementActivity
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.metastore.v1alpha.MetadataManagementActivity;
+
+ /**
+ * Creates a plain object from a MetadataManagementActivity message. Also converts values to other types if specified.
+ * @param message MetadataManagementActivity
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.metastore.v1alpha.MetadataManagementActivity, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this MetadataManagementActivity to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for MetadataManagementActivity
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a MetadataImport. */
+ interface IMetadataImport {
+
+ /** MetadataImport databaseDump */
+ databaseDump?: (google.cloud.metastore.v1alpha.MetadataImport.IDatabaseDump|null);
+
+ /** MetadataImport name */
+ name?: (string|null);
+
+ /** MetadataImport description */
+ description?: (string|null);
+
+ /** MetadataImport createTime */
+ createTime?: (google.protobuf.ITimestamp|null);
+
+ /** MetadataImport updateTime */
+ updateTime?: (google.protobuf.ITimestamp|null);
+
+ /** MetadataImport endTime */
+ endTime?: (google.protobuf.ITimestamp|null);
+
+ /** MetadataImport state */
+ state?: (google.cloud.metastore.v1alpha.MetadataImport.State|keyof typeof google.cloud.metastore.v1alpha.MetadataImport.State|null);
+ }
+
+ /** Represents a MetadataImport. */
+ class MetadataImport implements IMetadataImport {
+
+ /**
+ * Constructs a new MetadataImport.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.metastore.v1alpha.IMetadataImport);
+
+ /** MetadataImport databaseDump. */
+ public databaseDump?: (google.cloud.metastore.v1alpha.MetadataImport.IDatabaseDump|null);
+
+ /** MetadataImport name. */
+ public name: string;
+
+ /** MetadataImport description. */
+ public description: string;
+
+ /** MetadataImport createTime. */
+ public createTime?: (google.protobuf.ITimestamp|null);
+
+ /** MetadataImport updateTime. */
+ public updateTime?: (google.protobuf.ITimestamp|null);
+
+ /** MetadataImport endTime. */
+ public endTime?: (google.protobuf.ITimestamp|null);
+
+ /** MetadataImport state. */
+ public state: (google.cloud.metastore.v1alpha.MetadataImport.State|keyof typeof google.cloud.metastore.v1alpha.MetadataImport.State);
+
+ /** MetadataImport metadata. */
+ public metadata?: "databaseDump";
+
+ /**
+ * Creates a new MetadataImport instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns MetadataImport instance
+ */
+ public static create(properties?: google.cloud.metastore.v1alpha.IMetadataImport): google.cloud.metastore.v1alpha.MetadataImport;
+
+ /**
+ * Encodes the specified MetadataImport message. Does not implicitly {@link google.cloud.metastore.v1alpha.MetadataImport.verify|verify} messages.
+ * @param message MetadataImport message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.metastore.v1alpha.IMetadataImport, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified MetadataImport message, length delimited. Does not implicitly {@link google.cloud.metastore.v1alpha.MetadataImport.verify|verify} messages.
+ * @param message MetadataImport message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.metastore.v1alpha.IMetadataImport, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a MetadataImport message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns MetadataImport
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.metastore.v1alpha.MetadataImport;
+
+ /**
+ * Decodes a MetadataImport message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns MetadataImport
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.metastore.v1alpha.MetadataImport;
+
+ /**
+ * Verifies a MetadataImport message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a MetadataImport message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns MetadataImport
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.metastore.v1alpha.MetadataImport;
+
+ /**
+ * Creates a plain object from a MetadataImport message. Also converts values to other types if specified.
+ * @param message MetadataImport
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.metastore.v1alpha.MetadataImport, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this MetadataImport to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for MetadataImport
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace MetadataImport {
+
+ /** Properties of a DatabaseDump. */
+ interface IDatabaseDump {
+
+ /** DatabaseDump databaseType */
+ databaseType?: (google.cloud.metastore.v1alpha.MetadataImport.DatabaseDump.DatabaseType|keyof typeof google.cloud.metastore.v1alpha.MetadataImport.DatabaseDump.DatabaseType|null);
+
+ /** DatabaseDump gcsUri */
+ gcsUri?: (string|null);
+
+ /** DatabaseDump sourceDatabase */
+ sourceDatabase?: (string|null);
+
+ /** DatabaseDump type */
+ type?: (google.cloud.metastore.v1alpha.DatabaseDumpSpec.Type|keyof typeof google.cloud.metastore.v1alpha.DatabaseDumpSpec.Type|null);
+ }
+
+ /** Represents a DatabaseDump. */
+ class DatabaseDump implements IDatabaseDump {
+
+ /**
+ * Constructs a new DatabaseDump.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.metastore.v1alpha.MetadataImport.IDatabaseDump);
+
+ /** DatabaseDump databaseType. */
+ public databaseType: (google.cloud.metastore.v1alpha.MetadataImport.DatabaseDump.DatabaseType|keyof typeof google.cloud.metastore.v1alpha.MetadataImport.DatabaseDump.DatabaseType);
+
+ /** DatabaseDump gcsUri. */
+ public gcsUri: string;
+
+ /** DatabaseDump sourceDatabase. */
+ public sourceDatabase: string;
+
+ /** DatabaseDump type. */
+ public type: (google.cloud.metastore.v1alpha.DatabaseDumpSpec.Type|keyof typeof google.cloud.metastore.v1alpha.DatabaseDumpSpec.Type);
+
+ /**
+ * Creates a new DatabaseDump instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DatabaseDump instance
+ */
+ public static create(properties?: google.cloud.metastore.v1alpha.MetadataImport.IDatabaseDump): google.cloud.metastore.v1alpha.MetadataImport.DatabaseDump;
+
+ /**
+ * Encodes the specified DatabaseDump message. Does not implicitly {@link google.cloud.metastore.v1alpha.MetadataImport.DatabaseDump.verify|verify} messages.
+ * @param message DatabaseDump message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.metastore.v1alpha.MetadataImport.IDatabaseDump, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DatabaseDump message, length delimited. Does not implicitly {@link google.cloud.metastore.v1alpha.MetadataImport.DatabaseDump.verify|verify} messages.
+ * @param message DatabaseDump message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.metastore.v1alpha.MetadataImport.IDatabaseDump, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DatabaseDump message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DatabaseDump
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.metastore.v1alpha.MetadataImport.DatabaseDump;
+
+ /**
+ * Decodes a DatabaseDump message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DatabaseDump
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.metastore.v1alpha.MetadataImport.DatabaseDump;
+
+ /**
+ * Verifies a DatabaseDump message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DatabaseDump message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DatabaseDump
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.metastore.v1alpha.MetadataImport.DatabaseDump;
+
+ /**
+ * Creates a plain object from a DatabaseDump message. Also converts values to other types if specified.
+ * @param message DatabaseDump
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.metastore.v1alpha.MetadataImport.DatabaseDump, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DatabaseDump to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DatabaseDump
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace DatabaseDump {
+
+ /** DatabaseType enum. */
+ enum DatabaseType {
+ DATABASE_TYPE_UNSPECIFIED = 0,
+ MYSQL = 1
+ }
+ }
+
+ /** State enum. */
+ enum State {
+ STATE_UNSPECIFIED = 0,
+ RUNNING = 1,
+ SUCCEEDED = 2,
+ UPDATING = 3,
+ FAILED = 4
+ }
+ }
+
+ /** Properties of a MetadataExport. */
+ interface IMetadataExport {
+
+ /** MetadataExport destinationGcsUri */
+ destinationGcsUri?: (string|null);
+
+ /** MetadataExport startTime */
+ startTime?: (google.protobuf.ITimestamp|null);
+
+ /** MetadataExport endTime */
+ endTime?: (google.protobuf.ITimestamp|null);
+
+ /** MetadataExport state */
+ state?: (google.cloud.metastore.v1alpha.MetadataExport.State|keyof typeof google.cloud.metastore.v1alpha.MetadataExport.State|null);
+
+ /** MetadataExport databaseDumpType */
+ databaseDumpType?: (google.cloud.metastore.v1alpha.DatabaseDumpSpec.Type|keyof typeof google.cloud.metastore.v1alpha.DatabaseDumpSpec.Type|null);
+ }
+
+ /** Represents a MetadataExport. */
+ class MetadataExport implements IMetadataExport {
+
+ /**
+ * Constructs a new MetadataExport.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.metastore.v1alpha.IMetadataExport);
+
+ /** MetadataExport destinationGcsUri. */
+ public destinationGcsUri?: (string|null);
+
+ /** MetadataExport startTime. */
+ public startTime?: (google.protobuf.ITimestamp|null);
+
+ /** MetadataExport endTime. */
+ public endTime?: (google.protobuf.ITimestamp|null);
+
+ /** MetadataExport state. */
+ public state: (google.cloud.metastore.v1alpha.MetadataExport.State|keyof typeof google.cloud.metastore.v1alpha.MetadataExport.State);
+
+ /** MetadataExport databaseDumpType. */
+ public databaseDumpType: (google.cloud.metastore.v1alpha.DatabaseDumpSpec.Type|keyof typeof google.cloud.metastore.v1alpha.DatabaseDumpSpec.Type);
+
+ /** MetadataExport destination. */
+ public destination?: "destinationGcsUri";
+
+ /**
+ * Creates a new MetadataExport instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns MetadataExport instance
+ */
+ public static create(properties?: google.cloud.metastore.v1alpha.IMetadataExport): google.cloud.metastore.v1alpha.MetadataExport;
+
+ /**
+ * Encodes the specified MetadataExport message. Does not implicitly {@link google.cloud.metastore.v1alpha.MetadataExport.verify|verify} messages.
+ * @param message MetadataExport message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.metastore.v1alpha.IMetadataExport, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified MetadataExport message, length delimited. Does not implicitly {@link google.cloud.metastore.v1alpha.MetadataExport.verify|verify} messages.
+ * @param message MetadataExport message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.metastore.v1alpha.IMetadataExport, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a MetadataExport message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns MetadataExport
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.metastore.v1alpha.MetadataExport;
+
+ /**
+ * Decodes a MetadataExport message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns MetadataExport
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.metastore.v1alpha.MetadataExport;
+
+ /**
+ * Verifies a MetadataExport message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a MetadataExport message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns MetadataExport
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.metastore.v1alpha.MetadataExport;
+
+ /**
+ * Creates a plain object from a MetadataExport message. Also converts values to other types if specified.
+ * @param message MetadataExport
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.metastore.v1alpha.MetadataExport, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this MetadataExport to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for MetadataExport
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace MetadataExport {
+
+ /** State enum. */
+ enum State {
+ STATE_UNSPECIFIED = 0,
+ RUNNING = 1,
+ SUCCEEDED = 2,
+ FAILED = 3,
+ CANCELLED = 4
+ }
+ }
+
+ /** Properties of a Backup. */
+ interface IBackup {
+
+ /** Backup name */
+ name?: (string|null);
+
+ /** Backup createTime */
+ createTime?: (google.protobuf.ITimestamp|null);
+
+ /** Backup endTime */
+ endTime?: (google.protobuf.ITimestamp|null);
+
+ /** Backup state */
+ state?: (google.cloud.metastore.v1alpha.Backup.State|keyof typeof google.cloud.metastore.v1alpha.Backup.State|null);
+
+ /** Backup serviceRevision */
+ serviceRevision?: (google.cloud.metastore.v1alpha.IService|null);
+
+ /** Backup description */
+ description?: (string|null);
+
+ /** Backup restoringServices */
+ restoringServices?: (string[]|null);
+ }
+
+ /** Represents a Backup. */
+ class Backup implements IBackup {
+
+ /**
+ * Constructs a new Backup.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.metastore.v1alpha.IBackup);
+
+ /** Backup name. */
+ public name: string;
+
+ /** Backup createTime. */
+ public createTime?: (google.protobuf.ITimestamp|null);
+
+ /** Backup endTime. */
+ public endTime?: (google.protobuf.ITimestamp|null);
+
+ /** Backup state. */
+ public state: (google.cloud.metastore.v1alpha.Backup.State|keyof typeof google.cloud.metastore.v1alpha.Backup.State);
+
+ /** Backup serviceRevision. */
+ public serviceRevision?: (google.cloud.metastore.v1alpha.IService|null);
+
+ /** Backup description. */
+ public description: string;
+
+ /** Backup restoringServices. */
+ public restoringServices: string[];
+
+ /**
+ * Creates a new Backup instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Backup instance
+ */
+ public static create(properties?: google.cloud.metastore.v1alpha.IBackup): google.cloud.metastore.v1alpha.Backup;
+
+ /**
+ * Encodes the specified Backup message. Does not implicitly {@link google.cloud.metastore.v1alpha.Backup.verify|verify} messages.
+ * @param message Backup message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.metastore.v1alpha.IBackup, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Backup message, length delimited. Does not implicitly {@link google.cloud.metastore.v1alpha.Backup.verify|verify} messages.
+ * @param message Backup message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.metastore.v1alpha.IBackup, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Backup message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Backup
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.metastore.v1alpha.Backup;
+
+ /**
+ * Decodes a Backup message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Backup
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.metastore.v1alpha.Backup;
+
+ /**
+ * Verifies a Backup message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Backup message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Backup
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.metastore.v1alpha.Backup;
+
+ /**
+ * Creates a plain object from a Backup message. Also converts values to other types if specified.
+ * @param message Backup
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.metastore.v1alpha.Backup, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Backup to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Backup
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace Backup {
+
+ /** State enum. */
+ enum State {
+ STATE_UNSPECIFIED = 0,
+ CREATING = 1,
+ DELETING = 2,
+ ACTIVE = 3,
+ FAILED = 4,
+ RESTORING = 5
+ }
+ }
+
+ /** Properties of a Restore. */
+ interface IRestore {
+
+ /** Restore startTime */
+ startTime?: (google.protobuf.ITimestamp|null);
+
+ /** Restore endTime */
+ endTime?: (google.protobuf.ITimestamp|null);
+
+ /** Restore state */
+ state?: (google.cloud.metastore.v1alpha.Restore.State|keyof typeof google.cloud.metastore.v1alpha.Restore.State|null);
+
+ /** Restore backup */
+ backup?: (string|null);
+
+ /** Restore type */
+ type?: (google.cloud.metastore.v1alpha.Restore.RestoreType|keyof typeof google.cloud.metastore.v1alpha.Restore.RestoreType|null);
+
+ /** Restore details */
+ details?: (string|null);
+ }
+
+ /** Represents a Restore. */
+ class Restore implements IRestore {
+
+ /**
+ * Constructs a new Restore.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.metastore.v1alpha.IRestore);
+
+ /** Restore startTime. */
+ public startTime?: (google.protobuf.ITimestamp|null);
+
+ /** Restore endTime. */
+ public endTime?: (google.protobuf.ITimestamp|null);
+
+ /** Restore state. */
+ public state: (google.cloud.metastore.v1alpha.Restore.State|keyof typeof google.cloud.metastore.v1alpha.Restore.State);
+
+ /** Restore backup. */
+ public backup: string;
+
+ /** Restore type. */
+ public type: (google.cloud.metastore.v1alpha.Restore.RestoreType|keyof typeof google.cloud.metastore.v1alpha.Restore.RestoreType);
+
+ /** Restore details. */
+ public details: string;
+
+ /**
+ * Creates a new Restore instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Restore instance
+ */
+ public static create(properties?: google.cloud.metastore.v1alpha.IRestore): google.cloud.metastore.v1alpha.Restore;
+
+ /**
+ * Encodes the specified Restore message. Does not implicitly {@link google.cloud.metastore.v1alpha.Restore.verify|verify} messages.
+ * @param message Restore message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.metastore.v1alpha.IRestore, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Restore message, length delimited. Does not implicitly {@link google.cloud.metastore.v1alpha.Restore.verify|verify} messages.
+ * @param message Restore message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.metastore.v1alpha.IRestore, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Restore message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Restore
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.metastore.v1alpha.Restore;
+
+ /**
+ * Decodes a Restore message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Restore
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.metastore.v1alpha.Restore;
+
+ /**
+ * Verifies a Restore message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Restore message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Restore
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.metastore.v1alpha.Restore;
+
+ /**
+ * Creates a plain object from a Restore message. Also converts values to other types if specified.
+ * @param message Restore
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.metastore.v1alpha.Restore, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Restore to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Restore
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace Restore {
+
+ /** State enum. */
+ enum State {
+ STATE_UNSPECIFIED = 0,
+ RUNNING = 1,
+ SUCCEEDED = 2,
+ FAILED = 3,
+ CANCELLED = 4
+ }
+
+ /** RestoreType enum. */
+ enum RestoreType {
+ RESTORE_TYPE_UNSPECIFIED = 0,
+ FULL = 1,
+ METADATA_ONLY = 2
+ }
+ }
+
+ /** Properties of a ListServicesRequest. */
+ interface IListServicesRequest {
+
+ /** ListServicesRequest parent */
+ parent?: (string|null);
+
+ /** ListServicesRequest pageSize */
+ pageSize?: (number|null);
+
+ /** ListServicesRequest pageToken */
+ pageToken?: (string|null);
+
+ /** ListServicesRequest filter */
+ filter?: (string|null);
+
+ /** ListServicesRequest orderBy */
+ orderBy?: (string|null);
+ }
+
+ /** Represents a ListServicesRequest. */
+ class ListServicesRequest implements IListServicesRequest {
+
+ /**
+ * Constructs a new ListServicesRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.metastore.v1alpha.IListServicesRequest);
+
+ /** ListServicesRequest parent. */
+ public parent: string;
+
+ /** ListServicesRequest pageSize. */
+ public pageSize: number;
+
+ /** ListServicesRequest pageToken. */
+ public pageToken: string;
+
+ /** ListServicesRequest filter. */
+ public filter: string;
+
+ /** ListServicesRequest orderBy. */
+ public orderBy: string;
+
+ /**
+ * Creates a new ListServicesRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListServicesRequest instance
+ */
+ public static create(properties?: google.cloud.metastore.v1alpha.IListServicesRequest): google.cloud.metastore.v1alpha.ListServicesRequest;
+
+ /**
+ * Encodes the specified ListServicesRequest message. Does not implicitly {@link google.cloud.metastore.v1alpha.ListServicesRequest.verify|verify} messages.
+ * @param message ListServicesRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.metastore.v1alpha.IListServicesRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListServicesRequest message, length delimited. Does not implicitly {@link google.cloud.metastore.v1alpha.ListServicesRequest.verify|verify} messages.
+ * @param message ListServicesRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.metastore.v1alpha.IListServicesRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListServicesRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListServicesRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.metastore.v1alpha.ListServicesRequest;
+
+ /**
+ * Decodes a ListServicesRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListServicesRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.metastore.v1alpha.ListServicesRequest;
+
+ /**
+ * Verifies a ListServicesRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListServicesRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListServicesRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.metastore.v1alpha.ListServicesRequest;
+
+ /**
+ * Creates a plain object from a ListServicesRequest message. Also converts values to other types if specified.
+ * @param message ListServicesRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.metastore.v1alpha.ListServicesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListServicesRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListServicesRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListServicesResponse. */
+ interface IListServicesResponse {
+
+ /** ListServicesResponse services */
+ services?: (google.cloud.metastore.v1alpha.IService[]|null);
+
+ /** ListServicesResponse nextPageToken */
+ nextPageToken?: (string|null);
+
+ /** ListServicesResponse unreachable */
+ unreachable?: (string[]|null);
+ }
+
+ /** Represents a ListServicesResponse. */
+ class ListServicesResponse implements IListServicesResponse {
+
+ /**
+ * Constructs a new ListServicesResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.metastore.v1alpha.IListServicesResponse);
+
+ /** ListServicesResponse services. */
+ public services: google.cloud.metastore.v1alpha.IService[];
+
+ /** ListServicesResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /** ListServicesResponse unreachable. */
+ public unreachable: string[];
+
+ /**
+ * Creates a new ListServicesResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListServicesResponse instance
+ */
+ public static create(properties?: google.cloud.metastore.v1alpha.IListServicesResponse): google.cloud.metastore.v1alpha.ListServicesResponse;
+
+ /**
+ * Encodes the specified ListServicesResponse message. Does not implicitly {@link google.cloud.metastore.v1alpha.ListServicesResponse.verify|verify} messages.
+ * @param message ListServicesResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.metastore.v1alpha.IListServicesResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListServicesResponse message, length delimited. Does not implicitly {@link google.cloud.metastore.v1alpha.ListServicesResponse.verify|verify} messages.
+ * @param message ListServicesResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.metastore.v1alpha.IListServicesResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListServicesResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListServicesResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.metastore.v1alpha.ListServicesResponse;
+
+ /**
+ * Decodes a ListServicesResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListServicesResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.metastore.v1alpha.ListServicesResponse;
+
+ /**
+ * Verifies a ListServicesResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListServicesResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListServicesResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.metastore.v1alpha.ListServicesResponse;
+
+ /**
+ * Creates a plain object from a ListServicesResponse message. Also converts values to other types if specified.
+ * @param message ListServicesResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.metastore.v1alpha.ListServicesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListServicesResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListServicesResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GetServiceRequest. */
+ interface IGetServiceRequest {
+
+ /** GetServiceRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a GetServiceRequest. */
+ class GetServiceRequest implements IGetServiceRequest {
+
+ /**
+ * Constructs a new GetServiceRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.metastore.v1alpha.IGetServiceRequest);
+
+ /** GetServiceRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new GetServiceRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetServiceRequest instance
+ */
+ public static create(properties?: google.cloud.metastore.v1alpha.IGetServiceRequest): google.cloud.metastore.v1alpha.GetServiceRequest;
+
+ /**
+ * Encodes the specified GetServiceRequest message. Does not implicitly {@link google.cloud.metastore.v1alpha.GetServiceRequest.verify|verify} messages.
+ * @param message GetServiceRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.metastore.v1alpha.IGetServiceRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetServiceRequest message, length delimited. Does not implicitly {@link google.cloud.metastore.v1alpha.GetServiceRequest.verify|verify} messages.
+ * @param message GetServiceRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.metastore.v1alpha.IGetServiceRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetServiceRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetServiceRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.metastore.v1alpha.GetServiceRequest;
+
+ /**
+ * Decodes a GetServiceRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetServiceRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.metastore.v1alpha.GetServiceRequest;
+
+ /**
+ * Verifies a GetServiceRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GetServiceRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetServiceRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.metastore.v1alpha.GetServiceRequest;
+
+ /**
+ * Creates a plain object from a GetServiceRequest message. Also converts values to other types if specified.
+ * @param message GetServiceRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.metastore.v1alpha.GetServiceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetServiceRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetServiceRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CreateServiceRequest. */
+ interface ICreateServiceRequest {
+
+ /** CreateServiceRequest parent */
+ parent?: (string|null);
+
+ /** CreateServiceRequest serviceId */
+ serviceId?: (string|null);
+
+ /** CreateServiceRequest service */
+ service?: (google.cloud.metastore.v1alpha.IService|null);
+
+ /** CreateServiceRequest requestId */
+ requestId?: (string|null);
+ }
+
+ /** Represents a CreateServiceRequest. */
+ class CreateServiceRequest implements ICreateServiceRequest {
+
+ /**
+ * Constructs a new CreateServiceRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.metastore.v1alpha.ICreateServiceRequest);
+
+ /** CreateServiceRequest parent. */
+ public parent: string;
+
+ /** CreateServiceRequest serviceId. */
+ public serviceId: string;
+
+ /** CreateServiceRequest service. */
+ public service?: (google.cloud.metastore.v1alpha.IService|null);
+
+ /** CreateServiceRequest requestId. */
+ public requestId: string;
+
+ /**
+ * Creates a new CreateServiceRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CreateServiceRequest instance
+ */
+ public static create(properties?: google.cloud.metastore.v1alpha.ICreateServiceRequest): google.cloud.metastore.v1alpha.CreateServiceRequest;
+
+ /**
+ * Encodes the specified CreateServiceRequest message. Does not implicitly {@link google.cloud.metastore.v1alpha.CreateServiceRequest.verify|verify} messages.
+ * @param message CreateServiceRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.metastore.v1alpha.ICreateServiceRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CreateServiceRequest message, length delimited. Does not implicitly {@link google.cloud.metastore.v1alpha.CreateServiceRequest.verify|verify} messages.
+ * @param message CreateServiceRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.metastore.v1alpha.ICreateServiceRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CreateServiceRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CreateServiceRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.metastore.v1alpha.CreateServiceRequest;
+
+ /**
+ * Decodes a CreateServiceRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CreateServiceRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.metastore.v1alpha.CreateServiceRequest;
+
+ /**
+ * Verifies a CreateServiceRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a CreateServiceRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CreateServiceRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.metastore.v1alpha.CreateServiceRequest;
+
+ /**
+ * Creates a plain object from a CreateServiceRequest message. Also converts values to other types if specified.
+ * @param message CreateServiceRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.metastore.v1alpha.CreateServiceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CreateServiceRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CreateServiceRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an UpdateServiceRequest. */
+ interface IUpdateServiceRequest {
+
+ /** UpdateServiceRequest updateMask */
+ updateMask?: (google.protobuf.IFieldMask|null);
+
+ /** UpdateServiceRequest service */
+ service?: (google.cloud.metastore.v1alpha.IService|null);
+
+ /** UpdateServiceRequest requestId */
+ requestId?: (string|null);
+ }
+
+ /** Represents an UpdateServiceRequest. */
+ class UpdateServiceRequest implements IUpdateServiceRequest {
+
+ /**
+ * Constructs a new UpdateServiceRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.metastore.v1alpha.IUpdateServiceRequest);
+
+ /** UpdateServiceRequest updateMask. */
+ public updateMask?: (google.protobuf.IFieldMask|null);
+
+ /** UpdateServiceRequest service. */
+ public service?: (google.cloud.metastore.v1alpha.IService|null);
+
+ /** UpdateServiceRequest requestId. */
+ public requestId: string;
+
+ /**
+ * Creates a new UpdateServiceRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns UpdateServiceRequest instance
+ */
+ public static create(properties?: google.cloud.metastore.v1alpha.IUpdateServiceRequest): google.cloud.metastore.v1alpha.UpdateServiceRequest;
+
+ /**
+ * Encodes the specified UpdateServiceRequest message. Does not implicitly {@link google.cloud.metastore.v1alpha.UpdateServiceRequest.verify|verify} messages.
+ * @param message UpdateServiceRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.metastore.v1alpha.IUpdateServiceRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified UpdateServiceRequest message, length delimited. Does not implicitly {@link google.cloud.metastore.v1alpha.UpdateServiceRequest.verify|verify} messages.
+ * @param message UpdateServiceRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.metastore.v1alpha.IUpdateServiceRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an UpdateServiceRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns UpdateServiceRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.metastore.v1alpha.UpdateServiceRequest;
+
+ /**
+ * Decodes an UpdateServiceRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns UpdateServiceRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.metastore.v1alpha.UpdateServiceRequest;
+
+ /**
+ * Verifies an UpdateServiceRequest message.
+ * @param message Plain 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 UpdateServiceRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns UpdateServiceRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.metastore.v1alpha.UpdateServiceRequest;
+
+ /**
+ * Creates a plain object from an UpdateServiceRequest message. Also converts values to other types if specified.
+ * @param message UpdateServiceRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.metastore.v1alpha.UpdateServiceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this UpdateServiceRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for UpdateServiceRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DeleteServiceRequest. */
+ interface IDeleteServiceRequest {
+
+ /** DeleteServiceRequest name */
+ name?: (string|null);
+
+ /** DeleteServiceRequest requestId */
+ requestId?: (string|null);
+ }
+
+ /** Represents a DeleteServiceRequest. */
+ class DeleteServiceRequest implements IDeleteServiceRequest {
+
+ /**
+ * Constructs a new DeleteServiceRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.metastore.v1alpha.IDeleteServiceRequest);
+
+ /** DeleteServiceRequest name. */
+ public name: string;
+
+ /** DeleteServiceRequest requestId. */
+ public requestId: string;
+
+ /**
+ * Creates a new DeleteServiceRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DeleteServiceRequest instance
+ */
+ public static create(properties?: google.cloud.metastore.v1alpha.IDeleteServiceRequest): google.cloud.metastore.v1alpha.DeleteServiceRequest;
+
+ /**
+ * Encodes the specified DeleteServiceRequest message. Does not implicitly {@link google.cloud.metastore.v1alpha.DeleteServiceRequest.verify|verify} messages.
+ * @param message DeleteServiceRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.metastore.v1alpha.IDeleteServiceRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DeleteServiceRequest message, length delimited. Does not implicitly {@link google.cloud.metastore.v1alpha.DeleteServiceRequest.verify|verify} messages.
+ * @param message DeleteServiceRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.metastore.v1alpha.IDeleteServiceRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DeleteServiceRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DeleteServiceRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.metastore.v1alpha.DeleteServiceRequest;
+
+ /**
+ * Decodes a DeleteServiceRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DeleteServiceRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.metastore.v1alpha.DeleteServiceRequest;
+
+ /**
+ * Verifies a DeleteServiceRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DeleteServiceRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DeleteServiceRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.metastore.v1alpha.DeleteServiceRequest;
+
+ /**
+ * Creates a plain object from a DeleteServiceRequest message. Also converts values to other types if specified.
+ * @param message DeleteServiceRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.metastore.v1alpha.DeleteServiceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DeleteServiceRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DeleteServiceRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListMetadataImportsRequest. */
+ interface IListMetadataImportsRequest {
+
+ /** ListMetadataImportsRequest parent */
+ parent?: (string|null);
+
+ /** ListMetadataImportsRequest pageSize */
+ pageSize?: (number|null);
+
+ /** ListMetadataImportsRequest pageToken */
+ pageToken?: (string|null);
+
+ /** ListMetadataImportsRequest filter */
+ filter?: (string|null);
+
+ /** ListMetadataImportsRequest orderBy */
+ orderBy?: (string|null);
+ }
+
+ /** Represents a ListMetadataImportsRequest. */
+ class ListMetadataImportsRequest implements IListMetadataImportsRequest {
+
+ /**
+ * Constructs a new ListMetadataImportsRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.metastore.v1alpha.IListMetadataImportsRequest);
+
+ /** ListMetadataImportsRequest parent. */
+ public parent: string;
+
+ /** ListMetadataImportsRequest pageSize. */
+ public pageSize: number;
+
+ /** ListMetadataImportsRequest pageToken. */
+ public pageToken: string;
+
+ /** ListMetadataImportsRequest filter. */
+ public filter: string;
+
+ /** ListMetadataImportsRequest orderBy. */
+ public orderBy: string;
+
+ /**
+ * Creates a new ListMetadataImportsRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListMetadataImportsRequest instance
+ */
+ public static create(properties?: google.cloud.metastore.v1alpha.IListMetadataImportsRequest): google.cloud.metastore.v1alpha.ListMetadataImportsRequest;
+
+ /**
+ * Encodes the specified ListMetadataImportsRequest message. Does not implicitly {@link google.cloud.metastore.v1alpha.ListMetadataImportsRequest.verify|verify} messages.
+ * @param message ListMetadataImportsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.metastore.v1alpha.IListMetadataImportsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListMetadataImportsRequest message, length delimited. Does not implicitly {@link google.cloud.metastore.v1alpha.ListMetadataImportsRequest.verify|verify} messages.
+ * @param message ListMetadataImportsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.metastore.v1alpha.IListMetadataImportsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListMetadataImportsRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListMetadataImportsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.metastore.v1alpha.ListMetadataImportsRequest;
+
+ /**
+ * Decodes a ListMetadataImportsRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListMetadataImportsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.metastore.v1alpha.ListMetadataImportsRequest;
+
+ /**
+ * Verifies a ListMetadataImportsRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListMetadataImportsRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListMetadataImportsRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.metastore.v1alpha.ListMetadataImportsRequest;
+
+ /**
+ * Creates a plain object from a ListMetadataImportsRequest message. Also converts values to other types if specified.
+ * @param message ListMetadataImportsRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.metastore.v1alpha.ListMetadataImportsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListMetadataImportsRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListMetadataImportsRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListMetadataImportsResponse. */
+ interface IListMetadataImportsResponse {
+
+ /** ListMetadataImportsResponse metadataImports */
+ metadataImports?: (google.cloud.metastore.v1alpha.IMetadataImport[]|null);
+
+ /** ListMetadataImportsResponse nextPageToken */
+ nextPageToken?: (string|null);
+
+ /** ListMetadataImportsResponse unreachable */
+ unreachable?: (string[]|null);
+ }
+
+ /** Represents a ListMetadataImportsResponse. */
+ class ListMetadataImportsResponse implements IListMetadataImportsResponse {
+
+ /**
+ * Constructs a new ListMetadataImportsResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.metastore.v1alpha.IListMetadataImportsResponse);
+
+ /** ListMetadataImportsResponse metadataImports. */
+ public metadataImports: google.cloud.metastore.v1alpha.IMetadataImport[];
+
+ /** ListMetadataImportsResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /** ListMetadataImportsResponse unreachable. */
+ public unreachable: string[];
+
+ /**
+ * Creates a new ListMetadataImportsResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListMetadataImportsResponse instance
+ */
+ public static create(properties?: google.cloud.metastore.v1alpha.IListMetadataImportsResponse): google.cloud.metastore.v1alpha.ListMetadataImportsResponse;
+
+ /**
+ * Encodes the specified ListMetadataImportsResponse message. Does not implicitly {@link google.cloud.metastore.v1alpha.ListMetadataImportsResponse.verify|verify} messages.
+ * @param message ListMetadataImportsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.metastore.v1alpha.IListMetadataImportsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListMetadataImportsResponse message, length delimited. Does not implicitly {@link google.cloud.metastore.v1alpha.ListMetadataImportsResponse.verify|verify} messages.
+ * @param message ListMetadataImportsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.metastore.v1alpha.IListMetadataImportsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListMetadataImportsResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListMetadataImportsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.metastore.v1alpha.ListMetadataImportsResponse;
+
+ /**
+ * Decodes a ListMetadataImportsResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListMetadataImportsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.metastore.v1alpha.ListMetadataImportsResponse;
+
+ /**
+ * Verifies a ListMetadataImportsResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListMetadataImportsResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListMetadataImportsResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.metastore.v1alpha.ListMetadataImportsResponse;
+
+ /**
+ * Creates a plain object from a ListMetadataImportsResponse message. Also converts values to other types if specified.
+ * @param message ListMetadataImportsResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.metastore.v1alpha.ListMetadataImportsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListMetadataImportsResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListMetadataImportsResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GetMetadataImportRequest. */
+ interface IGetMetadataImportRequest {
+
+ /** GetMetadataImportRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a GetMetadataImportRequest. */
+ class GetMetadataImportRequest implements IGetMetadataImportRequest {
+
+ /**
+ * Constructs a new GetMetadataImportRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.metastore.v1alpha.IGetMetadataImportRequest);
+
+ /** GetMetadataImportRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new GetMetadataImportRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetMetadataImportRequest instance
+ */
+ public static create(properties?: google.cloud.metastore.v1alpha.IGetMetadataImportRequest): google.cloud.metastore.v1alpha.GetMetadataImportRequest;
+
+ /**
+ * Encodes the specified GetMetadataImportRequest message. Does not implicitly {@link google.cloud.metastore.v1alpha.GetMetadataImportRequest.verify|verify} messages.
+ * @param message GetMetadataImportRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.metastore.v1alpha.IGetMetadataImportRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetMetadataImportRequest message, length delimited. Does not implicitly {@link google.cloud.metastore.v1alpha.GetMetadataImportRequest.verify|verify} messages.
+ * @param message GetMetadataImportRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.metastore.v1alpha.IGetMetadataImportRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetMetadataImportRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetMetadataImportRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.metastore.v1alpha.GetMetadataImportRequest;
+
+ /**
+ * Decodes a GetMetadataImportRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetMetadataImportRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.metastore.v1alpha.GetMetadataImportRequest;
+
+ /**
+ * Verifies a GetMetadataImportRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GetMetadataImportRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetMetadataImportRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.metastore.v1alpha.GetMetadataImportRequest;
+
+ /**
+ * Creates a plain object from a GetMetadataImportRequest message. Also converts values to other types if specified.
+ * @param message GetMetadataImportRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.metastore.v1alpha.GetMetadataImportRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetMetadataImportRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetMetadataImportRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CreateMetadataImportRequest. */
+ interface ICreateMetadataImportRequest {
+
+ /** CreateMetadataImportRequest parent */
+ parent?: (string|null);
+
+ /** CreateMetadataImportRequest metadataImportId */
+ metadataImportId?: (string|null);
+
+ /** CreateMetadataImportRequest metadataImport */
+ metadataImport?: (google.cloud.metastore.v1alpha.IMetadataImport|null);
+
+ /** CreateMetadataImportRequest requestId */
+ requestId?: (string|null);
+ }
+
+ /** Represents a CreateMetadataImportRequest. */
+ class CreateMetadataImportRequest implements ICreateMetadataImportRequest {
+
+ /**
+ * Constructs a new CreateMetadataImportRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.metastore.v1alpha.ICreateMetadataImportRequest);
+
+ /** CreateMetadataImportRequest parent. */
+ public parent: string;
+
+ /** CreateMetadataImportRequest metadataImportId. */
+ public metadataImportId: string;
+
+ /** CreateMetadataImportRequest metadataImport. */
+ public metadataImport?: (google.cloud.metastore.v1alpha.IMetadataImport|null);
+
+ /** CreateMetadataImportRequest requestId. */
+ public requestId: string;
+
+ /**
+ * Creates a new CreateMetadataImportRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CreateMetadataImportRequest instance
+ */
+ public static create(properties?: google.cloud.metastore.v1alpha.ICreateMetadataImportRequest): google.cloud.metastore.v1alpha.CreateMetadataImportRequest;
+
+ /**
+ * Encodes the specified CreateMetadataImportRequest message. Does not implicitly {@link google.cloud.metastore.v1alpha.CreateMetadataImportRequest.verify|verify} messages.
+ * @param message CreateMetadataImportRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.metastore.v1alpha.ICreateMetadataImportRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CreateMetadataImportRequest message, length delimited. Does not implicitly {@link google.cloud.metastore.v1alpha.CreateMetadataImportRequest.verify|verify} messages.
+ * @param message CreateMetadataImportRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.metastore.v1alpha.ICreateMetadataImportRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CreateMetadataImportRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CreateMetadataImportRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.metastore.v1alpha.CreateMetadataImportRequest;
+
+ /**
+ * Decodes a CreateMetadataImportRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CreateMetadataImportRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.metastore.v1alpha.CreateMetadataImportRequest;
+
+ /**
+ * Verifies a CreateMetadataImportRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a CreateMetadataImportRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CreateMetadataImportRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.metastore.v1alpha.CreateMetadataImportRequest;
+
+ /**
+ * Creates a plain object from a CreateMetadataImportRequest message. Also converts values to other types if specified.
+ * @param message CreateMetadataImportRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.metastore.v1alpha.CreateMetadataImportRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CreateMetadataImportRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CreateMetadataImportRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an UpdateMetadataImportRequest. */
+ interface IUpdateMetadataImportRequest {
+
+ /** UpdateMetadataImportRequest updateMask */
+ updateMask?: (google.protobuf.IFieldMask|null);
+
+ /** UpdateMetadataImportRequest metadataImport */
+ metadataImport?: (google.cloud.metastore.v1alpha.IMetadataImport|null);
+
+ /** UpdateMetadataImportRequest requestId */
+ requestId?: (string|null);
+ }
+
+ /** Represents an UpdateMetadataImportRequest. */
+ class UpdateMetadataImportRequest implements IUpdateMetadataImportRequest {
+
+ /**
+ * Constructs a new UpdateMetadataImportRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.metastore.v1alpha.IUpdateMetadataImportRequest);
+
+ /** UpdateMetadataImportRequest updateMask. */
+ public updateMask?: (google.protobuf.IFieldMask|null);
+
+ /** UpdateMetadataImportRequest metadataImport. */
+ public metadataImport?: (google.cloud.metastore.v1alpha.IMetadataImport|null);
+
+ /** UpdateMetadataImportRequest requestId. */
+ public requestId: string;
+
+ /**
+ * Creates a new UpdateMetadataImportRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns UpdateMetadataImportRequest instance
+ */
+ public static create(properties?: google.cloud.metastore.v1alpha.IUpdateMetadataImportRequest): google.cloud.metastore.v1alpha.UpdateMetadataImportRequest;
+
+ /**
+ * Encodes the specified UpdateMetadataImportRequest message. Does not implicitly {@link google.cloud.metastore.v1alpha.UpdateMetadataImportRequest.verify|verify} messages.
+ * @param message UpdateMetadataImportRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.metastore.v1alpha.IUpdateMetadataImportRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified UpdateMetadataImportRequest message, length delimited. Does not implicitly {@link google.cloud.metastore.v1alpha.UpdateMetadataImportRequest.verify|verify} messages.
+ * @param message UpdateMetadataImportRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.metastore.v1alpha.IUpdateMetadataImportRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an UpdateMetadataImportRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns UpdateMetadataImportRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.metastore.v1alpha.UpdateMetadataImportRequest;
+
+ /**
+ * Decodes an UpdateMetadataImportRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns UpdateMetadataImportRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.metastore.v1alpha.UpdateMetadataImportRequest;
+
+ /**
+ * Verifies an UpdateMetadataImportRequest message.
+ * @param message Plain 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 UpdateMetadataImportRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns UpdateMetadataImportRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.metastore.v1alpha.UpdateMetadataImportRequest;
+
+ /**
+ * Creates a plain object from an UpdateMetadataImportRequest message. Also converts values to other types if specified.
+ * @param message UpdateMetadataImportRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.metastore.v1alpha.UpdateMetadataImportRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this UpdateMetadataImportRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for UpdateMetadataImportRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListBackupsRequest. */
+ interface IListBackupsRequest {
+
+ /** ListBackupsRequest parent */
+ parent?: (string|null);
+
+ /** ListBackupsRequest pageSize */
+ pageSize?: (number|null);
+
+ /** ListBackupsRequest pageToken */
+ pageToken?: (string|null);
+
+ /** ListBackupsRequest filter */
+ filter?: (string|null);
+
+ /** ListBackupsRequest orderBy */
+ orderBy?: (string|null);
+ }
+
+ /** Represents a ListBackupsRequest. */
+ class ListBackupsRequest implements IListBackupsRequest {
+
+ /**
+ * Constructs a new ListBackupsRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.metastore.v1alpha.IListBackupsRequest);
+
+ /** ListBackupsRequest parent. */
+ public parent: string;
+
+ /** ListBackupsRequest pageSize. */
+ public pageSize: number;
+
+ /** ListBackupsRequest pageToken. */
+ public pageToken: string;
+
+ /** ListBackupsRequest filter. */
+ public filter: string;
+
+ /** ListBackupsRequest orderBy. */
+ public orderBy: string;
+
+ /**
+ * Creates a new ListBackupsRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListBackupsRequest instance
+ */
+ public static create(properties?: google.cloud.metastore.v1alpha.IListBackupsRequest): google.cloud.metastore.v1alpha.ListBackupsRequest;
+
+ /**
+ * Encodes the specified ListBackupsRequest message. Does not implicitly {@link google.cloud.metastore.v1alpha.ListBackupsRequest.verify|verify} messages.
+ * @param message ListBackupsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.metastore.v1alpha.IListBackupsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListBackupsRequest message, length delimited. Does not implicitly {@link google.cloud.metastore.v1alpha.ListBackupsRequest.verify|verify} messages.
+ * @param message ListBackupsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.metastore.v1alpha.IListBackupsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListBackupsRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListBackupsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.metastore.v1alpha.ListBackupsRequest;
+
+ /**
+ * Decodes a ListBackupsRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListBackupsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.metastore.v1alpha.ListBackupsRequest;
+
+ /**
+ * Verifies a ListBackupsRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListBackupsRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListBackupsRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.metastore.v1alpha.ListBackupsRequest;
+
+ /**
+ * Creates a plain object from a ListBackupsRequest message. Also converts values to other types if specified.
+ * @param message ListBackupsRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.metastore.v1alpha.ListBackupsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListBackupsRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListBackupsRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListBackupsResponse. */
+ interface IListBackupsResponse {
+
+ /** ListBackupsResponse backups */
+ backups?: (google.cloud.metastore.v1alpha.IBackup[]|null);
+
+ /** ListBackupsResponse nextPageToken */
+ nextPageToken?: (string|null);
+
+ /** ListBackupsResponse unreachable */
+ unreachable?: (string[]|null);
+ }
+
+ /** Represents a ListBackupsResponse. */
+ class ListBackupsResponse implements IListBackupsResponse {
+
+ /**
+ * Constructs a new ListBackupsResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.metastore.v1alpha.IListBackupsResponse);
+
+ /** ListBackupsResponse backups. */
+ public backups: google.cloud.metastore.v1alpha.IBackup[];
+
+ /** ListBackupsResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /** ListBackupsResponse unreachable. */
+ public unreachable: string[];
+
+ /**
+ * Creates a new ListBackupsResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListBackupsResponse instance
+ */
+ public static create(properties?: google.cloud.metastore.v1alpha.IListBackupsResponse): google.cloud.metastore.v1alpha.ListBackupsResponse;
+
+ /**
+ * Encodes the specified ListBackupsResponse message. Does not implicitly {@link google.cloud.metastore.v1alpha.ListBackupsResponse.verify|verify} messages.
+ * @param message ListBackupsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.metastore.v1alpha.IListBackupsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListBackupsResponse message, length delimited. Does not implicitly {@link google.cloud.metastore.v1alpha.ListBackupsResponse.verify|verify} messages.
+ * @param message ListBackupsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.metastore.v1alpha.IListBackupsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListBackupsResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListBackupsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.metastore.v1alpha.ListBackupsResponse;
+
+ /**
+ * Decodes a ListBackupsResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListBackupsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.metastore.v1alpha.ListBackupsResponse;
+
+ /**
+ * Verifies a ListBackupsResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListBackupsResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListBackupsResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.metastore.v1alpha.ListBackupsResponse;
+
+ /**
+ * Creates a plain object from a ListBackupsResponse message. Also converts values to other types if specified.
+ * @param message ListBackupsResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.metastore.v1alpha.ListBackupsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListBackupsResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListBackupsResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GetBackupRequest. */
+ interface IGetBackupRequest {
+
+ /** GetBackupRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a GetBackupRequest. */
+ class GetBackupRequest implements IGetBackupRequest {
+
+ /**
+ * Constructs a new GetBackupRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.metastore.v1alpha.IGetBackupRequest);
+
+ /** GetBackupRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new GetBackupRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetBackupRequest instance
+ */
+ public static create(properties?: google.cloud.metastore.v1alpha.IGetBackupRequest): google.cloud.metastore.v1alpha.GetBackupRequest;
+
+ /**
+ * Encodes the specified GetBackupRequest message. Does not implicitly {@link google.cloud.metastore.v1alpha.GetBackupRequest.verify|verify} messages.
+ * @param message GetBackupRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.metastore.v1alpha.IGetBackupRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetBackupRequest message, length delimited. Does not implicitly {@link google.cloud.metastore.v1alpha.GetBackupRequest.verify|verify} messages.
+ * @param message GetBackupRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.metastore.v1alpha.IGetBackupRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetBackupRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetBackupRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.metastore.v1alpha.GetBackupRequest;
+
+ /**
+ * Decodes a GetBackupRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetBackupRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.metastore.v1alpha.GetBackupRequest;
+
+ /**
+ * Verifies a GetBackupRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GetBackupRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetBackupRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.metastore.v1alpha.GetBackupRequest;
+
+ /**
+ * Creates a plain object from a GetBackupRequest message. Also converts values to other types if specified.
+ * @param message GetBackupRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.metastore.v1alpha.GetBackupRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetBackupRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetBackupRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CreateBackupRequest. */
+ interface ICreateBackupRequest {
+
+ /** CreateBackupRequest parent */
+ parent?: (string|null);
+
+ /** CreateBackupRequest backupId */
+ backupId?: (string|null);
+
+ /** CreateBackupRequest backup */
+ backup?: (google.cloud.metastore.v1alpha.IBackup|null);
+
+ /** CreateBackupRequest requestId */
+ requestId?: (string|null);
+ }
+
+ /** Represents a CreateBackupRequest. */
+ class CreateBackupRequest implements ICreateBackupRequest {
+
+ /**
+ * Constructs a new CreateBackupRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.metastore.v1alpha.ICreateBackupRequest);
+
+ /** CreateBackupRequest parent. */
+ public parent: string;
+
+ /** CreateBackupRequest backupId. */
+ public backupId: string;
+
+ /** CreateBackupRequest backup. */
+ public backup?: (google.cloud.metastore.v1alpha.IBackup|null);
+
+ /** CreateBackupRequest requestId. */
+ public requestId: string;
+
+ /**
+ * Creates a new CreateBackupRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CreateBackupRequest instance
+ */
+ public static create(properties?: google.cloud.metastore.v1alpha.ICreateBackupRequest): google.cloud.metastore.v1alpha.CreateBackupRequest;
+
+ /**
+ * Encodes the specified CreateBackupRequest message. Does not implicitly {@link google.cloud.metastore.v1alpha.CreateBackupRequest.verify|verify} messages.
+ * @param message CreateBackupRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.metastore.v1alpha.ICreateBackupRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CreateBackupRequest message, length delimited. Does not implicitly {@link google.cloud.metastore.v1alpha.CreateBackupRequest.verify|verify} messages.
+ * @param message CreateBackupRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.metastore.v1alpha.ICreateBackupRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CreateBackupRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CreateBackupRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.metastore.v1alpha.CreateBackupRequest;
+
+ /**
+ * Decodes a CreateBackupRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CreateBackupRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.metastore.v1alpha.CreateBackupRequest;
+
+ /**
+ * Verifies a CreateBackupRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a CreateBackupRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CreateBackupRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.metastore.v1alpha.CreateBackupRequest;
+
+ /**
+ * Creates a plain object from a CreateBackupRequest message. Also converts values to other types if specified.
+ * @param message CreateBackupRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.metastore.v1alpha.CreateBackupRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CreateBackupRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CreateBackupRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DeleteBackupRequest. */
+ interface IDeleteBackupRequest {
+
+ /** DeleteBackupRequest name */
+ name?: (string|null);
+
+ /** DeleteBackupRequest requestId */
+ requestId?: (string|null);
+ }
+
+ /** Represents a DeleteBackupRequest. */
+ class DeleteBackupRequest implements IDeleteBackupRequest {
+
+ /**
+ * Constructs a new DeleteBackupRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.metastore.v1alpha.IDeleteBackupRequest);
+
+ /** DeleteBackupRequest name. */
+ public name: string;
+
+ /** DeleteBackupRequest requestId. */
+ public requestId: string;
+
+ /**
+ * Creates a new DeleteBackupRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DeleteBackupRequest instance
+ */
+ public static create(properties?: google.cloud.metastore.v1alpha.IDeleteBackupRequest): google.cloud.metastore.v1alpha.DeleteBackupRequest;
+
+ /**
+ * Encodes the specified DeleteBackupRequest message. Does not implicitly {@link google.cloud.metastore.v1alpha.DeleteBackupRequest.verify|verify} messages.
+ * @param message DeleteBackupRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.metastore.v1alpha.IDeleteBackupRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DeleteBackupRequest message, length delimited. Does not implicitly {@link google.cloud.metastore.v1alpha.DeleteBackupRequest.verify|verify} messages.
+ * @param message DeleteBackupRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.metastore.v1alpha.IDeleteBackupRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DeleteBackupRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DeleteBackupRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.metastore.v1alpha.DeleteBackupRequest;
+
+ /**
+ * Decodes a DeleteBackupRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DeleteBackupRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.metastore.v1alpha.DeleteBackupRequest;
+
+ /**
+ * Verifies a DeleteBackupRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DeleteBackupRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DeleteBackupRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.metastore.v1alpha.DeleteBackupRequest;
+
+ /**
+ * Creates a plain object from a DeleteBackupRequest message. Also converts values to other types if specified.
+ * @param message DeleteBackupRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.metastore.v1alpha.DeleteBackupRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DeleteBackupRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DeleteBackupRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an ExportMetadataRequest. */
+ interface IExportMetadataRequest {
+
+ /** ExportMetadataRequest destinationGcsFolder */
+ destinationGcsFolder?: (string|null);
+
+ /** ExportMetadataRequest service */
+ service?: (string|null);
+
+ /** ExportMetadataRequest requestId */
+ requestId?: (string|null);
+
+ /** ExportMetadataRequest databaseDumpType */
+ databaseDumpType?: (google.cloud.metastore.v1alpha.DatabaseDumpSpec.Type|keyof typeof google.cloud.metastore.v1alpha.DatabaseDumpSpec.Type|null);
+ }
+
+ /** Represents an ExportMetadataRequest. */
+ class ExportMetadataRequest implements IExportMetadataRequest {
+
+ /**
+ * Constructs a new ExportMetadataRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.metastore.v1alpha.IExportMetadataRequest);
+
+ /** ExportMetadataRequest destinationGcsFolder. */
+ public destinationGcsFolder?: (string|null);
+
+ /** ExportMetadataRequest service. */
+ public service: string;
+
+ /** ExportMetadataRequest requestId. */
+ public requestId: string;
+
+ /** ExportMetadataRequest databaseDumpType. */
+ public databaseDumpType: (google.cloud.metastore.v1alpha.DatabaseDumpSpec.Type|keyof typeof google.cloud.metastore.v1alpha.DatabaseDumpSpec.Type);
+
+ /** ExportMetadataRequest destination. */
+ public destination?: "destinationGcsFolder";
+
+ /**
+ * Creates a new ExportMetadataRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ExportMetadataRequest instance
+ */
+ public static create(properties?: google.cloud.metastore.v1alpha.IExportMetadataRequest): google.cloud.metastore.v1alpha.ExportMetadataRequest;
+
+ /**
+ * Encodes the specified ExportMetadataRequest message. Does not implicitly {@link google.cloud.metastore.v1alpha.ExportMetadataRequest.verify|verify} messages.
+ * @param message ExportMetadataRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.metastore.v1alpha.IExportMetadataRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ExportMetadataRequest message, length delimited. Does not implicitly {@link google.cloud.metastore.v1alpha.ExportMetadataRequest.verify|verify} messages.
+ * @param message ExportMetadataRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.metastore.v1alpha.IExportMetadataRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an ExportMetadataRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ExportMetadataRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.metastore.v1alpha.ExportMetadataRequest;
+
+ /**
+ * Decodes an ExportMetadataRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ExportMetadataRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.metastore.v1alpha.ExportMetadataRequest;
+
+ /**
+ * Verifies an ExportMetadataRequest message.
+ * @param message Plain 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 ExportMetadataRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ExportMetadataRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.metastore.v1alpha.ExportMetadataRequest;
+
+ /**
+ * Creates a plain object from an ExportMetadataRequest message. Also converts values to other types if specified.
+ * @param message ExportMetadataRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.metastore.v1alpha.ExportMetadataRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ExportMetadataRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ExportMetadataRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a RestoreServiceRequest. */
+ interface IRestoreServiceRequest {
+
+ /** RestoreServiceRequest service */
+ service?: (string|null);
+
+ /** RestoreServiceRequest backup */
+ backup?: (string|null);
+
+ /** RestoreServiceRequest restoreType */
+ restoreType?: (google.cloud.metastore.v1alpha.Restore.RestoreType|keyof typeof google.cloud.metastore.v1alpha.Restore.RestoreType|null);
+
+ /** RestoreServiceRequest requestId */
+ requestId?: (string|null);
+ }
+
+ /** Represents a RestoreServiceRequest. */
+ class RestoreServiceRequest implements IRestoreServiceRequest {
+
+ /**
+ * Constructs a new RestoreServiceRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.metastore.v1alpha.IRestoreServiceRequest);
+
+ /** RestoreServiceRequest service. */
+ public service: string;
+
+ /** RestoreServiceRequest backup. */
+ public backup: string;
+
+ /** RestoreServiceRequest restoreType. */
+ public restoreType: (google.cloud.metastore.v1alpha.Restore.RestoreType|keyof typeof google.cloud.metastore.v1alpha.Restore.RestoreType);
+
+ /** RestoreServiceRequest requestId. */
+ public requestId: string;
+
+ /**
+ * Creates a new RestoreServiceRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns RestoreServiceRequest instance
+ */
+ public static create(properties?: google.cloud.metastore.v1alpha.IRestoreServiceRequest): google.cloud.metastore.v1alpha.RestoreServiceRequest;
+
+ /**
+ * Encodes the specified RestoreServiceRequest message. Does not implicitly {@link google.cloud.metastore.v1alpha.RestoreServiceRequest.verify|verify} messages.
+ * @param message RestoreServiceRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.metastore.v1alpha.IRestoreServiceRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified RestoreServiceRequest message, length delimited. Does not implicitly {@link google.cloud.metastore.v1alpha.RestoreServiceRequest.verify|verify} messages.
+ * @param message RestoreServiceRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.metastore.v1alpha.IRestoreServiceRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a RestoreServiceRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns RestoreServiceRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.metastore.v1alpha.RestoreServiceRequest;
+
+ /**
+ * Decodes a RestoreServiceRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns RestoreServiceRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.metastore.v1alpha.RestoreServiceRequest;
+
+ /**
+ * Verifies a RestoreServiceRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a RestoreServiceRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns RestoreServiceRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.metastore.v1alpha.RestoreServiceRequest;
+
+ /**
+ * Creates a plain object from a RestoreServiceRequest message. Also converts values to other types if specified.
+ * @param message RestoreServiceRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.metastore.v1alpha.RestoreServiceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this RestoreServiceRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for RestoreServiceRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an OperationMetadata. */
+ interface IOperationMetadata {
+
+ /** OperationMetadata createTime */
+ createTime?: (google.protobuf.ITimestamp|null);
+
+ /** OperationMetadata endTime */
+ endTime?: (google.protobuf.ITimestamp|null);
+
+ /** OperationMetadata target */
+ target?: (string|null);
+
+ /** OperationMetadata verb */
+ verb?: (string|null);
+
+ /** OperationMetadata statusMessage */
+ statusMessage?: (string|null);
+
+ /** OperationMetadata requestedCancellation */
+ requestedCancellation?: (boolean|null);
+
+ /** OperationMetadata apiVersion */
+ apiVersion?: (string|null);
+ }
+
+ /** Represents an OperationMetadata. */
+ class OperationMetadata implements IOperationMetadata {
+
+ /**
+ * Constructs a new OperationMetadata.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.metastore.v1alpha.IOperationMetadata);
+
+ /** OperationMetadata createTime. */
+ public createTime?: (google.protobuf.ITimestamp|null);
+
+ /** OperationMetadata endTime. */
+ public endTime?: (google.protobuf.ITimestamp|null);
+
+ /** OperationMetadata target. */
+ public target: string;
+
+ /** OperationMetadata verb. */
+ public verb: string;
+
+ /** OperationMetadata statusMessage. */
+ public statusMessage: string;
+
+ /** OperationMetadata requestedCancellation. */
+ public requestedCancellation: boolean;
+
+ /** OperationMetadata apiVersion. */
+ public apiVersion: string;
+
+ /**
+ * Creates a new OperationMetadata instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns OperationMetadata instance
+ */
+ public static create(properties?: google.cloud.metastore.v1alpha.IOperationMetadata): google.cloud.metastore.v1alpha.OperationMetadata;
+
+ /**
+ * Encodes the specified OperationMetadata message. Does not implicitly {@link google.cloud.metastore.v1alpha.OperationMetadata.verify|verify} messages.
+ * @param message OperationMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.metastore.v1alpha.IOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified OperationMetadata message, length delimited. Does not implicitly {@link google.cloud.metastore.v1alpha.OperationMetadata.verify|verify} messages.
+ * @param message OperationMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.metastore.v1alpha.IOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an OperationMetadata message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns OperationMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.metastore.v1alpha.OperationMetadata;
+
+ /**
+ * Decodes an OperationMetadata message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns OperationMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.metastore.v1alpha.OperationMetadata;
+
+ /**
+ * Verifies an OperationMetadata message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an OperationMetadata message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns OperationMetadata
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.metastore.v1alpha.OperationMetadata;
+
+ /**
+ * Creates a plain object from an OperationMetadata message. Also converts values to other types if specified.
+ * @param message OperationMetadata
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.metastore.v1alpha.OperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this OperationMetadata to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for OperationMetadata
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a LocationMetadata. */
+ interface ILocationMetadata {
+
+ /** LocationMetadata supportedHiveMetastoreVersions */
+ supportedHiveMetastoreVersions?: (google.cloud.metastore.v1alpha.LocationMetadata.IHiveMetastoreVersion[]|null);
+ }
+
+ /** Represents a LocationMetadata. */
+ class LocationMetadata implements ILocationMetadata {
+
+ /**
+ * Constructs a new LocationMetadata.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.metastore.v1alpha.ILocationMetadata);
+
+ /** LocationMetadata supportedHiveMetastoreVersions. */
+ public supportedHiveMetastoreVersions: google.cloud.metastore.v1alpha.LocationMetadata.IHiveMetastoreVersion[];
+
+ /**
+ * Creates a new LocationMetadata instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns LocationMetadata instance
+ */
+ public static create(properties?: google.cloud.metastore.v1alpha.ILocationMetadata): google.cloud.metastore.v1alpha.LocationMetadata;
+
+ /**
+ * Encodes the specified LocationMetadata message. Does not implicitly {@link google.cloud.metastore.v1alpha.LocationMetadata.verify|verify} messages.
+ * @param message LocationMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.metastore.v1alpha.ILocationMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified LocationMetadata message, length delimited. Does not implicitly {@link google.cloud.metastore.v1alpha.LocationMetadata.verify|verify} messages.
+ * @param message LocationMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.metastore.v1alpha.ILocationMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a LocationMetadata message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns LocationMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.metastore.v1alpha.LocationMetadata;
+
+ /**
+ * Decodes a LocationMetadata message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns LocationMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.metastore.v1alpha.LocationMetadata;
+
+ /**
+ * Verifies a LocationMetadata message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a LocationMetadata message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns LocationMetadata
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.metastore.v1alpha.LocationMetadata;
+
+ /**
+ * Creates a plain object from a LocationMetadata message. Also converts values to other types if specified.
+ * @param message LocationMetadata
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.metastore.v1alpha.LocationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this LocationMetadata to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for LocationMetadata
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace LocationMetadata {
+
+ /** Properties of a HiveMetastoreVersion. */
+ interface IHiveMetastoreVersion {
+
+ /** HiveMetastoreVersion version */
+ version?: (string|null);
+
+ /** HiveMetastoreVersion isDefault */
+ isDefault?: (boolean|null);
+ }
+
+ /** Represents a HiveMetastoreVersion. */
+ class HiveMetastoreVersion implements IHiveMetastoreVersion {
+
+ /**
+ * Constructs a new HiveMetastoreVersion.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.metastore.v1alpha.LocationMetadata.IHiveMetastoreVersion);
+
+ /** HiveMetastoreVersion version. */
+ public version: string;
+
+ /** HiveMetastoreVersion isDefault. */
+ public isDefault: boolean;
+
+ /**
+ * Creates a new HiveMetastoreVersion instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns HiveMetastoreVersion instance
+ */
+ public static create(properties?: google.cloud.metastore.v1alpha.LocationMetadata.IHiveMetastoreVersion): google.cloud.metastore.v1alpha.LocationMetadata.HiveMetastoreVersion;
+
+ /**
+ * Encodes the specified HiveMetastoreVersion message. Does not implicitly {@link google.cloud.metastore.v1alpha.LocationMetadata.HiveMetastoreVersion.verify|verify} messages.
+ * @param message HiveMetastoreVersion message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.metastore.v1alpha.LocationMetadata.IHiveMetastoreVersion, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified HiveMetastoreVersion message, length delimited. Does not implicitly {@link google.cloud.metastore.v1alpha.LocationMetadata.HiveMetastoreVersion.verify|verify} messages.
+ * @param message HiveMetastoreVersion message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.metastore.v1alpha.LocationMetadata.IHiveMetastoreVersion, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a HiveMetastoreVersion message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns HiveMetastoreVersion
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.metastore.v1alpha.LocationMetadata.HiveMetastoreVersion;
+
+ /**
+ * Decodes a HiveMetastoreVersion message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns HiveMetastoreVersion
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.metastore.v1alpha.LocationMetadata.HiveMetastoreVersion;
+
+ /**
+ * Verifies a HiveMetastoreVersion message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a HiveMetastoreVersion message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns HiveMetastoreVersion
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.metastore.v1alpha.LocationMetadata.HiveMetastoreVersion;
+
+ /**
+ * Creates a plain object from a HiveMetastoreVersion message. Also converts values to other types if specified.
+ * @param message HiveMetastoreVersion
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.metastore.v1alpha.LocationMetadata.HiveMetastoreVersion, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this HiveMetastoreVersion to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for HiveMetastoreVersion
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of a DatabaseDumpSpec. */
+ interface IDatabaseDumpSpec {
+ }
+
+ /** Represents a DatabaseDumpSpec. */
+ class DatabaseDumpSpec implements IDatabaseDumpSpec {
+
+ /**
+ * Constructs a new DatabaseDumpSpec.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.metastore.v1alpha.IDatabaseDumpSpec);
+
+ /**
+ * Creates a new DatabaseDumpSpec instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DatabaseDumpSpec instance
+ */
+ public static create(properties?: google.cloud.metastore.v1alpha.IDatabaseDumpSpec): google.cloud.metastore.v1alpha.DatabaseDumpSpec;
+
+ /**
+ * Encodes the specified DatabaseDumpSpec message. Does not implicitly {@link google.cloud.metastore.v1alpha.DatabaseDumpSpec.verify|verify} messages.
+ * @param message DatabaseDumpSpec message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.metastore.v1alpha.IDatabaseDumpSpec, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DatabaseDumpSpec message, length delimited. Does not implicitly {@link google.cloud.metastore.v1alpha.DatabaseDumpSpec.verify|verify} messages.
+ * @param message DatabaseDumpSpec message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.metastore.v1alpha.IDatabaseDumpSpec, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DatabaseDumpSpec message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DatabaseDumpSpec
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.metastore.v1alpha.DatabaseDumpSpec;
+
+ /**
+ * Decodes a DatabaseDumpSpec message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DatabaseDumpSpec
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.metastore.v1alpha.DatabaseDumpSpec;
+
+ /**
+ * Verifies a DatabaseDumpSpec message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DatabaseDumpSpec message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DatabaseDumpSpec
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.metastore.v1alpha.DatabaseDumpSpec;
+
+ /**
+ * Creates a plain object from a DatabaseDumpSpec message. Also converts values to other types if specified.
+ * @param message DatabaseDumpSpec
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.metastore.v1alpha.DatabaseDumpSpec, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DatabaseDumpSpec to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DatabaseDumpSpec
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace DatabaseDumpSpec {
+
+ /** Type enum. */
+ enum Type {
+ TYPE_UNSPECIFIED = 0,
+ MYSQL = 1,
+ AVRO = 2
+ }
+ }
+ }
+
+ /** Namespace v1beta. */
+ namespace v1beta {
+
+ /** Represents a DataprocMetastore */
+ class DataprocMetastore extends $protobuf.rpc.Service {
+
+ /**
+ * Constructs a new DataprocMetastore 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 DataprocMetastore 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): DataprocMetastore;
+
+ /**
+ * Calls ListServices.
+ * @param request ListServicesRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListServicesResponse
+ */
+ public listServices(request: google.cloud.metastore.v1beta.IListServicesRequest, callback: google.cloud.metastore.v1beta.DataprocMetastore.ListServicesCallback): void;
+
+ /**
+ * Calls ListServices.
+ * @param request ListServicesRequest message or plain object
+ * @returns Promise
+ */
+ public listServices(request: google.cloud.metastore.v1beta.IListServicesRequest): Promise;
+
+ /**
+ * Calls GetService.
+ * @param request GetServiceRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Service
+ */
+ public getService(request: google.cloud.metastore.v1beta.IGetServiceRequest, callback: google.cloud.metastore.v1beta.DataprocMetastore.GetServiceCallback): void;
+
+ /**
+ * Calls GetService.
+ * @param request GetServiceRequest message or plain object
+ * @returns Promise
+ */
+ public getService(request: google.cloud.metastore.v1beta.IGetServiceRequest): Promise;
+
+ /**
+ * Calls CreateService.
+ * @param request CreateServiceRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public createService(request: google.cloud.metastore.v1beta.ICreateServiceRequest, callback: google.cloud.metastore.v1beta.DataprocMetastore.CreateServiceCallback): void;
+
+ /**
+ * Calls CreateService.
+ * @param request CreateServiceRequest message or plain object
+ * @returns Promise
+ */
+ public createService(request: google.cloud.metastore.v1beta.ICreateServiceRequest): Promise;
+
+ /**
+ * Calls UpdateService.
+ * @param request UpdateServiceRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public updateService(request: google.cloud.metastore.v1beta.IUpdateServiceRequest, callback: google.cloud.metastore.v1beta.DataprocMetastore.UpdateServiceCallback): void;
+
+ /**
+ * Calls UpdateService.
+ * @param request UpdateServiceRequest message or plain object
+ * @returns Promise
+ */
+ public updateService(request: google.cloud.metastore.v1beta.IUpdateServiceRequest): Promise;
+
+ /**
+ * Calls DeleteService.
+ * @param request DeleteServiceRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public deleteService(request: google.cloud.metastore.v1beta.IDeleteServiceRequest, callback: google.cloud.metastore.v1beta.DataprocMetastore.DeleteServiceCallback): void;
+
+ /**
+ * Calls DeleteService.
+ * @param request DeleteServiceRequest message or plain object
+ * @returns Promise
+ */
+ public deleteService(request: google.cloud.metastore.v1beta.IDeleteServiceRequest): Promise;
+
+ /**
+ * Calls ListMetadataImports.
+ * @param request ListMetadataImportsRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListMetadataImportsResponse
+ */
+ public listMetadataImports(request: google.cloud.metastore.v1beta.IListMetadataImportsRequest, callback: google.cloud.metastore.v1beta.DataprocMetastore.ListMetadataImportsCallback): void;
+
+ /**
+ * Calls ListMetadataImports.
+ * @param request ListMetadataImportsRequest message or plain object
+ * @returns Promise
+ */
+ public listMetadataImports(request: google.cloud.metastore.v1beta.IListMetadataImportsRequest): Promise;
+
+ /**
+ * Calls GetMetadataImport.
+ * @param request GetMetadataImportRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and MetadataImport
+ */
+ public getMetadataImport(request: google.cloud.metastore.v1beta.IGetMetadataImportRequest, callback: google.cloud.metastore.v1beta.DataprocMetastore.GetMetadataImportCallback): void;
+
+ /**
+ * Calls GetMetadataImport.
+ * @param request GetMetadataImportRequest message or plain object
+ * @returns Promise
+ */
+ public getMetadataImport(request: google.cloud.metastore.v1beta.IGetMetadataImportRequest): Promise;
+
+ /**
+ * Calls CreateMetadataImport.
+ * @param request CreateMetadataImportRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public createMetadataImport(request: google.cloud.metastore.v1beta.ICreateMetadataImportRequest, callback: google.cloud.metastore.v1beta.DataprocMetastore.CreateMetadataImportCallback): void;
+
+ /**
+ * Calls CreateMetadataImport.
+ * @param request CreateMetadataImportRequest message or plain object
+ * @returns Promise
+ */
+ public createMetadataImport(request: google.cloud.metastore.v1beta.ICreateMetadataImportRequest): Promise;
+
+ /**
+ * Calls UpdateMetadataImport.
+ * @param request UpdateMetadataImportRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public updateMetadataImport(request: google.cloud.metastore.v1beta.IUpdateMetadataImportRequest, callback: google.cloud.metastore.v1beta.DataprocMetastore.UpdateMetadataImportCallback): void;
+
+ /**
+ * Calls UpdateMetadataImport.
+ * @param request UpdateMetadataImportRequest message or plain object
+ * @returns Promise
+ */
+ public updateMetadataImport(request: google.cloud.metastore.v1beta.IUpdateMetadataImportRequest): Promise;
+
+ /**
+ * Calls ExportMetadata.
+ * @param request ExportMetadataRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public exportMetadata(request: google.cloud.metastore.v1beta.IExportMetadataRequest, callback: google.cloud.metastore.v1beta.DataprocMetastore.ExportMetadataCallback): void;
+
+ /**
+ * Calls ExportMetadata.
+ * @param request ExportMetadataRequest message or plain object
+ * @returns Promise
+ */
+ public exportMetadata(request: google.cloud.metastore.v1beta.IExportMetadataRequest): Promise;
+
+ /**
+ * Calls RestoreService.
+ * @param request RestoreServiceRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public restoreService(request: google.cloud.metastore.v1beta.IRestoreServiceRequest, callback: google.cloud.metastore.v1beta.DataprocMetastore.RestoreServiceCallback): void;
+
+ /**
+ * Calls RestoreService.
+ * @param request RestoreServiceRequest message or plain object
+ * @returns Promise
+ */
+ public restoreService(request: google.cloud.metastore.v1beta.IRestoreServiceRequest): Promise;
+
+ /**
+ * Calls ListBackups.
+ * @param request ListBackupsRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListBackupsResponse
+ */
+ public listBackups(request: google.cloud.metastore.v1beta.IListBackupsRequest, callback: google.cloud.metastore.v1beta.DataprocMetastore.ListBackupsCallback): void;
+
+ /**
+ * Calls ListBackups.
+ * @param request ListBackupsRequest message or plain object
+ * @returns Promise
+ */
+ public listBackups(request: google.cloud.metastore.v1beta.IListBackupsRequest): Promise;
+
+ /**
+ * Calls GetBackup.
+ * @param request GetBackupRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Backup
+ */
+ public getBackup(request: google.cloud.metastore.v1beta.IGetBackupRequest, callback: google.cloud.metastore.v1beta.DataprocMetastore.GetBackupCallback): void;
+
+ /**
+ * Calls GetBackup.
+ * @param request GetBackupRequest message or plain object
+ * @returns Promise
+ */
+ public getBackup(request: google.cloud.metastore.v1beta.IGetBackupRequest): Promise;
+
+ /**
+ * Calls CreateBackup.
+ * @param request CreateBackupRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public createBackup(request: google.cloud.metastore.v1beta.ICreateBackupRequest, callback: google.cloud.metastore.v1beta.DataprocMetastore.CreateBackupCallback): void;
+
+ /**
+ * Calls CreateBackup.
+ * @param request CreateBackupRequest message or plain object
+ * @returns Promise
+ */
+ public createBackup(request: google.cloud.metastore.v1beta.ICreateBackupRequest): Promise;
+
+ /**
+ * Calls DeleteBackup.
+ * @param request DeleteBackupRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public deleteBackup(request: google.cloud.metastore.v1beta.IDeleteBackupRequest, callback: google.cloud.metastore.v1beta.DataprocMetastore.DeleteBackupCallback): void;
+
+ /**
+ * Calls DeleteBackup.
+ * @param request DeleteBackupRequest message or plain object
+ * @returns Promise
+ */
+ public deleteBackup(request: google.cloud.metastore.v1beta.IDeleteBackupRequest): Promise;
+ }
+
+ namespace DataprocMetastore {
+
+ /**
+ * Callback as used by {@link google.cloud.metastore.v1beta.DataprocMetastore|listServices}.
+ * @param error Error, if any
+ * @param [response] ListServicesResponse
+ */
+ type ListServicesCallback = (error: (Error|null), response?: google.cloud.metastore.v1beta.ListServicesResponse) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.metastore.v1beta.DataprocMetastore|getService}.
+ * @param error Error, if any
+ * @param [response] Service
+ */
+ type GetServiceCallback = (error: (Error|null), response?: google.cloud.metastore.v1beta.Service) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.metastore.v1beta.DataprocMetastore|createService}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type CreateServiceCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.metastore.v1beta.DataprocMetastore|updateService}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type UpdateServiceCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.metastore.v1beta.DataprocMetastore|deleteService}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type DeleteServiceCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.metastore.v1beta.DataprocMetastore|listMetadataImports}.
+ * @param error Error, if any
+ * @param [response] ListMetadataImportsResponse
+ */
+ type ListMetadataImportsCallback = (error: (Error|null), response?: google.cloud.metastore.v1beta.ListMetadataImportsResponse) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.metastore.v1beta.DataprocMetastore|getMetadataImport}.
+ * @param error Error, if any
+ * @param [response] MetadataImport
+ */
+ type GetMetadataImportCallback = (error: (Error|null), response?: google.cloud.metastore.v1beta.MetadataImport) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.metastore.v1beta.DataprocMetastore|createMetadataImport}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type CreateMetadataImportCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.metastore.v1beta.DataprocMetastore|updateMetadataImport}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type UpdateMetadataImportCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.metastore.v1beta.DataprocMetastore|exportMetadata}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type ExportMetadataCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.metastore.v1beta.DataprocMetastore|restoreService}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type RestoreServiceCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.metastore.v1beta.DataprocMetastore|listBackups}.
+ * @param error Error, if any
+ * @param [response] ListBackupsResponse
+ */
+ type ListBackupsCallback = (error: (Error|null), response?: google.cloud.metastore.v1beta.ListBackupsResponse) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.metastore.v1beta.DataprocMetastore|getBackup}.
+ * @param error Error, if any
+ * @param [response] Backup
+ */
+ type GetBackupCallback = (error: (Error|null), response?: google.cloud.metastore.v1beta.Backup) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.metastore.v1beta.DataprocMetastore|createBackup}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type CreateBackupCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.metastore.v1beta.DataprocMetastore|deleteBackup}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type DeleteBackupCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+ }
+
+ /** Properties of a Service. */
+ interface IService {
+
+ /** Service hiveMetastoreConfig */
+ hiveMetastoreConfig?: (google.cloud.metastore.v1beta.IHiveMetastoreConfig|null);
+
+ /** Service name */
+ name?: (string|null);
+
+ /** Service createTime */
+ createTime?: (google.protobuf.ITimestamp|null);
+
+ /** Service updateTime */
+ updateTime?: (google.protobuf.ITimestamp|null);
+
+ /** Service labels */
+ labels?: ({ [k: string]: string }|null);
+
+ /** Service network */
+ network?: (string|null);
+
+ /** Service endpointUri */
+ endpointUri?: (string|null);
+
+ /** Service port */
+ port?: (number|null);
+
+ /** Service state */
+ state?: (google.cloud.metastore.v1beta.Service.State|keyof typeof google.cloud.metastore.v1beta.Service.State|null);
+
+ /** Service stateMessage */
+ stateMessage?: (string|null);
+
+ /** Service artifactGcsUri */
+ artifactGcsUri?: (string|null);
+
+ /** Service tier */
+ tier?: (google.cloud.metastore.v1beta.Service.Tier|keyof typeof google.cloud.metastore.v1beta.Service.Tier|null);
+
+ /** Service metadataIntegration */
+ metadataIntegration?: (google.cloud.metastore.v1beta.IMetadataIntegration|null);
+
+ /** Service maintenanceWindow */
+ maintenanceWindow?: (google.cloud.metastore.v1beta.IMaintenanceWindow|null);
+
+ /** Service uid */
+ uid?: (string|null);
+
+ /** Service metadataManagementActivity */
+ metadataManagementActivity?: (google.cloud.metastore.v1beta.IMetadataManagementActivity|null);
+
+ /** Service releaseChannel */
+ releaseChannel?: (google.cloud.metastore.v1beta.Service.ReleaseChannel|keyof typeof google.cloud.metastore.v1beta.Service.ReleaseChannel|null);
+ }
+
+ /** Represents a Service. */
+ class Service implements IService {
+
+ /**
+ * Constructs a new Service.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.metastore.v1beta.IService);
+
+ /** Service hiveMetastoreConfig. */
+ public hiveMetastoreConfig?: (google.cloud.metastore.v1beta.IHiveMetastoreConfig|null);
+
+ /** Service name. */
+ public name: string;
+
+ /** Service createTime. */
+ public createTime?: (google.protobuf.ITimestamp|null);
+
+ /** Service updateTime. */
+ public updateTime?: (google.protobuf.ITimestamp|null);
+
+ /** Service labels. */
+ public labels: { [k: string]: string };
+
+ /** Service network. */
+ public network: string;
+
+ /** Service endpointUri. */
+ public endpointUri: string;
+
+ /** Service port. */
+ public port: number;
+
+ /** Service state. */
+ public state: (google.cloud.metastore.v1beta.Service.State|keyof typeof google.cloud.metastore.v1beta.Service.State);
+
+ /** Service stateMessage. */
+ public stateMessage: string;
+
+ /** Service artifactGcsUri. */
+ public artifactGcsUri: string;
+
+ /** Service tier. */
+ public tier: (google.cloud.metastore.v1beta.Service.Tier|keyof typeof google.cloud.metastore.v1beta.Service.Tier);
+
+ /** Service metadataIntegration. */
+ public metadataIntegration?: (google.cloud.metastore.v1beta.IMetadataIntegration|null);
+
+ /** Service maintenanceWindow. */
+ public maintenanceWindow?: (google.cloud.metastore.v1beta.IMaintenanceWindow|null);
+
+ /** Service uid. */
+ public uid: string;
+
+ /** Service metadataManagementActivity. */
+ public metadataManagementActivity?: (google.cloud.metastore.v1beta.IMetadataManagementActivity|null);
+
+ /** Service releaseChannel. */
+ public releaseChannel: (google.cloud.metastore.v1beta.Service.ReleaseChannel|keyof typeof google.cloud.metastore.v1beta.Service.ReleaseChannel);
+
+ /** Service metastoreConfig. */
+ public metastoreConfig?: "hiveMetastoreConfig";
+
+ /**
+ * Creates a new Service instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Service instance
+ */
+ public static create(properties?: google.cloud.metastore.v1beta.IService): google.cloud.metastore.v1beta.Service;
+
+ /**
+ * Encodes the specified Service message. Does not implicitly {@link google.cloud.metastore.v1beta.Service.verify|verify} messages.
+ * @param message Service message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.metastore.v1beta.IService, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Service message, length delimited. Does not implicitly {@link google.cloud.metastore.v1beta.Service.verify|verify} messages.
+ * @param message Service message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.metastore.v1beta.IService, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Service message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Service
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.metastore.v1beta.Service;
+
+ /**
+ * Decodes a Service message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Service
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.metastore.v1beta.Service;
+
+ /**
+ * Verifies a Service message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Service message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Service
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.metastore.v1beta.Service;
+
+ /**
+ * Creates a plain object from a Service message. Also converts values to other types if specified.
+ * @param message Service
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.metastore.v1beta.Service, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Service to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Service
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace Service {
+
+ /** State enum. */
+ enum State {
+ STATE_UNSPECIFIED = 0,
+ CREATING = 1,
+ ACTIVE = 2,
+ SUSPENDING = 3,
+ SUSPENDED = 4,
+ UPDATING = 5,
+ DELETING = 6,
+ ERROR = 7
+ }
+
+ /** Tier enum. */
+ enum Tier {
+ TIER_UNSPECIFIED = 0,
+ DEVELOPER = 1,
+ ENTERPRISE = 3
+ }
+
+ /** ReleaseChannel enum. */
+ enum ReleaseChannel {
+ RELEASE_CHANNEL_UNSPECIFIED = 0,
+ CANARY = 1,
+ STABLE = 2
+ }
+ }
+
+ /** Properties of a MetadataIntegration. */
+ interface IMetadataIntegration {
+
+ /** MetadataIntegration dataCatalogConfig */
+ dataCatalogConfig?: (google.cloud.metastore.v1beta.IDataCatalogConfig|null);
+ }
+
+ /** Represents a MetadataIntegration. */
+ class MetadataIntegration implements IMetadataIntegration {
+
+ /**
+ * Constructs a new MetadataIntegration.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.metastore.v1beta.IMetadataIntegration);
+
+ /** MetadataIntegration dataCatalogConfig. */
+ public dataCatalogConfig?: (google.cloud.metastore.v1beta.IDataCatalogConfig|null);
+
+ /**
+ * Creates a new MetadataIntegration instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns MetadataIntegration instance
+ */
+ public static create(properties?: google.cloud.metastore.v1beta.IMetadataIntegration): google.cloud.metastore.v1beta.MetadataIntegration;
+
+ /**
+ * Encodes the specified MetadataIntegration message. Does not implicitly {@link google.cloud.metastore.v1beta.MetadataIntegration.verify|verify} messages.
+ * @param message MetadataIntegration message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.metastore.v1beta.IMetadataIntegration, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified MetadataIntegration message, length delimited. Does not implicitly {@link google.cloud.metastore.v1beta.MetadataIntegration.verify|verify} messages.
+ * @param message MetadataIntegration message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.metastore.v1beta.IMetadataIntegration, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a MetadataIntegration message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns MetadataIntegration
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.metastore.v1beta.MetadataIntegration;
+
+ /**
+ * Decodes a MetadataIntegration message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns MetadataIntegration
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.metastore.v1beta.MetadataIntegration;
+
+ /**
+ * Verifies a MetadataIntegration message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a MetadataIntegration message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns MetadataIntegration
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.metastore.v1beta.MetadataIntegration;
+
+ /**
+ * Creates a plain object from a MetadataIntegration message. Also converts values to other types if specified.
+ * @param message MetadataIntegration
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.metastore.v1beta.MetadataIntegration, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this MetadataIntegration to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for MetadataIntegration
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DataCatalogConfig. */
+ interface IDataCatalogConfig {
+
+ /** DataCatalogConfig enabled */
+ enabled?: (boolean|null);
+ }
+
+ /** Represents a DataCatalogConfig. */
+ class DataCatalogConfig implements IDataCatalogConfig {
+
+ /**
+ * Constructs a new DataCatalogConfig.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.metastore.v1beta.IDataCatalogConfig);
+
+ /** DataCatalogConfig enabled. */
+ public enabled: boolean;
+
+ /**
+ * Creates a new DataCatalogConfig instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DataCatalogConfig instance
+ */
+ public static create(properties?: google.cloud.metastore.v1beta.IDataCatalogConfig): google.cloud.metastore.v1beta.DataCatalogConfig;
+
+ /**
+ * Encodes the specified DataCatalogConfig message. Does not implicitly {@link google.cloud.metastore.v1beta.DataCatalogConfig.verify|verify} messages.
+ * @param message DataCatalogConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.metastore.v1beta.IDataCatalogConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DataCatalogConfig message, length delimited. Does not implicitly {@link google.cloud.metastore.v1beta.DataCatalogConfig.verify|verify} messages.
+ * @param message DataCatalogConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.metastore.v1beta.IDataCatalogConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DataCatalogConfig message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DataCatalogConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.metastore.v1beta.DataCatalogConfig;
+
+ /**
+ * Decodes a DataCatalogConfig message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DataCatalogConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.metastore.v1beta.DataCatalogConfig;
+
+ /**
+ * Verifies a DataCatalogConfig message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DataCatalogConfig message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DataCatalogConfig
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.metastore.v1beta.DataCatalogConfig;
+
+ /**
+ * Creates a plain object from a DataCatalogConfig message. Also converts values to other types if specified.
+ * @param message DataCatalogConfig
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.metastore.v1beta.DataCatalogConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DataCatalogConfig to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DataCatalogConfig
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a MaintenanceWindow. */
+ interface IMaintenanceWindow {
+
+ /** MaintenanceWindow hourOfDay */
+ hourOfDay?: (google.protobuf.IInt32Value|null);
+
+ /** MaintenanceWindow dayOfWeek */
+ dayOfWeek?: (google.type.DayOfWeek|keyof typeof google.type.DayOfWeek|null);
+ }
+
+ /** Represents a MaintenanceWindow. */
+ class MaintenanceWindow implements IMaintenanceWindow {
+
+ /**
+ * Constructs a new MaintenanceWindow.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.metastore.v1beta.IMaintenanceWindow);
+
+ /** MaintenanceWindow hourOfDay. */
+ public hourOfDay?: (google.protobuf.IInt32Value|null);
+
+ /** MaintenanceWindow dayOfWeek. */
+ public dayOfWeek: (google.type.DayOfWeek|keyof typeof google.type.DayOfWeek);
+
+ /**
+ * Creates a new MaintenanceWindow instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns MaintenanceWindow instance
+ */
+ public static create(properties?: google.cloud.metastore.v1beta.IMaintenanceWindow): google.cloud.metastore.v1beta.MaintenanceWindow;
+
+ /**
+ * Encodes the specified MaintenanceWindow message. Does not implicitly {@link google.cloud.metastore.v1beta.MaintenanceWindow.verify|verify} messages.
+ * @param message MaintenanceWindow message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.metastore.v1beta.IMaintenanceWindow, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified MaintenanceWindow message, length delimited. Does not implicitly {@link google.cloud.metastore.v1beta.MaintenanceWindow.verify|verify} messages.
+ * @param message MaintenanceWindow message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.metastore.v1beta.IMaintenanceWindow, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a MaintenanceWindow message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns MaintenanceWindow
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.metastore.v1beta.MaintenanceWindow;
+
+ /**
+ * Decodes a MaintenanceWindow message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns MaintenanceWindow
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.metastore.v1beta.MaintenanceWindow;
+
+ /**
+ * Verifies a MaintenanceWindow message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a MaintenanceWindow message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns MaintenanceWindow
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.metastore.v1beta.MaintenanceWindow;
+
+ /**
+ * Creates a plain object from a MaintenanceWindow message. Also converts values to other types if specified.
+ * @param message MaintenanceWindow
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.metastore.v1beta.MaintenanceWindow, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this MaintenanceWindow to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for MaintenanceWindow
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a HiveMetastoreConfig. */
+ interface IHiveMetastoreConfig {
+
+ /** HiveMetastoreConfig version */
+ version?: (string|null);
+
+ /** HiveMetastoreConfig configOverrides */
+ configOverrides?: ({ [k: string]: string }|null);
+
+ /** HiveMetastoreConfig kerberosConfig */
+ kerberosConfig?: (google.cloud.metastore.v1beta.IKerberosConfig|null);
+ }
+
+ /** Represents a HiveMetastoreConfig. */
+ class HiveMetastoreConfig implements IHiveMetastoreConfig {
+
+ /**
+ * Constructs a new HiveMetastoreConfig.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.metastore.v1beta.IHiveMetastoreConfig);
+
+ /** HiveMetastoreConfig version. */
+ public version: string;
+
+ /** HiveMetastoreConfig configOverrides. */
+ public configOverrides: { [k: string]: string };
+
+ /** HiveMetastoreConfig kerberosConfig. */
+ public kerberosConfig?: (google.cloud.metastore.v1beta.IKerberosConfig|null);
+
+ /**
+ * Creates a new HiveMetastoreConfig instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns HiveMetastoreConfig instance
+ */
+ public static create(properties?: google.cloud.metastore.v1beta.IHiveMetastoreConfig): google.cloud.metastore.v1beta.HiveMetastoreConfig;
+
+ /**
+ * Encodes the specified HiveMetastoreConfig message. Does not implicitly {@link google.cloud.metastore.v1beta.HiveMetastoreConfig.verify|verify} messages.
+ * @param message HiveMetastoreConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.metastore.v1beta.IHiveMetastoreConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified HiveMetastoreConfig message, length delimited. Does not implicitly {@link google.cloud.metastore.v1beta.HiveMetastoreConfig.verify|verify} messages.
+ * @param message HiveMetastoreConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.metastore.v1beta.IHiveMetastoreConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a HiveMetastoreConfig message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns HiveMetastoreConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.metastore.v1beta.HiveMetastoreConfig;
+
+ /**
+ * Decodes a HiveMetastoreConfig message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns HiveMetastoreConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.metastore.v1beta.HiveMetastoreConfig;
+
+ /**
+ * Verifies a HiveMetastoreConfig message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a HiveMetastoreConfig message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns HiveMetastoreConfig
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.metastore.v1beta.HiveMetastoreConfig;
+
+ /**
+ * Creates a plain object from a HiveMetastoreConfig message. Also converts values to other types if specified.
+ * @param message HiveMetastoreConfig
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.metastore.v1beta.HiveMetastoreConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this HiveMetastoreConfig to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for HiveMetastoreConfig
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a KerberosConfig. */
+ interface IKerberosConfig {
+
+ /** KerberosConfig keytab */
+ keytab?: (google.cloud.metastore.v1beta.ISecret|null);
+
+ /** KerberosConfig principal */
+ principal?: (string|null);
+
+ /** KerberosConfig krb5ConfigGcsUri */
+ krb5ConfigGcsUri?: (string|null);
+ }
+
+ /** Represents a KerberosConfig. */
+ class KerberosConfig implements IKerberosConfig {
+
+ /**
+ * Constructs a new KerberosConfig.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.metastore.v1beta.IKerberosConfig);
+
+ /** KerberosConfig keytab. */
+ public keytab?: (google.cloud.metastore.v1beta.ISecret|null);
+
+ /** KerberosConfig principal. */
+ public principal: string;
+
+ /** KerberosConfig krb5ConfigGcsUri. */
+ public krb5ConfigGcsUri: string;
+
+ /**
+ * Creates a new KerberosConfig instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns KerberosConfig instance
+ */
+ public static create(properties?: google.cloud.metastore.v1beta.IKerberosConfig): google.cloud.metastore.v1beta.KerberosConfig;
+
+ /**
+ * Encodes the specified KerberosConfig message. Does not implicitly {@link google.cloud.metastore.v1beta.KerberosConfig.verify|verify} messages.
+ * @param message KerberosConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.metastore.v1beta.IKerberosConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified KerberosConfig message, length delimited. Does not implicitly {@link google.cloud.metastore.v1beta.KerberosConfig.verify|verify} messages.
+ * @param message KerberosConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.metastore.v1beta.IKerberosConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a KerberosConfig message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns KerberosConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.metastore.v1beta.KerberosConfig;
+
+ /**
+ * Decodes a KerberosConfig message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns KerberosConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.metastore.v1beta.KerberosConfig;
+
+ /**
+ * Verifies a KerberosConfig message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a KerberosConfig message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns KerberosConfig
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.metastore.v1beta.KerberosConfig;
+
+ /**
+ * Creates a plain object from a KerberosConfig message. Also converts values to other types if specified.
+ * @param message KerberosConfig
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.metastore.v1beta.KerberosConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this KerberosConfig to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for KerberosConfig
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Secret. */
+ interface ISecret {
+
+ /** Secret cloudSecret */
+ cloudSecret?: (string|null);
+ }
+
+ /** Represents a Secret. */
+ class Secret implements ISecret {
+
+ /**
+ * Constructs a new Secret.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.metastore.v1beta.ISecret);
+
+ /** Secret cloudSecret. */
+ public cloudSecret?: (string|null);
+
+ /** Secret value. */
+ public value?: "cloudSecret";
+
+ /**
+ * Creates a new Secret instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Secret instance
+ */
+ public static create(properties?: google.cloud.metastore.v1beta.ISecret): google.cloud.metastore.v1beta.Secret;
+
+ /**
+ * Encodes the specified Secret message. Does not implicitly {@link google.cloud.metastore.v1beta.Secret.verify|verify} messages.
+ * @param message Secret message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.metastore.v1beta.ISecret, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Secret message, length delimited. Does not implicitly {@link google.cloud.metastore.v1beta.Secret.verify|verify} messages.
+ * @param message Secret message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.metastore.v1beta.ISecret, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Secret message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Secret
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.metastore.v1beta.Secret;
+
+ /**
+ * Decodes a Secret message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Secret
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.metastore.v1beta.Secret;
+
+ /**
+ * Verifies a Secret message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Secret message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Secret
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.metastore.v1beta.Secret;
+
+ /**
+ * Creates a plain object from a Secret message. Also converts values to other types if specified.
+ * @param message Secret
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.metastore.v1beta.Secret, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Secret to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Secret
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a MetadataManagementActivity. */
+ interface IMetadataManagementActivity {
+
+ /** MetadataManagementActivity metadataExports */
+ metadataExports?: (google.cloud.metastore.v1beta.IMetadataExport[]|null);
+
+ /** MetadataManagementActivity restores */
+ restores?: (google.cloud.metastore.v1beta.IRestore[]|null);
+ }
+
+ /** Represents a MetadataManagementActivity. */
+ class MetadataManagementActivity implements IMetadataManagementActivity {
+
+ /**
+ * Constructs a new MetadataManagementActivity.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.metastore.v1beta.IMetadataManagementActivity);
+
+ /** MetadataManagementActivity metadataExports. */
+ public metadataExports: google.cloud.metastore.v1beta.IMetadataExport[];
+
+ /** MetadataManagementActivity restores. */
+ public restores: google.cloud.metastore.v1beta.IRestore[];
+
+ /**
+ * Creates a new MetadataManagementActivity instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns MetadataManagementActivity instance
+ */
+ public static create(properties?: google.cloud.metastore.v1beta.IMetadataManagementActivity): google.cloud.metastore.v1beta.MetadataManagementActivity;
+
+ /**
+ * Encodes the specified MetadataManagementActivity message. Does not implicitly {@link google.cloud.metastore.v1beta.MetadataManagementActivity.verify|verify} messages.
+ * @param message MetadataManagementActivity message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.metastore.v1beta.IMetadataManagementActivity, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified MetadataManagementActivity message, length delimited. Does not implicitly {@link google.cloud.metastore.v1beta.MetadataManagementActivity.verify|verify} messages.
+ * @param message MetadataManagementActivity message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.metastore.v1beta.IMetadataManagementActivity, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a MetadataManagementActivity message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns MetadataManagementActivity
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.metastore.v1beta.MetadataManagementActivity;
+
+ /**
+ * Decodes a MetadataManagementActivity message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns MetadataManagementActivity
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.metastore.v1beta.MetadataManagementActivity;
+
+ /**
+ * Verifies a MetadataManagementActivity message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a MetadataManagementActivity message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns MetadataManagementActivity
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.metastore.v1beta.MetadataManagementActivity;
+
+ /**
+ * Creates a plain object from a MetadataManagementActivity message. Also converts values to other types if specified.
+ * @param message MetadataManagementActivity
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.metastore.v1beta.MetadataManagementActivity, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this MetadataManagementActivity to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for MetadataManagementActivity
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a MetadataImport. */
+ interface IMetadataImport {
+
+ /** MetadataImport databaseDump */
+ databaseDump?: (google.cloud.metastore.v1beta.MetadataImport.IDatabaseDump|null);
+
+ /** MetadataImport name */
+ name?: (string|null);
+
+ /** MetadataImport description */
+ description?: (string|null);
+
+ /** MetadataImport createTime */
+ createTime?: (google.protobuf.ITimestamp|null);
+
+ /** MetadataImport updateTime */
+ updateTime?: (google.protobuf.ITimestamp|null);
+
+ /** MetadataImport state */
+ state?: (google.cloud.metastore.v1beta.MetadataImport.State|keyof typeof google.cloud.metastore.v1beta.MetadataImport.State|null);
+ }
+
+ /** Represents a MetadataImport. */
+ class MetadataImport implements IMetadataImport {
+
+ /**
+ * Constructs a new MetadataImport.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.metastore.v1beta.IMetadataImport);
+
+ /** MetadataImport databaseDump. */
+ public databaseDump?: (google.cloud.metastore.v1beta.MetadataImport.IDatabaseDump|null);
+
+ /** MetadataImport name. */
+ public name: string;
+
+ /** MetadataImport description. */
+ public description: string;
+
+ /** MetadataImport createTime. */
+ public createTime?: (google.protobuf.ITimestamp|null);
+
+ /** MetadataImport updateTime. */
+ public updateTime?: (google.protobuf.ITimestamp|null);
+
+ /** MetadataImport state. */
+ public state: (google.cloud.metastore.v1beta.MetadataImport.State|keyof typeof google.cloud.metastore.v1beta.MetadataImport.State);
+
+ /** MetadataImport metadata. */
+ public metadata?: "databaseDump";
+
+ /**
+ * Creates a new MetadataImport instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns MetadataImport instance
+ */
+ public static create(properties?: google.cloud.metastore.v1beta.IMetadataImport): google.cloud.metastore.v1beta.MetadataImport;
+
+ /**
+ * Encodes the specified MetadataImport message. Does not implicitly {@link google.cloud.metastore.v1beta.MetadataImport.verify|verify} messages.
+ * @param message MetadataImport message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.metastore.v1beta.IMetadataImport, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified MetadataImport message, length delimited. Does not implicitly {@link google.cloud.metastore.v1beta.MetadataImport.verify|verify} messages.
+ * @param message MetadataImport message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.metastore.v1beta.IMetadataImport, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a MetadataImport message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns MetadataImport
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.metastore.v1beta.MetadataImport;
+
+ /**
+ * Decodes a MetadataImport message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns MetadataImport
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.metastore.v1beta.MetadataImport;
+
+ /**
+ * Verifies a MetadataImport message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a MetadataImport message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns MetadataImport
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.metastore.v1beta.MetadataImport;
+
+ /**
+ * Creates a plain object from a MetadataImport message. Also converts values to other types if specified.
+ * @param message MetadataImport
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.metastore.v1beta.MetadataImport, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this MetadataImport to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for MetadataImport
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace MetadataImport {
+
+ /** Properties of a DatabaseDump. */
+ interface IDatabaseDump {
+
+ /** DatabaseDump databaseType */
+ databaseType?: (google.cloud.metastore.v1beta.MetadataImport.DatabaseDump.DatabaseType|keyof typeof google.cloud.metastore.v1beta.MetadataImport.DatabaseDump.DatabaseType|null);
+
+ /** DatabaseDump gcsUri */
+ gcsUri?: (string|null);
+
+ /** DatabaseDump sourceDatabase */
+ sourceDatabase?: (string|null);
+
+ /** DatabaseDump type */
+ type?: (google.cloud.metastore.v1beta.DatabaseDumpSpec.Type|keyof typeof google.cloud.metastore.v1beta.DatabaseDumpSpec.Type|null);
+ }
+
+ /** Represents a DatabaseDump. */
+ class DatabaseDump implements IDatabaseDump {
+
+ /**
+ * Constructs a new DatabaseDump.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.metastore.v1beta.MetadataImport.IDatabaseDump);
+
+ /** DatabaseDump databaseType. */
+ public databaseType: (google.cloud.metastore.v1beta.MetadataImport.DatabaseDump.DatabaseType|keyof typeof google.cloud.metastore.v1beta.MetadataImport.DatabaseDump.DatabaseType);
+
+ /** DatabaseDump gcsUri. */
+ public gcsUri: string;
+
+ /** DatabaseDump sourceDatabase. */
+ public sourceDatabase: string;
+
+ /** DatabaseDump type. */
+ public type: (google.cloud.metastore.v1beta.DatabaseDumpSpec.Type|keyof typeof google.cloud.metastore.v1beta.DatabaseDumpSpec.Type);
+
+ /**
+ * Creates a new DatabaseDump instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DatabaseDump instance
+ */
+ public static create(properties?: google.cloud.metastore.v1beta.MetadataImport.IDatabaseDump): google.cloud.metastore.v1beta.MetadataImport.DatabaseDump;
+
+ /**
+ * Encodes the specified DatabaseDump message. Does not implicitly {@link google.cloud.metastore.v1beta.MetadataImport.DatabaseDump.verify|verify} messages.
+ * @param message DatabaseDump message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.metastore.v1beta.MetadataImport.IDatabaseDump, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DatabaseDump message, length delimited. Does not implicitly {@link google.cloud.metastore.v1beta.MetadataImport.DatabaseDump.verify|verify} messages.
+ * @param message DatabaseDump message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.metastore.v1beta.MetadataImport.IDatabaseDump, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DatabaseDump message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DatabaseDump
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.metastore.v1beta.MetadataImport.DatabaseDump;
+
+ /**
+ * Decodes a DatabaseDump message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DatabaseDump
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.metastore.v1beta.MetadataImport.DatabaseDump;
+
+ /**
+ * Verifies a DatabaseDump message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DatabaseDump message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DatabaseDump
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.metastore.v1beta.MetadataImport.DatabaseDump;
+
+ /**
+ * Creates a plain object from a DatabaseDump message. Also converts values to other types if specified.
+ * @param message DatabaseDump
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.metastore.v1beta.MetadataImport.DatabaseDump, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DatabaseDump to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DatabaseDump
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace DatabaseDump {
+
+ /** DatabaseType enum. */
+ enum DatabaseType {
+ DATABASE_TYPE_UNSPECIFIED = 0,
+ MYSQL = 1
+ }
+ }
+
+ /** State enum. */
+ enum State {
+ STATE_UNSPECIFIED = 0,
+ RUNNING = 1,
+ SUCCEEDED = 2,
+ UPDATING = 3,
+ FAILED = 4
+ }
+ }
+
+ /** Properties of a MetadataExport. */
+ interface IMetadataExport {
+
+ /** MetadataExport destinationGcsUri */
+ destinationGcsUri?: (string|null);
+
+ /** MetadataExport startTime */
+ startTime?: (google.protobuf.ITimestamp|null);
+
+ /** MetadataExport endTime */
+ endTime?: (google.protobuf.ITimestamp|null);
+
+ /** MetadataExport state */
+ state?: (google.cloud.metastore.v1beta.MetadataExport.State|keyof typeof google.cloud.metastore.v1beta.MetadataExport.State|null);
+
+ /** MetadataExport databaseDumpType */
+ databaseDumpType?: (google.cloud.metastore.v1beta.DatabaseDumpSpec.Type|keyof typeof google.cloud.metastore.v1beta.DatabaseDumpSpec.Type|null);
+ }
+
+ /** Represents a MetadataExport. */
+ class MetadataExport implements IMetadataExport {
+
+ /**
+ * Constructs a new MetadataExport.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.metastore.v1beta.IMetadataExport);
+
+ /** MetadataExport destinationGcsUri. */
+ public destinationGcsUri?: (string|null);
+
+ /** MetadataExport startTime. */
+ public startTime?: (google.protobuf.ITimestamp|null);
+
+ /** MetadataExport endTime. */
+ public endTime?: (google.protobuf.ITimestamp|null);
+
+ /** MetadataExport state. */
+ public state: (google.cloud.metastore.v1beta.MetadataExport.State|keyof typeof google.cloud.metastore.v1beta.MetadataExport.State);
+
+ /** MetadataExport databaseDumpType. */
+ public databaseDumpType: (google.cloud.metastore.v1beta.DatabaseDumpSpec.Type|keyof typeof google.cloud.metastore.v1beta.DatabaseDumpSpec.Type);
+
+ /** MetadataExport destination. */
+ public destination?: "destinationGcsUri";
+
+ /**
+ * Creates a new MetadataExport instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns MetadataExport instance
+ */
+ public static create(properties?: google.cloud.metastore.v1beta.IMetadataExport): google.cloud.metastore.v1beta.MetadataExport;
+
+ /**
+ * Encodes the specified MetadataExport message. Does not implicitly {@link google.cloud.metastore.v1beta.MetadataExport.verify|verify} messages.
+ * @param message MetadataExport message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.metastore.v1beta.IMetadataExport, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified MetadataExport message, length delimited. Does not implicitly {@link google.cloud.metastore.v1beta.MetadataExport.verify|verify} messages.
+ * @param message MetadataExport message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.metastore.v1beta.IMetadataExport, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a MetadataExport message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns MetadataExport
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.metastore.v1beta.MetadataExport;
+
+ /**
+ * Decodes a MetadataExport message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns MetadataExport
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.metastore.v1beta.MetadataExport;
+
+ /**
+ * Verifies a MetadataExport message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a MetadataExport message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns MetadataExport
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.metastore.v1beta.MetadataExport;
+
+ /**
+ * Creates a plain object from a MetadataExport message. Also converts values to other types if specified.
+ * @param message MetadataExport
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.metastore.v1beta.MetadataExport, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this MetadataExport to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for MetadataExport
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace MetadataExport {
+
+ /** State enum. */
+ enum State {
+ STATE_UNSPECIFIED = 0,
+ RUNNING = 1,
+ SUCCEEDED = 2,
+ FAILED = 3,
+ CANCELLED = 4
+ }
+ }
+
+ /** Properties of a Backup. */
+ interface IBackup {
+
+ /** Backup name */
+ name?: (string|null);
+
+ /** Backup createTime */
+ createTime?: (google.protobuf.ITimestamp|null);
+
+ /** Backup endTime */
+ endTime?: (google.protobuf.ITimestamp|null);
+
+ /** Backup state */
+ state?: (google.cloud.metastore.v1beta.Backup.State|keyof typeof google.cloud.metastore.v1beta.Backup.State|null);
+
+ /** Backup serviceRevision */
+ serviceRevision?: (google.cloud.metastore.v1beta.IService|null);
+
+ /** Backup description */
+ description?: (string|null);
+ }
+
+ /** Represents a Backup. */
+ class Backup implements IBackup {
+
+ /**
+ * Constructs a new Backup.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.metastore.v1beta.IBackup);
+
+ /** Backup name. */
+ public name: string;
+
+ /** Backup createTime. */
+ public createTime?: (google.protobuf.ITimestamp|null);
+
+ /** Backup endTime. */
+ public endTime?: (google.protobuf.ITimestamp|null);
+
+ /** Backup state. */
+ public state: (google.cloud.metastore.v1beta.Backup.State|keyof typeof google.cloud.metastore.v1beta.Backup.State);
+
+ /** Backup serviceRevision. */
+ public serviceRevision?: (google.cloud.metastore.v1beta.IService|null);
+
+ /** Backup description. */
+ public description: string;
+
+ /**
+ * Creates a new Backup instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Backup instance
+ */
+ public static create(properties?: google.cloud.metastore.v1beta.IBackup): google.cloud.metastore.v1beta.Backup;
+
+ /**
+ * Encodes the specified Backup message. Does not implicitly {@link google.cloud.metastore.v1beta.Backup.verify|verify} messages.
+ * @param message Backup message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.metastore.v1beta.IBackup, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Backup message, length delimited. Does not implicitly {@link google.cloud.metastore.v1beta.Backup.verify|verify} messages.
+ * @param message Backup message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.metastore.v1beta.IBackup, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Backup message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Backup
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.metastore.v1beta.Backup;
+
+ /**
+ * Decodes a Backup message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Backup
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.metastore.v1beta.Backup;
+
+ /**
+ * Verifies a Backup message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Backup message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Backup
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.metastore.v1beta.Backup;
+
+ /**
+ * Creates a plain object from a Backup message. Also converts values to other types if specified.
+ * @param message Backup
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.metastore.v1beta.Backup, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Backup to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Backup
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace Backup {
+
+ /** State enum. */
+ enum State {
+ STATE_UNSPECIFIED = 0,
+ CREATING = 1,
+ DELETING = 2,
+ ACTIVE = 3,
+ FAILED = 4
+ }
+ }
+
+ /** Properties of a Restore. */
+ interface IRestore {
+
+ /** Restore startTime */
+ startTime?: (google.protobuf.ITimestamp|null);
+
+ /** Restore endTime */
+ endTime?: (google.protobuf.ITimestamp|null);
+
+ /** Restore state */
+ state?: (google.cloud.metastore.v1beta.Restore.State|keyof typeof google.cloud.metastore.v1beta.Restore.State|null);
+
+ /** Restore backup */
+ backup?: (string|null);
+
+ /** Restore type */
+ type?: (google.cloud.metastore.v1beta.Restore.RestoreType|keyof typeof google.cloud.metastore.v1beta.Restore.RestoreType|null);
+
+ /** Restore details */
+ details?: (string|null);
+ }
+
+ /** Represents a Restore. */
+ class Restore implements IRestore {
+
+ /**
+ * Constructs a new Restore.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.metastore.v1beta.IRestore);
+
+ /** Restore startTime. */
+ public startTime?: (google.protobuf.ITimestamp|null);
+
+ /** Restore endTime. */
+ public endTime?: (google.protobuf.ITimestamp|null);
+
+ /** Restore state. */
+ public state: (google.cloud.metastore.v1beta.Restore.State|keyof typeof google.cloud.metastore.v1beta.Restore.State);
+
+ /** Restore backup. */
+ public backup: string;
+
+ /** Restore type. */
+ public type: (google.cloud.metastore.v1beta.Restore.RestoreType|keyof typeof google.cloud.metastore.v1beta.Restore.RestoreType);
+
+ /** Restore details. */
+ public details: string;
+
+ /**
+ * Creates a new Restore instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Restore instance
+ */
+ public static create(properties?: google.cloud.metastore.v1beta.IRestore): google.cloud.metastore.v1beta.Restore;
+
+ /**
+ * Encodes the specified Restore message. Does not implicitly {@link google.cloud.metastore.v1beta.Restore.verify|verify} messages.
+ * @param message Restore message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.metastore.v1beta.IRestore, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Restore message, length delimited. Does not implicitly {@link google.cloud.metastore.v1beta.Restore.verify|verify} messages.
+ * @param message Restore message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.metastore.v1beta.IRestore, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Restore message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Restore
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.metastore.v1beta.Restore;
+
+ /**
+ * Decodes a Restore message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Restore
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.metastore.v1beta.Restore;
+
+ /**
+ * Verifies a Restore message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Restore message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Restore
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.metastore.v1beta.Restore;
+
+ /**
+ * Creates a plain object from a Restore message. Also converts values to other types if specified.
+ * @param message Restore
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.metastore.v1beta.Restore, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Restore to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Restore
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace Restore {
+
+ /** State enum. */
+ enum State {
+ STATE_UNSPECIFIED = 0,
+ RUNNING = 1,
+ SUCCEEDED = 2,
+ FAILED = 3,
+ CANCELLED = 4
+ }
+
+ /** RestoreType enum. */
+ enum RestoreType {
+ RESTORE_TYPE_UNSPECIFIED = 0,
+ FULL = 1,
+ METADATA_ONLY = 2
+ }
+ }
+
+ /** Properties of a ListServicesRequest. */
+ interface IListServicesRequest {
+
+ /** ListServicesRequest parent */
+ parent?: (string|null);
+
+ /** ListServicesRequest pageSize */
+ pageSize?: (number|null);
+
+ /** ListServicesRequest pageToken */
+ pageToken?: (string|null);
+
+ /** ListServicesRequest filter */
+ filter?: (string|null);
+
+ /** ListServicesRequest orderBy */
+ orderBy?: (string|null);
+ }
+
+ /** Represents a ListServicesRequest. */
+ class ListServicesRequest implements IListServicesRequest {
+
+ /**
+ * Constructs a new ListServicesRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.metastore.v1beta.IListServicesRequest);
+
+ /** ListServicesRequest parent. */
+ public parent: string;
+
+ /** ListServicesRequest pageSize. */
+ public pageSize: number;
+
+ /** ListServicesRequest pageToken. */
+ public pageToken: string;
+
+ /** ListServicesRequest filter. */
+ public filter: string;
+
+ /** ListServicesRequest orderBy. */
+ public orderBy: string;
+
+ /**
+ * Creates a new ListServicesRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListServicesRequest instance
+ */
+ public static create(properties?: google.cloud.metastore.v1beta.IListServicesRequest): google.cloud.metastore.v1beta.ListServicesRequest;
+
+ /**
+ * Encodes the specified ListServicesRequest message. Does not implicitly {@link google.cloud.metastore.v1beta.ListServicesRequest.verify|verify} messages.
+ * @param message ListServicesRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.metastore.v1beta.IListServicesRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListServicesRequest message, length delimited. Does not implicitly {@link google.cloud.metastore.v1beta.ListServicesRequest.verify|verify} messages.
+ * @param message ListServicesRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.metastore.v1beta.IListServicesRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListServicesRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListServicesRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.metastore.v1beta.ListServicesRequest;
+
+ /**
+ * Decodes a ListServicesRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListServicesRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.metastore.v1beta.ListServicesRequest;
+
+ /**
+ * Verifies a ListServicesRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListServicesRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListServicesRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.metastore.v1beta.ListServicesRequest;
+
+ /**
+ * Creates a plain object from a ListServicesRequest message. Also converts values to other types if specified.
+ * @param message ListServicesRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.metastore.v1beta.ListServicesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListServicesRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListServicesRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListServicesResponse. */
+ interface IListServicesResponse {
+
+ /** ListServicesResponse services */
+ services?: (google.cloud.metastore.v1beta.IService[]|null);
+
+ /** ListServicesResponse nextPageToken */
+ nextPageToken?: (string|null);
+
+ /** ListServicesResponse unreachable */
+ unreachable?: (string[]|null);
+ }
+
+ /** Represents a ListServicesResponse. */
+ class ListServicesResponse implements IListServicesResponse {
+
+ /**
+ * Constructs a new ListServicesResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.metastore.v1beta.IListServicesResponse);
+
+ /** ListServicesResponse services. */
+ public services: google.cloud.metastore.v1beta.IService[];
+
+ /** ListServicesResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /** ListServicesResponse unreachable. */
+ public unreachable: string[];
+
+ /**
+ * Creates a new ListServicesResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListServicesResponse instance
+ */
+ public static create(properties?: google.cloud.metastore.v1beta.IListServicesResponse): google.cloud.metastore.v1beta.ListServicesResponse;
+
+ /**
+ * Encodes the specified ListServicesResponse message. Does not implicitly {@link google.cloud.metastore.v1beta.ListServicesResponse.verify|verify} messages.
+ * @param message ListServicesResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.metastore.v1beta.IListServicesResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListServicesResponse message, length delimited. Does not implicitly {@link google.cloud.metastore.v1beta.ListServicesResponse.verify|verify} messages.
+ * @param message ListServicesResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.metastore.v1beta.IListServicesResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListServicesResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListServicesResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.metastore.v1beta.ListServicesResponse;
+
+ /**
+ * Decodes a ListServicesResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListServicesResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.metastore.v1beta.ListServicesResponse;
+
+ /**
+ * Verifies a ListServicesResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListServicesResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListServicesResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.metastore.v1beta.ListServicesResponse;
+
+ /**
+ * Creates a plain object from a ListServicesResponse message. Also converts values to other types if specified.
+ * @param message ListServicesResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.metastore.v1beta.ListServicesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListServicesResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListServicesResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GetServiceRequest. */
+ interface IGetServiceRequest {
+
+ /** GetServiceRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a GetServiceRequest. */
+ class GetServiceRequest implements IGetServiceRequest {
+
+ /**
+ * Constructs a new GetServiceRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.metastore.v1beta.IGetServiceRequest);
+
+ /** GetServiceRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new GetServiceRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetServiceRequest instance
+ */
+ public static create(properties?: google.cloud.metastore.v1beta.IGetServiceRequest): google.cloud.metastore.v1beta.GetServiceRequest;
+
+ /**
+ * Encodes the specified GetServiceRequest message. Does not implicitly {@link google.cloud.metastore.v1beta.GetServiceRequest.verify|verify} messages.
+ * @param message GetServiceRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.metastore.v1beta.IGetServiceRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetServiceRequest message, length delimited. Does not implicitly {@link google.cloud.metastore.v1beta.GetServiceRequest.verify|verify} messages.
+ * @param message GetServiceRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.metastore.v1beta.IGetServiceRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetServiceRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetServiceRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.metastore.v1beta.GetServiceRequest;
+
+ /**
+ * Decodes a GetServiceRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetServiceRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.metastore.v1beta.GetServiceRequest;
+
+ /**
+ * Verifies a GetServiceRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GetServiceRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetServiceRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.metastore.v1beta.GetServiceRequest;
+
+ /**
+ * Creates a plain object from a GetServiceRequest message. Also converts values to other types if specified.
+ * @param message GetServiceRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.metastore.v1beta.GetServiceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetServiceRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetServiceRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CreateServiceRequest. */
+ interface ICreateServiceRequest {
+
+ /** CreateServiceRequest parent */
+ parent?: (string|null);
+
+ /** CreateServiceRequest serviceId */
+ serviceId?: (string|null);
+
+ /** CreateServiceRequest service */
+ service?: (google.cloud.metastore.v1beta.IService|null);
+
+ /** CreateServiceRequest requestId */
+ requestId?: (string|null);
+ }
+
+ /** Represents a CreateServiceRequest. */
+ class CreateServiceRequest implements ICreateServiceRequest {
+
+ /**
+ * Constructs a new CreateServiceRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.metastore.v1beta.ICreateServiceRequest);
+
+ /** CreateServiceRequest parent. */
+ public parent: string;
+
+ /** CreateServiceRequest serviceId. */
+ public serviceId: string;
+
+ /** CreateServiceRequest service. */
+ public service?: (google.cloud.metastore.v1beta.IService|null);
+
+ /** CreateServiceRequest requestId. */
+ public requestId: string;
+
+ /**
+ * Creates a new CreateServiceRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CreateServiceRequest instance
+ */
+ public static create(properties?: google.cloud.metastore.v1beta.ICreateServiceRequest): google.cloud.metastore.v1beta.CreateServiceRequest;
+
+ /**
+ * Encodes the specified CreateServiceRequest message. Does not implicitly {@link google.cloud.metastore.v1beta.CreateServiceRequest.verify|verify} messages.
+ * @param message CreateServiceRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.metastore.v1beta.ICreateServiceRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CreateServiceRequest message, length delimited. Does not implicitly {@link google.cloud.metastore.v1beta.CreateServiceRequest.verify|verify} messages.
+ * @param message CreateServiceRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.metastore.v1beta.ICreateServiceRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CreateServiceRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CreateServiceRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.metastore.v1beta.CreateServiceRequest;
+
+ /**
+ * Decodes a CreateServiceRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CreateServiceRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.metastore.v1beta.CreateServiceRequest;
+
+ /**
+ * Verifies a CreateServiceRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a CreateServiceRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CreateServiceRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.metastore.v1beta.CreateServiceRequest;
+
+ /**
+ * Creates a plain object from a CreateServiceRequest message. Also converts values to other types if specified.
+ * @param message CreateServiceRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.metastore.v1beta.CreateServiceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CreateServiceRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CreateServiceRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an UpdateServiceRequest. */
+ interface IUpdateServiceRequest {
+
+ /** UpdateServiceRequest updateMask */
+ updateMask?: (google.protobuf.IFieldMask|null);
+
+ /** UpdateServiceRequest service */
+ service?: (google.cloud.metastore.v1beta.IService|null);
+
+ /** UpdateServiceRequest requestId */
+ requestId?: (string|null);
+ }
+
+ /** Represents an UpdateServiceRequest. */
+ class UpdateServiceRequest implements IUpdateServiceRequest {
+
+ /**
+ * Constructs a new UpdateServiceRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.metastore.v1beta.IUpdateServiceRequest);
+
+ /** UpdateServiceRequest updateMask. */
+ public updateMask?: (google.protobuf.IFieldMask|null);
+
+ /** UpdateServiceRequest service. */
+ public service?: (google.cloud.metastore.v1beta.IService|null);
+
+ /** UpdateServiceRequest requestId. */
+ public requestId: string;
+
+ /**
+ * Creates a new UpdateServiceRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns UpdateServiceRequest instance
+ */
+ public static create(properties?: google.cloud.metastore.v1beta.IUpdateServiceRequest): google.cloud.metastore.v1beta.UpdateServiceRequest;
+
+ /**
+ * Encodes the specified UpdateServiceRequest message. Does not implicitly {@link google.cloud.metastore.v1beta.UpdateServiceRequest.verify|verify} messages.
+ * @param message UpdateServiceRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.metastore.v1beta.IUpdateServiceRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified UpdateServiceRequest message, length delimited. Does not implicitly {@link google.cloud.metastore.v1beta.UpdateServiceRequest.verify|verify} messages.
+ * @param message UpdateServiceRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.metastore.v1beta.IUpdateServiceRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an UpdateServiceRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns UpdateServiceRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.metastore.v1beta.UpdateServiceRequest;
+
+ /**
+ * Decodes an UpdateServiceRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns UpdateServiceRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.metastore.v1beta.UpdateServiceRequest;
+
+ /**
+ * Verifies an UpdateServiceRequest message.
+ * @param message Plain 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 UpdateServiceRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns UpdateServiceRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.metastore.v1beta.UpdateServiceRequest;
+
+ /**
+ * Creates a plain object from an UpdateServiceRequest message. Also converts values to other types if specified.
+ * @param message UpdateServiceRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.metastore.v1beta.UpdateServiceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this UpdateServiceRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for UpdateServiceRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DeleteServiceRequest. */
+ interface IDeleteServiceRequest {
+
+ /** DeleteServiceRequest name */
+ name?: (string|null);
+
+ /** DeleteServiceRequest requestId */
+ requestId?: (string|null);
+ }
+
+ /** Represents a DeleteServiceRequest. */
+ class DeleteServiceRequest implements IDeleteServiceRequest {
+
+ /**
+ * Constructs a new DeleteServiceRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.metastore.v1beta.IDeleteServiceRequest);
+
+ /** DeleteServiceRequest name. */
+ public name: string;
+
+ /** DeleteServiceRequest requestId. */
+ public requestId: string;
+
+ /**
+ * Creates a new DeleteServiceRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DeleteServiceRequest instance
+ */
+ public static create(properties?: google.cloud.metastore.v1beta.IDeleteServiceRequest): google.cloud.metastore.v1beta.DeleteServiceRequest;
+
+ /**
+ * Encodes the specified DeleteServiceRequest message. Does not implicitly {@link google.cloud.metastore.v1beta.DeleteServiceRequest.verify|verify} messages.
+ * @param message DeleteServiceRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.metastore.v1beta.IDeleteServiceRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DeleteServiceRequest message, length delimited. Does not implicitly {@link google.cloud.metastore.v1beta.DeleteServiceRequest.verify|verify} messages.
+ * @param message DeleteServiceRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.metastore.v1beta.IDeleteServiceRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DeleteServiceRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DeleteServiceRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.metastore.v1beta.DeleteServiceRequest;
+
+ /**
+ * Decodes a DeleteServiceRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DeleteServiceRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.metastore.v1beta.DeleteServiceRequest;
+
+ /**
+ * Verifies a DeleteServiceRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DeleteServiceRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DeleteServiceRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.metastore.v1beta.DeleteServiceRequest;
+
+ /**
+ * Creates a plain object from a DeleteServiceRequest message. Also converts values to other types if specified.
+ * @param message DeleteServiceRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.metastore.v1beta.DeleteServiceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DeleteServiceRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DeleteServiceRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListMetadataImportsRequest. */
+ interface IListMetadataImportsRequest {
+
+ /** ListMetadataImportsRequest parent */
+ parent?: (string|null);
+
+ /** ListMetadataImportsRequest pageSize */
+ pageSize?: (number|null);
+
+ /** ListMetadataImportsRequest pageToken */
+ pageToken?: (string|null);
+
+ /** ListMetadataImportsRequest filter */
+ filter?: (string|null);
+
+ /** ListMetadataImportsRequest orderBy */
+ orderBy?: (string|null);
+ }
+
+ /** Represents a ListMetadataImportsRequest. */
+ class ListMetadataImportsRequest implements IListMetadataImportsRequest {
+
+ /**
+ * Constructs a new ListMetadataImportsRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.metastore.v1beta.IListMetadataImportsRequest);
+
+ /** ListMetadataImportsRequest parent. */
+ public parent: string;
+
+ /** ListMetadataImportsRequest pageSize. */
+ public pageSize: number;
+
+ /** ListMetadataImportsRequest pageToken. */
+ public pageToken: string;
+
+ /** ListMetadataImportsRequest filter. */
+ public filter: string;
+
+ /** ListMetadataImportsRequest orderBy. */
+ public orderBy: string;
+
+ /**
+ * Creates a new ListMetadataImportsRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListMetadataImportsRequest instance
+ */
+ public static create(properties?: google.cloud.metastore.v1beta.IListMetadataImportsRequest): google.cloud.metastore.v1beta.ListMetadataImportsRequest;
+
+ /**
+ * Encodes the specified ListMetadataImportsRequest message. Does not implicitly {@link google.cloud.metastore.v1beta.ListMetadataImportsRequest.verify|verify} messages.
+ * @param message ListMetadataImportsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.metastore.v1beta.IListMetadataImportsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListMetadataImportsRequest message, length delimited. Does not implicitly {@link google.cloud.metastore.v1beta.ListMetadataImportsRequest.verify|verify} messages.
+ * @param message ListMetadataImportsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.metastore.v1beta.IListMetadataImportsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListMetadataImportsRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListMetadataImportsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.metastore.v1beta.ListMetadataImportsRequest;
+
+ /**
+ * Decodes a ListMetadataImportsRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListMetadataImportsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.metastore.v1beta.ListMetadataImportsRequest;
+
+ /**
+ * Verifies a ListMetadataImportsRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListMetadataImportsRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListMetadataImportsRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.metastore.v1beta.ListMetadataImportsRequest;
+
+ /**
+ * Creates a plain object from a ListMetadataImportsRequest message. Also converts values to other types if specified.
+ * @param message ListMetadataImportsRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.metastore.v1beta.ListMetadataImportsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListMetadataImportsRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListMetadataImportsRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListMetadataImportsResponse. */
+ interface IListMetadataImportsResponse {
+
+ /** ListMetadataImportsResponse metadataImports */
+ metadataImports?: (google.cloud.metastore.v1beta.IMetadataImport[]|null);
+
+ /** ListMetadataImportsResponse nextPageToken */
+ nextPageToken?: (string|null);
+
+ /** ListMetadataImportsResponse unreachable */
+ unreachable?: (string[]|null);
+ }
+
+ /** Represents a ListMetadataImportsResponse. */
+ class ListMetadataImportsResponse implements IListMetadataImportsResponse {
+
+ /**
+ * Constructs a new ListMetadataImportsResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.metastore.v1beta.IListMetadataImportsResponse);
+
+ /** ListMetadataImportsResponse metadataImports. */
+ public metadataImports: google.cloud.metastore.v1beta.IMetadataImport[];
+
+ /** ListMetadataImportsResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /** ListMetadataImportsResponse unreachable. */
+ public unreachable: string[];
+
+ /**
+ * Creates a new ListMetadataImportsResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListMetadataImportsResponse instance
+ */
+ public static create(properties?: google.cloud.metastore.v1beta.IListMetadataImportsResponse): google.cloud.metastore.v1beta.ListMetadataImportsResponse;
+
+ /**
+ * Encodes the specified ListMetadataImportsResponse message. Does not implicitly {@link google.cloud.metastore.v1beta.ListMetadataImportsResponse.verify|verify} messages.
+ * @param message ListMetadataImportsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.metastore.v1beta.IListMetadataImportsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListMetadataImportsResponse message, length delimited. Does not implicitly {@link google.cloud.metastore.v1beta.ListMetadataImportsResponse.verify|verify} messages.
+ * @param message ListMetadataImportsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.metastore.v1beta.IListMetadataImportsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListMetadataImportsResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListMetadataImportsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.metastore.v1beta.ListMetadataImportsResponse;
+
+ /**
+ * Decodes a ListMetadataImportsResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListMetadataImportsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.metastore.v1beta.ListMetadataImportsResponse;
+
+ /**
+ * Verifies a ListMetadataImportsResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListMetadataImportsResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListMetadataImportsResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.metastore.v1beta.ListMetadataImportsResponse;
+
+ /**
+ * Creates a plain object from a ListMetadataImportsResponse message. Also converts values to other types if specified.
+ * @param message ListMetadataImportsResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.metastore.v1beta.ListMetadataImportsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListMetadataImportsResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListMetadataImportsResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GetMetadataImportRequest. */
+ interface IGetMetadataImportRequest {
+
+ /** GetMetadataImportRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a GetMetadataImportRequest. */
+ class GetMetadataImportRequest implements IGetMetadataImportRequest {
+
+ /**
+ * Constructs a new GetMetadataImportRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.metastore.v1beta.IGetMetadataImportRequest);
+
+ /** GetMetadataImportRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new GetMetadataImportRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetMetadataImportRequest instance
+ */
+ public static create(properties?: google.cloud.metastore.v1beta.IGetMetadataImportRequest): google.cloud.metastore.v1beta.GetMetadataImportRequest;
+
+ /**
+ * Encodes the specified GetMetadataImportRequest message. Does not implicitly {@link google.cloud.metastore.v1beta.GetMetadataImportRequest.verify|verify} messages.
+ * @param message GetMetadataImportRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.metastore.v1beta.IGetMetadataImportRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetMetadataImportRequest message, length delimited. Does not implicitly {@link google.cloud.metastore.v1beta.GetMetadataImportRequest.verify|verify} messages.
+ * @param message GetMetadataImportRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.metastore.v1beta.IGetMetadataImportRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetMetadataImportRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetMetadataImportRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.metastore.v1beta.GetMetadataImportRequest;
+
+ /**
+ * Decodes a GetMetadataImportRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetMetadataImportRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.metastore.v1beta.GetMetadataImportRequest;
+
+ /**
+ * Verifies a GetMetadataImportRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GetMetadataImportRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetMetadataImportRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.metastore.v1beta.GetMetadataImportRequest;
+
+ /**
+ * Creates a plain object from a GetMetadataImportRequest message. Also converts values to other types if specified.
+ * @param message GetMetadataImportRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.metastore.v1beta.GetMetadataImportRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetMetadataImportRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetMetadataImportRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CreateMetadataImportRequest. */
+ interface ICreateMetadataImportRequest {
+
+ /** CreateMetadataImportRequest parent */
+ parent?: (string|null);
+
+ /** CreateMetadataImportRequest metadataImportId */
+ metadataImportId?: (string|null);
+
+ /** CreateMetadataImportRequest metadataImport */
+ metadataImport?: (google.cloud.metastore.v1beta.IMetadataImport|null);
+
+ /** CreateMetadataImportRequest requestId */
+ requestId?: (string|null);
+ }
+
+ /** Represents a CreateMetadataImportRequest. */
+ class CreateMetadataImportRequest implements ICreateMetadataImportRequest {
+
+ /**
+ * Constructs a new CreateMetadataImportRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.metastore.v1beta.ICreateMetadataImportRequest);
+
+ /** CreateMetadataImportRequest parent. */
+ public parent: string;
+
+ /** CreateMetadataImportRequest metadataImportId. */
+ public metadataImportId: string;
+
+ /** CreateMetadataImportRequest metadataImport. */
+ public metadataImport?: (google.cloud.metastore.v1beta.IMetadataImport|null);
+
+ /** CreateMetadataImportRequest requestId. */
+ public requestId: string;
+
+ /**
+ * Creates a new CreateMetadataImportRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CreateMetadataImportRequest instance
+ */
+ public static create(properties?: google.cloud.metastore.v1beta.ICreateMetadataImportRequest): google.cloud.metastore.v1beta.CreateMetadataImportRequest;
+
+ /**
+ * Encodes the specified CreateMetadataImportRequest message. Does not implicitly {@link google.cloud.metastore.v1beta.CreateMetadataImportRequest.verify|verify} messages.
+ * @param message CreateMetadataImportRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.metastore.v1beta.ICreateMetadataImportRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CreateMetadataImportRequest message, length delimited. Does not implicitly {@link google.cloud.metastore.v1beta.CreateMetadataImportRequest.verify|verify} messages.
+ * @param message CreateMetadataImportRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.metastore.v1beta.ICreateMetadataImportRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CreateMetadataImportRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CreateMetadataImportRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.metastore.v1beta.CreateMetadataImportRequest;
+
+ /**
+ * Decodes a CreateMetadataImportRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CreateMetadataImportRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.metastore.v1beta.CreateMetadataImportRequest;
+
+ /**
+ * Verifies a CreateMetadataImportRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a CreateMetadataImportRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CreateMetadataImportRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.metastore.v1beta.CreateMetadataImportRequest;
+
+ /**
+ * Creates a plain object from a CreateMetadataImportRequest message. Also converts values to other types if specified.
+ * @param message CreateMetadataImportRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.metastore.v1beta.CreateMetadataImportRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CreateMetadataImportRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CreateMetadataImportRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an UpdateMetadataImportRequest. */
+ interface IUpdateMetadataImportRequest {
+
+ /** UpdateMetadataImportRequest updateMask */
+ updateMask?: (google.protobuf.IFieldMask|null);
+
+ /** UpdateMetadataImportRequest metadataImport */
+ metadataImport?: (google.cloud.metastore.v1beta.IMetadataImport|null);
+
+ /** UpdateMetadataImportRequest requestId */
+ requestId?: (string|null);
+ }
+
+ /** Represents an UpdateMetadataImportRequest. */
+ class UpdateMetadataImportRequest implements IUpdateMetadataImportRequest {
+
+ /**
+ * Constructs a new UpdateMetadataImportRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.metastore.v1beta.IUpdateMetadataImportRequest);
+
+ /** UpdateMetadataImportRequest updateMask. */
+ public updateMask?: (google.protobuf.IFieldMask|null);
+
+ /** UpdateMetadataImportRequest metadataImport. */
+ public metadataImport?: (google.cloud.metastore.v1beta.IMetadataImport|null);
+
+ /** UpdateMetadataImportRequest requestId. */
+ public requestId: string;
+
+ /**
+ * Creates a new UpdateMetadataImportRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns UpdateMetadataImportRequest instance
+ */
+ public static create(properties?: google.cloud.metastore.v1beta.IUpdateMetadataImportRequest): google.cloud.metastore.v1beta.UpdateMetadataImportRequest;
+
+ /**
+ * Encodes the specified UpdateMetadataImportRequest message. Does not implicitly {@link google.cloud.metastore.v1beta.UpdateMetadataImportRequest.verify|verify} messages.
+ * @param message UpdateMetadataImportRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.metastore.v1beta.IUpdateMetadataImportRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified UpdateMetadataImportRequest message, length delimited. Does not implicitly {@link google.cloud.metastore.v1beta.UpdateMetadataImportRequest.verify|verify} messages.
+ * @param message UpdateMetadataImportRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.metastore.v1beta.IUpdateMetadataImportRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an UpdateMetadataImportRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns UpdateMetadataImportRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.metastore.v1beta.UpdateMetadataImportRequest;
+
+ /**
+ * Decodes an UpdateMetadataImportRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns UpdateMetadataImportRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.metastore.v1beta.UpdateMetadataImportRequest;
+
+ /**
+ * Verifies an UpdateMetadataImportRequest message.
+ * @param message Plain 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 UpdateMetadataImportRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns UpdateMetadataImportRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.metastore.v1beta.UpdateMetadataImportRequest;
+
+ /**
+ * Creates a plain object from an UpdateMetadataImportRequest message. Also converts values to other types if specified.
+ * @param message UpdateMetadataImportRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.metastore.v1beta.UpdateMetadataImportRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this UpdateMetadataImportRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for UpdateMetadataImportRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListBackupsRequest. */
+ interface IListBackupsRequest {
+
+ /** ListBackupsRequest parent */
+ parent?: (string|null);
+
+ /** ListBackupsRequest pageSize */
+ pageSize?: (number|null);
+
+ /** ListBackupsRequest pageToken */
+ pageToken?: (string|null);
+
+ /** ListBackupsRequest filter */
+ filter?: (string|null);
+
+ /** ListBackupsRequest orderBy */
+ orderBy?: (string|null);
+ }
+
+ /** Represents a ListBackupsRequest. */
+ class ListBackupsRequest implements IListBackupsRequest {
+
+ /**
+ * Constructs a new ListBackupsRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.metastore.v1beta.IListBackupsRequest);
+
+ /** ListBackupsRequest parent. */
+ public parent: string;
+
+ /** ListBackupsRequest pageSize. */
+ public pageSize: number;
+
+ /** ListBackupsRequest pageToken. */
+ public pageToken: string;
+
+ /** ListBackupsRequest filter. */
+ public filter: string;
+
+ /** ListBackupsRequest orderBy. */
+ public orderBy: string;
+
+ /**
+ * Creates a new ListBackupsRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListBackupsRequest instance
+ */
+ public static create(properties?: google.cloud.metastore.v1beta.IListBackupsRequest): google.cloud.metastore.v1beta.ListBackupsRequest;
+
+ /**
+ * Encodes the specified ListBackupsRequest message. Does not implicitly {@link google.cloud.metastore.v1beta.ListBackupsRequest.verify|verify} messages.
+ * @param message ListBackupsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.metastore.v1beta.IListBackupsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListBackupsRequest message, length delimited. Does not implicitly {@link google.cloud.metastore.v1beta.ListBackupsRequest.verify|verify} messages.
+ * @param message ListBackupsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.metastore.v1beta.IListBackupsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListBackupsRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListBackupsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.metastore.v1beta.ListBackupsRequest;
+
+ /**
+ * Decodes a ListBackupsRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListBackupsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.metastore.v1beta.ListBackupsRequest;
+
+ /**
+ * Verifies a ListBackupsRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListBackupsRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListBackupsRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.metastore.v1beta.ListBackupsRequest;
+
+ /**
+ * Creates a plain object from a ListBackupsRequest message. Also converts values to other types if specified.
+ * @param message ListBackupsRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.metastore.v1beta.ListBackupsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListBackupsRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListBackupsRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListBackupsResponse. */
+ interface IListBackupsResponse {
+
+ /** ListBackupsResponse backups */
+ backups?: (google.cloud.metastore.v1beta.IBackup[]|null);
+
+ /** ListBackupsResponse nextPageToken */
+ nextPageToken?: (string|null);
+
+ /** ListBackupsResponse unreachable */
+ unreachable?: (string[]|null);
+ }
+
+ /** Represents a ListBackupsResponse. */
+ class ListBackupsResponse implements IListBackupsResponse {
+
+ /**
+ * Constructs a new ListBackupsResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.metastore.v1beta.IListBackupsResponse);
+
+ /** ListBackupsResponse backups. */
+ public backups: google.cloud.metastore.v1beta.IBackup[];
+
+ /** ListBackupsResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /** ListBackupsResponse unreachable. */
+ public unreachable: string[];
+
+ /**
+ * Creates a new ListBackupsResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListBackupsResponse instance
+ */
+ public static create(properties?: google.cloud.metastore.v1beta.IListBackupsResponse): google.cloud.metastore.v1beta.ListBackupsResponse;
+
+ /**
+ * Encodes the specified ListBackupsResponse message. Does not implicitly {@link google.cloud.metastore.v1beta.ListBackupsResponse.verify|verify} messages.
+ * @param message ListBackupsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.metastore.v1beta.IListBackupsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListBackupsResponse message, length delimited. Does not implicitly {@link google.cloud.metastore.v1beta.ListBackupsResponse.verify|verify} messages.
+ * @param message ListBackupsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.metastore.v1beta.IListBackupsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListBackupsResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListBackupsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.metastore.v1beta.ListBackupsResponse;
+
+ /**
+ * Decodes a ListBackupsResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListBackupsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.metastore.v1beta.ListBackupsResponse;
+
+ /**
+ * Verifies a ListBackupsResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListBackupsResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListBackupsResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.metastore.v1beta.ListBackupsResponse;
+
+ /**
+ * Creates a plain object from a ListBackupsResponse message. Also converts values to other types if specified.
+ * @param message ListBackupsResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.metastore.v1beta.ListBackupsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListBackupsResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListBackupsResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GetBackupRequest. */
+ interface IGetBackupRequest {
+
+ /** GetBackupRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a GetBackupRequest. */
+ class GetBackupRequest implements IGetBackupRequest {
+
+ /**
+ * Constructs a new GetBackupRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.metastore.v1beta.IGetBackupRequest);
+
+ /** GetBackupRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new GetBackupRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetBackupRequest instance
+ */
+ public static create(properties?: google.cloud.metastore.v1beta.IGetBackupRequest): google.cloud.metastore.v1beta.GetBackupRequest;
+
+ /**
+ * Encodes the specified GetBackupRequest message. Does not implicitly {@link google.cloud.metastore.v1beta.GetBackupRequest.verify|verify} messages.
+ * @param message GetBackupRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.metastore.v1beta.IGetBackupRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetBackupRequest message, length delimited. Does not implicitly {@link google.cloud.metastore.v1beta.GetBackupRequest.verify|verify} messages.
+ * @param message GetBackupRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.metastore.v1beta.IGetBackupRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetBackupRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetBackupRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.metastore.v1beta.GetBackupRequest;
+
+ /**
+ * Decodes a GetBackupRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetBackupRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.metastore.v1beta.GetBackupRequest;
+
+ /**
+ * Verifies a GetBackupRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GetBackupRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetBackupRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.metastore.v1beta.GetBackupRequest;
+
+ /**
+ * Creates a plain object from a GetBackupRequest message. Also converts values to other types if specified.
+ * @param message GetBackupRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.metastore.v1beta.GetBackupRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetBackupRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetBackupRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CreateBackupRequest. */
+ interface ICreateBackupRequest {
+
+ /** CreateBackupRequest parent */
+ parent?: (string|null);
+
+ /** CreateBackupRequest backupId */
+ backupId?: (string|null);
+
+ /** CreateBackupRequest backup */
+ backup?: (google.cloud.metastore.v1beta.IBackup|null);
+
+ /** CreateBackupRequest requestId */
+ requestId?: (string|null);
+ }
+
+ /** Represents a CreateBackupRequest. */
+ class CreateBackupRequest implements ICreateBackupRequest {
+
+ /**
+ * Constructs a new CreateBackupRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.metastore.v1beta.ICreateBackupRequest);
+
+ /** CreateBackupRequest parent. */
+ public parent: string;
+
+ /** CreateBackupRequest backupId. */
+ public backupId: string;
+
+ /** CreateBackupRequest backup. */
+ public backup?: (google.cloud.metastore.v1beta.IBackup|null);
+
+ /** CreateBackupRequest requestId. */
+ public requestId: string;
+
+ /**
+ * Creates a new CreateBackupRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CreateBackupRequest instance
+ */
+ public static create(properties?: google.cloud.metastore.v1beta.ICreateBackupRequest): google.cloud.metastore.v1beta.CreateBackupRequest;
+
+ /**
+ * Encodes the specified CreateBackupRequest message. Does not implicitly {@link google.cloud.metastore.v1beta.CreateBackupRequest.verify|verify} messages.
+ * @param message CreateBackupRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.metastore.v1beta.ICreateBackupRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CreateBackupRequest message, length delimited. Does not implicitly {@link google.cloud.metastore.v1beta.CreateBackupRequest.verify|verify} messages.
+ * @param message CreateBackupRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.metastore.v1beta.ICreateBackupRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CreateBackupRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CreateBackupRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.metastore.v1beta.CreateBackupRequest;
+
+ /**
+ * Decodes a CreateBackupRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CreateBackupRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.metastore.v1beta.CreateBackupRequest;
+
+ /**
+ * Verifies a CreateBackupRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a CreateBackupRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CreateBackupRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.metastore.v1beta.CreateBackupRequest;
+
+ /**
+ * Creates a plain object from a CreateBackupRequest message. Also converts values to other types if specified.
+ * @param message CreateBackupRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.metastore.v1beta.CreateBackupRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CreateBackupRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CreateBackupRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DeleteBackupRequest. */
+ interface IDeleteBackupRequest {
+
+ /** DeleteBackupRequest name */
+ name?: (string|null);
+
+ /** DeleteBackupRequest requestId */
+ requestId?: (string|null);
+ }
+
+ /** Represents a DeleteBackupRequest. */
+ class DeleteBackupRequest implements IDeleteBackupRequest {
+
+ /**
+ * Constructs a new DeleteBackupRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.metastore.v1beta.IDeleteBackupRequest);
+
+ /** DeleteBackupRequest name. */
+ public name: string;
+
+ /** DeleteBackupRequest requestId. */
+ public requestId: string;
+
+ /**
+ * Creates a new DeleteBackupRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DeleteBackupRequest instance
+ */
+ public static create(properties?: google.cloud.metastore.v1beta.IDeleteBackupRequest): google.cloud.metastore.v1beta.DeleteBackupRequest;
+
+ /**
+ * Encodes the specified DeleteBackupRequest message. Does not implicitly {@link google.cloud.metastore.v1beta.DeleteBackupRequest.verify|verify} messages.
+ * @param message DeleteBackupRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.metastore.v1beta.IDeleteBackupRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DeleteBackupRequest message, length delimited. Does not implicitly {@link google.cloud.metastore.v1beta.DeleteBackupRequest.verify|verify} messages.
+ * @param message DeleteBackupRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.metastore.v1beta.IDeleteBackupRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DeleteBackupRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DeleteBackupRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.metastore.v1beta.DeleteBackupRequest;
+
+ /**
+ * Decodes a DeleteBackupRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DeleteBackupRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.metastore.v1beta.DeleteBackupRequest;
+
+ /**
+ * Verifies a DeleteBackupRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DeleteBackupRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DeleteBackupRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.metastore.v1beta.DeleteBackupRequest;
+
+ /**
+ * Creates a plain object from a DeleteBackupRequest message. Also converts values to other types if specified.
+ * @param message DeleteBackupRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.metastore.v1beta.DeleteBackupRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DeleteBackupRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DeleteBackupRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an ExportMetadataRequest. */
+ interface IExportMetadataRequest {
+
+ /** ExportMetadataRequest destinationGcsFolder */
+ destinationGcsFolder?: (string|null);
+
+ /** ExportMetadataRequest service */
+ service?: (string|null);
+
+ /** ExportMetadataRequest requestId */
+ requestId?: (string|null);
+
+ /** ExportMetadataRequest databaseDumpType */
+ databaseDumpType?: (google.cloud.metastore.v1beta.DatabaseDumpSpec.Type|keyof typeof google.cloud.metastore.v1beta.DatabaseDumpSpec.Type|null);
+ }
+
+ /** Represents an ExportMetadataRequest. */
+ class ExportMetadataRequest implements IExportMetadataRequest {
+
+ /**
+ * Constructs a new ExportMetadataRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.metastore.v1beta.IExportMetadataRequest);
+
+ /** ExportMetadataRequest destinationGcsFolder. */
+ public destinationGcsFolder?: (string|null);
+
+ /** ExportMetadataRequest service. */
+ public service: string;
+
+ /** ExportMetadataRequest requestId. */
+ public requestId: string;
+
+ /** ExportMetadataRequest databaseDumpType. */
+ public databaseDumpType: (google.cloud.metastore.v1beta.DatabaseDumpSpec.Type|keyof typeof google.cloud.metastore.v1beta.DatabaseDumpSpec.Type);
+
+ /** ExportMetadataRequest destination. */
+ public destination?: "destinationGcsFolder";
+
+ /**
+ * Creates a new ExportMetadataRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ExportMetadataRequest instance
+ */
+ public static create(properties?: google.cloud.metastore.v1beta.IExportMetadataRequest): google.cloud.metastore.v1beta.ExportMetadataRequest;
+
+ /**
+ * Encodes the specified ExportMetadataRequest message. Does not implicitly {@link google.cloud.metastore.v1beta.ExportMetadataRequest.verify|verify} messages.
+ * @param message ExportMetadataRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.metastore.v1beta.IExportMetadataRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ExportMetadataRequest message, length delimited. Does not implicitly {@link google.cloud.metastore.v1beta.ExportMetadataRequest.verify|verify} messages.
+ * @param message ExportMetadataRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.metastore.v1beta.IExportMetadataRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an ExportMetadataRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ExportMetadataRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.metastore.v1beta.ExportMetadataRequest;
+
+ /**
+ * Decodes an ExportMetadataRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ExportMetadataRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.metastore.v1beta.ExportMetadataRequest;
+
+ /**
+ * Verifies an ExportMetadataRequest message.
+ * @param message Plain 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 ExportMetadataRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ExportMetadataRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.metastore.v1beta.ExportMetadataRequest;
+
+ /**
+ * Creates a plain object from an ExportMetadataRequest message. Also converts values to other types if specified.
+ * @param message ExportMetadataRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.metastore.v1beta.ExportMetadataRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ExportMetadataRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ExportMetadataRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a RestoreServiceRequest. */
+ interface IRestoreServiceRequest {
+
+ /** RestoreServiceRequest service */
+ service?: (string|null);
+
+ /** RestoreServiceRequest backup */
+ backup?: (string|null);
+
+ /** RestoreServiceRequest restoreType */
+ restoreType?: (google.cloud.metastore.v1beta.Restore.RestoreType|keyof typeof google.cloud.metastore.v1beta.Restore.RestoreType|null);
+
+ /** RestoreServiceRequest requestId */
+ requestId?: (string|null);
+ }
+
+ /** Represents a RestoreServiceRequest. */
+ class RestoreServiceRequest implements IRestoreServiceRequest {
+
+ /**
+ * Constructs a new RestoreServiceRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.metastore.v1beta.IRestoreServiceRequest);
+
+ /** RestoreServiceRequest service. */
+ public service: string;
+
+ /** RestoreServiceRequest backup. */
+ public backup: string;
+
+ /** RestoreServiceRequest restoreType. */
+ public restoreType: (google.cloud.metastore.v1beta.Restore.RestoreType|keyof typeof google.cloud.metastore.v1beta.Restore.RestoreType);
+
+ /** RestoreServiceRequest requestId. */
+ public requestId: string;
+
+ /**
+ * Creates a new RestoreServiceRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns RestoreServiceRequest instance
+ */
+ public static create(properties?: google.cloud.metastore.v1beta.IRestoreServiceRequest): google.cloud.metastore.v1beta.RestoreServiceRequest;
+
+ /**
+ * Encodes the specified RestoreServiceRequest message. Does not implicitly {@link google.cloud.metastore.v1beta.RestoreServiceRequest.verify|verify} messages.
+ * @param message RestoreServiceRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.metastore.v1beta.IRestoreServiceRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified RestoreServiceRequest message, length delimited. Does not implicitly {@link google.cloud.metastore.v1beta.RestoreServiceRequest.verify|verify} messages.
+ * @param message RestoreServiceRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.metastore.v1beta.IRestoreServiceRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a RestoreServiceRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns RestoreServiceRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.metastore.v1beta.RestoreServiceRequest;
+
+ /**
+ * Decodes a RestoreServiceRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns RestoreServiceRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.metastore.v1beta.RestoreServiceRequest;
+
+ /**
+ * Verifies a RestoreServiceRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a RestoreServiceRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns RestoreServiceRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.metastore.v1beta.RestoreServiceRequest;
+
+ /**
+ * Creates a plain object from a RestoreServiceRequest message. Also converts values to other types if specified.
+ * @param message RestoreServiceRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.metastore.v1beta.RestoreServiceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this RestoreServiceRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for RestoreServiceRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an OperationMetadata. */
+ interface IOperationMetadata {
+
+ /** OperationMetadata createTime */
+ createTime?: (google.protobuf.ITimestamp|null);
+
+ /** OperationMetadata endTime */
+ endTime?: (google.protobuf.ITimestamp|null);
+
+ /** OperationMetadata target */
+ target?: (string|null);
+
+ /** OperationMetadata verb */
+ verb?: (string|null);
+
+ /** OperationMetadata statusMessage */
+ statusMessage?: (string|null);
+
+ /** OperationMetadata requestedCancellation */
+ requestedCancellation?: (boolean|null);
+
+ /** OperationMetadata apiVersion */
+ apiVersion?: (string|null);
+ }
+
+ /** Represents an OperationMetadata. */
+ class OperationMetadata implements IOperationMetadata {
+
+ /**
+ * Constructs a new OperationMetadata.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.metastore.v1beta.IOperationMetadata);
+
+ /** OperationMetadata createTime. */
+ public createTime?: (google.protobuf.ITimestamp|null);
+
+ /** OperationMetadata endTime. */
+ public endTime?: (google.protobuf.ITimestamp|null);
+
+ /** OperationMetadata target. */
+ public target: string;
+
+ /** OperationMetadata verb. */
+ public verb: string;
+
+ /** OperationMetadata statusMessage. */
+ public statusMessage: string;
+
+ /** OperationMetadata requestedCancellation. */
+ public requestedCancellation: boolean;
+
+ /** OperationMetadata apiVersion. */
+ public apiVersion: string;
+
+ /**
+ * Creates a new OperationMetadata instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns OperationMetadata instance
+ */
+ public static create(properties?: google.cloud.metastore.v1beta.IOperationMetadata): google.cloud.metastore.v1beta.OperationMetadata;
+
+ /**
+ * Encodes the specified OperationMetadata message. Does not implicitly {@link google.cloud.metastore.v1beta.OperationMetadata.verify|verify} messages.
+ * @param message OperationMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.metastore.v1beta.IOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified OperationMetadata message, length delimited. Does not implicitly {@link google.cloud.metastore.v1beta.OperationMetadata.verify|verify} messages.
+ * @param message OperationMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.metastore.v1beta.IOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an OperationMetadata message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns OperationMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.metastore.v1beta.OperationMetadata;
+
+ /**
+ * Decodes an OperationMetadata message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns OperationMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.metastore.v1beta.OperationMetadata;
+
+ /**
+ * Verifies an OperationMetadata message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an OperationMetadata message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns OperationMetadata
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.metastore.v1beta.OperationMetadata;
+
+ /**
+ * Creates a plain object from an OperationMetadata message. Also converts values to other types if specified.
+ * @param message OperationMetadata
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.metastore.v1beta.OperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this OperationMetadata to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for OperationMetadata
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a LocationMetadata. */
+ interface ILocationMetadata {
+
+ /** LocationMetadata supportedHiveMetastoreVersions */
+ supportedHiveMetastoreVersions?: (google.cloud.metastore.v1beta.LocationMetadata.IHiveMetastoreVersion[]|null);
+ }
+
+ /** Represents a LocationMetadata. */
+ class LocationMetadata implements ILocationMetadata {
+
+ /**
+ * Constructs a new LocationMetadata.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.metastore.v1beta.ILocationMetadata);
+
+ /** LocationMetadata supportedHiveMetastoreVersions. */
+ public supportedHiveMetastoreVersions: google.cloud.metastore.v1beta.LocationMetadata.IHiveMetastoreVersion[];
+
+ /**
+ * Creates a new LocationMetadata instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns LocationMetadata instance
+ */
+ public static create(properties?: google.cloud.metastore.v1beta.ILocationMetadata): google.cloud.metastore.v1beta.LocationMetadata;
+
+ /**
+ * Encodes the specified LocationMetadata message. Does not implicitly {@link google.cloud.metastore.v1beta.LocationMetadata.verify|verify} messages.
+ * @param message LocationMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.metastore.v1beta.ILocationMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified LocationMetadata message, length delimited. Does not implicitly {@link google.cloud.metastore.v1beta.LocationMetadata.verify|verify} messages.
+ * @param message LocationMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.metastore.v1beta.ILocationMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a LocationMetadata message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns LocationMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.metastore.v1beta.LocationMetadata;
+
+ /**
+ * Decodes a LocationMetadata message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns LocationMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.metastore.v1beta.LocationMetadata;
+
+ /**
+ * Verifies a LocationMetadata message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a LocationMetadata message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns LocationMetadata
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.metastore.v1beta.LocationMetadata;
+
+ /**
+ * Creates a plain object from a LocationMetadata message. Also converts values to other types if specified.
+ * @param message LocationMetadata
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.metastore.v1beta.LocationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this LocationMetadata to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for LocationMetadata
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace LocationMetadata {
+
+ /** Properties of a HiveMetastoreVersion. */
+ interface IHiveMetastoreVersion {
+
+ /** HiveMetastoreVersion version */
+ version?: (string|null);
+
+ /** HiveMetastoreVersion isDefault */
+ isDefault?: (boolean|null);
+ }
+
+ /** Represents a HiveMetastoreVersion. */
+ class HiveMetastoreVersion implements IHiveMetastoreVersion {
+
+ /**
+ * Constructs a new HiveMetastoreVersion.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.metastore.v1beta.LocationMetadata.IHiveMetastoreVersion);
+
+ /** HiveMetastoreVersion version. */
+ public version: string;
+
+ /** HiveMetastoreVersion isDefault. */
+ public isDefault: boolean;
+
+ /**
+ * Creates a new HiveMetastoreVersion instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns HiveMetastoreVersion instance
+ */
+ public static create(properties?: google.cloud.metastore.v1beta.LocationMetadata.IHiveMetastoreVersion): google.cloud.metastore.v1beta.LocationMetadata.HiveMetastoreVersion;
+
+ /**
+ * Encodes the specified HiveMetastoreVersion message. Does not implicitly {@link google.cloud.metastore.v1beta.LocationMetadata.HiveMetastoreVersion.verify|verify} messages.
+ * @param message HiveMetastoreVersion message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.metastore.v1beta.LocationMetadata.IHiveMetastoreVersion, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified HiveMetastoreVersion message, length delimited. Does not implicitly {@link google.cloud.metastore.v1beta.LocationMetadata.HiveMetastoreVersion.verify|verify} messages.
+ * @param message HiveMetastoreVersion message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.metastore.v1beta.LocationMetadata.IHiveMetastoreVersion, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a HiveMetastoreVersion message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns HiveMetastoreVersion
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.metastore.v1beta.LocationMetadata.HiveMetastoreVersion;
+
+ /**
+ * Decodes a HiveMetastoreVersion message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns HiveMetastoreVersion
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.metastore.v1beta.LocationMetadata.HiveMetastoreVersion;
+
+ /**
+ * Verifies a HiveMetastoreVersion message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a HiveMetastoreVersion message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns HiveMetastoreVersion
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.metastore.v1beta.LocationMetadata.HiveMetastoreVersion;
+
+ /**
+ * Creates a plain object from a HiveMetastoreVersion message. Also converts values to other types if specified.
+ * @param message HiveMetastoreVersion
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.metastore.v1beta.LocationMetadata.HiveMetastoreVersion, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this HiveMetastoreVersion to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for HiveMetastoreVersion
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of a DatabaseDumpSpec. */
+ interface IDatabaseDumpSpec {
+ }
+
+ /** Represents a DatabaseDumpSpec. */
+ class DatabaseDumpSpec implements IDatabaseDumpSpec {
+
+ /**
+ * Constructs a new DatabaseDumpSpec.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.metastore.v1beta.IDatabaseDumpSpec);
+
+ /**
+ * Creates a new DatabaseDumpSpec instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DatabaseDumpSpec instance
+ */
+ public static create(properties?: google.cloud.metastore.v1beta.IDatabaseDumpSpec): google.cloud.metastore.v1beta.DatabaseDumpSpec;
+
+ /**
+ * Encodes the specified DatabaseDumpSpec message. Does not implicitly {@link google.cloud.metastore.v1beta.DatabaseDumpSpec.verify|verify} messages.
+ * @param message DatabaseDumpSpec message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.metastore.v1beta.IDatabaseDumpSpec, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DatabaseDumpSpec message, length delimited. Does not implicitly {@link google.cloud.metastore.v1beta.DatabaseDumpSpec.verify|verify} messages.
+ * @param message DatabaseDumpSpec message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.metastore.v1beta.IDatabaseDumpSpec, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DatabaseDumpSpec message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DatabaseDumpSpec
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.metastore.v1beta.DatabaseDumpSpec;
+
+ /**
+ * Decodes a DatabaseDumpSpec message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DatabaseDumpSpec
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.metastore.v1beta.DatabaseDumpSpec;
+
+ /**
+ * Verifies a DatabaseDumpSpec message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DatabaseDumpSpec message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DatabaseDumpSpec
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.metastore.v1beta.DatabaseDumpSpec;
+
+ /**
+ * Creates a plain object from a DatabaseDumpSpec message. Also converts values to other types if specified.
+ * @param message DatabaseDumpSpec
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.metastore.v1beta.DatabaseDumpSpec, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DatabaseDumpSpec to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DatabaseDumpSpec
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace DatabaseDumpSpec {
+
+ /** Type enum. */
+ enum Type {
+ TYPE_UNSPECIFIED = 0,
+ MYSQL = 1
+ }
+ }
+ }
+ }
+ }
+
+ /** Namespace api. */
+ namespace api {
+
+ /** Properties of a Http. */
+ interface IHttp {
+
+ /** Http rules */
+ rules?: (google.api.IHttpRule[]|null);
+
+ /** Http fullyDecodeReservedExpansion */
+ fullyDecodeReservedExpansion?: (boolean|null);
+ }
+
+ /** Represents a Http. */
+ class Http implements IHttp {
+
+ /**
+ * Constructs a new Http.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IHttp);
+
+ /** Http rules. */
+ public rules: google.api.IHttpRule[];
+
+ /** Http fullyDecodeReservedExpansion. */
+ public fullyDecodeReservedExpansion: boolean;
+
+ /**
+ * Creates a new Http instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Http instance
+ */
+ public static create(properties?: google.api.IHttp): google.api.Http;
+
+ /**
+ * Encodes the specified Http message. Does not implicitly {@link google.api.Http.verify|verify} messages.
+ * @param message Http message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IHttp, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Http message, length delimited. Does not implicitly {@link google.api.Http.verify|verify} messages.
+ * @param message Http message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IHttp, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Http message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Http
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.Http;
+
+ /**
+ * Decodes a Http message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Http
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.Http;
+
+ /**
+ * Verifies a Http message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Http message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Http
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.Http;
+
+ /**
+ * Creates a plain object from a Http message. Also converts values to other types if specified.
+ * @param message Http
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.Http, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Http to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Http
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a HttpRule. */
+ interface IHttpRule {
+
+ /** HttpRule selector */
+ selector?: (string|null);
+
+ /** HttpRule get */
+ get?: (string|null);
+
+ /** HttpRule put */
+ put?: (string|null);
+
+ /** HttpRule post */
+ post?: (string|null);
+
+ /** HttpRule delete */
+ "delete"?: (string|null);
+
+ /** HttpRule patch */
+ patch?: (string|null);
+
+ /** HttpRule custom */
+ custom?: (google.api.ICustomHttpPattern|null);
+
+ /** HttpRule body */
+ body?: (string|null);
+
+ /** HttpRule responseBody */
+ responseBody?: (string|null);
+
+ /** HttpRule additionalBindings */
+ additionalBindings?: (google.api.IHttpRule[]|null);
+ }
+
+ /** Represents a HttpRule. */
+ class HttpRule implements IHttpRule {
+
+ /**
+ * Constructs a new HttpRule.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IHttpRule);
+
+ /** HttpRule selector. */
+ public selector: string;
+
+ /** HttpRule get. */
+ public get?: (string|null);
+
+ /** HttpRule put. */
+ public put?: (string|null);
+
+ /** HttpRule post. */
+ public post?: (string|null);
+
+ /** HttpRule delete. */
+ public delete?: (string|null);
+
+ /** HttpRule patch. */
+ public patch?: (string|null);
+
+ /** HttpRule custom. */
+ public custom?: (google.api.ICustomHttpPattern|null);
+
+ /** HttpRule body. */
+ public body: string;
+
+ /** HttpRule responseBody. */
+ public responseBody: string;
+
+ /** HttpRule additionalBindings. */
+ public additionalBindings: google.api.IHttpRule[];
+
+ /** HttpRule pattern. */
+ public pattern?: ("get"|"put"|"post"|"delete"|"patch"|"custom");
+
+ /**
+ * Creates a new HttpRule instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns HttpRule instance
+ */
+ public static create(properties?: google.api.IHttpRule): google.api.HttpRule;
+
+ /**
+ * Encodes the specified HttpRule message. Does not implicitly {@link google.api.HttpRule.verify|verify} messages.
+ * @param message HttpRule message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IHttpRule, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified HttpRule message, length delimited. Does not implicitly {@link google.api.HttpRule.verify|verify} messages.
+ * @param message HttpRule message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IHttpRule, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a HttpRule message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns HttpRule
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.HttpRule;
+
+ /**
+ * Decodes a HttpRule message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns HttpRule
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.HttpRule;
+
+ /**
+ * Verifies a HttpRule message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a HttpRule message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns HttpRule
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.HttpRule;
+
+ /**
+ * Creates a plain object from a HttpRule message. Also converts values to other types if specified.
+ * @param message HttpRule
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.HttpRule, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this HttpRule to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for HttpRule
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CustomHttpPattern. */
+ interface ICustomHttpPattern {
+
+ /** CustomHttpPattern kind */
+ kind?: (string|null);
+
+ /** CustomHttpPattern path */
+ path?: (string|null);
+ }
+
+ /** Represents a CustomHttpPattern. */
+ class CustomHttpPattern implements ICustomHttpPattern {
+
+ /**
+ * Constructs a new CustomHttpPattern.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.ICustomHttpPattern);
+
+ /** CustomHttpPattern kind. */
+ public kind: string;
+
+ /** CustomHttpPattern path. */
+ public path: string;
+
+ /**
+ * Creates a new CustomHttpPattern instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CustomHttpPattern instance
+ */
+ public static create(properties?: google.api.ICustomHttpPattern): google.api.CustomHttpPattern;
+
+ /**
+ * Encodes the specified CustomHttpPattern message. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages.
+ * @param message CustomHttpPattern message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.ICustomHttpPattern, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CustomHttpPattern message, length delimited. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages.
+ * @param message CustomHttpPattern message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.ICustomHttpPattern, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CustomHttpPattern message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CustomHttpPattern
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.CustomHttpPattern;
+
+ /**
+ * Decodes a CustomHttpPattern message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CustomHttpPattern
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.CustomHttpPattern;
+
+ /**
+ * Verifies a CustomHttpPattern message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a CustomHttpPattern message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CustomHttpPattern
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.CustomHttpPattern;
+
+ /**
+ * Creates a plain object from a CustomHttpPattern message. Also converts values to other types if specified.
+ * @param message CustomHttpPattern
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.CustomHttpPattern, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CustomHttpPattern to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CustomHttpPattern
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** FieldBehavior enum. */
+ enum FieldBehavior {
+ FIELD_BEHAVIOR_UNSPECIFIED = 0,
+ OPTIONAL = 1,
+ REQUIRED = 2,
+ OUTPUT_ONLY = 3,
+ INPUT_ONLY = 4,
+ IMMUTABLE = 5,
+ UNORDERED_LIST = 6,
+ NON_EMPTY_DEFAULT = 7
+ }
+
+ /** Properties of a ResourceDescriptor. */
+ interface IResourceDescriptor {
+
+ /** ResourceDescriptor type */
+ type?: (string|null);
+
+ /** ResourceDescriptor pattern */
+ pattern?: (string[]|null);
+
+ /** ResourceDescriptor nameField */
+ nameField?: (string|null);
+
+ /** ResourceDescriptor history */
+ history?: (google.api.ResourceDescriptor.History|keyof typeof google.api.ResourceDescriptor.History|null);
+
+ /** ResourceDescriptor plural */
+ plural?: (string|null);
+
+ /** ResourceDescriptor singular */
+ singular?: (string|null);
+
+ /** ResourceDescriptor style */
+ style?: (google.api.ResourceDescriptor.Style[]|null);
+ }
+
+ /** Represents a ResourceDescriptor. */
+ class ResourceDescriptor implements IResourceDescriptor {
+
+ /**
+ * Constructs a new ResourceDescriptor.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IResourceDescriptor);
+
+ /** ResourceDescriptor type. */
+ public type: string;
+
+ /** ResourceDescriptor pattern. */
+ public pattern: string[];
+
+ /** ResourceDescriptor nameField. */
+ public nameField: string;
+
+ /** ResourceDescriptor history. */
+ public history: (google.api.ResourceDescriptor.History|keyof typeof google.api.ResourceDescriptor.History);
+
+ /** ResourceDescriptor plural. */
+ public plural: string;
+
+ /** ResourceDescriptor singular. */
+ public singular: string;
+
+ /** ResourceDescriptor style. */
+ public style: google.api.ResourceDescriptor.Style[];
+
+ /**
+ * Creates a new ResourceDescriptor instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ResourceDescriptor instance
+ */
+ public static create(properties?: google.api.IResourceDescriptor): google.api.ResourceDescriptor;
+
+ /**
+ * Encodes the specified ResourceDescriptor message. Does not implicitly {@link google.api.ResourceDescriptor.verify|verify} messages.
+ * @param message ResourceDescriptor message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IResourceDescriptor, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ResourceDescriptor message, length delimited. Does not implicitly {@link google.api.ResourceDescriptor.verify|verify} messages.
+ * @param message ResourceDescriptor message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IResourceDescriptor, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ResourceDescriptor message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ResourceDescriptor
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.ResourceDescriptor;
+
+ /**
+ * Decodes a ResourceDescriptor message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ResourceDescriptor
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.ResourceDescriptor;
+
+ /**
+ * Verifies a ResourceDescriptor message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ResourceDescriptor message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ResourceDescriptor
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.ResourceDescriptor;
+
+ /**
+ * Creates a plain object from a ResourceDescriptor message. Also converts values to other types if specified.
+ * @param message ResourceDescriptor
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.ResourceDescriptor, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ResourceDescriptor to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ResourceDescriptor
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace ResourceDescriptor {
+
+ /** History enum. */
+ enum History {
+ HISTORY_UNSPECIFIED = 0,
+ ORIGINALLY_SINGLE_PATTERN = 1,
+ FUTURE_MULTI_PATTERN = 2
+ }
+
+ /** Style enum. */
+ enum Style {
+ STYLE_UNSPECIFIED = 0,
+ DECLARATIVE_FRIENDLY = 1
+ }
+ }
+
+ /** Properties of a ResourceReference. */
+ interface IResourceReference {
+
+ /** ResourceReference type */
+ type?: (string|null);
+
+ /** ResourceReference childType */
+ childType?: (string|null);
+ }
+
+ /** Represents a ResourceReference. */
+ class ResourceReference implements IResourceReference {
+
+ /**
+ * Constructs a new ResourceReference.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IResourceReference);
+
+ /** ResourceReference type. */
+ public type: string;
+
+ /** ResourceReference childType. */
+ public childType: string;
+
+ /**
+ * Creates a new ResourceReference instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ResourceReference instance
+ */
+ public static create(properties?: google.api.IResourceReference): google.api.ResourceReference;
+
+ /**
+ * Encodes the specified ResourceReference message. Does not implicitly {@link google.api.ResourceReference.verify|verify} messages.
+ * @param message ResourceReference message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IResourceReference, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ResourceReference message, length delimited. Does not implicitly {@link google.api.ResourceReference.verify|verify} messages.
+ * @param message ResourceReference message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IResourceReference, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ResourceReference message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ResourceReference
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.ResourceReference;
+
+ /**
+ * Decodes a ResourceReference message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ResourceReference
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.ResourceReference;
+
+ /**
+ * Verifies a ResourceReference message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ResourceReference message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ResourceReference
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.ResourceReference;
+
+ /**
+ * Creates a plain object from a ResourceReference message. Also converts values to other types if specified.
+ * @param message ResourceReference
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.ResourceReference, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ResourceReference to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ResourceReference
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Namespace protobuf. */
+ namespace protobuf {
+
+ /** Properties of a FileDescriptorSet. */
+ interface IFileDescriptorSet {
+
+ /** FileDescriptorSet file */
+ file?: (google.protobuf.IFileDescriptorProto[]|null);
+ }
+
+ /** Represents a FileDescriptorSet. */
+ class FileDescriptorSet implements IFileDescriptorSet {
+
+ /**
+ * Constructs a new FileDescriptorSet.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IFileDescriptorSet);
+
+ /** FileDescriptorSet file. */
+ public file: google.protobuf.IFileDescriptorProto[];
+
+ /**
+ * Creates a new FileDescriptorSet instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FileDescriptorSet instance
+ */
+ public static create(properties?: google.protobuf.IFileDescriptorSet): google.protobuf.FileDescriptorSet;
+
+ /**
+ * Encodes the specified FileDescriptorSet message. Does not implicitly {@link google.protobuf.FileDescriptorSet.verify|verify} messages.
+ * @param message FileDescriptorSet message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IFileDescriptorSet, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FileDescriptorSet message, length delimited. Does not implicitly {@link google.protobuf.FileDescriptorSet.verify|verify} messages.
+ * @param message FileDescriptorSet message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IFileDescriptorSet, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FileDescriptorSet message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FileDescriptorSet
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FileDescriptorSet;
+
+ /**
+ * Decodes a FileDescriptorSet message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FileDescriptorSet
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FileDescriptorSet;
+
+ /**
+ * Verifies a FileDescriptorSet message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FileDescriptorSet message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FileDescriptorSet
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.FileDescriptorSet;
+
+ /**
+ * Creates a plain object from a FileDescriptorSet message. Also converts values to other types if specified.
+ * @param message FileDescriptorSet
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.FileDescriptorSet, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FileDescriptorSet to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FileDescriptorSet
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a FileDescriptorProto. */
+ interface IFileDescriptorProto {
+
+ /** FileDescriptorProto name */
+ name?: (string|null);
+
+ /** FileDescriptorProto package */
+ "package"?: (string|null);
+
+ /** FileDescriptorProto dependency */
+ dependency?: (string[]|null);
+
+ /** FileDescriptorProto publicDependency */
+ publicDependency?: (number[]|null);
+
+ /** FileDescriptorProto weakDependency */
+ weakDependency?: (number[]|null);
+
+ /** FileDescriptorProto messageType */
+ messageType?: (google.protobuf.IDescriptorProto[]|null);
+
+ /** FileDescriptorProto enumType */
+ enumType?: (google.protobuf.IEnumDescriptorProto[]|null);
+
+ /** FileDescriptorProto service */
+ service?: (google.protobuf.IServiceDescriptorProto[]|null);
+
+ /** FileDescriptorProto extension */
+ extension?: (google.protobuf.IFieldDescriptorProto[]|null);
+
+ /** FileDescriptorProto options */
+ options?: (google.protobuf.IFileOptions|null);
+
+ /** FileDescriptorProto sourceCodeInfo */
+ sourceCodeInfo?: (google.protobuf.ISourceCodeInfo|null);
+
+ /** FileDescriptorProto syntax */
+ syntax?: (string|null);
+
+ /** FileDescriptorProto edition */
+ edition?: (string|null);
+ }
+
+ /** Represents a FileDescriptorProto. */
+ class FileDescriptorProto implements IFileDescriptorProto {
+
+ /**
+ * Constructs a new FileDescriptorProto.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IFileDescriptorProto);
+
+ /** FileDescriptorProto name. */
+ public name: string;
+
+ /** FileDescriptorProto package. */
+ public package: string;
+
+ /** FileDescriptorProto dependency. */
+ public dependency: string[];
+
+ /** FileDescriptorProto publicDependency. */
+ public publicDependency: number[];
+
+ /** FileDescriptorProto weakDependency. */
+ public weakDependency: number[];
+
+ /** FileDescriptorProto messageType. */
+ public messageType: google.protobuf.IDescriptorProto[];
+
+ /** FileDescriptorProto enumType. */
+ public enumType: google.protobuf.IEnumDescriptorProto[];
+
+ /** FileDescriptorProto service. */
+ public service: google.protobuf.IServiceDescriptorProto[];
+
+ /** FileDescriptorProto extension. */
+ public extension: google.protobuf.IFieldDescriptorProto[];
+
+ /** FileDescriptorProto options. */
+ public options?: (google.protobuf.IFileOptions|null);
+
+ /** FileDescriptorProto sourceCodeInfo. */
+ public sourceCodeInfo?: (google.protobuf.ISourceCodeInfo|null);
+
+ /** FileDescriptorProto syntax. */
+ public syntax: string;
+
+ /** FileDescriptorProto edition. */
+ public edition: string;
+
+ /**
+ * Creates a new FileDescriptorProto instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FileDescriptorProto instance
+ */
+ public static create(properties?: google.protobuf.IFileDescriptorProto): google.protobuf.FileDescriptorProto;
+
+ /**
+ * Encodes the specified FileDescriptorProto message. Does not implicitly {@link google.protobuf.FileDescriptorProto.verify|verify} messages.
+ * @param message FileDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IFileDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FileDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.FileDescriptorProto.verify|verify} messages.
+ * @param message FileDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IFileDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FileDescriptorProto message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FileDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FileDescriptorProto;
+
+ /**
+ * Decodes a FileDescriptorProto message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FileDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FileDescriptorProto;
+
+ /**
+ * Verifies a FileDescriptorProto message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FileDescriptorProto message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FileDescriptorProto
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.FileDescriptorProto;
+
+ /**
+ * Creates a plain object from a FileDescriptorProto message. Also converts values to other types if specified.
+ * @param message FileDescriptorProto
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.FileDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FileDescriptorProto to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FileDescriptorProto
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DescriptorProto. */
+ interface IDescriptorProto {
+
+ /** DescriptorProto name */
+ name?: (string|null);
+
+ /** DescriptorProto field */
+ field?: (google.protobuf.IFieldDescriptorProto[]|null);
+
+ /** DescriptorProto extension */
+ extension?: (google.protobuf.IFieldDescriptorProto[]|null);
+
+ /** DescriptorProto nestedType */
+ nestedType?: (google.protobuf.IDescriptorProto[]|null);
+
+ /** DescriptorProto enumType */
+ enumType?: (google.protobuf.IEnumDescriptorProto[]|null);
+
+ /** DescriptorProto extensionRange */
+ extensionRange?: (google.protobuf.DescriptorProto.IExtensionRange[]|null);
+
+ /** DescriptorProto oneofDecl */
+ oneofDecl?: (google.protobuf.IOneofDescriptorProto[]|null);
+
+ /** DescriptorProto options */
+ options?: (google.protobuf.IMessageOptions|null);
+
+ /** DescriptorProto reservedRange */
+ reservedRange?: (google.protobuf.DescriptorProto.IReservedRange[]|null);
+
+ /** DescriptorProto reservedName */
+ reservedName?: (string[]|null);
+ }
+
+ /** Represents a DescriptorProto. */
+ class DescriptorProto implements IDescriptorProto {
+
+ /**
+ * Constructs a new DescriptorProto.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IDescriptorProto);
+
+ /** DescriptorProto name. */
+ public name: string;
+
+ /** DescriptorProto field. */
+ public field: google.protobuf.IFieldDescriptorProto[];
+
+ /** DescriptorProto extension. */
+ public extension: google.protobuf.IFieldDescriptorProto[];
+
+ /** DescriptorProto nestedType. */
+ public nestedType: google.protobuf.IDescriptorProto[];
+
+ /** DescriptorProto enumType. */
+ public enumType: google.protobuf.IEnumDescriptorProto[];
+
+ /** DescriptorProto extensionRange. */
+ public extensionRange: google.protobuf.DescriptorProto.IExtensionRange[];
+
+ /** DescriptorProto oneofDecl. */
+ public oneofDecl: google.protobuf.IOneofDescriptorProto[];
+
+ /** DescriptorProto options. */
+ public options?: (google.protobuf.IMessageOptions|null);
+
+ /** DescriptorProto reservedRange. */
+ public reservedRange: google.protobuf.DescriptorProto.IReservedRange[];
+
+ /** DescriptorProto reservedName. */
+ public reservedName: string[];
+
+ /**
+ * Creates a new DescriptorProto instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DescriptorProto instance
+ */
+ public static create(properties?: google.protobuf.IDescriptorProto): google.protobuf.DescriptorProto;
+
+ /**
+ * Encodes the specified DescriptorProto message. Does not implicitly {@link google.protobuf.DescriptorProto.verify|verify} messages.
+ * @param message DescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.verify|verify} messages.
+ * @param message DescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DescriptorProto message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.DescriptorProto;
+
+ /**
+ * Decodes a DescriptorProto message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.DescriptorProto;
+
+ /**
+ * Verifies a DescriptorProto message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DescriptorProto message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DescriptorProto
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.DescriptorProto;
+
+ /**
+ * Creates a plain object from a DescriptorProto message. Also converts values to other types if specified.
+ * @param message DescriptorProto
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.DescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DescriptorProto to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DescriptorProto
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace DescriptorProto {
+
+ /** Properties of an ExtensionRange. */
+ interface IExtensionRange {
+
+ /** ExtensionRange start */
+ start?: (number|null);
+
+ /** ExtensionRange end */
+ end?: (number|null);
+
+ /** ExtensionRange options */
+ options?: (google.protobuf.IExtensionRangeOptions|null);
+ }
+
+ /** Represents an ExtensionRange. */
+ class ExtensionRange implements IExtensionRange {
+
+ /**
+ * Constructs a new ExtensionRange.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.DescriptorProto.IExtensionRange);
+
+ /** ExtensionRange start. */
+ public start: number;
+
+ /** ExtensionRange end. */
+ public end: number;
+
+ /** ExtensionRange options. */
+ public options?: (google.protobuf.IExtensionRangeOptions|null);
+
+ /**
+ * Creates a new ExtensionRange instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ExtensionRange instance
+ */
+ public static create(properties?: google.protobuf.DescriptorProto.IExtensionRange): google.protobuf.DescriptorProto.ExtensionRange;
+
+ /**
+ * Encodes the specified ExtensionRange message. Does not implicitly {@link google.protobuf.DescriptorProto.ExtensionRange.verify|verify} messages.
+ * @param message ExtensionRange message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.DescriptorProto.IExtensionRange, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ExtensionRange message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.ExtensionRange.verify|verify} messages.
+ * @param message ExtensionRange message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.DescriptorProto.IExtensionRange, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an ExtensionRange message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ExtensionRange
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.DescriptorProto.ExtensionRange;
+
+ /**
+ * Decodes an ExtensionRange message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ExtensionRange
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.DescriptorProto.ExtensionRange;
+
+ /**
+ * Verifies an ExtensionRange message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an ExtensionRange message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ExtensionRange
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.DescriptorProto.ExtensionRange;
+
+ /**
+ * Creates a plain object from an ExtensionRange message. Also converts values to other types if specified.
+ * @param message ExtensionRange
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.DescriptorProto.ExtensionRange, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ExtensionRange to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ExtensionRange
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ReservedRange. */
+ interface IReservedRange {
+
+ /** ReservedRange start */
+ start?: (number|null);
+
+ /** ReservedRange end */
+ end?: (number|null);
+ }
+
+ /** Represents a ReservedRange. */
+ class ReservedRange implements IReservedRange {
+
+ /**
+ * Constructs a new ReservedRange.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.DescriptorProto.IReservedRange);
+
+ /** ReservedRange start. */
+ public start: number;
+
+ /** ReservedRange end. */
+ public end: number;
+
+ /**
+ * Creates a new ReservedRange instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ReservedRange instance
+ */
+ public static create(properties?: google.protobuf.DescriptorProto.IReservedRange): google.protobuf.DescriptorProto.ReservedRange;
+
+ /**
+ * Encodes the specified ReservedRange message. Does not implicitly {@link google.protobuf.DescriptorProto.ReservedRange.verify|verify} messages.
+ * @param message ReservedRange message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.DescriptorProto.IReservedRange, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ReservedRange message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.ReservedRange.verify|verify} messages.
+ * @param message ReservedRange message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.DescriptorProto.IReservedRange, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ReservedRange message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ReservedRange
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.DescriptorProto.ReservedRange;
+
+ /**
+ * Decodes a ReservedRange message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ReservedRange
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.DescriptorProto.ReservedRange;
+
+ /**
+ * Verifies a ReservedRange message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ReservedRange message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ReservedRange
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.DescriptorProto.ReservedRange;
+
+ /**
+ * Creates a plain object from a ReservedRange message. Also converts values to other types if specified.
+ * @param message ReservedRange
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.DescriptorProto.ReservedRange, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ReservedRange to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ReservedRange
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of an ExtensionRangeOptions. */
+ interface IExtensionRangeOptions {
+
+ /** ExtensionRangeOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+ }
+
+ /** Represents an ExtensionRangeOptions. */
+ class ExtensionRangeOptions implements IExtensionRangeOptions {
+
+ /**
+ * Constructs a new ExtensionRangeOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IExtensionRangeOptions);
+
+ /** ExtensionRangeOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+
+ /**
+ * Creates a new ExtensionRangeOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ExtensionRangeOptions instance
+ */
+ public static create(properties?: google.protobuf.IExtensionRangeOptions): google.protobuf.ExtensionRangeOptions;
+
+ /**
+ * Encodes the specified ExtensionRangeOptions message. Does not implicitly {@link google.protobuf.ExtensionRangeOptions.verify|verify} messages.
+ * @param message ExtensionRangeOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IExtensionRangeOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ExtensionRangeOptions message, length delimited. Does not implicitly {@link google.protobuf.ExtensionRangeOptions.verify|verify} messages.
+ * @param message ExtensionRangeOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IExtensionRangeOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an ExtensionRangeOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ExtensionRangeOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.ExtensionRangeOptions;
+
+ /**
+ * Decodes an ExtensionRangeOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ExtensionRangeOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.ExtensionRangeOptions;
+
+ /**
+ * Verifies an ExtensionRangeOptions message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an ExtensionRangeOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ExtensionRangeOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.ExtensionRangeOptions;
+
+ /**
+ * Creates a plain object from an ExtensionRangeOptions message. Also converts values to other types if specified.
+ * @param message ExtensionRangeOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.ExtensionRangeOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ExtensionRangeOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ExtensionRangeOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a FieldDescriptorProto. */
+ interface IFieldDescriptorProto {
+
+ /** FieldDescriptorProto name */
+ name?: (string|null);
+
+ /** FieldDescriptorProto number */
+ number?: (number|null);
+
+ /** FieldDescriptorProto label */
+ label?: (google.protobuf.FieldDescriptorProto.Label|keyof typeof google.protobuf.FieldDescriptorProto.Label|null);
+
+ /** FieldDescriptorProto type */
+ type?: (google.protobuf.FieldDescriptorProto.Type|keyof typeof google.protobuf.FieldDescriptorProto.Type|null);
+
+ /** FieldDescriptorProto typeName */
+ typeName?: (string|null);
+
+ /** FieldDescriptorProto extendee */
+ extendee?: (string|null);
+
+ /** FieldDescriptorProto defaultValue */
+ defaultValue?: (string|null);
+
+ /** FieldDescriptorProto oneofIndex */
+ oneofIndex?: (number|null);
+
+ /** FieldDescriptorProto jsonName */
+ jsonName?: (string|null);
+
+ /** FieldDescriptorProto options */
+ options?: (google.protobuf.IFieldOptions|null);
+
+ /** FieldDescriptorProto proto3Optional */
+ proto3Optional?: (boolean|null);
+ }
+
+ /** Represents a FieldDescriptorProto. */
+ class FieldDescriptorProto implements IFieldDescriptorProto {
+
+ /**
+ * Constructs a new FieldDescriptorProto.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IFieldDescriptorProto);
+
+ /** FieldDescriptorProto name. */
+ public name: string;
+
+ /** FieldDescriptorProto number. */
+ public number: number;
+
+ /** FieldDescriptorProto label. */
+ public label: (google.protobuf.FieldDescriptorProto.Label|keyof typeof google.protobuf.FieldDescriptorProto.Label);
+
+ /** FieldDescriptorProto type. */
+ public type: (google.protobuf.FieldDescriptorProto.Type|keyof typeof google.protobuf.FieldDescriptorProto.Type);
+
+ /** FieldDescriptorProto typeName. */
+ public typeName: string;
+
+ /** FieldDescriptorProto extendee. */
+ public extendee: string;
+
+ /** FieldDescriptorProto defaultValue. */
+ public defaultValue: string;
+
+ /** FieldDescriptorProto oneofIndex. */
+ public oneofIndex: number;
+
+ /** FieldDescriptorProto jsonName. */
+ public jsonName: string;
+
+ /** FieldDescriptorProto options. */
+ public options?: (google.protobuf.IFieldOptions|null);
+
+ /** FieldDescriptorProto proto3Optional. */
+ public proto3Optional: boolean;
+
+ /**
+ * Creates a new FieldDescriptorProto instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FieldDescriptorProto instance
+ */
+ public static create(properties?: google.protobuf.IFieldDescriptorProto): google.protobuf.FieldDescriptorProto;
+
+ /**
+ * Encodes the specified FieldDescriptorProto message. Does not implicitly {@link google.protobuf.FieldDescriptorProto.verify|verify} messages.
+ * @param message FieldDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IFieldDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FieldDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.FieldDescriptorProto.verify|verify} messages.
+ * @param message FieldDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IFieldDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FieldDescriptorProto message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FieldDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FieldDescriptorProto;
+
+ /**
+ * Decodes a FieldDescriptorProto message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FieldDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FieldDescriptorProto;
+
+ /**
+ * Verifies a FieldDescriptorProto message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FieldDescriptorProto message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FieldDescriptorProto
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.FieldDescriptorProto;
+
+ /**
+ * Creates a plain object from a FieldDescriptorProto message. Also converts values to other types if specified.
+ * @param message FieldDescriptorProto
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.FieldDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FieldDescriptorProto to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FieldDescriptorProto
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace FieldDescriptorProto {
+
+ /** Type enum. */
+ enum Type {
+ TYPE_DOUBLE = 1,
+ TYPE_FLOAT = 2,
+ TYPE_INT64 = 3,
+ TYPE_UINT64 = 4,
+ TYPE_INT32 = 5,
+ TYPE_FIXED64 = 6,
+ TYPE_FIXED32 = 7,
+ TYPE_BOOL = 8,
+ TYPE_STRING = 9,
+ TYPE_GROUP = 10,
+ TYPE_MESSAGE = 11,
+ TYPE_BYTES = 12,
+ TYPE_UINT32 = 13,
+ TYPE_ENUM = 14,
+ TYPE_SFIXED32 = 15,
+ TYPE_SFIXED64 = 16,
+ TYPE_SINT32 = 17,
+ TYPE_SINT64 = 18
+ }
+
+ /** Label enum. */
+ enum Label {
+ LABEL_OPTIONAL = 1,
+ LABEL_REQUIRED = 2,
+ LABEL_REPEATED = 3
+ }
+ }
+
+ /** Properties of an OneofDescriptorProto. */
+ interface IOneofDescriptorProto {
+
+ /** OneofDescriptorProto name */
+ name?: (string|null);
+
+ /** OneofDescriptorProto options */
+ options?: (google.protobuf.IOneofOptions|null);
+ }
+
+ /** Represents an OneofDescriptorProto. */
+ class OneofDescriptorProto implements IOneofDescriptorProto {
+
+ /**
+ * Constructs a new OneofDescriptorProto.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IOneofDescriptorProto);
+
+ /** OneofDescriptorProto name. */
+ public name: string;
+
+ /** OneofDescriptorProto options. */
+ public options?: (google.protobuf.IOneofOptions|null);
+
+ /**
+ * Creates a new OneofDescriptorProto instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns OneofDescriptorProto instance
+ */
+ public static create(properties?: google.protobuf.IOneofDescriptorProto): google.protobuf.OneofDescriptorProto;
+
+ /**
+ * Encodes the specified OneofDescriptorProto message. Does not implicitly {@link google.protobuf.OneofDescriptorProto.verify|verify} messages.
+ * @param message OneofDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IOneofDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified OneofDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.OneofDescriptorProto.verify|verify} messages.
+ * @param message OneofDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IOneofDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an OneofDescriptorProto message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns OneofDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.OneofDescriptorProto;
+
+ /**
+ * Decodes an OneofDescriptorProto message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns OneofDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.OneofDescriptorProto;
+
+ /**
+ * Verifies an OneofDescriptorProto message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an OneofDescriptorProto message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns OneofDescriptorProto
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.OneofDescriptorProto;
+
+ /**
+ * Creates a plain object from an OneofDescriptorProto message. Also converts values to other types if specified.
+ * @param message OneofDescriptorProto
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.OneofDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this OneofDescriptorProto to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for OneofDescriptorProto
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an EnumDescriptorProto. */
+ interface IEnumDescriptorProto {
+
+ /** EnumDescriptorProto name */
+ name?: (string|null);
+
+ /** EnumDescriptorProto value */
+ value?: (google.protobuf.IEnumValueDescriptorProto[]|null);
+
+ /** EnumDescriptorProto options */
+ options?: (google.protobuf.IEnumOptions|null);
+
+ /** EnumDescriptorProto reservedRange */
+ reservedRange?: (google.protobuf.EnumDescriptorProto.IEnumReservedRange[]|null);
+
+ /** EnumDescriptorProto reservedName */
+ reservedName?: (string[]|null);
+ }
+
+ /** Represents an EnumDescriptorProto. */
+ class EnumDescriptorProto implements IEnumDescriptorProto {
+
+ /**
+ * Constructs a new EnumDescriptorProto.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IEnumDescriptorProto);
+
+ /** EnumDescriptorProto name. */
+ public name: string;
+
+ /** EnumDescriptorProto value. */
+ public value: google.protobuf.IEnumValueDescriptorProto[];
+
+ /** EnumDescriptorProto options. */
+ public options?: (google.protobuf.IEnumOptions|null);
+
+ /** EnumDescriptorProto reservedRange. */
+ public reservedRange: google.protobuf.EnumDescriptorProto.IEnumReservedRange[];
+
+ /** EnumDescriptorProto reservedName. */
+ public reservedName: string[];
+
+ /**
+ * Creates a new EnumDescriptorProto instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns EnumDescriptorProto instance
+ */
+ public static create(properties?: google.protobuf.IEnumDescriptorProto): google.protobuf.EnumDescriptorProto;
+
+ /**
+ * Encodes the specified EnumDescriptorProto message. Does not implicitly {@link google.protobuf.EnumDescriptorProto.verify|verify} messages.
+ * @param message EnumDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IEnumDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified EnumDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.EnumDescriptorProto.verify|verify} messages.
+ * @param message EnumDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IEnumDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an EnumDescriptorProto message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns EnumDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumDescriptorProto;
+
+ /**
+ * Decodes an EnumDescriptorProto message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns EnumDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumDescriptorProto;
+
+ /**
+ * Verifies an EnumDescriptorProto message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an EnumDescriptorProto message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns EnumDescriptorProto
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.EnumDescriptorProto;
+
+ /**
+ * Creates a plain object from an EnumDescriptorProto message. Also converts values to other types if specified.
+ * @param message EnumDescriptorProto
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.EnumDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this EnumDescriptorProto to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for EnumDescriptorProto
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace EnumDescriptorProto {
+
+ /** Properties of an EnumReservedRange. */
+ interface IEnumReservedRange {
+
+ /** EnumReservedRange start */
+ start?: (number|null);
+
+ /** EnumReservedRange end */
+ end?: (number|null);
+ }
+
+ /** Represents an EnumReservedRange. */
+ class EnumReservedRange implements IEnumReservedRange {
+
+ /**
+ * Constructs a new EnumReservedRange.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.EnumDescriptorProto.IEnumReservedRange);
+
+ /** EnumReservedRange start. */
+ public start: number;
+
+ /** EnumReservedRange end. */
+ public end: number;
+
+ /**
+ * Creates a new EnumReservedRange instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns EnumReservedRange instance
+ */
+ public static create(properties?: google.protobuf.EnumDescriptorProto.IEnumReservedRange): google.protobuf.EnumDescriptorProto.EnumReservedRange;
+
+ /**
+ * Encodes the specified EnumReservedRange message. Does not implicitly {@link google.protobuf.EnumDescriptorProto.EnumReservedRange.verify|verify} messages.
+ * @param message EnumReservedRange message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.EnumDescriptorProto.IEnumReservedRange, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified EnumReservedRange message, length delimited. Does not implicitly {@link google.protobuf.EnumDescriptorProto.EnumReservedRange.verify|verify} messages.
+ * @param message EnumReservedRange message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.EnumDescriptorProto.IEnumReservedRange, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an EnumReservedRange message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns EnumReservedRange
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumDescriptorProto.EnumReservedRange;
+
+ /**
+ * Decodes an EnumReservedRange message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns EnumReservedRange
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumDescriptorProto.EnumReservedRange;
+
+ /**
+ * Verifies an EnumReservedRange message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an EnumReservedRange message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns EnumReservedRange
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.EnumDescriptorProto.EnumReservedRange;
+
+ /**
+ * Creates a plain object from an EnumReservedRange message. Also converts values to other types if specified.
+ * @param message EnumReservedRange
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.EnumDescriptorProto.EnumReservedRange, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this EnumReservedRange to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for EnumReservedRange
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of an EnumValueDescriptorProto. */
+ interface IEnumValueDescriptorProto {
+
+ /** EnumValueDescriptorProto name */
+ name?: (string|null);
+
+ /** EnumValueDescriptorProto number */
+ number?: (number|null);
+
+ /** EnumValueDescriptorProto options */
+ options?: (google.protobuf.IEnumValueOptions|null);
+ }
+
+ /** Represents an EnumValueDescriptorProto. */
+ class EnumValueDescriptorProto implements IEnumValueDescriptorProto {
+
+ /**
+ * Constructs a new EnumValueDescriptorProto.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IEnumValueDescriptorProto);
+
+ /** EnumValueDescriptorProto name. */
+ public name: string;
+
+ /** EnumValueDescriptorProto number. */
+ public number: number;
+
+ /** EnumValueDescriptorProto options. */
+ public options?: (google.protobuf.IEnumValueOptions|null);
+
+ /**
+ * Creates a new EnumValueDescriptorProto instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns EnumValueDescriptorProto instance
+ */
+ public static create(properties?: google.protobuf.IEnumValueDescriptorProto): google.protobuf.EnumValueDescriptorProto;
+
+ /**
+ * Encodes the specified EnumValueDescriptorProto message. Does not implicitly {@link google.protobuf.EnumValueDescriptorProto.verify|verify} messages.
+ * @param message EnumValueDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IEnumValueDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified EnumValueDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.EnumValueDescriptorProto.verify|verify} messages.
+ * @param message EnumValueDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IEnumValueDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an EnumValueDescriptorProto message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns EnumValueDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumValueDescriptorProto;
+
+ /**
+ * Decodes an EnumValueDescriptorProto message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns EnumValueDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumValueDescriptorProto;
+
+ /**
+ * Verifies an EnumValueDescriptorProto message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an EnumValueDescriptorProto message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns EnumValueDescriptorProto
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.EnumValueDescriptorProto;
+
+ /**
+ * Creates a plain object from an EnumValueDescriptorProto message. Also converts values to other types if specified.
+ * @param message EnumValueDescriptorProto
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.EnumValueDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this EnumValueDescriptorProto to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for EnumValueDescriptorProto
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ServiceDescriptorProto. */
+ interface IServiceDescriptorProto {
+
+ /** ServiceDescriptorProto name */
+ name?: (string|null);
+
+ /** ServiceDescriptorProto method */
+ method?: (google.protobuf.IMethodDescriptorProto[]|null);
+
+ /** ServiceDescriptorProto options */
+ options?: (google.protobuf.IServiceOptions|null);
+ }
+
+ /** Represents a ServiceDescriptorProto. */
+ class ServiceDescriptorProto implements IServiceDescriptorProto {
+
+ /**
+ * Constructs a new ServiceDescriptorProto.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IServiceDescriptorProto);
+
+ /** ServiceDescriptorProto name. */
+ public name: string;
+
+ /** ServiceDescriptorProto method. */
+ public method: google.protobuf.IMethodDescriptorProto[];
+
+ /** ServiceDescriptorProto options. */
+ public options?: (google.protobuf.IServiceOptions|null);
+
+ /**
+ * Creates a new ServiceDescriptorProto instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ServiceDescriptorProto instance
+ */
+ public static create(properties?: google.protobuf.IServiceDescriptorProto): google.protobuf.ServiceDescriptorProto;
+
+ /**
+ * Encodes the specified ServiceDescriptorProto message. Does not implicitly {@link google.protobuf.ServiceDescriptorProto.verify|verify} messages.
+ * @param message ServiceDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IServiceDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ServiceDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.ServiceDescriptorProto.verify|verify} messages.
+ * @param message ServiceDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IServiceDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ServiceDescriptorProto message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ServiceDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.ServiceDescriptorProto;
+
+ /**
+ * Decodes a ServiceDescriptorProto message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ServiceDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.ServiceDescriptorProto;
+
+ /**
+ * Verifies a ServiceDescriptorProto message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ServiceDescriptorProto message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ServiceDescriptorProto
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.ServiceDescriptorProto;
+
+ /**
+ * Creates a plain object from a ServiceDescriptorProto message. Also converts values to other types if specified.
+ * @param message ServiceDescriptorProto
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.ServiceDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ServiceDescriptorProto to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ServiceDescriptorProto
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a MethodDescriptorProto. */
+ interface IMethodDescriptorProto {
+
+ /** MethodDescriptorProto name */
+ name?: (string|null);
+
+ /** MethodDescriptorProto inputType */
+ inputType?: (string|null);
+
+ /** MethodDescriptorProto outputType */
+ outputType?: (string|null);
+
+ /** MethodDescriptorProto options */
+ options?: (google.protobuf.IMethodOptions|null);
+
+ /** MethodDescriptorProto clientStreaming */
+ clientStreaming?: (boolean|null);
+
+ /** MethodDescriptorProto serverStreaming */
+ serverStreaming?: (boolean|null);
+ }
+
+ /** Represents a MethodDescriptorProto. */
+ class MethodDescriptorProto implements IMethodDescriptorProto {
+
+ /**
+ * Constructs a new MethodDescriptorProto.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IMethodDescriptorProto);
+
+ /** MethodDescriptorProto name. */
+ public name: string;
+
+ /** MethodDescriptorProto inputType. */
+ public inputType: string;
+
+ /** MethodDescriptorProto outputType. */
+ public outputType: string;
+
+ /** MethodDescriptorProto options. */
+ public options?: (google.protobuf.IMethodOptions|null);
+
+ /** MethodDescriptorProto clientStreaming. */
+ public clientStreaming: boolean;
+
+ /** MethodDescriptorProto serverStreaming. */
+ public serverStreaming: boolean;
+
+ /**
+ * Creates a new MethodDescriptorProto instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns MethodDescriptorProto instance
+ */
+ public static create(properties?: google.protobuf.IMethodDescriptorProto): google.protobuf.MethodDescriptorProto;
+
+ /**
+ * Encodes the specified MethodDescriptorProto message. Does not implicitly {@link google.protobuf.MethodDescriptorProto.verify|verify} messages.
+ * @param message MethodDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IMethodDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified MethodDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.MethodDescriptorProto.verify|verify} messages.
+ * @param message MethodDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IMethodDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a MethodDescriptorProto message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns MethodDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.MethodDescriptorProto;
+
+ /**
+ * Decodes a MethodDescriptorProto message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns MethodDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.MethodDescriptorProto;
+
+ /**
+ * Verifies a MethodDescriptorProto message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a MethodDescriptorProto message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns MethodDescriptorProto
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.MethodDescriptorProto;
+
+ /**
+ * Creates a plain object from a MethodDescriptorProto message. Also converts values to other types if specified.
+ * @param message MethodDescriptorProto
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.MethodDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this MethodDescriptorProto to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for MethodDescriptorProto
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a FileOptions. */
+ interface IFileOptions {
+
+ /** FileOptions javaPackage */
+ javaPackage?: (string|null);
+
+ /** FileOptions javaOuterClassname */
+ javaOuterClassname?: (string|null);
+
+ /** FileOptions javaMultipleFiles */
+ javaMultipleFiles?: (boolean|null);
+
+ /** FileOptions javaGenerateEqualsAndHash */
+ javaGenerateEqualsAndHash?: (boolean|null);
+
+ /** FileOptions javaStringCheckUtf8 */
+ javaStringCheckUtf8?: (boolean|null);
+
+ /** FileOptions optimizeFor */
+ optimizeFor?: (google.protobuf.FileOptions.OptimizeMode|keyof typeof google.protobuf.FileOptions.OptimizeMode|null);
+
+ /** FileOptions goPackage */
+ goPackage?: (string|null);
+
+ /** FileOptions ccGenericServices */
+ ccGenericServices?: (boolean|null);
+
+ /** FileOptions javaGenericServices */
+ javaGenericServices?: (boolean|null);
+
+ /** FileOptions pyGenericServices */
+ pyGenericServices?: (boolean|null);
+
+ /** FileOptions phpGenericServices */
+ phpGenericServices?: (boolean|null);
+
+ /** FileOptions deprecated */
+ deprecated?: (boolean|null);
+
+ /** FileOptions ccEnableArenas */
+ ccEnableArenas?: (boolean|null);
+
+ /** FileOptions objcClassPrefix */
+ objcClassPrefix?: (string|null);
+
+ /** FileOptions csharpNamespace */
+ csharpNamespace?: (string|null);
+
+ /** FileOptions swiftPrefix */
+ swiftPrefix?: (string|null);
+
+ /** FileOptions phpClassPrefix */
+ phpClassPrefix?: (string|null);
+
+ /** FileOptions phpNamespace */
+ phpNamespace?: (string|null);
+
+ /** FileOptions phpMetadataNamespace */
+ phpMetadataNamespace?: (string|null);
+
+ /** FileOptions rubyPackage */
+ rubyPackage?: (string|null);
+
+ /** FileOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+
+ /** FileOptions .google.api.resourceDefinition */
+ ".google.api.resourceDefinition"?: (google.api.IResourceDescriptor[]|null);
+ }
+
+ /** Represents a FileOptions. */
+ class FileOptions implements IFileOptions {
+
+ /**
+ * Constructs a new FileOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IFileOptions);
+
+ /** FileOptions javaPackage. */
+ public javaPackage: string;
+
+ /** FileOptions javaOuterClassname. */
+ public javaOuterClassname: string;
+
+ /** FileOptions javaMultipleFiles. */
+ public javaMultipleFiles: boolean;
+
+ /** FileOptions javaGenerateEqualsAndHash. */
+ public javaGenerateEqualsAndHash: boolean;
+
+ /** FileOptions javaStringCheckUtf8. */
+ public javaStringCheckUtf8: boolean;
+
+ /** FileOptions optimizeFor. */
+ public optimizeFor: (google.protobuf.FileOptions.OptimizeMode|keyof typeof google.protobuf.FileOptions.OptimizeMode);
+
+ /** FileOptions goPackage. */
+ public goPackage: string;
+
+ /** FileOptions ccGenericServices. */
+ public ccGenericServices: boolean;
+
+ /** FileOptions javaGenericServices. */
+ public javaGenericServices: boolean;
+
+ /** FileOptions pyGenericServices. */
+ public pyGenericServices: boolean;
+
+ /** FileOptions phpGenericServices. */
+ public phpGenericServices: boolean;
+
+ /** FileOptions deprecated. */
+ public deprecated: boolean;
+
+ /** FileOptions ccEnableArenas. */
+ public ccEnableArenas: boolean;
+
+ /** FileOptions objcClassPrefix. */
+ public objcClassPrefix: string;
+
+ /** FileOptions csharpNamespace. */
+ public csharpNamespace: string;
+
+ /** FileOptions swiftPrefix. */
+ public swiftPrefix: string;
+
+ /** FileOptions phpClassPrefix. */
+ public phpClassPrefix: string;
+
+ /** FileOptions phpNamespace. */
+ public phpNamespace: string;
+
+ /** FileOptions phpMetadataNamespace. */
+ public phpMetadataNamespace: string;
+
+ /** FileOptions rubyPackage. */
+ public rubyPackage: string;
+
+ /** FileOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+
+ /**
+ * Creates a new FileOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FileOptions instance
+ */
+ public static create(properties?: google.protobuf.IFileOptions): google.protobuf.FileOptions;
+
+ /**
+ * Encodes the specified FileOptions message. Does not implicitly {@link google.protobuf.FileOptions.verify|verify} messages.
+ * @param message FileOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IFileOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FileOptions message, length delimited. Does not implicitly {@link google.protobuf.FileOptions.verify|verify} messages.
+ * @param message FileOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IFileOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FileOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FileOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FileOptions;
+
+ /**
+ * Decodes a FileOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FileOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FileOptions;
+
+ /**
+ * Verifies a FileOptions message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FileOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FileOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.FileOptions;
+
+ /**
+ * Creates a plain object from a FileOptions message. Also converts values to other types if specified.
+ * @param message FileOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.FileOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FileOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FileOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace FileOptions {
+
+ /** OptimizeMode enum. */
+ enum OptimizeMode {
+ SPEED = 1,
+ CODE_SIZE = 2,
+ LITE_RUNTIME = 3
+ }
+ }
+
+ /** Properties of a MessageOptions. */
+ interface IMessageOptions {
+
+ /** MessageOptions messageSetWireFormat */
+ messageSetWireFormat?: (boolean|null);
+
+ /** MessageOptions noStandardDescriptorAccessor */
+ noStandardDescriptorAccessor?: (boolean|null);
+
+ /** MessageOptions deprecated */
+ deprecated?: (boolean|null);
+
+ /** MessageOptions mapEntry */
+ mapEntry?: (boolean|null);
+
+ /** MessageOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+
+ /** MessageOptions .google.api.resource */
+ ".google.api.resource"?: (google.api.IResourceDescriptor|null);
+ }
+
+ /** Represents a MessageOptions. */
+ class MessageOptions implements IMessageOptions {
+
+ /**
+ * Constructs a new MessageOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IMessageOptions);
+
+ /** MessageOptions messageSetWireFormat. */
+ public messageSetWireFormat: boolean;
+
+ /** MessageOptions noStandardDescriptorAccessor. */
+ public noStandardDescriptorAccessor: boolean;
+
+ /** MessageOptions deprecated. */
+ public deprecated: boolean;
+
+ /** MessageOptions mapEntry. */
+ public mapEntry: boolean;
+
+ /** MessageOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+
+ /**
+ * Creates a new MessageOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns MessageOptions instance
+ */
+ public static create(properties?: google.protobuf.IMessageOptions): google.protobuf.MessageOptions;
+
+ /**
+ * Encodes the specified MessageOptions message. Does not implicitly {@link google.protobuf.MessageOptions.verify|verify} messages.
+ * @param message MessageOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IMessageOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified MessageOptions message, length delimited. Does not implicitly {@link google.protobuf.MessageOptions.verify|verify} messages.
+ * @param message MessageOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IMessageOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a MessageOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns MessageOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.MessageOptions;
+
+ /**
+ * Decodes a MessageOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns MessageOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.MessageOptions;
+
+ /**
+ * Verifies a MessageOptions message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a MessageOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns MessageOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.MessageOptions;
+
+ /**
+ * Creates a plain object from a MessageOptions message. Also converts values to other types if specified.
+ * @param message MessageOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.MessageOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this MessageOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for MessageOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a FieldOptions. */
+ interface IFieldOptions {
+
+ /** FieldOptions ctype */
+ ctype?: (google.protobuf.FieldOptions.CType|keyof typeof google.protobuf.FieldOptions.CType|null);
+
+ /** FieldOptions packed */
+ packed?: (boolean|null);
+
+ /** FieldOptions jstype */
+ jstype?: (google.protobuf.FieldOptions.JSType|keyof typeof google.protobuf.FieldOptions.JSType|null);
+
+ /** FieldOptions lazy */
+ lazy?: (boolean|null);
+
+ /** FieldOptions unverifiedLazy */
+ unverifiedLazy?: (boolean|null);
+
+ /** FieldOptions deprecated */
+ deprecated?: (boolean|null);
+
+ /** FieldOptions weak */
+ weak?: (boolean|null);
+
+ /** FieldOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+
+ /** FieldOptions .google.api.fieldBehavior */
+ ".google.api.fieldBehavior"?: (google.api.FieldBehavior[]|null);
+
+ /** FieldOptions .google.api.resourceReference */
+ ".google.api.resourceReference"?: (google.api.IResourceReference|null);
+ }
+
+ /** Represents a FieldOptions. */
+ class FieldOptions implements IFieldOptions {
+
+ /**
+ * Constructs a new FieldOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IFieldOptions);
+
+ /** FieldOptions ctype. */
+ public ctype: (google.protobuf.FieldOptions.CType|keyof typeof google.protobuf.FieldOptions.CType);
+
+ /** FieldOptions packed. */
+ public packed: boolean;
+
+ /** FieldOptions jstype. */
+ public jstype: (google.protobuf.FieldOptions.JSType|keyof typeof google.protobuf.FieldOptions.JSType);
+
+ /** FieldOptions lazy. */
+ public lazy: boolean;
+
+ /** FieldOptions unverifiedLazy. */
+ public unverifiedLazy: boolean;
+
+ /** FieldOptions deprecated. */
+ public deprecated: boolean;
+
+ /** FieldOptions weak. */
+ public weak: boolean;
+
+ /** FieldOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+
+ /**
+ * Creates a new FieldOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FieldOptions instance
+ */
+ public static create(properties?: google.protobuf.IFieldOptions): google.protobuf.FieldOptions;
+
+ /**
+ * Encodes the specified FieldOptions message. Does not implicitly {@link google.protobuf.FieldOptions.verify|verify} messages.
+ * @param message FieldOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IFieldOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FieldOptions message, length delimited. Does not implicitly {@link google.protobuf.FieldOptions.verify|verify} messages.
+ * @param message FieldOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IFieldOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FieldOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FieldOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FieldOptions;
+
+ /**
+ * Decodes a FieldOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FieldOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FieldOptions;
+
+ /**
+ * Verifies a FieldOptions message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FieldOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FieldOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.FieldOptions;
+
+ /**
+ * Creates a plain object from a FieldOptions message. Also converts values to other types if specified.
+ * @param message FieldOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.FieldOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FieldOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FieldOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace FieldOptions {
+
+ /** CType enum. */
+ enum CType {
+ STRING = 0,
+ CORD = 1,
+ STRING_PIECE = 2
+ }
+
+ /** JSType enum. */
+ enum JSType {
+ JS_NORMAL = 0,
+ JS_STRING = 1,
+ JS_NUMBER = 2
+ }
+ }
+
+ /** Properties of an OneofOptions. */
+ interface IOneofOptions {
+
+ /** OneofOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+ }
+
+ /** Represents an OneofOptions. */
+ class OneofOptions implements IOneofOptions {
+
+ /**
+ * Constructs a new OneofOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IOneofOptions);
+
+ /** OneofOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+
+ /**
+ * Creates a new OneofOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns OneofOptions instance
+ */
+ public static create(properties?: google.protobuf.IOneofOptions): google.protobuf.OneofOptions;
+
+ /**
+ * Encodes the specified OneofOptions message. Does not implicitly {@link google.protobuf.OneofOptions.verify|verify} messages.
+ * @param message OneofOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IOneofOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified OneofOptions message, length delimited. Does not implicitly {@link google.protobuf.OneofOptions.verify|verify} messages.
+ * @param message OneofOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IOneofOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an OneofOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns OneofOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.OneofOptions;
+
+ /**
+ * Decodes an OneofOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns OneofOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.OneofOptions;
+
+ /**
+ * Verifies an OneofOptions message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an OneofOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns OneofOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.OneofOptions;
+
+ /**
+ * Creates a plain object from an OneofOptions message. Also converts values to other types if specified.
+ * @param message OneofOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.OneofOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this OneofOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for OneofOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an EnumOptions. */
+ interface IEnumOptions {
+
+ /** EnumOptions allowAlias */
+ allowAlias?: (boolean|null);
+
+ /** EnumOptions deprecated */
+ deprecated?: (boolean|null);
+
+ /** EnumOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+ }
+
+ /** Represents an EnumOptions. */
+ class EnumOptions implements IEnumOptions {
+
+ /**
+ * Constructs a new EnumOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IEnumOptions);
+
+ /** EnumOptions allowAlias. */
+ public allowAlias: boolean;
+
+ /** EnumOptions deprecated. */
+ public deprecated: boolean;
+
+ /** EnumOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+
+ /**
+ * Creates a new EnumOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns EnumOptions instance
+ */
+ public static create(properties?: google.protobuf.IEnumOptions): google.protobuf.EnumOptions;
+
+ /**
+ * Encodes the specified EnumOptions message. Does not implicitly {@link google.protobuf.EnumOptions.verify|verify} messages.
+ * @param message EnumOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IEnumOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified EnumOptions message, length delimited. Does not implicitly {@link google.protobuf.EnumOptions.verify|verify} messages.
+ * @param message EnumOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IEnumOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an EnumOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns EnumOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumOptions;
+
+ /**
+ * Decodes an EnumOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns EnumOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumOptions;
+
+ /**
+ * Verifies an EnumOptions message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an EnumOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns EnumOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.EnumOptions;
+
+ /**
+ * Creates a plain object from an EnumOptions message. Also converts values to other types if specified.
+ * @param message EnumOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.EnumOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this EnumOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for EnumOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an EnumValueOptions. */
+ interface IEnumValueOptions {
+
+ /** EnumValueOptions deprecated */
+ deprecated?: (boolean|null);
+
+ /** EnumValueOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+ }
+
+ /** Represents an EnumValueOptions. */
+ class EnumValueOptions implements IEnumValueOptions {
+
+ /**
+ * Constructs a new EnumValueOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IEnumValueOptions);
+
+ /** EnumValueOptions deprecated. */
+ public deprecated: boolean;
+
+ /** EnumValueOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+
+ /**
+ * Creates a new EnumValueOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns EnumValueOptions instance
+ */
+ public static create(properties?: google.protobuf.IEnumValueOptions): google.protobuf.EnumValueOptions;
+
+ /**
+ * Encodes the specified EnumValueOptions message. Does not implicitly {@link google.protobuf.EnumValueOptions.verify|verify} messages.
+ * @param message EnumValueOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IEnumValueOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified EnumValueOptions message, length delimited. Does not implicitly {@link google.protobuf.EnumValueOptions.verify|verify} messages.
+ * @param message EnumValueOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IEnumValueOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an EnumValueOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns EnumValueOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumValueOptions;
+
+ /**
+ * Decodes an EnumValueOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns EnumValueOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumValueOptions;
+
+ /**
+ * Verifies an EnumValueOptions message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an EnumValueOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns EnumValueOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.EnumValueOptions;
+
+ /**
+ * Creates a plain object from an EnumValueOptions message. Also converts values to other types if specified.
+ * @param message EnumValueOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.EnumValueOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this EnumValueOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for EnumValueOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ServiceOptions. */
+ interface IServiceOptions {
+
+ /** ServiceOptions deprecated */
+ deprecated?: (boolean|null);
+
+ /** ServiceOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+
+ /** ServiceOptions .google.api.defaultHost */
+ ".google.api.defaultHost"?: (string|null);
+
+ /** ServiceOptions .google.api.oauthScopes */
+ ".google.api.oauthScopes"?: (string|null);
+ }
+
+ /** Represents a ServiceOptions. */
+ class ServiceOptions implements IServiceOptions {
+
+ /**
+ * Constructs a new ServiceOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IServiceOptions);
+
+ /** ServiceOptions deprecated. */
+ public deprecated: boolean;
+
+ /** ServiceOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+
+ /**
+ * Creates a new ServiceOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ServiceOptions instance
+ */
+ public static create(properties?: google.protobuf.IServiceOptions): google.protobuf.ServiceOptions;
+
+ /**
+ * Encodes the specified ServiceOptions message. Does not implicitly {@link google.protobuf.ServiceOptions.verify|verify} messages.
+ * @param message ServiceOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IServiceOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ServiceOptions message, length delimited. Does not implicitly {@link google.protobuf.ServiceOptions.verify|verify} messages.
+ * @param message ServiceOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IServiceOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ServiceOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ServiceOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.ServiceOptions;
+
+ /**
+ * Decodes a ServiceOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ServiceOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.ServiceOptions;
+
+ /**
+ * Verifies a ServiceOptions message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ServiceOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ServiceOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.ServiceOptions;
+
+ /**
+ * Creates a plain object from a ServiceOptions message. Also converts values to other types if specified.
+ * @param message ServiceOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.ServiceOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ServiceOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ServiceOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a MethodOptions. */
+ interface IMethodOptions {
+
+ /** MethodOptions deprecated */
+ deprecated?: (boolean|null);
+
+ /** MethodOptions idempotencyLevel */
+ idempotencyLevel?: (google.protobuf.MethodOptions.IdempotencyLevel|keyof typeof google.protobuf.MethodOptions.IdempotencyLevel|null);
+
+ /** MethodOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+
+ /** MethodOptions .google.api.http */
+ ".google.api.http"?: (google.api.IHttpRule|null);
+
+ /** MethodOptions .google.api.methodSignature */
+ ".google.api.methodSignature"?: (string[]|null);
+
+ /** MethodOptions .google.longrunning.operationInfo */
+ ".google.longrunning.operationInfo"?: (google.longrunning.IOperationInfo|null);
+ }
+
+ /** Represents a MethodOptions. */
+ class MethodOptions implements IMethodOptions {
+
+ /**
+ * Constructs a new MethodOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IMethodOptions);
+
+ /** MethodOptions deprecated. */
+ public deprecated: boolean;
+
+ /** MethodOptions idempotencyLevel. */
+ public idempotencyLevel: (google.protobuf.MethodOptions.IdempotencyLevel|keyof typeof google.protobuf.MethodOptions.IdempotencyLevel);
+
+ /** MethodOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+
+ /**
+ * Creates a new MethodOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns MethodOptions instance
+ */
+ public static create(properties?: google.protobuf.IMethodOptions): google.protobuf.MethodOptions;
+
+ /**
+ * Encodes the specified MethodOptions message. Does not implicitly {@link google.protobuf.MethodOptions.verify|verify} messages.
+ * @param message MethodOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IMethodOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified MethodOptions message, length delimited. Does not implicitly {@link google.protobuf.MethodOptions.verify|verify} messages.
+ * @param message MethodOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IMethodOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a MethodOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns MethodOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.MethodOptions;
+
+ /**
+ * Decodes a MethodOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns MethodOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.MethodOptions;
+
+ /**
+ * Verifies a MethodOptions message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a MethodOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns MethodOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.MethodOptions;
+
+ /**
+ * Creates a plain object from a MethodOptions message. Also converts values to other types if specified.
+ * @param message MethodOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.MethodOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this MethodOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for MethodOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace MethodOptions {
+
+ /** IdempotencyLevel enum. */
+ enum IdempotencyLevel {
+ IDEMPOTENCY_UNKNOWN = 0,
+ NO_SIDE_EFFECTS = 1,
+ IDEMPOTENT = 2
+ }
+ }
+
+ /** Properties of an UninterpretedOption. */
+ interface IUninterpretedOption {
+
+ /** UninterpretedOption name */
+ name?: (google.protobuf.UninterpretedOption.INamePart[]|null);
+
+ /** UninterpretedOption identifierValue */
+ identifierValue?: (string|null);
+
+ /** UninterpretedOption positiveIntValue */
+ positiveIntValue?: (number|Long|string|null);
+
+ /** UninterpretedOption negativeIntValue */
+ negativeIntValue?: (number|Long|string|null);
+
+ /** UninterpretedOption doubleValue */
+ doubleValue?: (number|null);
+
+ /** UninterpretedOption stringValue */
+ stringValue?: (Uint8Array|string|null);
+
+ /** UninterpretedOption aggregateValue */
+ aggregateValue?: (string|null);
+ }
+
+ /** Represents an UninterpretedOption. */
+ class UninterpretedOption implements IUninterpretedOption {
+
+ /**
+ * Constructs a new UninterpretedOption.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IUninterpretedOption);
+
+ /** UninterpretedOption name. */
+ public name: google.protobuf.UninterpretedOption.INamePart[];
+
+ /** UninterpretedOption identifierValue. */
+ public identifierValue: string;
+
+ /** UninterpretedOption positiveIntValue. */
+ public positiveIntValue: (number|Long|string);
+
+ /** UninterpretedOption negativeIntValue. */
+ public negativeIntValue: (number|Long|string);
+
+ /** UninterpretedOption doubleValue. */
+ public doubleValue: number;
+
+ /** UninterpretedOption stringValue. */
+ public stringValue: (Uint8Array|string);
+
+ /** UninterpretedOption aggregateValue. */
+ public aggregateValue: string;
+
+ /**
+ * Creates a new UninterpretedOption instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns UninterpretedOption instance
+ */
+ public static create(properties?: google.protobuf.IUninterpretedOption): google.protobuf.UninterpretedOption;
+
+ /**
+ * Encodes the specified UninterpretedOption message. Does not implicitly {@link google.protobuf.UninterpretedOption.verify|verify} messages.
+ * @param message UninterpretedOption message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IUninterpretedOption, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified UninterpretedOption message, length delimited. Does not implicitly {@link google.protobuf.UninterpretedOption.verify|verify} messages.
+ * @param message UninterpretedOption message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IUninterpretedOption, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an UninterpretedOption message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns UninterpretedOption
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.UninterpretedOption;
+
+ /**
+ * Decodes an UninterpretedOption message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns UninterpretedOption
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.UninterpretedOption;
+
+ /**
+ * Verifies an UninterpretedOption message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an UninterpretedOption message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns UninterpretedOption
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.UninterpretedOption;
+
+ /**
+ * Creates a plain object from an UninterpretedOption message. Also converts values to other types if specified.
+ * @param message UninterpretedOption
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.UninterpretedOption, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this UninterpretedOption to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for UninterpretedOption
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace UninterpretedOption {
+
+ /** Properties of a NamePart. */
+ interface INamePart {
+
+ /** NamePart namePart */
+ namePart: string;
+
+ /** NamePart isExtension */
+ isExtension: boolean;
+ }
+
+ /** Represents a NamePart. */
+ class NamePart implements INamePart {
+
+ /**
+ * Constructs a new NamePart.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.UninterpretedOption.INamePart);
+
+ /** NamePart namePart. */
+ public namePart: string;
+
+ /** NamePart isExtension. */
+ public isExtension: boolean;
+
+ /**
+ * Creates a new NamePart instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns NamePart instance
+ */
+ public static create(properties?: google.protobuf.UninterpretedOption.INamePart): google.protobuf.UninterpretedOption.NamePart;
+
+ /**
+ * Encodes the specified NamePart message. Does not implicitly {@link google.protobuf.UninterpretedOption.NamePart.verify|verify} messages.
+ * @param message NamePart message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.UninterpretedOption.INamePart, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified NamePart message, length delimited. Does not implicitly {@link google.protobuf.UninterpretedOption.NamePart.verify|verify} messages.
+ * @param message NamePart message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.UninterpretedOption.INamePart, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a NamePart message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns NamePart
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.UninterpretedOption.NamePart;
+
+ /**
+ * Decodes a NamePart message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns NamePart
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.UninterpretedOption.NamePart;
+
+ /**
+ * Verifies a NamePart message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a NamePart message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns NamePart
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.UninterpretedOption.NamePart;
+
+ /**
+ * Creates a plain object from a NamePart message. Also converts values to other types if specified.
+ * @param message NamePart
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.UninterpretedOption.NamePart, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this NamePart to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for NamePart
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of a SourceCodeInfo. */
+ interface ISourceCodeInfo {
+
+ /** SourceCodeInfo location */
+ location?: (google.protobuf.SourceCodeInfo.ILocation[]|null);
+ }
+
+ /** Represents a SourceCodeInfo. */
+ class SourceCodeInfo implements ISourceCodeInfo {
+
+ /**
+ * Constructs a new SourceCodeInfo.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.ISourceCodeInfo);
+
+ /** SourceCodeInfo location. */
+ public location: google.protobuf.SourceCodeInfo.ILocation[];
+
+ /**
+ * Creates a new SourceCodeInfo instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns SourceCodeInfo instance
+ */
+ public static create(properties?: google.protobuf.ISourceCodeInfo): google.protobuf.SourceCodeInfo;
+
+ /**
+ * Encodes the specified SourceCodeInfo message. Does not implicitly {@link google.protobuf.SourceCodeInfo.verify|verify} messages.
+ * @param message SourceCodeInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.ISourceCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified SourceCodeInfo message, length delimited. Does not implicitly {@link google.protobuf.SourceCodeInfo.verify|verify} messages.
+ * @param message SourceCodeInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.ISourceCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a SourceCodeInfo message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns SourceCodeInfo
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.SourceCodeInfo;
+
+ /**
+ * Decodes a SourceCodeInfo message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns SourceCodeInfo
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.SourceCodeInfo;
+
+ /**
+ * Verifies a SourceCodeInfo message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a SourceCodeInfo message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns SourceCodeInfo
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.SourceCodeInfo;
+
+ /**
+ * Creates a plain object from a SourceCodeInfo message. Also converts values to other types if specified.
+ * @param message SourceCodeInfo
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.SourceCodeInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this SourceCodeInfo to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for SourceCodeInfo
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace SourceCodeInfo {
+
+ /** Properties of a Location. */
+ interface ILocation {
+
+ /** Location path */
+ path?: (number[]|null);
+
+ /** Location span */
+ span?: (number[]|null);
+
+ /** Location leadingComments */
+ leadingComments?: (string|null);
+
+ /** Location trailingComments */
+ trailingComments?: (string|null);
+
+ /** Location leadingDetachedComments */
+ leadingDetachedComments?: (string[]|null);
+ }
+
+ /** Represents a Location. */
+ class Location implements ILocation {
+
+ /**
+ * Constructs a new Location.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.SourceCodeInfo.ILocation);
+
+ /** Location path. */
+ public path: number[];
+
+ /** Location span. */
+ public span: number[];
+
+ /** Location leadingComments. */
+ public leadingComments: string;
+
+ /** Location trailingComments. */
+ public trailingComments: string;
+
+ /** Location leadingDetachedComments. */
+ public leadingDetachedComments: string[];
+
+ /**
+ * Creates a new Location instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Location instance
+ */
+ public static create(properties?: google.protobuf.SourceCodeInfo.ILocation): google.protobuf.SourceCodeInfo.Location;
+
+ /**
+ * Encodes the specified Location message. Does not implicitly {@link google.protobuf.SourceCodeInfo.Location.verify|verify} messages.
+ * @param message Location message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.SourceCodeInfo.ILocation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Location message, length delimited. Does not implicitly {@link google.protobuf.SourceCodeInfo.Location.verify|verify} messages.
+ * @param message Location message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.SourceCodeInfo.ILocation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Location message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Location
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.SourceCodeInfo.Location;
+
+ /**
+ * Decodes a Location message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Location
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.SourceCodeInfo.Location;
+
+ /**
+ * Verifies a Location message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Location message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Location
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.SourceCodeInfo.Location;
+
+ /**
+ * Creates a plain object from a Location message. Also converts values to other types if specified.
+ * @param message Location
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.SourceCodeInfo.Location, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Location to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Location
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of a GeneratedCodeInfo. */
+ interface IGeneratedCodeInfo {
+
+ /** GeneratedCodeInfo annotation */
+ annotation?: (google.protobuf.GeneratedCodeInfo.IAnnotation[]|null);
+ }
+
+ /** Represents a GeneratedCodeInfo. */
+ class GeneratedCodeInfo implements IGeneratedCodeInfo {
+
+ /**
+ * Constructs a new GeneratedCodeInfo.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IGeneratedCodeInfo);
+
+ /** GeneratedCodeInfo annotation. */
+ public annotation: google.protobuf.GeneratedCodeInfo.IAnnotation[];
+
+ /**
+ * Creates a new GeneratedCodeInfo instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GeneratedCodeInfo instance
+ */
+ public static create(properties?: google.protobuf.IGeneratedCodeInfo): google.protobuf.GeneratedCodeInfo;
+
+ /**
+ * Encodes the specified GeneratedCodeInfo message. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.verify|verify} messages.
+ * @param message GeneratedCodeInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IGeneratedCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GeneratedCodeInfo message, length delimited. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.verify|verify} messages.
+ * @param message GeneratedCodeInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IGeneratedCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GeneratedCodeInfo message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GeneratedCodeInfo
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.GeneratedCodeInfo;
+
+ /**
+ * Decodes a GeneratedCodeInfo message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GeneratedCodeInfo
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.GeneratedCodeInfo;
+
+ /**
+ * Verifies a GeneratedCodeInfo message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GeneratedCodeInfo message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GeneratedCodeInfo
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.GeneratedCodeInfo;
+
+ /**
+ * Creates a plain object from a GeneratedCodeInfo message. Also converts values to other types if specified.
+ * @param message GeneratedCodeInfo
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.GeneratedCodeInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GeneratedCodeInfo to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GeneratedCodeInfo
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace GeneratedCodeInfo {
+
+ /** Properties of an Annotation. */
+ interface IAnnotation {
+
+ /** Annotation path */
+ path?: (number[]|null);
+
+ /** Annotation sourceFile */
+ sourceFile?: (string|null);
+
+ /** Annotation begin */
+ begin?: (number|null);
+
+ /** Annotation end */
+ end?: (number|null);
+
+ /** Annotation semantic */
+ semantic?: (google.protobuf.GeneratedCodeInfo.Annotation.Semantic|keyof typeof google.protobuf.GeneratedCodeInfo.Annotation.Semantic|null);
+ }
+
+ /** Represents an Annotation. */
+ class Annotation implements IAnnotation {
+
+ /**
+ * Constructs a new Annotation.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.GeneratedCodeInfo.IAnnotation);
+
+ /** Annotation path. */
+ public path: number[];
+
+ /** Annotation sourceFile. */
+ public sourceFile: string;
+
+ /** Annotation begin. */
+ public begin: number;
+
+ /** Annotation end. */
+ public end: number;
+
+ /** Annotation semantic. */
+ public semantic: (google.protobuf.GeneratedCodeInfo.Annotation.Semantic|keyof typeof google.protobuf.GeneratedCodeInfo.Annotation.Semantic);
+
+ /**
+ * Creates a new Annotation instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Annotation instance
+ */
+ public static create(properties?: google.protobuf.GeneratedCodeInfo.IAnnotation): google.protobuf.GeneratedCodeInfo.Annotation;
+
+ /**
+ * Encodes the specified Annotation message. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.Annotation.verify|verify} messages.
+ * @param message Annotation message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.GeneratedCodeInfo.IAnnotation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Annotation message, length delimited. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.Annotation.verify|verify} messages.
+ * @param message Annotation message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.GeneratedCodeInfo.IAnnotation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an Annotation message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Annotation
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.GeneratedCodeInfo.Annotation;
+
+ /**
+ * Decodes an Annotation message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Annotation
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.GeneratedCodeInfo.Annotation;
+
+ /**
+ * Verifies an Annotation message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an Annotation message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Annotation
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.GeneratedCodeInfo.Annotation;
+
+ /**
+ * Creates a plain object from an Annotation message. Also converts values to other types if specified.
+ * @param message Annotation
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.GeneratedCodeInfo.Annotation, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Annotation to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Annotation
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace Annotation {
+
+ /** Semantic enum. */
+ enum Semantic {
+ NONE = 0,
+ SET = 1,
+ ALIAS = 2
+ }
+ }
+ }
+
+ /** Properties of an Any. */
+ interface IAny {
+
+ /** Any type_url */
+ type_url?: (string|null);
+
+ /** Any value */
+ value?: (Uint8Array|string|null);
+ }
+
+ /** Represents an Any. */
+ class Any implements IAny {
+
+ /**
+ * Constructs a new Any.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IAny);
+
+ /** Any type_url. */
+ public type_url: string;
+
+ /** Any value. */
+ public value: (Uint8Array|string);
+
+ /**
+ * Creates a new Any instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Any instance
+ */
+ public static create(properties?: google.protobuf.IAny): google.protobuf.Any;
+
+ /**
+ * Encodes the specified Any message. Does not implicitly {@link google.protobuf.Any.verify|verify} messages.
+ * @param message Any message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IAny, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Any message, length delimited. Does not implicitly {@link google.protobuf.Any.verify|verify} messages.
+ * @param message Any message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IAny, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an Any message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Any
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Any;
+
+ /**
+ * Decodes an Any message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Any
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Any;
+
+ /**
+ * Verifies an Any message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an Any message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Any
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.Any;
+
+ /**
+ * Creates a plain object from an Any message. Also converts values to other types if specified.
+ * @param message Any
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.Any, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Any to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Any
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Duration. */
+ interface IDuration {
+
+ /** Duration seconds */
+ seconds?: (number|Long|string|null);
+
+ /** Duration nanos */
+ nanos?: (number|null);
+ }
+
+ /** Represents a Duration. */
+ class Duration implements IDuration {
+
+ /**
+ * Constructs a new Duration.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IDuration);
+
+ /** Duration seconds. */
+ public seconds: (number|Long|string);
+
+ /** Duration nanos. */
+ public nanos: number;
+
+ /**
+ * Creates a new Duration instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Duration instance
+ */
+ public static create(properties?: google.protobuf.IDuration): google.protobuf.Duration;
+
+ /**
+ * Encodes the specified Duration message. Does not implicitly {@link google.protobuf.Duration.verify|verify} messages.
+ * @param message Duration message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IDuration, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Duration message, length delimited. Does not implicitly {@link google.protobuf.Duration.verify|verify} messages.
+ * @param message Duration message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IDuration, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Duration message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Duration
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Duration;
+
+ /**
+ * Decodes a Duration message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Duration
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Duration;
+
+ /**
+ * Verifies a Duration message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Duration message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Duration
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.Duration;
+
+ /**
+ * Creates a plain object from a Duration message. Also converts values to other types if specified.
+ * @param message Duration
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.Duration, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Duration to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Duration
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an Empty. */
+ interface IEmpty {
+ }
+
+ /** Represents an Empty. */
+ class Empty implements IEmpty {
+
+ /**
+ * Constructs a new Empty.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IEmpty);
+
+ /**
+ * Creates a new Empty instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Empty instance
+ */
+ public static create(properties?: google.protobuf.IEmpty): google.protobuf.Empty;
+
+ /**
+ * Encodes the specified Empty message. Does not implicitly {@link google.protobuf.Empty.verify|verify} messages.
+ * @param message Empty message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IEmpty, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Empty message, length delimited. Does not implicitly {@link google.protobuf.Empty.verify|verify} messages.
+ * @param message Empty message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IEmpty, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an Empty message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Empty
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Empty;
+
+ /**
+ * Decodes an Empty message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Empty
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Empty;
+
+ /**
+ * Verifies an Empty message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an Empty message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Empty
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.Empty;
+
+ /**
+ * Creates a plain object from an Empty message. Also converts values to other types if specified.
+ * @param message Empty
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.Empty, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Empty to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Empty
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a FieldMask. */
+ interface IFieldMask {
+
+ /** FieldMask paths */
+ paths?: (string[]|null);
+ }
+
+ /** Represents a FieldMask. */
+ class FieldMask implements IFieldMask {
+
+ /**
+ * Constructs a new FieldMask.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IFieldMask);
+
+ /** FieldMask paths. */
+ public paths: string[];
+
+ /**
+ * Creates a new FieldMask instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FieldMask instance
+ */
+ public static create(properties?: google.protobuf.IFieldMask): google.protobuf.FieldMask;
+
+ /**
+ * Encodes the specified FieldMask message. Does not implicitly {@link google.protobuf.FieldMask.verify|verify} messages.
+ * @param message FieldMask message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IFieldMask, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FieldMask message, length delimited. Does not implicitly {@link google.protobuf.FieldMask.verify|verify} messages.
+ * @param message FieldMask message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IFieldMask, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FieldMask message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FieldMask
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FieldMask;
+
+ /**
+ * Decodes a FieldMask message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FieldMask
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FieldMask;
+
+ /**
+ * Verifies a FieldMask message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FieldMask message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FieldMask
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.FieldMask;
+
+ /**
+ * Creates a plain object from a FieldMask message. Also converts values to other types if specified.
+ * @param message FieldMask
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.FieldMask, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FieldMask to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FieldMask
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Timestamp. */
+ interface ITimestamp {
+
+ /** Timestamp seconds */
+ seconds?: (number|Long|string|null);
+
+ /** Timestamp nanos */
+ nanos?: (number|null);
+ }
+
+ /** Represents a Timestamp. */
+ class Timestamp implements ITimestamp {
+
+ /**
+ * Constructs a new Timestamp.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.ITimestamp);
+
+ /** Timestamp seconds. */
+ public seconds: (number|Long|string);
+
+ /** Timestamp nanos. */
+ public nanos: number;
+
+ /**
+ * Creates a new Timestamp instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Timestamp instance
+ */
+ public static create(properties?: google.protobuf.ITimestamp): google.protobuf.Timestamp;
+
+ /**
+ * Encodes the specified Timestamp message. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages.
+ * @param message Timestamp message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.ITimestamp, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Timestamp message, length delimited. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages.
+ * @param message Timestamp message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.ITimestamp, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Timestamp message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Timestamp
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Timestamp;
+
+ /**
+ * Decodes a Timestamp message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Timestamp
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Timestamp;
+
+ /**
+ * Verifies a Timestamp message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Timestamp message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Timestamp
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.Timestamp;
+
+ /**
+ * Creates a plain object from a Timestamp message. Also converts values to other types if specified.
+ * @param message Timestamp
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.Timestamp, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Timestamp to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Timestamp
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DoubleValue. */
+ interface IDoubleValue {
+
+ /** DoubleValue value */
+ value?: (number|null);
+ }
+
+ /** Represents a DoubleValue. */
+ class DoubleValue implements IDoubleValue {
+
+ /**
+ * Constructs a new DoubleValue.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IDoubleValue);
+
+ /** DoubleValue value. */
+ public value: number;
+
+ /**
+ * Creates a new DoubleValue instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DoubleValue instance
+ */
+ public static create(properties?: google.protobuf.IDoubleValue): google.protobuf.DoubleValue;
+
+ /**
+ * Encodes the specified DoubleValue message. Does not implicitly {@link google.protobuf.DoubleValue.verify|verify} messages.
+ * @param message DoubleValue message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IDoubleValue, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DoubleValue message, length delimited. Does not implicitly {@link google.protobuf.DoubleValue.verify|verify} messages.
+ * @param message DoubleValue message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IDoubleValue, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DoubleValue message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DoubleValue
+ * @throws {Error} If the payload is not 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.DoubleValue;
+
+ /**
+ * Decodes a DoubleValue message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DoubleValue
+ * @throws {Error} If the payload 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.DoubleValue;
+
+ /**
+ * Verifies a DoubleValue message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DoubleValue message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DoubleValue
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.DoubleValue;
+
+ /**
+ * Creates a plain object from a DoubleValue message. Also converts values to other types if specified.
+ * @param message DoubleValue
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.DoubleValue, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DoubleValue to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DoubleValue
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a FloatValue. */
+ interface IFloatValue {
+
+ /** FloatValue value */
+ value?: (number|null);
+ }
+
+ /** Represents a FloatValue. */
+ class FloatValue implements IFloatValue {
+
+ /**
+ * Constructs a new FloatValue.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IFloatValue);
+
+ /** FloatValue value. */
+ public value: number;
+
+ /**
+ * Creates a new FloatValue instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FloatValue instance
+ */
+ public static create(properties?: google.protobuf.IFloatValue): google.protobuf.FloatValue;
+
+ /**
+ * Encodes the specified FloatValue message. Does not implicitly {@link google.protobuf.FloatValue.verify|verify} messages.
+ * @param message FloatValue message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IFloatValue, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FloatValue message, length delimited. Does not implicitly {@link google.protobuf.FloatValue.verify|verify} messages.
+ * @param message FloatValue message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IFloatValue, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FloatValue message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FloatValue
+ * @throws {Error} If the payload is not 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.FloatValue;
+
+ /**
+ * Decodes a FloatValue message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FloatValue
+ * @throws {Error} If the payload 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.FloatValue;
+
+ /**
+ * Verifies a FloatValue message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FloatValue message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FloatValue
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.FloatValue;
+
+ /**
+ * Creates a plain object from a FloatValue message. Also converts values to other types if specified.
+ * @param message FloatValue
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.FloatValue, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FloatValue to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FloatValue
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an Int64Value. */
+ interface IInt64Value {
+
+ /** Int64Value value */
+ value?: (number|Long|string|null);
+ }
+
+ /** Represents an Int64Value. */
+ class Int64Value implements IInt64Value {
+
+ /**
+ * Constructs a new Int64Value.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IInt64Value);
+
+ /** Int64Value value. */
+ public value: (number|Long|string);
+
+ /**
+ * Creates a new Int64Value instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Int64Value instance
+ */
+ public static create(properties?: google.protobuf.IInt64Value): google.protobuf.Int64Value;
+
+ /**
+ * Encodes the specified Int64Value message. Does not implicitly {@link google.protobuf.Int64Value.verify|verify} messages.
+ * @param message Int64Value message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IInt64Value, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Int64Value message, length delimited. Does not implicitly {@link google.protobuf.Int64Value.verify|verify} messages.
+ * @param message Int64Value message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IInt64Value, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an Int64Value message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Int64Value
+ * @throws {Error} If the payload is not 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.Int64Value;
+
+ /**
+ * Decodes an Int64Value message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Int64Value
+ * @throws {Error} If the payload 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.Int64Value;
+
+ /**
+ * Verifies an Int64Value message.
+ * @param message Plain 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 Int64Value message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Int64Value
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.Int64Value;
+
+ /**
+ * Creates a plain object from an Int64Value message. Also converts values to other types if specified.
+ * @param message Int64Value
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.Int64Value, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Int64Value to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Int64Value
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a UInt64Value. */
+ interface IUInt64Value {
+
+ /** UInt64Value value */
+ value?: (number|Long|string|null);
+ }
+
+ /** Represents a UInt64Value. */
+ class UInt64Value implements IUInt64Value {
+
+ /**
+ * Constructs a new UInt64Value.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IUInt64Value);
+
+ /** UInt64Value value. */
+ public value: (number|Long|string);
+
+ /**
+ * Creates a new UInt64Value instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns UInt64Value instance
+ */
+ public static create(properties?: google.protobuf.IUInt64Value): google.protobuf.UInt64Value;
+
+ /**
+ * Encodes the specified UInt64Value message. Does not implicitly {@link google.protobuf.UInt64Value.verify|verify} messages.
+ * @param message UInt64Value message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IUInt64Value, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified UInt64Value message, length delimited. Does not implicitly {@link google.protobuf.UInt64Value.verify|verify} messages.
+ * @param message UInt64Value message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IUInt64Value, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a UInt64Value message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns UInt64Value
+ * @throws {Error} If the payload is not 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.UInt64Value;
+
+ /**
+ * Decodes a UInt64Value message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns UInt64Value
+ * @throws {Error} If the payload 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.UInt64Value;
+
+ /**
+ * Verifies a UInt64Value message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a UInt64Value message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns UInt64Value
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.UInt64Value;
+
+ /**
+ * Creates a plain object from a UInt64Value message. Also converts values to other types if specified.
+ * @param message UInt64Value
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.UInt64Value, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this UInt64Value to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for UInt64Value
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an Int32Value. */
+ interface IInt32Value {
+
+ /** Int32Value value */
+ value?: (number|null);
+ }
+
+ /** Represents an Int32Value. */
+ class Int32Value implements IInt32Value {
+
+ /**
+ * Constructs a new Int32Value.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IInt32Value);
+
+ /** Int32Value value. */
+ public value: number;
+
+ /**
+ * Creates a new Int32Value instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Int32Value instance
+ */
+ public static create(properties?: google.protobuf.IInt32Value): google.protobuf.Int32Value;
+
+ /**
+ * Encodes the specified Int32Value message. Does not implicitly {@link google.protobuf.Int32Value.verify|verify} messages.
+ * @param message Int32Value message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IInt32Value, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Int32Value message, length delimited. Does not implicitly {@link google.protobuf.Int32Value.verify|verify} messages.
+ * @param message Int32Value message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IInt32Value, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an Int32Value message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Int32Value
+ * @throws {Error} If the payload is not 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.Int32Value;
+
+ /**
+ * Decodes an Int32Value message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Int32Value
+ * @throws {Error} If the payload 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.Int32Value;
+
+ /**
+ * Verifies an Int32Value message.
+ * @param message Plain 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 Int32Value message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Int32Value
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.Int32Value;
+
+ /**
+ * Creates a plain object from an Int32Value message. Also converts values to other types if specified.
+ * @param message Int32Value
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.Int32Value, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Int32Value to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Int32Value
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a UInt32Value. */
+ interface IUInt32Value {
+
+ /** UInt32Value value */
+ value?: (number|null);
+ }
+
+ /** Represents a UInt32Value. */
+ class UInt32Value implements IUInt32Value {
+
+ /**
+ * Constructs a new UInt32Value.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IUInt32Value);
+
+ /** UInt32Value value. */
+ public value: number;
+
+ /**
+ * Creates a new UInt32Value instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns UInt32Value instance
+ */
+ public static create(properties?: google.protobuf.IUInt32Value): google.protobuf.UInt32Value;
+
+ /**
+ * Encodes the specified UInt32Value message. Does not implicitly {@link google.protobuf.UInt32Value.verify|verify} messages.
+ * @param message UInt32Value message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IUInt32Value, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified UInt32Value message, length delimited. Does not implicitly {@link google.protobuf.UInt32Value.verify|verify} messages.
+ * @param message UInt32Value message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IUInt32Value, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a UInt32Value message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns UInt32Value
+ * @throws {Error} If the payload is not 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.UInt32Value;
+
+ /**
+ * Decodes a UInt32Value message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns UInt32Value
+ * @throws {Error} If the payload 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.UInt32Value;
+
+ /**
+ * Verifies a UInt32Value message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a UInt32Value message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns UInt32Value
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.UInt32Value;
+
+ /**
+ * Creates a plain object from a UInt32Value message. Also converts values to other types if specified.
+ * @param message UInt32Value
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.UInt32Value, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this UInt32Value to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for UInt32Value
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a BoolValue. */
+ interface IBoolValue {
+
+ /** BoolValue value */
+ value?: (boolean|null);
+ }
+
+ /** Represents a BoolValue. */
+ class BoolValue implements IBoolValue {
+
+ /**
+ * Constructs a new BoolValue.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IBoolValue);
+
+ /** BoolValue value. */
+ public value: boolean;
+
+ /**
+ * Creates a new BoolValue instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns BoolValue instance
+ */
+ public static create(properties?: google.protobuf.IBoolValue): google.protobuf.BoolValue;
+
+ /**
+ * Encodes the specified BoolValue message. Does not implicitly {@link google.protobuf.BoolValue.verify|verify} messages.
+ * @param message BoolValue message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IBoolValue, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified BoolValue message, length delimited. Does not implicitly {@link google.protobuf.BoolValue.verify|verify} messages.
+ * @param message BoolValue message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IBoolValue, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a BoolValue message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns BoolValue
+ * @throws {Error} If the payload is not 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.BoolValue;
+
+ /**
+ * Decodes a BoolValue message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns BoolValue
+ * @throws {Error} If the payload 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.BoolValue;
+
+ /**
+ * Verifies a BoolValue message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a BoolValue message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns BoolValue
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.BoolValue;
+
+ /**
+ * Creates a plain object from a BoolValue message. Also converts values to other types if specified.
+ * @param message BoolValue
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.BoolValue, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this BoolValue to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for BoolValue
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a StringValue. */
+ interface IStringValue {
+
+ /** StringValue value */
+ value?: (string|null);
+ }
+
+ /** Represents a StringValue. */
+ class StringValue implements IStringValue {
+
+ /**
+ * Constructs a new StringValue.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IStringValue);
+
+ /** StringValue value. */
+ public value: string;
+
+ /**
+ * Creates a new StringValue instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns StringValue instance
+ */
+ public static create(properties?: google.protobuf.IStringValue): google.protobuf.StringValue;
+
+ /**
+ * Encodes the specified StringValue message. Does not implicitly {@link google.protobuf.StringValue.verify|verify} messages.
+ * @param message StringValue message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IStringValue, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified StringValue message, length delimited. Does not implicitly {@link google.protobuf.StringValue.verify|verify} messages.
+ * @param message StringValue message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IStringValue, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a StringValue message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns StringValue
+ * @throws {Error} If the payload is not 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.StringValue;
+
+ /**
+ * Decodes a StringValue message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns StringValue
+ * @throws {Error} If the payload 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.StringValue;
+
+ /**
+ * Verifies a StringValue message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a StringValue message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns StringValue
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.StringValue;
+
+ /**
+ * Creates a plain object from a StringValue message. Also converts values to other types if specified.
+ * @param message StringValue
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.StringValue, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this StringValue to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for StringValue
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a BytesValue. */
+ interface IBytesValue {
+
+ /** BytesValue value */
+ value?: (Uint8Array|string|null);
+ }
+
+ /** Represents a BytesValue. */
+ class BytesValue implements IBytesValue {
+
+ /**
+ * Constructs a new BytesValue.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IBytesValue);
+
+ /** BytesValue value. */
+ public value: (Uint8Array|string);
+
+ /**
+ * Creates a new BytesValue instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns BytesValue instance
+ */
+ public static create(properties?: google.protobuf.IBytesValue): google.protobuf.BytesValue;
+
+ /**
+ * Encodes the specified BytesValue message. Does not implicitly {@link google.protobuf.BytesValue.verify|verify} messages.
+ * @param message BytesValue message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IBytesValue, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified BytesValue message, length delimited. Does not implicitly {@link google.protobuf.BytesValue.verify|verify} messages.
+ * @param message BytesValue message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IBytesValue, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a BytesValue message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns BytesValue
+ * @throws {Error} If the payload is not 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.BytesValue;
+
+ /**
+ * Decodes a BytesValue message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns BytesValue
+ * @throws {Error} If the payload 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.BytesValue;
+
+ /**
+ * Verifies a BytesValue message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a BytesValue message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns BytesValue
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.BytesValue;
+
+ /**
+ * Creates a plain object from a BytesValue message. Also converts values to other types if specified.
+ * @param message BytesValue
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.BytesValue, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this BytesValue to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for BytesValue
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Namespace longrunning. */
+ namespace longrunning {
+
+ /** Represents an Operations */
+ class Operations extends $protobuf.rpc.Service {
+
+ /**
+ * Constructs a new Operations service.
+ * @param rpcImpl RPC implementation
+ * @param [requestDelimited=false] Whether requests are length-delimited
+ * @param [responseDelimited=false] Whether responses are length-delimited
+ */
+ constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
+
+ /**
+ * Creates new Operations service using the specified rpc implementation.
+ * @param rpcImpl RPC implementation
+ * @param [requestDelimited=false] Whether requests are length-delimited
+ * @param [responseDelimited=false] Whether responses are length-delimited
+ * @returns RPC service. Useful where requests and/or responses are streamed.
+ */
+ public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): Operations;
+
+ /**
+ * Calls ListOperations.
+ * @param request ListOperationsRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListOperationsResponse
+ */
+ public listOperations(request: google.longrunning.IListOperationsRequest, callback: google.longrunning.Operations.ListOperationsCallback): void;
+
+ /**
+ * Calls ListOperations.
+ * @param request ListOperationsRequest message or plain object
+ * @returns Promise
+ */
+ public listOperations(request: google.longrunning.IListOperationsRequest): Promise;
+
+ /**
+ * Calls GetOperation.
+ * @param request GetOperationRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public getOperation(request: google.longrunning.IGetOperationRequest, callback: google.longrunning.Operations.GetOperationCallback): void;
+
+ /**
+ * Calls GetOperation.
+ * @param request GetOperationRequest message or plain object
+ * @returns Promise
+ */
+ public getOperation(request: google.longrunning.IGetOperationRequest): Promise;
+
+ /**
+ * Calls DeleteOperation.
+ * @param request DeleteOperationRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Empty
+ */
+ public deleteOperation(request: google.longrunning.IDeleteOperationRequest, callback: google.longrunning.Operations.DeleteOperationCallback): void;
+
+ /**
+ * Calls DeleteOperation.
+ * @param request DeleteOperationRequest message or plain object
+ * @returns Promise
+ */
+ public deleteOperation(request: google.longrunning.IDeleteOperationRequest): Promise;
+
+ /**
+ * Calls CancelOperation.
+ * @param request CancelOperationRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Empty
+ */
+ public cancelOperation(request: google.longrunning.ICancelOperationRequest, callback: google.longrunning.Operations.CancelOperationCallback): void;
+
+ /**
+ * Calls CancelOperation.
+ * @param request CancelOperationRequest message or plain object
+ * @returns Promise
+ */
+ public cancelOperation(request: google.longrunning.ICancelOperationRequest): Promise;
+
+ /**
+ * Calls WaitOperation.
+ * @param request WaitOperationRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public waitOperation(request: google.longrunning.IWaitOperationRequest, callback: google.longrunning.Operations.WaitOperationCallback): void;
+
+ /**
+ * Calls WaitOperation.
+ * @param request WaitOperationRequest message or plain object
+ * @returns Promise
+ */
+ public waitOperation(request: google.longrunning.IWaitOperationRequest): Promise;
+ }
+
+ namespace Operations {
+
+ /**
+ * Callback as used by {@link google.longrunning.Operations|listOperations}.
+ * @param error Error, if any
+ * @param [response] ListOperationsResponse
+ */
+ type ListOperationsCallback = (error: (Error|null), response?: google.longrunning.ListOperationsResponse) => void;
+
+ /**
+ * Callback as used by {@link google.longrunning.Operations|getOperation}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type GetOperationCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.longrunning.Operations|deleteOperation}.
+ * @param error Error, if any
+ * @param [response] Empty
+ */
+ type DeleteOperationCallback = (error: (Error|null), response?: google.protobuf.Empty) => void;
+
+ /**
+ * Callback as used by {@link google.longrunning.Operations|cancelOperation}.
+ * @param error Error, if any
+ * @param [response] Empty
+ */
+ type CancelOperationCallback = (error: (Error|null), response?: google.protobuf.Empty) => void;
+
+ /**
+ * Callback as used by {@link google.longrunning.Operations|waitOperation}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type WaitOperationCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+ }
+
+ /** Properties of an Operation. */
+ interface IOperation {
+
+ /** Operation name */
+ name?: (string|null);
+
+ /** Operation metadata */
+ metadata?: (google.protobuf.IAny|null);
+
+ /** Operation done */
+ done?: (boolean|null);
+
+ /** Operation error */
+ error?: (google.rpc.IStatus|null);
+
+ /** Operation response */
+ response?: (google.protobuf.IAny|null);
+ }
+
+ /** Represents an Operation. */
+ class Operation implements IOperation {
+
+ /**
+ * Constructs a new Operation.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.longrunning.IOperation);
+
+ /** Operation name. */
+ public name: string;
+
+ /** Operation metadata. */
+ public metadata?: (google.protobuf.IAny|null);
+
+ /** Operation done. */
+ public done: boolean;
+
+ /** Operation error. */
+ public error?: (google.rpc.IStatus|null);
+
+ /** Operation response. */
+ public response?: (google.protobuf.IAny|null);
+
+ /** Operation result. */
+ public result?: ("error"|"response");
+
+ /**
+ * Creates a new Operation instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Operation instance
+ */
+ public static create(properties?: google.longrunning.IOperation): google.longrunning.Operation;
+
+ /**
+ * Encodes the specified Operation message. Does not implicitly {@link google.longrunning.Operation.verify|verify} messages.
+ * @param message Operation message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.longrunning.IOperation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Operation message, length delimited. Does not implicitly {@link google.longrunning.Operation.verify|verify} messages.
+ * @param message Operation message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.longrunning.IOperation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an Operation message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Operation
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.longrunning.Operation;
+
+ /**
+ * Decodes an Operation message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Operation
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.longrunning.Operation;
+
+ /**
+ * Verifies an Operation message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an Operation message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Operation
+ */
+ public static fromObject(object: { [k: string]: any }): google.longrunning.Operation;
+
+ /**
+ * Creates a plain object from an Operation message. Also converts values to other types if specified.
+ * @param message Operation
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.longrunning.Operation, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Operation to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Operation
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GetOperationRequest. */
+ interface IGetOperationRequest {
+
+ /** GetOperationRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a GetOperationRequest. */
+ class GetOperationRequest implements IGetOperationRequest {
+
+ /**
+ * Constructs a new GetOperationRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.longrunning.IGetOperationRequest);
+
+ /** GetOperationRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new GetOperationRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetOperationRequest instance
+ */
+ public static create(properties?: google.longrunning.IGetOperationRequest): google.longrunning.GetOperationRequest;
+
+ /**
+ * Encodes the specified GetOperationRequest message. Does not implicitly {@link google.longrunning.GetOperationRequest.verify|verify} messages.
+ * @param message GetOperationRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.longrunning.IGetOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetOperationRequest message, length delimited. Does not implicitly {@link google.longrunning.GetOperationRequest.verify|verify} messages.
+ * @param message GetOperationRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.longrunning.IGetOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetOperationRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetOperationRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.longrunning.GetOperationRequest;
+
+ /**
+ * Decodes a GetOperationRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetOperationRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.longrunning.GetOperationRequest;
+
+ /**
+ * Verifies a GetOperationRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GetOperationRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetOperationRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.longrunning.GetOperationRequest;
+
+ /**
+ * Creates a plain object from a GetOperationRequest message. Also converts values to other types if specified.
+ * @param message GetOperationRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.longrunning.GetOperationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetOperationRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetOperationRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListOperationsRequest. */
+ interface IListOperationsRequest {
+
+ /** ListOperationsRequest name */
+ name?: (string|null);
+
+ /** ListOperationsRequest filter */
+ filter?: (string|null);
+
+ /** ListOperationsRequest pageSize */
+ pageSize?: (number|null);
+
+ /** ListOperationsRequest pageToken */
+ pageToken?: (string|null);
+ }
+
+ /** Represents a ListOperationsRequest. */
+ class ListOperationsRequest implements IListOperationsRequest {
+
+ /**
+ * Constructs a new ListOperationsRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.longrunning.IListOperationsRequest);
+
+ /** ListOperationsRequest name. */
+ public name: string;
+
+ /** ListOperationsRequest filter. */
+ public filter: string;
+
+ /** ListOperationsRequest pageSize. */
+ public pageSize: number;
+
+ /** ListOperationsRequest pageToken. */
+ public pageToken: string;
+
+ /**
+ * Creates a new ListOperationsRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListOperationsRequest instance
+ */
+ public static create(properties?: google.longrunning.IListOperationsRequest): google.longrunning.ListOperationsRequest;
+
+ /**
+ * Encodes the specified ListOperationsRequest message. Does not implicitly {@link google.longrunning.ListOperationsRequest.verify|verify} messages.
+ * @param message ListOperationsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.longrunning.IListOperationsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListOperationsRequest message, length delimited. Does not implicitly {@link google.longrunning.ListOperationsRequest.verify|verify} messages.
+ * @param message ListOperationsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.longrunning.IListOperationsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListOperationsRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListOperationsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.longrunning.ListOperationsRequest;
+
+ /**
+ * Decodes a ListOperationsRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListOperationsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.longrunning.ListOperationsRequest;
+
+ /**
+ * Verifies a ListOperationsRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListOperationsRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListOperationsRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.longrunning.ListOperationsRequest;
+
+ /**
+ * Creates a plain object from a ListOperationsRequest message. Also converts values to other types if specified.
+ * @param message ListOperationsRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.longrunning.ListOperationsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListOperationsRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListOperationsRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListOperationsResponse. */
+ interface IListOperationsResponse {
+
+ /** ListOperationsResponse operations */
+ operations?: (google.longrunning.IOperation[]|null);
+
+ /** ListOperationsResponse nextPageToken */
+ nextPageToken?: (string|null);
+ }
+
+ /** Represents a ListOperationsResponse. */
+ class ListOperationsResponse implements IListOperationsResponse {
+
+ /**
+ * Constructs a new ListOperationsResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.longrunning.IListOperationsResponse);
+
+ /** ListOperationsResponse operations. */
+ public operations: google.longrunning.IOperation[];
+
+ /** ListOperationsResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /**
+ * Creates a new ListOperationsResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListOperationsResponse instance
+ */
+ public static create(properties?: google.longrunning.IListOperationsResponse): google.longrunning.ListOperationsResponse;
+
+ /**
+ * Encodes the specified ListOperationsResponse message. Does not implicitly {@link google.longrunning.ListOperationsResponse.verify|verify} messages.
+ * @param message ListOperationsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.longrunning.IListOperationsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListOperationsResponse message, length delimited. Does not implicitly {@link google.longrunning.ListOperationsResponse.verify|verify} messages.
+ * @param message ListOperationsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.longrunning.IListOperationsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListOperationsResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListOperationsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.longrunning.ListOperationsResponse;
+
+ /**
+ * Decodes a ListOperationsResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListOperationsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.longrunning.ListOperationsResponse;
+
+ /**
+ * Verifies a ListOperationsResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListOperationsResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListOperationsResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.longrunning.ListOperationsResponse;
+
+ /**
+ * Creates a plain object from a ListOperationsResponse message. Also converts values to other types if specified.
+ * @param message ListOperationsResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.longrunning.ListOperationsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListOperationsResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListOperationsResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CancelOperationRequest. */
+ interface ICancelOperationRequest {
+
+ /** CancelOperationRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a CancelOperationRequest. */
+ class CancelOperationRequest implements ICancelOperationRequest {
+
+ /**
+ * Constructs a new CancelOperationRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.longrunning.ICancelOperationRequest);
+
+ /** CancelOperationRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new CancelOperationRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CancelOperationRequest instance
+ */
+ public static create(properties?: google.longrunning.ICancelOperationRequest): google.longrunning.CancelOperationRequest;
+
+ /**
+ * Encodes the specified CancelOperationRequest message. Does not implicitly {@link google.longrunning.CancelOperationRequest.verify|verify} messages.
+ * @param message CancelOperationRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.longrunning.ICancelOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CancelOperationRequest message, length delimited. Does not implicitly {@link google.longrunning.CancelOperationRequest.verify|verify} messages.
+ * @param message CancelOperationRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.longrunning.ICancelOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CancelOperationRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CancelOperationRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.longrunning.CancelOperationRequest;
+
+ /**
+ * Decodes a CancelOperationRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CancelOperationRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.longrunning.CancelOperationRequest;
+
+ /**
+ * Verifies a CancelOperationRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a CancelOperationRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CancelOperationRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.longrunning.CancelOperationRequest;
+
+ /**
+ * Creates a plain object from a CancelOperationRequest message. Also converts values to other types if specified.
+ * @param message CancelOperationRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.longrunning.CancelOperationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CancelOperationRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CancelOperationRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DeleteOperationRequest. */
+ interface IDeleteOperationRequest {
+
+ /** DeleteOperationRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a DeleteOperationRequest. */
+ class DeleteOperationRequest implements IDeleteOperationRequest {
+
+ /**
+ * Constructs a new DeleteOperationRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.longrunning.IDeleteOperationRequest);
+
+ /** DeleteOperationRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new DeleteOperationRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DeleteOperationRequest instance
+ */
+ public static create(properties?: google.longrunning.IDeleteOperationRequest): google.longrunning.DeleteOperationRequest;
+
+ /**
+ * Encodes the specified DeleteOperationRequest message. Does not implicitly {@link google.longrunning.DeleteOperationRequest.verify|verify} messages.
+ * @param message DeleteOperationRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.longrunning.IDeleteOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DeleteOperationRequest message, length delimited. Does not implicitly {@link google.longrunning.DeleteOperationRequest.verify|verify} messages.
+ * @param message DeleteOperationRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.longrunning.IDeleteOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DeleteOperationRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DeleteOperationRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.longrunning.DeleteOperationRequest;
+
+ /**
+ * Decodes a DeleteOperationRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DeleteOperationRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.longrunning.DeleteOperationRequest;
+
+ /**
+ * Verifies a DeleteOperationRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DeleteOperationRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DeleteOperationRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.longrunning.DeleteOperationRequest;
+
+ /**
+ * Creates a plain object from a DeleteOperationRequest message. Also converts values to other types if specified.
+ * @param message DeleteOperationRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.longrunning.DeleteOperationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DeleteOperationRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DeleteOperationRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a WaitOperationRequest. */
+ interface IWaitOperationRequest {
+
+ /** WaitOperationRequest name */
+ name?: (string|null);
+
+ /** WaitOperationRequest timeout */
+ timeout?: (google.protobuf.IDuration|null);
+ }
+
+ /** Represents a WaitOperationRequest. */
+ class WaitOperationRequest implements IWaitOperationRequest {
+
+ /**
+ * Constructs a new WaitOperationRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.longrunning.IWaitOperationRequest);
+
+ /** WaitOperationRequest name. */
+ public name: string;
+
+ /** WaitOperationRequest timeout. */
+ public timeout?: (google.protobuf.IDuration|null);
+
+ /**
+ * Creates a new WaitOperationRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns WaitOperationRequest instance
+ */
+ public static create(properties?: google.longrunning.IWaitOperationRequest): google.longrunning.WaitOperationRequest;
+
+ /**
+ * Encodes the specified WaitOperationRequest message. Does not implicitly {@link google.longrunning.WaitOperationRequest.verify|verify} messages.
+ * @param message WaitOperationRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.longrunning.IWaitOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified WaitOperationRequest message, length delimited. Does not implicitly {@link google.longrunning.WaitOperationRequest.verify|verify} messages.
+ * @param message WaitOperationRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.longrunning.IWaitOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a WaitOperationRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns WaitOperationRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.longrunning.WaitOperationRequest;
+
+ /**
+ * Decodes a WaitOperationRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns WaitOperationRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.longrunning.WaitOperationRequest;
+
+ /**
+ * Verifies a WaitOperationRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a WaitOperationRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns WaitOperationRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.longrunning.WaitOperationRequest;
+
+ /**
+ * Creates a plain object from a WaitOperationRequest message. Also converts values to other types if specified.
+ * @param message WaitOperationRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.longrunning.WaitOperationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this WaitOperationRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for WaitOperationRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an OperationInfo. */
+ interface IOperationInfo {
+
+ /** OperationInfo responseType */
+ responseType?: (string|null);
+
+ /** OperationInfo metadataType */
+ metadataType?: (string|null);
+ }
+
+ /** Represents an OperationInfo. */
+ class OperationInfo implements IOperationInfo {
+
+ /**
+ * Constructs a new OperationInfo.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.longrunning.IOperationInfo);
+
+ /** OperationInfo responseType. */
+ public responseType: string;
+
+ /** OperationInfo metadataType. */
+ public metadataType: string;
+
+ /**
+ * Creates a new OperationInfo instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns OperationInfo instance
+ */
+ public static create(properties?: google.longrunning.IOperationInfo): google.longrunning.OperationInfo;
+
+ /**
+ * Encodes the specified OperationInfo message. Does not implicitly {@link google.longrunning.OperationInfo.verify|verify} messages.
+ * @param message OperationInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.longrunning.IOperationInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified OperationInfo message, length delimited. Does not implicitly {@link google.longrunning.OperationInfo.verify|verify} messages.
+ * @param message OperationInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.longrunning.IOperationInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an OperationInfo message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns OperationInfo
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.longrunning.OperationInfo;
+
+ /**
+ * Decodes an OperationInfo message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns OperationInfo
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.longrunning.OperationInfo;
+
+ /**
+ * Verifies an OperationInfo message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an OperationInfo message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns OperationInfo
+ */
+ public static fromObject(object: { [k: string]: any }): google.longrunning.OperationInfo;
+
+ /**
+ * Creates a plain object from an OperationInfo message. Also converts values to other types if specified.
+ * @param message OperationInfo
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.longrunning.OperationInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this OperationInfo to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for OperationInfo
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Namespace rpc. */
+ namespace rpc {
+
+ /** Properties of a Status. */
+ interface IStatus {
+
+ /** Status code */
+ code?: (number|null);
+
+ /** Status message */
+ message?: (string|null);
+
+ /** Status details */
+ details?: (google.protobuf.IAny[]|null);
+ }
+
+ /** Represents a Status. */
+ class Status implements IStatus {
+
+ /**
+ * Constructs a new Status.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.rpc.IStatus);
+
+ /** Status code. */
+ public code: number;
+
+ /** Status message. */
+ public message: string;
+
+ /** Status details. */
+ public details: google.protobuf.IAny[];
+
+ /**
+ * Creates a new Status instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Status instance
+ */
+ public static create(properties?: google.rpc.IStatus): google.rpc.Status;
+
+ /**
+ * Encodes the specified Status message. Does not implicitly {@link google.rpc.Status.verify|verify} messages.
+ * @param message Status message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.rpc.IStatus, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Status message, length delimited. Does not implicitly {@link google.rpc.Status.verify|verify} messages.
+ * @param message Status message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.rpc.IStatus, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Status message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Status
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.rpc.Status;
+
+ /**
+ * Decodes a Status message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Status
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.rpc.Status;
+
+ /**
+ * Verifies a Status message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Status message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Status
+ */
+ public static fromObject(object: { [k: string]: any }): google.rpc.Status;
+
+ /**
+ * Creates a plain object from a Status message. Also converts values to other types if specified.
+ * @param message Status
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.rpc.Status, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Status to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Status
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Namespace type. */
+ namespace type {
+
+ /** DayOfWeek enum. */
+ enum DayOfWeek {
+ DAY_OF_WEEK_UNSPECIFIED = 0,
+ MONDAY = 1,
+ TUESDAY = 2,
+ WEDNESDAY = 3,
+ THURSDAY = 4,
+ FRIDAY = 5,
+ SATURDAY = 6,
+ SUNDAY = 7
+ }
+ }
+}
diff --git a/packages/google-cloud-metastore/protos/protos.js b/packages/google-cloud-metastore/protos/protos.js
new file mode 100644
index 00000000000..83b4a286d33
--- /dev/null
+++ b/packages/google-cloud-metastore/protos/protos.js
@@ -0,0 +1,50395 @@
+// 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_dataproc_metastore_protos || ($protobuf.roots._google_cloud_dataproc_metastore_protos = {});
+
+ $root.google = (function() {
+
+ /**
+ * Namespace google.
+ * @exports google
+ * @namespace
+ */
+ var google = {};
+
+ google.cloud = (function() {
+
+ /**
+ * Namespace cloud.
+ * @memberof google
+ * @namespace
+ */
+ var cloud = {};
+
+ cloud.metastore = (function() {
+
+ /**
+ * Namespace metastore.
+ * @memberof google.cloud
+ * @namespace
+ */
+ var metastore = {};
+
+ metastore.v1 = (function() {
+
+ /**
+ * Namespace v1.
+ * @memberof google.cloud.metastore
+ * @namespace
+ */
+ var v1 = {};
+
+ v1.DataprocMetastore = (function() {
+
+ /**
+ * Constructs a new DataprocMetastore service.
+ * @memberof google.cloud.metastore.v1
+ * @classdesc Represents a DataprocMetastore
+ * @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 DataprocMetastore(rpcImpl, requestDelimited, responseDelimited) {
+ $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited);
+ }
+
+ (DataprocMetastore.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = DataprocMetastore;
+
+ /**
+ * Creates new DataprocMetastore service using the specified rpc implementation.
+ * @function create
+ * @memberof google.cloud.metastore.v1.DataprocMetastore
+ * @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 {DataprocMetastore} RPC service. Useful where requests and/or responses are streamed.
+ */
+ DataprocMetastore.create = function create(rpcImpl, requestDelimited, responseDelimited) {
+ return new this(rpcImpl, requestDelimited, responseDelimited);
+ };
+
+ /**
+ * Callback as used by {@link google.cloud.metastore.v1.DataprocMetastore|listServices}.
+ * @memberof google.cloud.metastore.v1.DataprocMetastore
+ * @typedef ListServicesCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.metastore.v1.ListServicesResponse} [response] ListServicesResponse
+ */
+
+ /**
+ * Calls ListServices.
+ * @function listServices
+ * @memberof google.cloud.metastore.v1.DataprocMetastore
+ * @instance
+ * @param {google.cloud.metastore.v1.IListServicesRequest} request ListServicesRequest message or plain object
+ * @param {google.cloud.metastore.v1.DataprocMetastore.ListServicesCallback} callback Node-style callback called with the error, if any, and ListServicesResponse
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(DataprocMetastore.prototype.listServices = function listServices(request, callback) {
+ return this.rpcCall(listServices, $root.google.cloud.metastore.v1.ListServicesRequest, $root.google.cloud.metastore.v1.ListServicesResponse, request, callback);
+ }, "name", { value: "ListServices" });
+
+ /**
+ * Calls ListServices.
+ * @function listServices
+ * @memberof google.cloud.metastore.v1.DataprocMetastore
+ * @instance
+ * @param {google.cloud.metastore.v1.IListServicesRequest} request ListServicesRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.metastore.v1.DataprocMetastore|getService}.
+ * @memberof google.cloud.metastore.v1.DataprocMetastore
+ * @typedef GetServiceCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.metastore.v1.Service} [response] Service
+ */
+
+ /**
+ * Calls GetService.
+ * @function getService
+ * @memberof google.cloud.metastore.v1.DataprocMetastore
+ * @instance
+ * @param {google.cloud.metastore.v1.IGetServiceRequest} request GetServiceRequest message or plain object
+ * @param {google.cloud.metastore.v1.DataprocMetastore.GetServiceCallback} callback Node-style callback called with the error, if any, and Service
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(DataprocMetastore.prototype.getService = function getService(request, callback) {
+ return this.rpcCall(getService, $root.google.cloud.metastore.v1.GetServiceRequest, $root.google.cloud.metastore.v1.Service, request, callback);
+ }, "name", { value: "GetService" });
+
+ /**
+ * Calls GetService.
+ * @function getService
+ * @memberof google.cloud.metastore.v1.DataprocMetastore
+ * @instance
+ * @param {google.cloud.metastore.v1.IGetServiceRequest} request GetServiceRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.metastore.v1.DataprocMetastore|createService}.
+ * @memberof google.cloud.metastore.v1.DataprocMetastore
+ * @typedef CreateServiceCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.longrunning.Operation} [response] Operation
+ */
+
+ /**
+ * Calls CreateService.
+ * @function createService
+ * @memberof google.cloud.metastore.v1.DataprocMetastore
+ * @instance
+ * @param {google.cloud.metastore.v1.ICreateServiceRequest} request CreateServiceRequest message or plain object
+ * @param {google.cloud.metastore.v1.DataprocMetastore.CreateServiceCallback} callback Node-style callback called with the error, if any, and Operation
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(DataprocMetastore.prototype.createService = function createService(request, callback) {
+ return this.rpcCall(createService, $root.google.cloud.metastore.v1.CreateServiceRequest, $root.google.longrunning.Operation, request, callback);
+ }, "name", { value: "CreateService" });
+
+ /**
+ * Calls CreateService.
+ * @function createService
+ * @memberof google.cloud.metastore.v1.DataprocMetastore
+ * @instance
+ * @param {google.cloud.metastore.v1.ICreateServiceRequest} request CreateServiceRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.metastore.v1.DataprocMetastore|updateService}.
+ * @memberof google.cloud.metastore.v1.DataprocMetastore
+ * @typedef UpdateServiceCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.longrunning.Operation} [response] Operation
+ */
+
+ /**
+ * Calls UpdateService.
+ * @function updateService
+ * @memberof google.cloud.metastore.v1.DataprocMetastore
+ * @instance
+ * @param {google.cloud.metastore.v1.IUpdateServiceRequest} request UpdateServiceRequest message or plain object
+ * @param {google.cloud.metastore.v1.DataprocMetastore.UpdateServiceCallback} callback Node-style callback called with the error, if any, and Operation
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(DataprocMetastore.prototype.updateService = function updateService(request, callback) {
+ return this.rpcCall(updateService, $root.google.cloud.metastore.v1.UpdateServiceRequest, $root.google.longrunning.Operation, request, callback);
+ }, "name", { value: "UpdateService" });
+
+ /**
+ * Calls UpdateService.
+ * @function updateService
+ * @memberof google.cloud.metastore.v1.DataprocMetastore
+ * @instance
+ * @param {google.cloud.metastore.v1.IUpdateServiceRequest} request UpdateServiceRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.metastore.v1.DataprocMetastore|deleteService}.
+ * @memberof google.cloud.metastore.v1.DataprocMetastore
+ * @typedef DeleteServiceCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.longrunning.Operation} [response] Operation
+ */
+
+ /**
+ * Calls DeleteService.
+ * @function deleteService
+ * @memberof google.cloud.metastore.v1.DataprocMetastore
+ * @instance
+ * @param {google.cloud.metastore.v1.IDeleteServiceRequest} request DeleteServiceRequest message or plain object
+ * @param {google.cloud.metastore.v1.DataprocMetastore.DeleteServiceCallback} callback Node-style callback called with the error, if any, and Operation
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(DataprocMetastore.prototype.deleteService = function deleteService(request, callback) {
+ return this.rpcCall(deleteService, $root.google.cloud.metastore.v1.DeleteServiceRequest, $root.google.longrunning.Operation, request, callback);
+ }, "name", { value: "DeleteService" });
+
+ /**
+ * Calls DeleteService.
+ * @function deleteService
+ * @memberof google.cloud.metastore.v1.DataprocMetastore
+ * @instance
+ * @param {google.cloud.metastore.v1.IDeleteServiceRequest} request DeleteServiceRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.metastore.v1.DataprocMetastore|listMetadataImports}.
+ * @memberof google.cloud.metastore.v1.DataprocMetastore
+ * @typedef ListMetadataImportsCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.metastore.v1.ListMetadataImportsResponse} [response] ListMetadataImportsResponse
+ */
+
+ /**
+ * Calls ListMetadataImports.
+ * @function listMetadataImports
+ * @memberof google.cloud.metastore.v1.DataprocMetastore
+ * @instance
+ * @param {google.cloud.metastore.v1.IListMetadataImportsRequest} request ListMetadataImportsRequest message or plain object
+ * @param {google.cloud.metastore.v1.DataprocMetastore.ListMetadataImportsCallback} callback Node-style callback called with the error, if any, and ListMetadataImportsResponse
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(DataprocMetastore.prototype.listMetadataImports = function listMetadataImports(request, callback) {
+ return this.rpcCall(listMetadataImports, $root.google.cloud.metastore.v1.ListMetadataImportsRequest, $root.google.cloud.metastore.v1.ListMetadataImportsResponse, request, callback);
+ }, "name", { value: "ListMetadataImports" });
+
+ /**
+ * Calls ListMetadataImports.
+ * @function listMetadataImports
+ * @memberof google.cloud.metastore.v1.DataprocMetastore
+ * @instance
+ * @param {google.cloud.metastore.v1.IListMetadataImportsRequest} request ListMetadataImportsRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.metastore.v1.DataprocMetastore|getMetadataImport}.
+ * @memberof google.cloud.metastore.v1.DataprocMetastore
+ * @typedef GetMetadataImportCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.metastore.v1.MetadataImport} [response] MetadataImport
+ */
+
+ /**
+ * Calls GetMetadataImport.
+ * @function getMetadataImport
+ * @memberof google.cloud.metastore.v1.DataprocMetastore
+ * @instance
+ * @param {google.cloud.metastore.v1.IGetMetadataImportRequest} request GetMetadataImportRequest message or plain object
+ * @param {google.cloud.metastore.v1.DataprocMetastore.GetMetadataImportCallback} callback Node-style callback called with the error, if any, and MetadataImport
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(DataprocMetastore.prototype.getMetadataImport = function getMetadataImport(request, callback) {
+ return this.rpcCall(getMetadataImport, $root.google.cloud.metastore.v1.GetMetadataImportRequest, $root.google.cloud.metastore.v1.MetadataImport, request, callback);
+ }, "name", { value: "GetMetadataImport" });
+
+ /**
+ * Calls GetMetadataImport.
+ * @function getMetadataImport
+ * @memberof google.cloud.metastore.v1.DataprocMetastore
+ * @instance
+ * @param {google.cloud.metastore.v1.IGetMetadataImportRequest} request GetMetadataImportRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.metastore.v1.DataprocMetastore|createMetadataImport}.
+ * @memberof google.cloud.metastore.v1.DataprocMetastore
+ * @typedef CreateMetadataImportCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.longrunning.Operation} [response] Operation
+ */
+
+ /**
+ * Calls CreateMetadataImport.
+ * @function createMetadataImport
+ * @memberof google.cloud.metastore.v1.DataprocMetastore
+ * @instance
+ * @param {google.cloud.metastore.v1.ICreateMetadataImportRequest} request CreateMetadataImportRequest message or plain object
+ * @param {google.cloud.metastore.v1.DataprocMetastore.CreateMetadataImportCallback} callback Node-style callback called with the error, if any, and Operation
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(DataprocMetastore.prototype.createMetadataImport = function createMetadataImport(request, callback) {
+ return this.rpcCall(createMetadataImport, $root.google.cloud.metastore.v1.CreateMetadataImportRequest, $root.google.longrunning.Operation, request, callback);
+ }, "name", { value: "CreateMetadataImport" });
+
+ /**
+ * Calls CreateMetadataImport.
+ * @function createMetadataImport
+ * @memberof google.cloud.metastore.v1.DataprocMetastore
+ * @instance
+ * @param {google.cloud.metastore.v1.ICreateMetadataImportRequest} request CreateMetadataImportRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.metastore.v1.DataprocMetastore|updateMetadataImport}.
+ * @memberof google.cloud.metastore.v1.DataprocMetastore
+ * @typedef UpdateMetadataImportCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.longrunning.Operation} [response] Operation
+ */
+
+ /**
+ * Calls UpdateMetadataImport.
+ * @function updateMetadataImport
+ * @memberof google.cloud.metastore.v1.DataprocMetastore
+ * @instance
+ * @param {google.cloud.metastore.v1.IUpdateMetadataImportRequest} request UpdateMetadataImportRequest message or plain object
+ * @param {google.cloud.metastore.v1.DataprocMetastore.UpdateMetadataImportCallback} callback Node-style callback called with the error, if any, and Operation
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(DataprocMetastore.prototype.updateMetadataImport = function updateMetadataImport(request, callback) {
+ return this.rpcCall(updateMetadataImport, $root.google.cloud.metastore.v1.UpdateMetadataImportRequest, $root.google.longrunning.Operation, request, callback);
+ }, "name", { value: "UpdateMetadataImport" });
+
+ /**
+ * Calls UpdateMetadataImport.
+ * @function updateMetadataImport
+ * @memberof google.cloud.metastore.v1.DataprocMetastore
+ * @instance
+ * @param {google.cloud.metastore.v1.IUpdateMetadataImportRequest} request UpdateMetadataImportRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.metastore.v1.DataprocMetastore|exportMetadata}.
+ * @memberof google.cloud.metastore.v1.DataprocMetastore
+ * @typedef ExportMetadataCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.longrunning.Operation} [response] Operation
+ */
+
+ /**
+ * Calls ExportMetadata.
+ * @function exportMetadata
+ * @memberof google.cloud.metastore.v1.DataprocMetastore
+ * @instance
+ * @param {google.cloud.metastore.v1.IExportMetadataRequest} request ExportMetadataRequest message or plain object
+ * @param {google.cloud.metastore.v1.DataprocMetastore.ExportMetadataCallback} callback Node-style callback called with the error, if any, and Operation
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(DataprocMetastore.prototype.exportMetadata = function exportMetadata(request, callback) {
+ return this.rpcCall(exportMetadata, $root.google.cloud.metastore.v1.ExportMetadataRequest, $root.google.longrunning.Operation, request, callback);
+ }, "name", { value: "ExportMetadata" });
+
+ /**
+ * Calls ExportMetadata.
+ * @function exportMetadata
+ * @memberof google.cloud.metastore.v1.DataprocMetastore
+ * @instance
+ * @param {google.cloud.metastore.v1.IExportMetadataRequest} request ExportMetadataRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.metastore.v1.DataprocMetastore|restoreService}.
+ * @memberof google.cloud.metastore.v1.DataprocMetastore
+ * @typedef RestoreServiceCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.longrunning.Operation} [response] Operation
+ */
+
+ /**
+ * Calls RestoreService.
+ * @function restoreService
+ * @memberof google.cloud.metastore.v1.DataprocMetastore
+ * @instance
+ * @param {google.cloud.metastore.v1.IRestoreServiceRequest} request RestoreServiceRequest message or plain object
+ * @param {google.cloud.metastore.v1.DataprocMetastore.RestoreServiceCallback} callback Node-style callback called with the error, if any, and Operation
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(DataprocMetastore.prototype.restoreService = function restoreService(request, callback) {
+ return this.rpcCall(restoreService, $root.google.cloud.metastore.v1.RestoreServiceRequest, $root.google.longrunning.Operation, request, callback);
+ }, "name", { value: "RestoreService" });
+
+ /**
+ * Calls RestoreService.
+ * @function restoreService
+ * @memberof google.cloud.metastore.v1.DataprocMetastore
+ * @instance
+ * @param {google.cloud.metastore.v1.IRestoreServiceRequest} request RestoreServiceRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.metastore.v1.DataprocMetastore|listBackups}.
+ * @memberof google.cloud.metastore.v1.DataprocMetastore
+ * @typedef ListBackupsCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.metastore.v1.ListBackupsResponse} [response] ListBackupsResponse
+ */
+
+ /**
+ * Calls ListBackups.
+ * @function listBackups
+ * @memberof google.cloud.metastore.v1.DataprocMetastore
+ * @instance
+ * @param {google.cloud.metastore.v1.IListBackupsRequest} request ListBackupsRequest message or plain object
+ * @param {google.cloud.metastore.v1.DataprocMetastore.ListBackupsCallback} callback Node-style callback called with the error, if any, and ListBackupsResponse
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(DataprocMetastore.prototype.listBackups = function listBackups(request, callback) {
+ return this.rpcCall(listBackups, $root.google.cloud.metastore.v1.ListBackupsRequest, $root.google.cloud.metastore.v1.ListBackupsResponse, request, callback);
+ }, "name", { value: "ListBackups" });
+
+ /**
+ * Calls ListBackups.
+ * @function listBackups
+ * @memberof google.cloud.metastore.v1.DataprocMetastore
+ * @instance
+ * @param {google.cloud.metastore.v1.IListBackupsRequest} request ListBackupsRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.metastore.v1.DataprocMetastore|getBackup}.
+ * @memberof google.cloud.metastore.v1.DataprocMetastore
+ * @typedef GetBackupCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.metastore.v1.Backup} [response] Backup
+ */
+
+ /**
+ * Calls GetBackup.
+ * @function getBackup
+ * @memberof google.cloud.metastore.v1.DataprocMetastore
+ * @instance
+ * @param {google.cloud.metastore.v1.IGetBackupRequest} request GetBackupRequest message or plain object
+ * @param {google.cloud.metastore.v1.DataprocMetastore.GetBackupCallback} callback Node-style callback called with the error, if any, and Backup
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(DataprocMetastore.prototype.getBackup = function getBackup(request, callback) {
+ return this.rpcCall(getBackup, $root.google.cloud.metastore.v1.GetBackupRequest, $root.google.cloud.metastore.v1.Backup, request, callback);
+ }, "name", { value: "GetBackup" });
+
+ /**
+ * Calls GetBackup.
+ * @function getBackup
+ * @memberof google.cloud.metastore.v1.DataprocMetastore
+ * @instance
+ * @param {google.cloud.metastore.v1.IGetBackupRequest} request GetBackupRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.metastore.v1.DataprocMetastore|createBackup}.
+ * @memberof google.cloud.metastore.v1.DataprocMetastore
+ * @typedef CreateBackupCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.longrunning.Operation} [response] Operation
+ */
+
+ /**
+ * Calls CreateBackup.
+ * @function createBackup
+ * @memberof google.cloud.metastore.v1.DataprocMetastore
+ * @instance
+ * @param {google.cloud.metastore.v1.ICreateBackupRequest} request CreateBackupRequest message or plain object
+ * @param {google.cloud.metastore.v1.DataprocMetastore.CreateBackupCallback} callback Node-style callback called with the error, if any, and Operation
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(DataprocMetastore.prototype.createBackup = function createBackup(request, callback) {
+ return this.rpcCall(createBackup, $root.google.cloud.metastore.v1.CreateBackupRequest, $root.google.longrunning.Operation, request, callback);
+ }, "name", { value: "CreateBackup" });
+
+ /**
+ * Calls CreateBackup.
+ * @function createBackup
+ * @memberof google.cloud.metastore.v1.DataprocMetastore
+ * @instance
+ * @param {google.cloud.metastore.v1.ICreateBackupRequest} request CreateBackupRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.metastore.v1.DataprocMetastore|deleteBackup}.
+ * @memberof google.cloud.metastore.v1.DataprocMetastore
+ * @typedef DeleteBackupCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.longrunning.Operation} [response] Operation
+ */
+
+ /**
+ * Calls DeleteBackup.
+ * @function deleteBackup
+ * @memberof google.cloud.metastore.v1.DataprocMetastore
+ * @instance
+ * @param {google.cloud.metastore.v1.IDeleteBackupRequest} request DeleteBackupRequest message or plain object
+ * @param {google.cloud.metastore.v1.DataprocMetastore.DeleteBackupCallback} callback Node-style callback called with the error, if any, and Operation
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(DataprocMetastore.prototype.deleteBackup = function deleteBackup(request, callback) {
+ return this.rpcCall(deleteBackup, $root.google.cloud.metastore.v1.DeleteBackupRequest, $root.google.longrunning.Operation, request, callback);
+ }, "name", { value: "DeleteBackup" });
+
+ /**
+ * Calls DeleteBackup.
+ * @function deleteBackup
+ * @memberof google.cloud.metastore.v1.DataprocMetastore
+ * @instance
+ * @param {google.cloud.metastore.v1.IDeleteBackupRequest} request DeleteBackupRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ return DataprocMetastore;
+ })();
+
+ v1.Service = (function() {
+
+ /**
+ * Properties of a Service.
+ * @memberof google.cloud.metastore.v1
+ * @interface IService
+ * @property {google.cloud.metastore.v1.IHiveMetastoreConfig|null} [hiveMetastoreConfig] Service hiveMetastoreConfig
+ * @property {string|null} [name] Service name
+ * @property {google.protobuf.ITimestamp|null} [createTime] Service createTime
+ * @property {google.protobuf.ITimestamp|null} [updateTime] Service updateTime
+ * @property {Object.|null} [labels] Service labels
+ * @property {string|null} [network] Service network
+ * @property {string|null} [endpointUri] Service endpointUri
+ * @property {number|null} [port] Service port
+ * @property {google.cloud.metastore.v1.Service.State|null} [state] Service state
+ * @property {string|null} [stateMessage] Service stateMessage
+ * @property {string|null} [artifactGcsUri] Service artifactGcsUri
+ * @property {google.cloud.metastore.v1.Service.Tier|null} [tier] Service tier
+ * @property {google.cloud.metastore.v1.IMaintenanceWindow|null} [maintenanceWindow] Service maintenanceWindow
+ * @property {string|null} [uid] Service uid
+ * @property {google.cloud.metastore.v1.IMetadataManagementActivity|null} [metadataManagementActivity] Service metadataManagementActivity
+ * @property {google.cloud.metastore.v1.Service.ReleaseChannel|null} [releaseChannel] Service releaseChannel
+ */
+
+ /**
+ * Constructs a new Service.
+ * @memberof google.cloud.metastore.v1
+ * @classdesc Represents a Service.
+ * @implements IService
+ * @constructor
+ * @param {google.cloud.metastore.v1.IService=} [properties] Properties to set
+ */
+ function Service(properties) {
+ this.labels = {};
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null)
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * Service hiveMetastoreConfig.
+ * @member {google.cloud.metastore.v1.IHiveMetastoreConfig|null|undefined} hiveMetastoreConfig
+ * @memberof google.cloud.metastore.v1.Service
+ * @instance
+ */
+ Service.prototype.hiveMetastoreConfig = null;
+
+ /**
+ * Service name.
+ * @member {string} name
+ * @memberof google.cloud.metastore.v1.Service
+ * @instance
+ */
+ Service.prototype.name = "";
+
+ /**
+ * Service createTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} createTime
+ * @memberof google.cloud.metastore.v1.Service
+ * @instance
+ */
+ Service.prototype.createTime = null;
+
+ /**
+ * Service updateTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} updateTime
+ * @memberof google.cloud.metastore.v1.Service
+ * @instance
+ */
+ Service.prototype.updateTime = null;
+
+ /**
+ * Service labels.
+ * @member {Object.} labels
+ * @memberof google.cloud.metastore.v1.Service
+ * @instance
+ */
+ Service.prototype.labels = $util.emptyObject;
+
+ /**
+ * Service network.
+ * @member {string} network
+ * @memberof google.cloud.metastore.v1.Service
+ * @instance
+ */
+ Service.prototype.network = "";
+
+ /**
+ * Service endpointUri.
+ * @member {string} endpointUri
+ * @memberof google.cloud.metastore.v1.Service
+ * @instance
+ */
+ Service.prototype.endpointUri = "";
+
+ /**
+ * Service port.
+ * @member {number} port
+ * @memberof google.cloud.metastore.v1.Service
+ * @instance
+ */
+ Service.prototype.port = 0;
+
+ /**
+ * Service state.
+ * @member {google.cloud.metastore.v1.Service.State} state
+ * @memberof google.cloud.metastore.v1.Service
+ * @instance
+ */
+ Service.prototype.state = 0;
+
+ /**
+ * Service stateMessage.
+ * @member {string} stateMessage
+ * @memberof google.cloud.metastore.v1.Service
+ * @instance
+ */
+ Service.prototype.stateMessage = "";
+
+ /**
+ * Service artifactGcsUri.
+ * @member {string} artifactGcsUri
+ * @memberof google.cloud.metastore.v1.Service
+ * @instance
+ */
+ Service.prototype.artifactGcsUri = "";
+
+ /**
+ * Service tier.
+ * @member {google.cloud.metastore.v1.Service.Tier} tier
+ * @memberof google.cloud.metastore.v1.Service
+ * @instance
+ */
+ Service.prototype.tier = 0;
+
+ /**
+ * Service maintenanceWindow.
+ * @member {google.cloud.metastore.v1.IMaintenanceWindow|null|undefined} maintenanceWindow
+ * @memberof google.cloud.metastore.v1.Service
+ * @instance
+ */
+ Service.prototype.maintenanceWindow = null;
+
+ /**
+ * Service uid.
+ * @member {string} uid
+ * @memberof google.cloud.metastore.v1.Service
+ * @instance
+ */
+ Service.prototype.uid = "";
+
+ /**
+ * Service metadataManagementActivity.
+ * @member {google.cloud.metastore.v1.IMetadataManagementActivity|null|undefined} metadataManagementActivity
+ * @memberof google.cloud.metastore.v1.Service
+ * @instance
+ */
+ Service.prototype.metadataManagementActivity = null;
+
+ /**
+ * Service releaseChannel.
+ * @member {google.cloud.metastore.v1.Service.ReleaseChannel} releaseChannel
+ * @memberof google.cloud.metastore.v1.Service
+ * @instance
+ */
+ Service.prototype.releaseChannel = 0;
+
+ // OneOf field names bound to virtual getters and setters
+ var $oneOfFields;
+
+ /**
+ * Service metastoreConfig.
+ * @member {"hiveMetastoreConfig"|undefined} metastoreConfig
+ * @memberof google.cloud.metastore.v1.Service
+ * @instance
+ */
+ Object.defineProperty(Service.prototype, "metastoreConfig", {
+ get: $util.oneOfGetter($oneOfFields = ["hiveMetastoreConfig"]),
+ set: $util.oneOfSetter($oneOfFields)
+ });
+
+ /**
+ * Creates a new Service instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.metastore.v1.Service
+ * @static
+ * @param {google.cloud.metastore.v1.IService=} [properties] Properties to set
+ * @returns {google.cloud.metastore.v1.Service} Service instance
+ */
+ Service.create = function create(properties) {
+ return new Service(properties);
+ };
+
+ /**
+ * Encodes the specified Service message. Does not implicitly {@link google.cloud.metastore.v1.Service.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.metastore.v1.Service
+ * @static
+ * @param {google.cloud.metastore.v1.IService} message Service message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Service.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.name != null && Object.hasOwnProperty.call(message, "name"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
+ if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime"))
+ $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
+ if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime"))
+ $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
+ if (message.labels != null && Object.hasOwnProperty.call(message, "labels"))
+ for (var keys = Object.keys(message.labels), i = 0; i < keys.length; ++i)
+ writer.uint32(/* id 4, wireType 2 =*/34).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim();
+ if (message.hiveMetastoreConfig != null && Object.hasOwnProperty.call(message, "hiveMetastoreConfig"))
+ $root.google.cloud.metastore.v1.HiveMetastoreConfig.encode(message.hiveMetastoreConfig, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
+ if (message.network != null && Object.hasOwnProperty.call(message, "network"))
+ writer.uint32(/* id 7, wireType 2 =*/58).string(message.network);
+ if (message.endpointUri != null && Object.hasOwnProperty.call(message, "endpointUri"))
+ writer.uint32(/* id 8, wireType 2 =*/66).string(message.endpointUri);
+ if (message.port != null && Object.hasOwnProperty.call(message, "port"))
+ writer.uint32(/* id 9, wireType 0 =*/72).int32(message.port);
+ if (message.state != null && Object.hasOwnProperty.call(message, "state"))
+ writer.uint32(/* id 10, wireType 0 =*/80).int32(message.state);
+ if (message.stateMessage != null && Object.hasOwnProperty.call(message, "stateMessage"))
+ writer.uint32(/* id 11, wireType 2 =*/90).string(message.stateMessage);
+ if (message.artifactGcsUri != null && Object.hasOwnProperty.call(message, "artifactGcsUri"))
+ writer.uint32(/* id 12, wireType 2 =*/98).string(message.artifactGcsUri);
+ if (message.tier != null && Object.hasOwnProperty.call(message, "tier"))
+ writer.uint32(/* id 13, wireType 0 =*/104).int32(message.tier);
+ if (message.maintenanceWindow != null && Object.hasOwnProperty.call(message, "maintenanceWindow"))
+ $root.google.cloud.metastore.v1.MaintenanceWindow.encode(message.maintenanceWindow, writer.uint32(/* id 15, wireType 2 =*/122).fork()).ldelim();
+ if (message.uid != null && Object.hasOwnProperty.call(message, "uid"))
+ writer.uint32(/* id 16, wireType 2 =*/130).string(message.uid);
+ if (message.metadataManagementActivity != null && Object.hasOwnProperty.call(message, "metadataManagementActivity"))
+ $root.google.cloud.metastore.v1.MetadataManagementActivity.encode(message.metadataManagementActivity, writer.uint32(/* id 17, wireType 2 =*/138).fork()).ldelim();
+ if (message.releaseChannel != null && Object.hasOwnProperty.call(message, "releaseChannel"))
+ writer.uint32(/* id 19, wireType 0 =*/152).int32(message.releaseChannel);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified Service message, length delimited. Does not implicitly {@link google.cloud.metastore.v1.Service.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.metastore.v1.Service
+ * @static
+ * @param {google.cloud.metastore.v1.IService} message Service message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Service.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a Service message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.metastore.v1.Service
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.metastore.v1.Service} Service
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Service.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.metastore.v1.Service(), key, value;
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 5: {
+ message.hiveMetastoreConfig = $root.google.cloud.metastore.v1.HiveMetastoreConfig.decode(reader, reader.uint32());
+ break;
+ }
+ case 1: {
+ message.name = reader.string();
+ break;
+ }
+ case 2: {
+ message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
+ break;
+ }
+ case 3: {
+ message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
+ break;
+ }
+ case 4: {
+ if (message.labels === $util.emptyObject)
+ message.labels = {};
+ var end2 = reader.uint32() + reader.pos;
+ key = "";
+ value = "";
+ while (reader.pos < end2) {
+ var tag2 = reader.uint32();
+ switch (tag2 >>> 3) {
+ case 1:
+ key = reader.string();
+ break;
+ case 2:
+ value = reader.string();
+ break;
+ default:
+ reader.skipType(tag2 & 7);
+ break;
+ }
+ }
+ message.labels[key] = value;
+ break;
+ }
+ case 7: {
+ message.network = reader.string();
+ break;
+ }
+ case 8: {
+ message.endpointUri = reader.string();
+ break;
+ }
+ case 9: {
+ message.port = reader.int32();
+ break;
+ }
+ case 10: {
+ message.state = reader.int32();
+ break;
+ }
+ case 11: {
+ message.stateMessage = reader.string();
+ break;
+ }
+ case 12: {
+ message.artifactGcsUri = reader.string();
+ break;
+ }
+ case 13: {
+ message.tier = reader.int32();
+ break;
+ }
+ case 15: {
+ message.maintenanceWindow = $root.google.cloud.metastore.v1.MaintenanceWindow.decode(reader, reader.uint32());
+ break;
+ }
+ case 16: {
+ message.uid = reader.string();
+ break;
+ }
+ case 17: {
+ message.metadataManagementActivity = $root.google.cloud.metastore.v1.MetadataManagementActivity.decode(reader, reader.uint32());
+ break;
+ }
+ case 19: {
+ message.releaseChannel = reader.int32();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a Service message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.metastore.v1.Service
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.metastore.v1.Service} Service
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Service.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a Service message.
+ * @function verify
+ * @memberof google.cloud.metastore.v1.Service
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ Service.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ var properties = {};
+ if (message.hiveMetastoreConfig != null && message.hasOwnProperty("hiveMetastoreConfig")) {
+ properties.metastoreConfig = 1;
+ {
+ var error = $root.google.cloud.metastore.v1.HiveMetastoreConfig.verify(message.hiveMetastoreConfig);
+ if (error)
+ return "hiveMetastoreConfig." + error;
+ }
+ }
+ if (message.name != null && message.hasOwnProperty("name"))
+ if (!$util.isString(message.name))
+ return "name: string expected";
+ if (message.createTime != null && message.hasOwnProperty("createTime")) {
+ var error = $root.google.protobuf.Timestamp.verify(message.createTime);
+ if (error)
+ return "createTime." + error;
+ }
+ if (message.updateTime != null && message.hasOwnProperty("updateTime")) {
+ var error = $root.google.protobuf.Timestamp.verify(message.updateTime);
+ if (error)
+ return "updateTime." + error;
+ }
+ if (message.labels != null && message.hasOwnProperty("labels")) {
+ if (!$util.isObject(message.labels))
+ return "labels: object expected";
+ var key = Object.keys(message.labels);
+ for (var i = 0; i < key.length; ++i)
+ if (!$util.isString(message.labels[key[i]]))
+ return "labels: string{k:string} expected";
+ }
+ if (message.network != null && message.hasOwnProperty("network"))
+ if (!$util.isString(message.network))
+ return "network: string expected";
+ if (message.endpointUri != null && message.hasOwnProperty("endpointUri"))
+ if (!$util.isString(message.endpointUri))
+ return "endpointUri: string expected";
+ if (message.port != null && message.hasOwnProperty("port"))
+ if (!$util.isInteger(message.port))
+ return "port: integer expected";
+ if (message.state != null && message.hasOwnProperty("state"))
+ switch (message.state) {
+ default:
+ return "state: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ case 3:
+ case 4:
+ case 5:
+ case 6:
+ case 7:
+ break;
+ }
+ if (message.stateMessage != null && message.hasOwnProperty("stateMessage"))
+ if (!$util.isString(message.stateMessage))
+ return "stateMessage: string expected";
+ if (message.artifactGcsUri != null && message.hasOwnProperty("artifactGcsUri"))
+ if (!$util.isString(message.artifactGcsUri))
+ return "artifactGcsUri: string expected";
+ if (message.tier != null && message.hasOwnProperty("tier"))
+ switch (message.tier) {
+ default:
+ return "tier: enum value expected";
+ case 0:
+ case 1:
+ case 3:
+ break;
+ }
+ if (message.maintenanceWindow != null && message.hasOwnProperty("maintenanceWindow")) {
+ var error = $root.google.cloud.metastore.v1.MaintenanceWindow.verify(message.maintenanceWindow);
+ if (error)
+ return "maintenanceWindow." + error;
+ }
+ if (message.uid != null && message.hasOwnProperty("uid"))
+ if (!$util.isString(message.uid))
+ return "uid: string expected";
+ if (message.metadataManagementActivity != null && message.hasOwnProperty("metadataManagementActivity")) {
+ var error = $root.google.cloud.metastore.v1.MetadataManagementActivity.verify(message.metadataManagementActivity);
+ if (error)
+ return "metadataManagementActivity." + error;
+ }
+ if (message.releaseChannel != null && message.hasOwnProperty("releaseChannel"))
+ switch (message.releaseChannel) {
+ default:
+ return "releaseChannel: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ break;
+ }
+ return null;
+ };
+
+ /**
+ * Creates a Service message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.metastore.v1.Service
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.metastore.v1.Service} Service
+ */
+ Service.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.metastore.v1.Service)
+ return object;
+ var message = new $root.google.cloud.metastore.v1.Service();
+ if (object.hiveMetastoreConfig != null) {
+ if (typeof object.hiveMetastoreConfig !== "object")
+ throw TypeError(".google.cloud.metastore.v1.Service.hiveMetastoreConfig: object expected");
+ message.hiveMetastoreConfig = $root.google.cloud.metastore.v1.HiveMetastoreConfig.fromObject(object.hiveMetastoreConfig);
+ }
+ if (object.name != null)
+ message.name = String(object.name);
+ if (object.createTime != null) {
+ if (typeof object.createTime !== "object")
+ throw TypeError(".google.cloud.metastore.v1.Service.createTime: object expected");
+ message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime);
+ }
+ if (object.updateTime != null) {
+ if (typeof object.updateTime !== "object")
+ throw TypeError(".google.cloud.metastore.v1.Service.updateTime: object expected");
+ message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime);
+ }
+ if (object.labels) {
+ if (typeof object.labels !== "object")
+ throw TypeError(".google.cloud.metastore.v1.Service.labels: object expected");
+ message.labels = {};
+ for (var keys = Object.keys(object.labels), i = 0; i < keys.length; ++i)
+ message.labels[keys[i]] = String(object.labels[keys[i]]);
+ }
+ if (object.network != null)
+ message.network = String(object.network);
+ if (object.endpointUri != null)
+ message.endpointUri = String(object.endpointUri);
+ if (object.port != null)
+ message.port = object.port | 0;
+ switch (object.state) {
+ default:
+ if (typeof object.state === "number") {
+ message.state = object.state;
+ break;
+ }
+ break;
+ case "STATE_UNSPECIFIED":
+ case 0:
+ message.state = 0;
+ break;
+ case "CREATING":
+ case 1:
+ message.state = 1;
+ break;
+ case "ACTIVE":
+ case 2:
+ message.state = 2;
+ break;
+ case "SUSPENDING":
+ case 3:
+ message.state = 3;
+ break;
+ case "SUSPENDED":
+ case 4:
+ message.state = 4;
+ break;
+ case "UPDATING":
+ case 5:
+ message.state = 5;
+ break;
+ case "DELETING":
+ case 6:
+ message.state = 6;
+ break;
+ case "ERROR":
+ case 7:
+ message.state = 7;
+ break;
+ }
+ if (object.stateMessage != null)
+ message.stateMessage = String(object.stateMessage);
+ if (object.artifactGcsUri != null)
+ message.artifactGcsUri = String(object.artifactGcsUri);
+ switch (object.tier) {
+ default:
+ if (typeof object.tier === "number") {
+ message.tier = object.tier;
+ break;
+ }
+ break;
+ case "TIER_UNSPECIFIED":
+ case 0:
+ message.tier = 0;
+ break;
+ case "DEVELOPER":
+ case 1:
+ message.tier = 1;
+ break;
+ case "ENTERPRISE":
+ case 3:
+ message.tier = 3;
+ break;
+ }
+ if (object.maintenanceWindow != null) {
+ if (typeof object.maintenanceWindow !== "object")
+ throw TypeError(".google.cloud.metastore.v1.Service.maintenanceWindow: object expected");
+ message.maintenanceWindow = $root.google.cloud.metastore.v1.MaintenanceWindow.fromObject(object.maintenanceWindow);
+ }
+ if (object.uid != null)
+ message.uid = String(object.uid);
+ if (object.metadataManagementActivity != null) {
+ if (typeof object.metadataManagementActivity !== "object")
+ throw TypeError(".google.cloud.metastore.v1.Service.metadataManagementActivity: object expected");
+ message.metadataManagementActivity = $root.google.cloud.metastore.v1.MetadataManagementActivity.fromObject(object.metadataManagementActivity);
+ }
+ switch (object.releaseChannel) {
+ default:
+ if (typeof object.releaseChannel === "number") {
+ message.releaseChannel = object.releaseChannel;
+ break;
+ }
+ break;
+ case "RELEASE_CHANNEL_UNSPECIFIED":
+ case 0:
+ message.releaseChannel = 0;
+ break;
+ case "CANARY":
+ case 1:
+ message.releaseChannel = 1;
+ break;
+ case "STABLE":
+ case 2:
+ message.releaseChannel = 2;
+ break;
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a Service message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.metastore.v1.Service
+ * @static
+ * @param {google.cloud.metastore.v1.Service} message Service
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ Service.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.objects || options.defaults)
+ object.labels = {};
+ if (options.defaults) {
+ object.name = "";
+ object.createTime = null;
+ object.updateTime = null;
+ object.network = "";
+ object.endpointUri = "";
+ object.port = 0;
+ object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0;
+ object.stateMessage = "";
+ object.artifactGcsUri = "";
+ object.tier = options.enums === String ? "TIER_UNSPECIFIED" : 0;
+ object.maintenanceWindow = null;
+ object.uid = "";
+ object.metadataManagementActivity = null;
+ object.releaseChannel = options.enums === String ? "RELEASE_CHANNEL_UNSPECIFIED" : 0;
+ }
+ if (message.name != null && message.hasOwnProperty("name"))
+ object.name = message.name;
+ if (message.createTime != null && message.hasOwnProperty("createTime"))
+ object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options);
+ if (message.updateTime != null && message.hasOwnProperty("updateTime"))
+ object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options);
+ var keys2;
+ if (message.labels && (keys2 = Object.keys(message.labels)).length) {
+ object.labels = {};
+ for (var j = 0; j < keys2.length; ++j)
+ object.labels[keys2[j]] = message.labels[keys2[j]];
+ }
+ if (message.hiveMetastoreConfig != null && message.hasOwnProperty("hiveMetastoreConfig")) {
+ object.hiveMetastoreConfig = $root.google.cloud.metastore.v1.HiveMetastoreConfig.toObject(message.hiveMetastoreConfig, options);
+ if (options.oneofs)
+ object.metastoreConfig = "hiveMetastoreConfig";
+ }
+ if (message.network != null && message.hasOwnProperty("network"))
+ object.network = message.network;
+ if (message.endpointUri != null && message.hasOwnProperty("endpointUri"))
+ object.endpointUri = message.endpointUri;
+ if (message.port != null && message.hasOwnProperty("port"))
+ object.port = message.port;
+ if (message.state != null && message.hasOwnProperty("state"))
+ object.state = options.enums === String ? $root.google.cloud.metastore.v1.Service.State[message.state] === undefined ? message.state : $root.google.cloud.metastore.v1.Service.State[message.state] : message.state;
+ if (message.stateMessage != null && message.hasOwnProperty("stateMessage"))
+ object.stateMessage = message.stateMessage;
+ if (message.artifactGcsUri != null && message.hasOwnProperty("artifactGcsUri"))
+ object.artifactGcsUri = message.artifactGcsUri;
+ if (message.tier != null && message.hasOwnProperty("tier"))
+ object.tier = options.enums === String ? $root.google.cloud.metastore.v1.Service.Tier[message.tier] === undefined ? message.tier : $root.google.cloud.metastore.v1.Service.Tier[message.tier] : message.tier;
+ if (message.maintenanceWindow != null && message.hasOwnProperty("maintenanceWindow"))
+ object.maintenanceWindow = $root.google.cloud.metastore.v1.MaintenanceWindow.toObject(message.maintenanceWindow, options);
+ if (message.uid != null && message.hasOwnProperty("uid"))
+ object.uid = message.uid;
+ if (message.metadataManagementActivity != null && message.hasOwnProperty("metadataManagementActivity"))
+ object.metadataManagementActivity = $root.google.cloud.metastore.v1.MetadataManagementActivity.toObject(message.metadataManagementActivity, options);
+ if (message.releaseChannel != null && message.hasOwnProperty("releaseChannel"))
+ object.releaseChannel = options.enums === String ? $root.google.cloud.metastore.v1.Service.ReleaseChannel[message.releaseChannel] === undefined ? message.releaseChannel : $root.google.cloud.metastore.v1.Service.ReleaseChannel[message.releaseChannel] : message.releaseChannel;
+ return object;
+ };
+
+ /**
+ * Converts this Service to JSON.
+ * @function toJSON
+ * @memberof google.cloud.metastore.v1.Service
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ Service.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for Service
+ * @function getTypeUrl
+ * @memberof google.cloud.metastore.v1.Service
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ Service.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.metastore.v1.Service";
+ };
+
+ /**
+ * State enum.
+ * @name google.cloud.metastore.v1.Service.State
+ * @enum {number}
+ * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value
+ * @property {number} CREATING=1 CREATING value
+ * @property {number} ACTIVE=2 ACTIVE value
+ * @property {number} SUSPENDING=3 SUSPENDING value
+ * @property {number} SUSPENDED=4 SUSPENDED value
+ * @property {number} UPDATING=5 UPDATING value
+ * @property {number} DELETING=6 DELETING value
+ * @property {number} ERROR=7 ERROR value
+ */
+ Service.State = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "STATE_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "CREATING"] = 1;
+ values[valuesById[2] = "ACTIVE"] = 2;
+ values[valuesById[3] = "SUSPENDING"] = 3;
+ values[valuesById[4] = "SUSPENDED"] = 4;
+ values[valuesById[5] = "UPDATING"] = 5;
+ values[valuesById[6] = "DELETING"] = 6;
+ values[valuesById[7] = "ERROR"] = 7;
+ return values;
+ })();
+
+ /**
+ * Tier enum.
+ * @name google.cloud.metastore.v1.Service.Tier
+ * @enum {number}
+ * @property {number} TIER_UNSPECIFIED=0 TIER_UNSPECIFIED value
+ * @property {number} DEVELOPER=1 DEVELOPER value
+ * @property {number} ENTERPRISE=3 ENTERPRISE value
+ */
+ Service.Tier = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "TIER_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "DEVELOPER"] = 1;
+ values[valuesById[3] = "ENTERPRISE"] = 3;
+ return values;
+ })();
+
+ /**
+ * ReleaseChannel enum.
+ * @name google.cloud.metastore.v1.Service.ReleaseChannel
+ * @enum {number}
+ * @property {number} RELEASE_CHANNEL_UNSPECIFIED=0 RELEASE_CHANNEL_UNSPECIFIED value
+ * @property {number} CANARY=1 CANARY value
+ * @property {number} STABLE=2 STABLE value
+ */
+ Service.ReleaseChannel = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "RELEASE_CHANNEL_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "CANARY"] = 1;
+ values[valuesById[2] = "STABLE"] = 2;
+ return values;
+ })();
+
+ return Service;
+ })();
+
+ v1.MaintenanceWindow = (function() {
+
+ /**
+ * Properties of a MaintenanceWindow.
+ * @memberof google.cloud.metastore.v1
+ * @interface IMaintenanceWindow
+ * @property {google.protobuf.IInt32Value|null} [hourOfDay] MaintenanceWindow hourOfDay
+ * @property {google.type.DayOfWeek|null} [dayOfWeek] MaintenanceWindow dayOfWeek
+ */
+
+ /**
+ * Constructs a new MaintenanceWindow.
+ * @memberof google.cloud.metastore.v1
+ * @classdesc Represents a MaintenanceWindow.
+ * @implements IMaintenanceWindow
+ * @constructor
+ * @param {google.cloud.metastore.v1.IMaintenanceWindow=} [properties] Properties to set
+ */
+ function MaintenanceWindow(properties) {
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null)
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * MaintenanceWindow hourOfDay.
+ * @member {google.protobuf.IInt32Value|null|undefined} hourOfDay
+ * @memberof google.cloud.metastore.v1.MaintenanceWindow
+ * @instance
+ */
+ MaintenanceWindow.prototype.hourOfDay = null;
+
+ /**
+ * MaintenanceWindow dayOfWeek.
+ * @member {google.type.DayOfWeek} dayOfWeek
+ * @memberof google.cloud.metastore.v1.MaintenanceWindow
+ * @instance
+ */
+ MaintenanceWindow.prototype.dayOfWeek = 0;
+
+ /**
+ * Creates a new MaintenanceWindow instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.metastore.v1.MaintenanceWindow
+ * @static
+ * @param {google.cloud.metastore.v1.IMaintenanceWindow=} [properties] Properties to set
+ * @returns {google.cloud.metastore.v1.MaintenanceWindow} MaintenanceWindow instance
+ */
+ MaintenanceWindow.create = function create(properties) {
+ return new MaintenanceWindow(properties);
+ };
+
+ /**
+ * Encodes the specified MaintenanceWindow message. Does not implicitly {@link google.cloud.metastore.v1.MaintenanceWindow.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.metastore.v1.MaintenanceWindow
+ * @static
+ * @param {google.cloud.metastore.v1.IMaintenanceWindow} message MaintenanceWindow message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ MaintenanceWindow.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.hourOfDay != null && Object.hasOwnProperty.call(message, "hourOfDay"))
+ $root.google.protobuf.Int32Value.encode(message.hourOfDay, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
+ if (message.dayOfWeek != null && Object.hasOwnProperty.call(message, "dayOfWeek"))
+ writer.uint32(/* id 2, wireType 0 =*/16).int32(message.dayOfWeek);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified MaintenanceWindow message, length delimited. Does not implicitly {@link google.cloud.metastore.v1.MaintenanceWindow.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.metastore.v1.MaintenanceWindow
+ * @static
+ * @param {google.cloud.metastore.v1.IMaintenanceWindow} message MaintenanceWindow message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ MaintenanceWindow.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a MaintenanceWindow message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.metastore.v1.MaintenanceWindow
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.metastore.v1.MaintenanceWindow} MaintenanceWindow
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ MaintenanceWindow.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.metastore.v1.MaintenanceWindow();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.hourOfDay = $root.google.protobuf.Int32Value.decode(reader, reader.uint32());
+ break;
+ }
+ case 2: {
+ message.dayOfWeek = reader.int32();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a MaintenanceWindow message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.metastore.v1.MaintenanceWindow
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.metastore.v1.MaintenanceWindow} MaintenanceWindow
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ MaintenanceWindow.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a MaintenanceWindow message.
+ * @function verify
+ * @memberof google.cloud.metastore.v1.MaintenanceWindow
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ MaintenanceWindow.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.hourOfDay != null && message.hasOwnProperty("hourOfDay")) {
+ var error = $root.google.protobuf.Int32Value.verify(message.hourOfDay);
+ if (error)
+ return "hourOfDay." + error;
+ }
+ if (message.dayOfWeek != null && message.hasOwnProperty("dayOfWeek"))
+ switch (message.dayOfWeek) {
+ default:
+ return "dayOfWeek: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ case 3:
+ case 4:
+ case 5:
+ case 6:
+ case 7:
+ break;
+ }
+ return null;
+ };
+
+ /**
+ * Creates a MaintenanceWindow message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.metastore.v1.MaintenanceWindow
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.metastore.v1.MaintenanceWindow} MaintenanceWindow
+ */
+ MaintenanceWindow.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.metastore.v1.MaintenanceWindow)
+ return object;
+ var message = new $root.google.cloud.metastore.v1.MaintenanceWindow();
+ if (object.hourOfDay != null) {
+ if (typeof object.hourOfDay !== "object")
+ throw TypeError(".google.cloud.metastore.v1.MaintenanceWindow.hourOfDay: object expected");
+ message.hourOfDay = $root.google.protobuf.Int32Value.fromObject(object.hourOfDay);
+ }
+ switch (object.dayOfWeek) {
+ default:
+ if (typeof object.dayOfWeek === "number") {
+ message.dayOfWeek = object.dayOfWeek;
+ break;
+ }
+ break;
+ case "DAY_OF_WEEK_UNSPECIFIED":
+ case 0:
+ message.dayOfWeek = 0;
+ break;
+ case "MONDAY":
+ case 1:
+ message.dayOfWeek = 1;
+ break;
+ case "TUESDAY":
+ case 2:
+ message.dayOfWeek = 2;
+ break;
+ case "WEDNESDAY":
+ case 3:
+ message.dayOfWeek = 3;
+ break;
+ case "THURSDAY":
+ case 4:
+ message.dayOfWeek = 4;
+ break;
+ case "FRIDAY":
+ case 5:
+ message.dayOfWeek = 5;
+ break;
+ case "SATURDAY":
+ case 6:
+ message.dayOfWeek = 6;
+ break;
+ case "SUNDAY":
+ case 7:
+ message.dayOfWeek = 7;
+ break;
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a MaintenanceWindow message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.metastore.v1.MaintenanceWindow
+ * @static
+ * @param {google.cloud.metastore.v1.MaintenanceWindow} message MaintenanceWindow
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ MaintenanceWindow.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.hourOfDay = null;
+ object.dayOfWeek = options.enums === String ? "DAY_OF_WEEK_UNSPECIFIED" : 0;
+ }
+ if (message.hourOfDay != null && message.hasOwnProperty("hourOfDay"))
+ object.hourOfDay = $root.google.protobuf.Int32Value.toObject(message.hourOfDay, options);
+ if (message.dayOfWeek != null && message.hasOwnProperty("dayOfWeek"))
+ object.dayOfWeek = options.enums === String ? $root.google.type.DayOfWeek[message.dayOfWeek] === undefined ? message.dayOfWeek : $root.google.type.DayOfWeek[message.dayOfWeek] : message.dayOfWeek;
+ return object;
+ };
+
+ /**
+ * Converts this MaintenanceWindow to JSON.
+ * @function toJSON
+ * @memberof google.cloud.metastore.v1.MaintenanceWindow
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ MaintenanceWindow.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for MaintenanceWindow
+ * @function getTypeUrl
+ * @memberof google.cloud.metastore.v1.MaintenanceWindow
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ MaintenanceWindow.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.metastore.v1.MaintenanceWindow";
+ };
+
+ return MaintenanceWindow;
+ })();
+
+ v1.HiveMetastoreConfig = (function() {
+
+ /**
+ * Properties of a HiveMetastoreConfig.
+ * @memberof google.cloud.metastore.v1
+ * @interface IHiveMetastoreConfig
+ * @property {string|null} [version] HiveMetastoreConfig version
+ * @property {Object.|null} [configOverrides] HiveMetastoreConfig configOverrides
+ * @property {google.cloud.metastore.v1.IKerberosConfig|null} [kerberosConfig] HiveMetastoreConfig kerberosConfig
+ */
+
+ /**
+ * Constructs a new HiveMetastoreConfig.
+ * @memberof google.cloud.metastore.v1
+ * @classdesc Represents a HiveMetastoreConfig.
+ * @implements IHiveMetastoreConfig
+ * @constructor
+ * @param {google.cloud.metastore.v1.IHiveMetastoreConfig=} [properties] Properties to set
+ */
+ function HiveMetastoreConfig(properties) {
+ this.configOverrides = {};
+ 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]];
+ }
+
+ /**
+ * HiveMetastoreConfig version.
+ * @member {string} version
+ * @memberof google.cloud.metastore.v1.HiveMetastoreConfig
+ * @instance
+ */
+ HiveMetastoreConfig.prototype.version = "";
+
+ /**
+ * HiveMetastoreConfig configOverrides.
+ * @member {Object.} configOverrides
+ * @memberof google.cloud.metastore.v1.HiveMetastoreConfig
+ * @instance
+ */
+ HiveMetastoreConfig.prototype.configOverrides = $util.emptyObject;
+
+ /**
+ * HiveMetastoreConfig kerberosConfig.
+ * @member {google.cloud.metastore.v1.IKerberosConfig|null|undefined} kerberosConfig
+ * @memberof google.cloud.metastore.v1.HiveMetastoreConfig
+ * @instance
+ */
+ HiveMetastoreConfig.prototype.kerberosConfig = null;
+
+ /**
+ * Creates a new HiveMetastoreConfig instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.metastore.v1.HiveMetastoreConfig
+ * @static
+ * @param {google.cloud.metastore.v1.IHiveMetastoreConfig=} [properties] Properties to set
+ * @returns {google.cloud.metastore.v1.HiveMetastoreConfig} HiveMetastoreConfig instance
+ */
+ HiveMetastoreConfig.create = function create(properties) {
+ return new HiveMetastoreConfig(properties);
+ };
+
+ /**
+ * Encodes the specified HiveMetastoreConfig message. Does not implicitly {@link google.cloud.metastore.v1.HiveMetastoreConfig.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.metastore.v1.HiveMetastoreConfig
+ * @static
+ * @param {google.cloud.metastore.v1.IHiveMetastoreConfig} message HiveMetastoreConfig message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ HiveMetastoreConfig.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.version != null && Object.hasOwnProperty.call(message, "version"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.version);
+ if (message.configOverrides != null && Object.hasOwnProperty.call(message, "configOverrides"))
+ for (var keys = Object.keys(message.configOverrides), i = 0; i < keys.length; ++i)
+ writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.configOverrides[keys[i]]).ldelim();
+ if (message.kerberosConfig != null && Object.hasOwnProperty.call(message, "kerberosConfig"))
+ $root.google.cloud.metastore.v1.KerberosConfig.encode(message.kerberosConfig, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified HiveMetastoreConfig message, length delimited. Does not implicitly {@link google.cloud.metastore.v1.HiveMetastoreConfig.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.metastore.v1.HiveMetastoreConfig
+ * @static
+ * @param {google.cloud.metastore.v1.IHiveMetastoreConfig} message HiveMetastoreConfig message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ HiveMetastoreConfig.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a HiveMetastoreConfig message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.metastore.v1.HiveMetastoreConfig
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.metastore.v1.HiveMetastoreConfig} HiveMetastoreConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ HiveMetastoreConfig.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.metastore.v1.HiveMetastoreConfig(), key, value;
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.version = reader.string();
+ break;
+ }
+ case 2: {
+ if (message.configOverrides === $util.emptyObject)
+ message.configOverrides = {};
+ var end2 = reader.uint32() + reader.pos;
+ key = "";
+ value = "";
+ while (reader.pos < end2) {
+ var tag2 = reader.uint32();
+ switch (tag2 >>> 3) {
+ case 1:
+ key = reader.string();
+ break;
+ case 2:
+ value = reader.string();
+ break;
+ default:
+ reader.skipType(tag2 & 7);
+ break;
+ }
+ }
+ message.configOverrides[key] = value;
+ break;
+ }
+ case 3: {
+ message.kerberosConfig = $root.google.cloud.metastore.v1.KerberosConfig.decode(reader, reader.uint32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a HiveMetastoreConfig message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.metastore.v1.HiveMetastoreConfig
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.metastore.v1.HiveMetastoreConfig} HiveMetastoreConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ HiveMetastoreConfig.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a HiveMetastoreConfig message.
+ * @function verify
+ * @memberof google.cloud.metastore.v1.HiveMetastoreConfig
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ HiveMetastoreConfig.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.version != null && message.hasOwnProperty("version"))
+ if (!$util.isString(message.version))
+ return "version: string expected";
+ if (message.configOverrides != null && message.hasOwnProperty("configOverrides")) {
+ if (!$util.isObject(message.configOverrides))
+ return "configOverrides: object expected";
+ var key = Object.keys(message.configOverrides);
+ for (var i = 0; i < key.length; ++i)
+ if (!$util.isString(message.configOverrides[key[i]]))
+ return "configOverrides: string{k:string} expected";
+ }
+ if (message.kerberosConfig != null && message.hasOwnProperty("kerberosConfig")) {
+ var error = $root.google.cloud.metastore.v1.KerberosConfig.verify(message.kerberosConfig);
+ if (error)
+ return "kerberosConfig." + error;
+ }
+ return null;
+ };
+
+ /**
+ * Creates a HiveMetastoreConfig message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.metastore.v1.HiveMetastoreConfig
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.metastore.v1.HiveMetastoreConfig} HiveMetastoreConfig
+ */
+ HiveMetastoreConfig.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.metastore.v1.HiveMetastoreConfig)
+ return object;
+ var message = new $root.google.cloud.metastore.v1.HiveMetastoreConfig();
+ if (object.version != null)
+ message.version = String(object.version);
+ if (object.configOverrides) {
+ if (typeof object.configOverrides !== "object")
+ throw TypeError(".google.cloud.metastore.v1.HiveMetastoreConfig.configOverrides: object expected");
+ message.configOverrides = {};
+ for (var keys = Object.keys(object.configOverrides), i = 0; i < keys.length; ++i)
+ message.configOverrides[keys[i]] = String(object.configOverrides[keys[i]]);
+ }
+ if (object.kerberosConfig != null) {
+ if (typeof object.kerberosConfig !== "object")
+ throw TypeError(".google.cloud.metastore.v1.HiveMetastoreConfig.kerberosConfig: object expected");
+ message.kerberosConfig = $root.google.cloud.metastore.v1.KerberosConfig.fromObject(object.kerberosConfig);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a HiveMetastoreConfig message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.metastore.v1.HiveMetastoreConfig
+ * @static
+ * @param {google.cloud.metastore.v1.HiveMetastoreConfig} message HiveMetastoreConfig
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ HiveMetastoreConfig.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.objects || options.defaults)
+ object.configOverrides = {};
+ if (options.defaults) {
+ object.version = "";
+ object.kerberosConfig = null;
+ }
+ if (message.version != null && message.hasOwnProperty("version"))
+ object.version = message.version;
+ var keys2;
+ if (message.configOverrides && (keys2 = Object.keys(message.configOverrides)).length) {
+ object.configOverrides = {};
+ for (var j = 0; j < keys2.length; ++j)
+ object.configOverrides[keys2[j]] = message.configOverrides[keys2[j]];
+ }
+ if (message.kerberosConfig != null && message.hasOwnProperty("kerberosConfig"))
+ object.kerberosConfig = $root.google.cloud.metastore.v1.KerberosConfig.toObject(message.kerberosConfig, options);
+ return object;
+ };
+
+ /**
+ * Converts this HiveMetastoreConfig to JSON.
+ * @function toJSON
+ * @memberof google.cloud.metastore.v1.HiveMetastoreConfig
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ HiveMetastoreConfig.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for HiveMetastoreConfig
+ * @function getTypeUrl
+ * @memberof google.cloud.metastore.v1.HiveMetastoreConfig
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ HiveMetastoreConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.metastore.v1.HiveMetastoreConfig";
+ };
+
+ return HiveMetastoreConfig;
+ })();
+
+ v1.KerberosConfig = (function() {
+
+ /**
+ * Properties of a KerberosConfig.
+ * @memberof google.cloud.metastore.v1
+ * @interface IKerberosConfig
+ * @property {google.cloud.metastore.v1.ISecret|null} [keytab] KerberosConfig keytab
+ * @property {string|null} [principal] KerberosConfig principal
+ * @property {string|null} [krb5ConfigGcsUri] KerberosConfig krb5ConfigGcsUri
+ */
+
+ /**
+ * Constructs a new KerberosConfig.
+ * @memberof google.cloud.metastore.v1
+ * @classdesc Represents a KerberosConfig.
+ * @implements IKerberosConfig
+ * @constructor
+ * @param {google.cloud.metastore.v1.IKerberosConfig=} [properties] Properties to set
+ */
+ function KerberosConfig(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]];
+ }
+
+ /**
+ * KerberosConfig keytab.
+ * @member {google.cloud.metastore.v1.ISecret|null|undefined} keytab
+ * @memberof google.cloud.metastore.v1.KerberosConfig
+ * @instance
+ */
+ KerberosConfig.prototype.keytab = null;
+
+ /**
+ * KerberosConfig principal.
+ * @member {string} principal
+ * @memberof google.cloud.metastore.v1.KerberosConfig
+ * @instance
+ */
+ KerberosConfig.prototype.principal = "";
+
+ /**
+ * KerberosConfig krb5ConfigGcsUri.
+ * @member {string} krb5ConfigGcsUri
+ * @memberof google.cloud.metastore.v1.KerberosConfig
+ * @instance
+ */
+ KerberosConfig.prototype.krb5ConfigGcsUri = "";
+
+ /**
+ * Creates a new KerberosConfig instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.metastore.v1.KerberosConfig
+ * @static
+ * @param {google.cloud.metastore.v1.IKerberosConfig=} [properties] Properties to set
+ * @returns {google.cloud.metastore.v1.KerberosConfig} KerberosConfig instance
+ */
+ KerberosConfig.create = function create(properties) {
+ return new KerberosConfig(properties);
+ };
+
+ /**
+ * Encodes the specified KerberosConfig message. Does not implicitly {@link google.cloud.metastore.v1.KerberosConfig.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.metastore.v1.KerberosConfig
+ * @static
+ * @param {google.cloud.metastore.v1.IKerberosConfig} message KerberosConfig message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ KerberosConfig.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.keytab != null && Object.hasOwnProperty.call(message, "keytab"))
+ $root.google.cloud.metastore.v1.Secret.encode(message.keytab, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
+ if (message.principal != null && Object.hasOwnProperty.call(message, "principal"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.principal);
+ if (message.krb5ConfigGcsUri != null && Object.hasOwnProperty.call(message, "krb5ConfigGcsUri"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.krb5ConfigGcsUri);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified KerberosConfig message, length delimited. Does not implicitly {@link google.cloud.metastore.v1.KerberosConfig.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.metastore.v1.KerberosConfig
+ * @static
+ * @param {google.cloud.metastore.v1.IKerberosConfig} message KerberosConfig message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ KerberosConfig.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a KerberosConfig message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.metastore.v1.KerberosConfig
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.metastore.v1.KerberosConfig} KerberosConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ KerberosConfig.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.metastore.v1.KerberosConfig();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.keytab = $root.google.cloud.metastore.v1.Secret.decode(reader, reader.uint32());
+ break;
+ }
+ case 2: {
+ message.principal = reader.string();
+ break;
+ }
+ case 3: {
+ message.krb5ConfigGcsUri = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a KerberosConfig message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.metastore.v1.KerberosConfig
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.metastore.v1.KerberosConfig} KerberosConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ KerberosConfig.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a KerberosConfig message.
+ * @function verify
+ * @memberof google.cloud.metastore.v1.KerberosConfig
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ KerberosConfig.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.keytab != null && message.hasOwnProperty("keytab")) {
+ var error = $root.google.cloud.metastore.v1.Secret.verify(message.keytab);
+ if (error)
+ return "keytab." + error;
+ }
+ if (message.principal != null && message.hasOwnProperty("principal"))
+ if (!$util.isString(message.principal))
+ return "principal: string expected";
+ if (message.krb5ConfigGcsUri != null && message.hasOwnProperty("krb5ConfigGcsUri"))
+ if (!$util.isString(message.krb5ConfigGcsUri))
+ return "krb5ConfigGcsUri: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a KerberosConfig message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.metastore.v1.KerberosConfig
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.metastore.v1.KerberosConfig} KerberosConfig
+ */
+ KerberosConfig.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.metastore.v1.KerberosConfig)
+ return object;
+ var message = new $root.google.cloud.metastore.v1.KerberosConfig();
+ if (object.keytab != null) {
+ if (typeof object.keytab !== "object")
+ throw TypeError(".google.cloud.metastore.v1.KerberosConfig.keytab: object expected");
+ message.keytab = $root.google.cloud.metastore.v1.Secret.fromObject(object.keytab);
+ }
+ if (object.principal != null)
+ message.principal = String(object.principal);
+ if (object.krb5ConfigGcsUri != null)
+ message.krb5ConfigGcsUri = String(object.krb5ConfigGcsUri);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a KerberosConfig message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.metastore.v1.KerberosConfig
+ * @static
+ * @param {google.cloud.metastore.v1.KerberosConfig} message KerberosConfig
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ KerberosConfig.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.keytab = null;
+ object.principal = "";
+ object.krb5ConfigGcsUri = "";
+ }
+ if (message.keytab != null && message.hasOwnProperty("keytab"))
+ object.keytab = $root.google.cloud.metastore.v1.Secret.toObject(message.keytab, options);
+ if (message.principal != null && message.hasOwnProperty("principal"))
+ object.principal = message.principal;
+ if (message.krb5ConfigGcsUri != null && message.hasOwnProperty("krb5ConfigGcsUri"))
+ object.krb5ConfigGcsUri = message.krb5ConfigGcsUri;
+ return object;
+ };
+
+ /**
+ * Converts this KerberosConfig to JSON.
+ * @function toJSON
+ * @memberof google.cloud.metastore.v1.KerberosConfig
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ KerberosConfig.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for KerberosConfig
+ * @function getTypeUrl
+ * @memberof google.cloud.metastore.v1.KerberosConfig
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ KerberosConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.metastore.v1.KerberosConfig";
+ };
+
+ return KerberosConfig;
+ })();
+
+ v1.Secret = (function() {
+
+ /**
+ * Properties of a Secret.
+ * @memberof google.cloud.metastore.v1
+ * @interface ISecret
+ * @property {string|null} [cloudSecret] Secret cloudSecret
+ */
+
+ /**
+ * Constructs a new Secret.
+ * @memberof google.cloud.metastore.v1
+ * @classdesc Represents a Secret.
+ * @implements ISecret
+ * @constructor
+ * @param {google.cloud.metastore.v1.ISecret=} [properties] Properties to set
+ */
+ function Secret(properties) {
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null)
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * Secret cloudSecret.
+ * @member {string|null|undefined} cloudSecret
+ * @memberof google.cloud.metastore.v1.Secret
+ * @instance
+ */
+ Secret.prototype.cloudSecret = null;
+
+ // OneOf field names bound to virtual getters and setters
+ var $oneOfFields;
+
+ /**
+ * Secret value.
+ * @member {"cloudSecret"|undefined} value
+ * @memberof google.cloud.metastore.v1.Secret
+ * @instance
+ */
+ Object.defineProperty(Secret.prototype, "value", {
+ get: $util.oneOfGetter($oneOfFields = ["cloudSecret"]),
+ set: $util.oneOfSetter($oneOfFields)
+ });
+
+ /**
+ * Creates a new Secret instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.metastore.v1.Secret
+ * @static
+ * @param {google.cloud.metastore.v1.ISecret=} [properties] Properties to set
+ * @returns {google.cloud.metastore.v1.Secret} Secret instance
+ */
+ Secret.create = function create(properties) {
+ return new Secret(properties);
+ };
+
+ /**
+ * Encodes the specified Secret message. Does not implicitly {@link google.cloud.metastore.v1.Secret.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.metastore.v1.Secret
+ * @static
+ * @param {google.cloud.metastore.v1.ISecret} message Secret message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Secret.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.cloudSecret != null && Object.hasOwnProperty.call(message, "cloudSecret"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.cloudSecret);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified Secret message, length delimited. Does not implicitly {@link google.cloud.metastore.v1.Secret.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.metastore.v1.Secret
+ * @static
+ * @param {google.cloud.metastore.v1.ISecret} message Secret message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Secret.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a Secret message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.metastore.v1.Secret
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.metastore.v1.Secret} Secret
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Secret.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.metastore.v1.Secret();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 2: {
+ message.cloudSecret = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a Secret message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.metastore.v1.Secret
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.metastore.v1.Secret} Secret
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Secret.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a Secret message.
+ * @function verify
+ * @memberof google.cloud.metastore.v1.Secret
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ Secret.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ var properties = {};
+ if (message.cloudSecret != null && message.hasOwnProperty("cloudSecret")) {
+ properties.value = 1;
+ if (!$util.isString(message.cloudSecret))
+ return "cloudSecret: string expected";
+ }
+ return null;
+ };
+
+ /**
+ * Creates a Secret message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.metastore.v1.Secret
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.metastore.v1.Secret} Secret
+ */
+ Secret.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.metastore.v1.Secret)
+ return object;
+ var message = new $root.google.cloud.metastore.v1.Secret();
+ if (object.cloudSecret != null)
+ message.cloudSecret = String(object.cloudSecret);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a Secret message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.metastore.v1.Secret
+ * @static
+ * @param {google.cloud.metastore.v1.Secret} message Secret
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ Secret.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (message.cloudSecret != null && message.hasOwnProperty("cloudSecret")) {
+ object.cloudSecret = message.cloudSecret;
+ if (options.oneofs)
+ object.value = "cloudSecret";
+ }
+ return object;
+ };
+
+ /**
+ * Converts this Secret to JSON.
+ * @function toJSON
+ * @memberof google.cloud.metastore.v1.Secret
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ Secret.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for Secret
+ * @function getTypeUrl
+ * @memberof google.cloud.metastore.v1.Secret
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ Secret.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.metastore.v1.Secret";
+ };
+
+ return Secret;
+ })();
+
+ v1.MetadataManagementActivity = (function() {
+
+ /**
+ * Properties of a MetadataManagementActivity.
+ * @memberof google.cloud.metastore.v1
+ * @interface IMetadataManagementActivity
+ * @property {Array.|null} [metadataExports] MetadataManagementActivity metadataExports
+ * @property {Array.|null} [restores] MetadataManagementActivity restores
+ */
+
+ /**
+ * Constructs a new MetadataManagementActivity.
+ * @memberof google.cloud.metastore.v1
+ * @classdesc Represents a MetadataManagementActivity.
+ * @implements IMetadataManagementActivity
+ * @constructor
+ * @param {google.cloud.metastore.v1.IMetadataManagementActivity=} [properties] Properties to set
+ */
+ function MetadataManagementActivity(properties) {
+ this.metadataExports = [];
+ this.restores = [];
+ 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]];
+ }
+
+ /**
+ * MetadataManagementActivity metadataExports.
+ * @member {Array.} metadataExports
+ * @memberof google.cloud.metastore.v1.MetadataManagementActivity
+ * @instance
+ */
+ MetadataManagementActivity.prototype.metadataExports = $util.emptyArray;
+
+ /**
+ * MetadataManagementActivity restores.
+ * @member {Array.} restores
+ * @memberof google.cloud.metastore.v1.MetadataManagementActivity
+ * @instance
+ */
+ MetadataManagementActivity.prototype.restores = $util.emptyArray;
+
+ /**
+ * Creates a new MetadataManagementActivity instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.metastore.v1.MetadataManagementActivity
+ * @static
+ * @param {google.cloud.metastore.v1.IMetadataManagementActivity=} [properties] Properties to set
+ * @returns {google.cloud.metastore.v1.MetadataManagementActivity} MetadataManagementActivity instance
+ */
+ MetadataManagementActivity.create = function create(properties) {
+ return new MetadataManagementActivity(properties);
+ };
+
+ /**
+ * Encodes the specified MetadataManagementActivity message. Does not implicitly {@link google.cloud.metastore.v1.MetadataManagementActivity.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.metastore.v1.MetadataManagementActivity
+ * @static
+ * @param {google.cloud.metastore.v1.IMetadataManagementActivity} message MetadataManagementActivity message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ MetadataManagementActivity.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.metadataExports != null && message.metadataExports.length)
+ for (var i = 0; i < message.metadataExports.length; ++i)
+ $root.google.cloud.metastore.v1.MetadataExport.encode(message.metadataExports[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
+ if (message.restores != null && message.restores.length)
+ for (var i = 0; i < message.restores.length; ++i)
+ $root.google.cloud.metastore.v1.Restore.encode(message.restores[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified MetadataManagementActivity message, length delimited. Does not implicitly {@link google.cloud.metastore.v1.MetadataManagementActivity.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.metastore.v1.MetadataManagementActivity
+ * @static
+ * @param {google.cloud.metastore.v1.IMetadataManagementActivity} message MetadataManagementActivity message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ MetadataManagementActivity.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a MetadataManagementActivity message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.metastore.v1.MetadataManagementActivity
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.metastore.v1.MetadataManagementActivity} MetadataManagementActivity
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ MetadataManagementActivity.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.metastore.v1.MetadataManagementActivity();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ if (!(message.metadataExports && message.metadataExports.length))
+ message.metadataExports = [];
+ message.metadataExports.push($root.google.cloud.metastore.v1.MetadataExport.decode(reader, reader.uint32()));
+ break;
+ }
+ case 2: {
+ if (!(message.restores && message.restores.length))
+ message.restores = [];
+ message.restores.push($root.google.cloud.metastore.v1.Restore.decode(reader, reader.uint32()));
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a MetadataManagementActivity message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.metastore.v1.MetadataManagementActivity
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.metastore.v1.MetadataManagementActivity} MetadataManagementActivity
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ MetadataManagementActivity.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a MetadataManagementActivity message.
+ * @function verify
+ * @memberof google.cloud.metastore.v1.MetadataManagementActivity
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ MetadataManagementActivity.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.metadataExports != null && message.hasOwnProperty("metadataExports")) {
+ if (!Array.isArray(message.metadataExports))
+ return "metadataExports: array expected";
+ for (var i = 0; i < message.metadataExports.length; ++i) {
+ var error = $root.google.cloud.metastore.v1.MetadataExport.verify(message.metadataExports[i]);
+ if (error)
+ return "metadataExports." + error;
+ }
+ }
+ if (message.restores != null && message.hasOwnProperty("restores")) {
+ if (!Array.isArray(message.restores))
+ return "restores: array expected";
+ for (var i = 0; i < message.restores.length; ++i) {
+ var error = $root.google.cloud.metastore.v1.Restore.verify(message.restores[i]);
+ if (error)
+ return "restores." + error;
+ }
+ }
+ return null;
+ };
+
+ /**
+ * Creates a MetadataManagementActivity message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.metastore.v1.MetadataManagementActivity
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.metastore.v1.MetadataManagementActivity} MetadataManagementActivity
+ */
+ MetadataManagementActivity.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.metastore.v1.MetadataManagementActivity)
+ return object;
+ var message = new $root.google.cloud.metastore.v1.MetadataManagementActivity();
+ if (object.metadataExports) {
+ if (!Array.isArray(object.metadataExports))
+ throw TypeError(".google.cloud.metastore.v1.MetadataManagementActivity.metadataExports: array expected");
+ message.metadataExports = [];
+ for (var i = 0; i < object.metadataExports.length; ++i) {
+ if (typeof object.metadataExports[i] !== "object")
+ throw TypeError(".google.cloud.metastore.v1.MetadataManagementActivity.metadataExports: object expected");
+ message.metadataExports[i] = $root.google.cloud.metastore.v1.MetadataExport.fromObject(object.metadataExports[i]);
+ }
+ }
+ if (object.restores) {
+ if (!Array.isArray(object.restores))
+ throw TypeError(".google.cloud.metastore.v1.MetadataManagementActivity.restores: array expected");
+ message.restores = [];
+ for (var i = 0; i < object.restores.length; ++i) {
+ if (typeof object.restores[i] !== "object")
+ throw TypeError(".google.cloud.metastore.v1.MetadataManagementActivity.restores: object expected");
+ message.restores[i] = $root.google.cloud.metastore.v1.Restore.fromObject(object.restores[i]);
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a MetadataManagementActivity message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.metastore.v1.MetadataManagementActivity
+ * @static
+ * @param {google.cloud.metastore.v1.MetadataManagementActivity} message MetadataManagementActivity
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ MetadataManagementActivity.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults) {
+ object.metadataExports = [];
+ object.restores = [];
+ }
+ if (message.metadataExports && message.metadataExports.length) {
+ object.metadataExports = [];
+ for (var j = 0; j < message.metadataExports.length; ++j)
+ object.metadataExports[j] = $root.google.cloud.metastore.v1.MetadataExport.toObject(message.metadataExports[j], options);
+ }
+ if (message.restores && message.restores.length) {
+ object.restores = [];
+ for (var j = 0; j < message.restores.length; ++j)
+ object.restores[j] = $root.google.cloud.metastore.v1.Restore.toObject(message.restores[j], options);
+ }
+ return object;
+ };
+
+ /**
+ * Converts this MetadataManagementActivity to JSON.
+ * @function toJSON
+ * @memberof google.cloud.metastore.v1.MetadataManagementActivity
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ MetadataManagementActivity.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for MetadataManagementActivity
+ * @function getTypeUrl
+ * @memberof google.cloud.metastore.v1.MetadataManagementActivity
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ MetadataManagementActivity.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.metastore.v1.MetadataManagementActivity";
+ };
+
+ return MetadataManagementActivity;
+ })();
+
+ v1.MetadataImport = (function() {
+
+ /**
+ * Properties of a MetadataImport.
+ * @memberof google.cloud.metastore.v1
+ * @interface IMetadataImport
+ * @property {google.cloud.metastore.v1.MetadataImport.IDatabaseDump|null} [databaseDump] MetadataImport databaseDump
+ * @property {string|null} [name] MetadataImport name
+ * @property {string|null} [description] MetadataImport description
+ * @property {google.protobuf.ITimestamp|null} [createTime] MetadataImport createTime
+ * @property {google.protobuf.ITimestamp|null} [updateTime] MetadataImport updateTime
+ * @property {google.protobuf.ITimestamp|null} [endTime] MetadataImport endTime
+ * @property {google.cloud.metastore.v1.MetadataImport.State|null} [state] MetadataImport state
+ */
+
+ /**
+ * Constructs a new MetadataImport.
+ * @memberof google.cloud.metastore.v1
+ * @classdesc Represents a MetadataImport.
+ * @implements IMetadataImport
+ * @constructor
+ * @param {google.cloud.metastore.v1.IMetadataImport=} [properties] Properties to set
+ */
+ function MetadataImport(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]];
+ }
+
+ /**
+ * MetadataImport databaseDump.
+ * @member {google.cloud.metastore.v1.MetadataImport.IDatabaseDump|null|undefined} databaseDump
+ * @memberof google.cloud.metastore.v1.MetadataImport
+ * @instance
+ */
+ MetadataImport.prototype.databaseDump = null;
+
+ /**
+ * MetadataImport name.
+ * @member {string} name
+ * @memberof google.cloud.metastore.v1.MetadataImport
+ * @instance
+ */
+ MetadataImport.prototype.name = "";
+
+ /**
+ * MetadataImport description.
+ * @member {string} description
+ * @memberof google.cloud.metastore.v1.MetadataImport
+ * @instance
+ */
+ MetadataImport.prototype.description = "";
+
+ /**
+ * MetadataImport createTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} createTime
+ * @memberof google.cloud.metastore.v1.MetadataImport
+ * @instance
+ */
+ MetadataImport.prototype.createTime = null;
+
+ /**
+ * MetadataImport updateTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} updateTime
+ * @memberof google.cloud.metastore.v1.MetadataImport
+ * @instance
+ */
+ MetadataImport.prototype.updateTime = null;
+
+ /**
+ * MetadataImport endTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} endTime
+ * @memberof google.cloud.metastore.v1.MetadataImport
+ * @instance
+ */
+ MetadataImport.prototype.endTime = null;
+
+ /**
+ * MetadataImport state.
+ * @member {google.cloud.metastore.v1.MetadataImport.State} state
+ * @memberof google.cloud.metastore.v1.MetadataImport
+ * @instance
+ */
+ MetadataImport.prototype.state = 0;
+
+ // OneOf field names bound to virtual getters and setters
+ var $oneOfFields;
+
+ /**
+ * MetadataImport metadata.
+ * @member {"databaseDump"|undefined} metadata
+ * @memberof google.cloud.metastore.v1.MetadataImport
+ * @instance
+ */
+ Object.defineProperty(MetadataImport.prototype, "metadata", {
+ get: $util.oneOfGetter($oneOfFields = ["databaseDump"]),
+ set: $util.oneOfSetter($oneOfFields)
+ });
+
+ /**
+ * Creates a new MetadataImport instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.metastore.v1.MetadataImport
+ * @static
+ * @param {google.cloud.metastore.v1.IMetadataImport=} [properties] Properties to set
+ * @returns {google.cloud.metastore.v1.MetadataImport} MetadataImport instance
+ */
+ MetadataImport.create = function create(properties) {
+ return new MetadataImport(properties);
+ };
+
+ /**
+ * Encodes the specified MetadataImport message. Does not implicitly {@link google.cloud.metastore.v1.MetadataImport.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.metastore.v1.MetadataImport
+ * @static
+ * @param {google.cloud.metastore.v1.IMetadataImport} message MetadataImport message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ MetadataImport.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.name != null && Object.hasOwnProperty.call(message, "name"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
+ if (message.description != null && Object.hasOwnProperty.call(message, "description"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.description);
+ if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime"))
+ $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
+ if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime"))
+ $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
+ if (message.state != null && Object.hasOwnProperty.call(message, "state"))
+ writer.uint32(/* id 5, wireType 0 =*/40).int32(message.state);
+ if (message.databaseDump != null && Object.hasOwnProperty.call(message, "databaseDump"))
+ $root.google.cloud.metastore.v1.MetadataImport.DatabaseDump.encode(message.databaseDump, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
+ if (message.endTime != null && Object.hasOwnProperty.call(message, "endTime"))
+ $root.google.protobuf.Timestamp.encode(message.endTime, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified MetadataImport message, length delimited. Does not implicitly {@link google.cloud.metastore.v1.MetadataImport.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.metastore.v1.MetadataImport
+ * @static
+ * @param {google.cloud.metastore.v1.IMetadataImport} message MetadataImport message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ MetadataImport.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a MetadataImport message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.metastore.v1.MetadataImport
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.metastore.v1.MetadataImport} MetadataImport
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ MetadataImport.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.metastore.v1.MetadataImport();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 6: {
+ message.databaseDump = $root.google.cloud.metastore.v1.MetadataImport.DatabaseDump.decode(reader, reader.uint32());
+ break;
+ }
+ case 1: {
+ message.name = reader.string();
+ break;
+ }
+ case 2: {
+ message.description = reader.string();
+ break;
+ }
+ case 3: {
+ message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
+ break;
+ }
+ case 4: {
+ message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
+ break;
+ }
+ case 7: {
+ message.endTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
+ break;
+ }
+ case 5: {
+ message.state = reader.int32();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a MetadataImport message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.metastore.v1.MetadataImport
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.metastore.v1.MetadataImport} MetadataImport
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ MetadataImport.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a MetadataImport message.
+ * @function verify
+ * @memberof google.cloud.metastore.v1.MetadataImport
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ MetadataImport.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ var properties = {};
+ if (message.databaseDump != null && message.hasOwnProperty("databaseDump")) {
+ properties.metadata = 1;
+ {
+ var error = $root.google.cloud.metastore.v1.MetadataImport.DatabaseDump.verify(message.databaseDump);
+ if (error)
+ return "databaseDump." + error;
+ }
+ }
+ if (message.name != null && message.hasOwnProperty("name"))
+ if (!$util.isString(message.name))
+ return "name: string expected";
+ if (message.description != null && message.hasOwnProperty("description"))
+ if (!$util.isString(message.description))
+ return "description: string expected";
+ if (message.createTime != null && message.hasOwnProperty("createTime")) {
+ var error = $root.google.protobuf.Timestamp.verify(message.createTime);
+ if (error)
+ return "createTime." + error;
+ }
+ if (message.updateTime != null && message.hasOwnProperty("updateTime")) {
+ var error = $root.google.protobuf.Timestamp.verify(message.updateTime);
+ if (error)
+ return "updateTime." + error;
+ }
+ if (message.endTime != null && message.hasOwnProperty("endTime")) {
+ var error = $root.google.protobuf.Timestamp.verify(message.endTime);
+ if (error)
+ return "endTime." + error;
+ }
+ if (message.state != null && message.hasOwnProperty("state"))
+ switch (message.state) {
+ default:
+ return "state: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ case 3:
+ case 4:
+ break;
+ }
+ return null;
+ };
+
+ /**
+ * Creates a MetadataImport message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.metastore.v1.MetadataImport
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.metastore.v1.MetadataImport} MetadataImport
+ */
+ MetadataImport.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.metastore.v1.MetadataImport)
+ return object;
+ var message = new $root.google.cloud.metastore.v1.MetadataImport();
+ if (object.databaseDump != null) {
+ if (typeof object.databaseDump !== "object")
+ throw TypeError(".google.cloud.metastore.v1.MetadataImport.databaseDump: object expected");
+ message.databaseDump = $root.google.cloud.metastore.v1.MetadataImport.DatabaseDump.fromObject(object.databaseDump);
+ }
+ if (object.name != null)
+ message.name = String(object.name);
+ if (object.description != null)
+ message.description = String(object.description);
+ if (object.createTime != null) {
+ if (typeof object.createTime !== "object")
+ throw TypeError(".google.cloud.metastore.v1.MetadataImport.createTime: object expected");
+ message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime);
+ }
+ if (object.updateTime != null) {
+ if (typeof object.updateTime !== "object")
+ throw TypeError(".google.cloud.metastore.v1.MetadataImport.updateTime: object expected");
+ message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime);
+ }
+ if (object.endTime != null) {
+ if (typeof object.endTime !== "object")
+ throw TypeError(".google.cloud.metastore.v1.MetadataImport.endTime: object expected");
+ message.endTime = $root.google.protobuf.Timestamp.fromObject(object.endTime);
+ }
+ switch (object.state) {
+ default:
+ if (typeof object.state === "number") {
+ message.state = object.state;
+ break;
+ }
+ break;
+ case "STATE_UNSPECIFIED":
+ case 0:
+ message.state = 0;
+ break;
+ case "RUNNING":
+ case 1:
+ message.state = 1;
+ break;
+ case "SUCCEEDED":
+ case 2:
+ message.state = 2;
+ break;
+ case "UPDATING":
+ case 3:
+ message.state = 3;
+ break;
+ case "FAILED":
+ case 4:
+ message.state = 4;
+ break;
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a MetadataImport message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.metastore.v1.MetadataImport
+ * @static
+ * @param {google.cloud.metastore.v1.MetadataImport} message MetadataImport
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ MetadataImport.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.name = "";
+ object.description = "";
+ object.createTime = null;
+ object.updateTime = null;
+ object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0;
+ object.endTime = null;
+ }
+ if (message.name != null && message.hasOwnProperty("name"))
+ object.name = message.name;
+ if (message.description != null && message.hasOwnProperty("description"))
+ object.description = message.description;
+ if (message.createTime != null && message.hasOwnProperty("createTime"))
+ object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options);
+ if (message.updateTime != null && message.hasOwnProperty("updateTime"))
+ object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options);
+ if (message.state != null && message.hasOwnProperty("state"))
+ object.state = options.enums === String ? $root.google.cloud.metastore.v1.MetadataImport.State[message.state] === undefined ? message.state : $root.google.cloud.metastore.v1.MetadataImport.State[message.state] : message.state;
+ if (message.databaseDump != null && message.hasOwnProperty("databaseDump")) {
+ object.databaseDump = $root.google.cloud.metastore.v1.MetadataImport.DatabaseDump.toObject(message.databaseDump, options);
+ if (options.oneofs)
+ object.metadata = "databaseDump";
+ }
+ if (message.endTime != null && message.hasOwnProperty("endTime"))
+ object.endTime = $root.google.protobuf.Timestamp.toObject(message.endTime, options);
+ return object;
+ };
+
+ /**
+ * Converts this MetadataImport to JSON.
+ * @function toJSON
+ * @memberof google.cloud.metastore.v1.MetadataImport
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ MetadataImport.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for MetadataImport
+ * @function getTypeUrl
+ * @memberof google.cloud.metastore.v1.MetadataImport
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ MetadataImport.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.metastore.v1.MetadataImport";
+ };
+
+ MetadataImport.DatabaseDump = (function() {
+
+ /**
+ * Properties of a DatabaseDump.
+ * @memberof google.cloud.metastore.v1.MetadataImport
+ * @interface IDatabaseDump
+ * @property {google.cloud.metastore.v1.MetadataImport.DatabaseDump.DatabaseType|null} [databaseType] DatabaseDump databaseType
+ * @property {string|null} [gcsUri] DatabaseDump gcsUri
+ * @property {google.cloud.metastore.v1.DatabaseDumpSpec.Type|null} [type] DatabaseDump type
+ */
+
+ /**
+ * Constructs a new DatabaseDump.
+ * @memberof google.cloud.metastore.v1.MetadataImport
+ * @classdesc Represents a DatabaseDump.
+ * @implements IDatabaseDump
+ * @constructor
+ * @param {google.cloud.metastore.v1.MetadataImport.IDatabaseDump=} [properties] Properties to set
+ */
+ function DatabaseDump(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]];
+ }
+
+ /**
+ * DatabaseDump databaseType.
+ * @member {google.cloud.metastore.v1.MetadataImport.DatabaseDump.DatabaseType} databaseType
+ * @memberof google.cloud.metastore.v1.MetadataImport.DatabaseDump
+ * @instance
+ */
+ DatabaseDump.prototype.databaseType = 0;
+
+ /**
+ * DatabaseDump gcsUri.
+ * @member {string} gcsUri
+ * @memberof google.cloud.metastore.v1.MetadataImport.DatabaseDump
+ * @instance
+ */
+ DatabaseDump.prototype.gcsUri = "";
+
+ /**
+ * DatabaseDump type.
+ * @member {google.cloud.metastore.v1.DatabaseDumpSpec.Type} type
+ * @memberof google.cloud.metastore.v1.MetadataImport.DatabaseDump
+ * @instance
+ */
+ DatabaseDump.prototype.type = 0;
+
+ /**
+ * Creates a new DatabaseDump instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.metastore.v1.MetadataImport.DatabaseDump
+ * @static
+ * @param {google.cloud.metastore.v1.MetadataImport.IDatabaseDump=} [properties] Properties to set
+ * @returns {google.cloud.metastore.v1.MetadataImport.DatabaseDump} DatabaseDump instance
+ */
+ DatabaseDump.create = function create(properties) {
+ return new DatabaseDump(properties);
+ };
+
+ /**
+ * Encodes the specified DatabaseDump message. Does not implicitly {@link google.cloud.metastore.v1.MetadataImport.DatabaseDump.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.metastore.v1.MetadataImport.DatabaseDump
+ * @static
+ * @param {google.cloud.metastore.v1.MetadataImport.IDatabaseDump} message DatabaseDump message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ DatabaseDump.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.databaseType != null && Object.hasOwnProperty.call(message, "databaseType"))
+ writer.uint32(/* id 1, wireType 0 =*/8).int32(message.databaseType);
+ if (message.gcsUri != null && Object.hasOwnProperty.call(message, "gcsUri"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.gcsUri);
+ if (message.type != null && Object.hasOwnProperty.call(message, "type"))
+ writer.uint32(/* id 4, wireType 0 =*/32).int32(message.type);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified DatabaseDump message, length delimited. Does not implicitly {@link google.cloud.metastore.v1.MetadataImport.DatabaseDump.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.metastore.v1.MetadataImport.DatabaseDump
+ * @static
+ * @param {google.cloud.metastore.v1.MetadataImport.IDatabaseDump} message DatabaseDump message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ DatabaseDump.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a DatabaseDump message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.metastore.v1.MetadataImport.DatabaseDump
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.metastore.v1.MetadataImport.DatabaseDump} DatabaseDump
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ DatabaseDump.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.metastore.v1.MetadataImport.DatabaseDump();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.databaseType = reader.int32();
+ break;
+ }
+ case 2: {
+ message.gcsUri = reader.string();
+ break;
+ }
+ case 4: {
+ message.type = reader.int32();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a DatabaseDump message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.metastore.v1.MetadataImport.DatabaseDump
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.metastore.v1.MetadataImport.DatabaseDump} DatabaseDump
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ DatabaseDump.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a DatabaseDump message.
+ * @function verify
+ * @memberof google.cloud.metastore.v1.MetadataImport.DatabaseDump
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ DatabaseDump.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.databaseType != null && message.hasOwnProperty("databaseType"))
+ switch (message.databaseType) {
+ default:
+ return "databaseType: enum value expected";
+ case 0:
+ case 1:
+ break;
+ }
+ if (message.gcsUri != null && message.hasOwnProperty("gcsUri"))
+ if (!$util.isString(message.gcsUri))
+ return "gcsUri: string expected";
+ if (message.type != null && message.hasOwnProperty("type"))
+ switch (message.type) {
+ default:
+ return "type: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ break;
+ }
+ return null;
+ };
+
+ /**
+ * Creates a DatabaseDump message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.metastore.v1.MetadataImport.DatabaseDump
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.metastore.v1.MetadataImport.DatabaseDump} DatabaseDump
+ */
+ DatabaseDump.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.metastore.v1.MetadataImport.DatabaseDump)
+ return object;
+ var message = new $root.google.cloud.metastore.v1.MetadataImport.DatabaseDump();
+ switch (object.databaseType) {
+ default:
+ if (typeof object.databaseType === "number") {
+ message.databaseType = object.databaseType;
+ break;
+ }
+ break;
+ case "DATABASE_TYPE_UNSPECIFIED":
+ case 0:
+ message.databaseType = 0;
+ break;
+ case "MYSQL":
+ case 1:
+ message.databaseType = 1;
+ break;
+ }
+ if (object.gcsUri != null)
+ message.gcsUri = String(object.gcsUri);
+ switch (object.type) {
+ default:
+ if (typeof object.type === "number") {
+ message.type = object.type;
+ break;
+ }
+ break;
+ case "TYPE_UNSPECIFIED":
+ case 0:
+ message.type = 0;
+ break;
+ case "MYSQL":
+ case 1:
+ message.type = 1;
+ break;
+ case "AVRO":
+ case 2:
+ message.type = 2;
+ break;
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a DatabaseDump message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.metastore.v1.MetadataImport.DatabaseDump
+ * @static
+ * @param {google.cloud.metastore.v1.MetadataImport.DatabaseDump} message DatabaseDump
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ DatabaseDump.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.databaseType = options.enums === String ? "DATABASE_TYPE_UNSPECIFIED" : 0;
+ object.gcsUri = "";
+ object.type = options.enums === String ? "TYPE_UNSPECIFIED" : 0;
+ }
+ if (message.databaseType != null && message.hasOwnProperty("databaseType"))
+ object.databaseType = options.enums === String ? $root.google.cloud.metastore.v1.MetadataImport.DatabaseDump.DatabaseType[message.databaseType] === undefined ? message.databaseType : $root.google.cloud.metastore.v1.MetadataImport.DatabaseDump.DatabaseType[message.databaseType] : message.databaseType;
+ if (message.gcsUri != null && message.hasOwnProperty("gcsUri"))
+ object.gcsUri = message.gcsUri;
+ if (message.type != null && message.hasOwnProperty("type"))
+ object.type = options.enums === String ? $root.google.cloud.metastore.v1.DatabaseDumpSpec.Type[message.type] === undefined ? message.type : $root.google.cloud.metastore.v1.DatabaseDumpSpec.Type[message.type] : message.type;
+ return object;
+ };
+
+ /**
+ * Converts this DatabaseDump to JSON.
+ * @function toJSON
+ * @memberof google.cloud.metastore.v1.MetadataImport.DatabaseDump
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ DatabaseDump.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for DatabaseDump
+ * @function getTypeUrl
+ * @memberof google.cloud.metastore.v1.MetadataImport.DatabaseDump
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ DatabaseDump.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.metastore.v1.MetadataImport.DatabaseDump";
+ };
+
+ /**
+ * DatabaseType enum.
+ * @name google.cloud.metastore.v1.MetadataImport.DatabaseDump.DatabaseType
+ * @enum {number}
+ * @property {number} DATABASE_TYPE_UNSPECIFIED=0 DATABASE_TYPE_UNSPECIFIED value
+ * @property {number} MYSQL=1 MYSQL value
+ */
+ DatabaseDump.DatabaseType = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "DATABASE_TYPE_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "MYSQL"] = 1;
+ return values;
+ })();
+
+ return DatabaseDump;
+ })();
+
+ /**
+ * State enum.
+ * @name google.cloud.metastore.v1.MetadataImport.State
+ * @enum {number}
+ * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value
+ * @property {number} RUNNING=1 RUNNING value
+ * @property {number} SUCCEEDED=2 SUCCEEDED value
+ * @property {number} UPDATING=3 UPDATING value
+ * @property {number} FAILED=4 FAILED value
+ */
+ MetadataImport.State = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "STATE_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "RUNNING"] = 1;
+ values[valuesById[2] = "SUCCEEDED"] = 2;
+ values[valuesById[3] = "UPDATING"] = 3;
+ values[valuesById[4] = "FAILED"] = 4;
+ return values;
+ })();
+
+ return MetadataImport;
+ })();
+
+ v1.MetadataExport = (function() {
+
+ /**
+ * Properties of a MetadataExport.
+ * @memberof google.cloud.metastore.v1
+ * @interface IMetadataExport
+ * @property {string|null} [destinationGcsUri] MetadataExport destinationGcsUri
+ * @property {google.protobuf.ITimestamp|null} [startTime] MetadataExport startTime
+ * @property {google.protobuf.ITimestamp|null} [endTime] MetadataExport endTime
+ * @property {google.cloud.metastore.v1.MetadataExport.State|null} [state] MetadataExport state
+ * @property {google.cloud.metastore.v1.DatabaseDumpSpec.Type|null} [databaseDumpType] MetadataExport databaseDumpType
+ */
+
+ /**
+ * Constructs a new MetadataExport.
+ * @memberof google.cloud.metastore.v1
+ * @classdesc Represents a MetadataExport.
+ * @implements IMetadataExport
+ * @constructor
+ * @param {google.cloud.metastore.v1.IMetadataExport=} [properties] Properties to set
+ */
+ function MetadataExport(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]];
+ }
+
+ /**
+ * MetadataExport destinationGcsUri.
+ * @member {string|null|undefined} destinationGcsUri
+ * @memberof google.cloud.metastore.v1.MetadataExport
+ * @instance
+ */
+ MetadataExport.prototype.destinationGcsUri = null;
+
+ /**
+ * MetadataExport startTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} startTime
+ * @memberof google.cloud.metastore.v1.MetadataExport
+ * @instance
+ */
+ MetadataExport.prototype.startTime = null;
+
+ /**
+ * MetadataExport endTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} endTime
+ * @memberof google.cloud.metastore.v1.MetadataExport
+ * @instance
+ */
+ MetadataExport.prototype.endTime = null;
+
+ /**
+ * MetadataExport state.
+ * @member {google.cloud.metastore.v1.MetadataExport.State} state
+ * @memberof google.cloud.metastore.v1.MetadataExport
+ * @instance
+ */
+ MetadataExport.prototype.state = 0;
+
+ /**
+ * MetadataExport databaseDumpType.
+ * @member {google.cloud.metastore.v1.DatabaseDumpSpec.Type} databaseDumpType
+ * @memberof google.cloud.metastore.v1.MetadataExport
+ * @instance
+ */
+ MetadataExport.prototype.databaseDumpType = 0;
+
+ // OneOf field names bound to virtual getters and setters
+ var $oneOfFields;
+
+ /**
+ * MetadataExport destination.
+ * @member {"destinationGcsUri"|undefined} destination
+ * @memberof google.cloud.metastore.v1.MetadataExport
+ * @instance
+ */
+ Object.defineProperty(MetadataExport.prototype, "destination", {
+ get: $util.oneOfGetter($oneOfFields = ["destinationGcsUri"]),
+ set: $util.oneOfSetter($oneOfFields)
+ });
+
+ /**
+ * Creates a new MetadataExport instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.metastore.v1.MetadataExport
+ * @static
+ * @param {google.cloud.metastore.v1.IMetadataExport=} [properties] Properties to set
+ * @returns {google.cloud.metastore.v1.MetadataExport} MetadataExport instance
+ */
+ MetadataExport.create = function create(properties) {
+ return new MetadataExport(properties);
+ };
+
+ /**
+ * Encodes the specified MetadataExport message. Does not implicitly {@link google.cloud.metastore.v1.MetadataExport.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.metastore.v1.MetadataExport
+ * @static
+ * @param {google.cloud.metastore.v1.IMetadataExport} message MetadataExport message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ MetadataExport.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.startTime != null && Object.hasOwnProperty.call(message, "startTime"))
+ $root.google.protobuf.Timestamp.encode(message.startTime, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
+ if (message.endTime != null && Object.hasOwnProperty.call(message, "endTime"))
+ $root.google.protobuf.Timestamp.encode(message.endTime, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
+ if (message.state != null && Object.hasOwnProperty.call(message, "state"))
+ writer.uint32(/* id 3, wireType 0 =*/24).int32(message.state);
+ if (message.destinationGcsUri != null && Object.hasOwnProperty.call(message, "destinationGcsUri"))
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.destinationGcsUri);
+ if (message.databaseDumpType != null && Object.hasOwnProperty.call(message, "databaseDumpType"))
+ writer.uint32(/* id 5, wireType 0 =*/40).int32(message.databaseDumpType);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified MetadataExport message, length delimited. Does not implicitly {@link google.cloud.metastore.v1.MetadataExport.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.metastore.v1.MetadataExport
+ * @static
+ * @param {google.cloud.metastore.v1.IMetadataExport} message MetadataExport message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ MetadataExport.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a MetadataExport message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.metastore.v1.MetadataExport
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.metastore.v1.MetadataExport} MetadataExport
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ MetadataExport.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.metastore.v1.MetadataExport();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 4: {
+ message.destinationGcsUri = reader.string();
+ break;
+ }
+ case 1: {
+ message.startTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
+ break;
+ }
+ case 2: {
+ message.endTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
+ break;
+ }
+ case 3: {
+ message.state = reader.int32();
+ break;
+ }
+ case 5: {
+ message.databaseDumpType = reader.int32();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a MetadataExport message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.metastore.v1.MetadataExport
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.metastore.v1.MetadataExport} MetadataExport
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ MetadataExport.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a MetadataExport message.
+ * @function verify
+ * @memberof google.cloud.metastore.v1.MetadataExport
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ MetadataExport.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ var properties = {};
+ if (message.destinationGcsUri != null && message.hasOwnProperty("destinationGcsUri")) {
+ properties.destination = 1;
+ if (!$util.isString(message.destinationGcsUri))
+ return "destinationGcsUri: string expected";
+ }
+ if (message.startTime != null && message.hasOwnProperty("startTime")) {
+ var error = $root.google.protobuf.Timestamp.verify(message.startTime);
+ if (error)
+ return "startTime." + error;
+ }
+ if (message.endTime != null && message.hasOwnProperty("endTime")) {
+ var error = $root.google.protobuf.Timestamp.verify(message.endTime);
+ if (error)
+ return "endTime." + error;
+ }
+ if (message.state != null && message.hasOwnProperty("state"))
+ switch (message.state) {
+ default:
+ return "state: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ case 3:
+ case 4:
+ break;
+ }
+ if (message.databaseDumpType != null && message.hasOwnProperty("databaseDumpType"))
+ switch (message.databaseDumpType) {
+ default:
+ return "databaseDumpType: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ break;
+ }
+ return null;
+ };
+
+ /**
+ * Creates a MetadataExport message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.metastore.v1.MetadataExport
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.metastore.v1.MetadataExport} MetadataExport
+ */
+ MetadataExport.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.metastore.v1.MetadataExport)
+ return object;
+ var message = new $root.google.cloud.metastore.v1.MetadataExport();
+ if (object.destinationGcsUri != null)
+ message.destinationGcsUri = String(object.destinationGcsUri);
+ if (object.startTime != null) {
+ if (typeof object.startTime !== "object")
+ throw TypeError(".google.cloud.metastore.v1.MetadataExport.startTime: object expected");
+ message.startTime = $root.google.protobuf.Timestamp.fromObject(object.startTime);
+ }
+ if (object.endTime != null) {
+ if (typeof object.endTime !== "object")
+ throw TypeError(".google.cloud.metastore.v1.MetadataExport.endTime: object expected");
+ message.endTime = $root.google.protobuf.Timestamp.fromObject(object.endTime);
+ }
+ switch (object.state) {
+ default:
+ if (typeof object.state === "number") {
+ message.state = object.state;
+ break;
+ }
+ break;
+ case "STATE_UNSPECIFIED":
+ case 0:
+ message.state = 0;
+ break;
+ case "RUNNING":
+ case 1:
+ message.state = 1;
+ break;
+ case "SUCCEEDED":
+ case 2:
+ message.state = 2;
+ break;
+ case "FAILED":
+ case 3:
+ message.state = 3;
+ break;
+ case "CANCELLED":
+ case 4:
+ message.state = 4;
+ break;
+ }
+ switch (object.databaseDumpType) {
+ default:
+ if (typeof object.databaseDumpType === "number") {
+ message.databaseDumpType = object.databaseDumpType;
+ break;
+ }
+ break;
+ case "TYPE_UNSPECIFIED":
+ case 0:
+ message.databaseDumpType = 0;
+ break;
+ case "MYSQL":
+ case 1:
+ message.databaseDumpType = 1;
+ break;
+ case "AVRO":
+ case 2:
+ message.databaseDumpType = 2;
+ break;
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a MetadataExport message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.metastore.v1.MetadataExport
+ * @static
+ * @param {google.cloud.metastore.v1.MetadataExport} message MetadataExport
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ MetadataExport.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.startTime = null;
+ object.endTime = null;
+ object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0;
+ object.databaseDumpType = options.enums === String ? "TYPE_UNSPECIFIED" : 0;
+ }
+ if (message.startTime != null && message.hasOwnProperty("startTime"))
+ object.startTime = $root.google.protobuf.Timestamp.toObject(message.startTime, options);
+ if (message.endTime != null && message.hasOwnProperty("endTime"))
+ object.endTime = $root.google.protobuf.Timestamp.toObject(message.endTime, options);
+ if (message.state != null && message.hasOwnProperty("state"))
+ object.state = options.enums === String ? $root.google.cloud.metastore.v1.MetadataExport.State[message.state] === undefined ? message.state : $root.google.cloud.metastore.v1.MetadataExport.State[message.state] : message.state;
+ if (message.destinationGcsUri != null && message.hasOwnProperty("destinationGcsUri")) {
+ object.destinationGcsUri = message.destinationGcsUri;
+ if (options.oneofs)
+ object.destination = "destinationGcsUri";
+ }
+ if (message.databaseDumpType != null && message.hasOwnProperty("databaseDumpType"))
+ object.databaseDumpType = options.enums === String ? $root.google.cloud.metastore.v1.DatabaseDumpSpec.Type[message.databaseDumpType] === undefined ? message.databaseDumpType : $root.google.cloud.metastore.v1.DatabaseDumpSpec.Type[message.databaseDumpType] : message.databaseDumpType;
+ return object;
+ };
+
+ /**
+ * Converts this MetadataExport to JSON.
+ * @function toJSON
+ * @memberof google.cloud.metastore.v1.MetadataExport
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ MetadataExport.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for MetadataExport
+ * @function getTypeUrl
+ * @memberof google.cloud.metastore.v1.MetadataExport
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ MetadataExport.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.metastore.v1.MetadataExport";
+ };
+
+ /**
+ * State enum.
+ * @name google.cloud.metastore.v1.MetadataExport.State
+ * @enum {number}
+ * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value
+ * @property {number} RUNNING=1 RUNNING value
+ * @property {number} SUCCEEDED=2 SUCCEEDED value
+ * @property {number} FAILED=3 FAILED value
+ * @property {number} CANCELLED=4 CANCELLED value
+ */
+ MetadataExport.State = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "STATE_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "RUNNING"] = 1;
+ values[valuesById[2] = "SUCCEEDED"] = 2;
+ values[valuesById[3] = "FAILED"] = 3;
+ values[valuesById[4] = "CANCELLED"] = 4;
+ return values;
+ })();
+
+ return MetadataExport;
+ })();
+
+ v1.Backup = (function() {
+
+ /**
+ * Properties of a Backup.
+ * @memberof google.cloud.metastore.v1
+ * @interface IBackup
+ * @property {string|null} [name] Backup name
+ * @property {google.protobuf.ITimestamp|null} [createTime] Backup createTime
+ * @property {google.protobuf.ITimestamp|null} [endTime] Backup endTime
+ * @property {google.cloud.metastore.v1.Backup.State|null} [state] Backup state
+ * @property {google.cloud.metastore.v1.IService|null} [serviceRevision] Backup serviceRevision
+ * @property {string|null} [description] Backup description
+ * @property {Array.|null} [restoringServices] Backup restoringServices
+ */
+
+ /**
+ * Constructs a new Backup.
+ * @memberof google.cloud.metastore.v1
+ * @classdesc Represents a Backup.
+ * @implements IBackup
+ * @constructor
+ * @param {google.cloud.metastore.v1.IBackup=} [properties] Properties to set
+ */
+ function Backup(properties) {
+ this.restoringServices = [];
+ 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]];
+ }
+
+ /**
+ * Backup name.
+ * @member {string} name
+ * @memberof google.cloud.metastore.v1.Backup
+ * @instance
+ */
+ Backup.prototype.name = "";
+
+ /**
+ * Backup createTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} createTime
+ * @memberof google.cloud.metastore.v1.Backup
+ * @instance
+ */
+ Backup.prototype.createTime = null;
+
+ /**
+ * Backup endTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} endTime
+ * @memberof google.cloud.metastore.v1.Backup
+ * @instance
+ */
+ Backup.prototype.endTime = null;
+
+ /**
+ * Backup state.
+ * @member {google.cloud.metastore.v1.Backup.State} state
+ * @memberof google.cloud.metastore.v1.Backup
+ * @instance
+ */
+ Backup.prototype.state = 0;
+
+ /**
+ * Backup serviceRevision.
+ * @member {google.cloud.metastore.v1.IService|null|undefined} serviceRevision
+ * @memberof google.cloud.metastore.v1.Backup
+ * @instance
+ */
+ Backup.prototype.serviceRevision = null;
+
+ /**
+ * Backup description.
+ * @member {string} description
+ * @memberof google.cloud.metastore.v1.Backup
+ * @instance
+ */
+ Backup.prototype.description = "";
+
+ /**
+ * Backup restoringServices.
+ * @member {Array.} restoringServices
+ * @memberof google.cloud.metastore.v1.Backup
+ * @instance
+ */
+ Backup.prototype.restoringServices = $util.emptyArray;
+
+ /**
+ * Creates a new Backup instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.metastore.v1.Backup
+ * @static
+ * @param {google.cloud.metastore.v1.IBackup=} [properties] Properties to set
+ * @returns {google.cloud.metastore.v1.Backup} Backup instance
+ */
+ Backup.create = function create(properties) {
+ return new Backup(properties);
+ };
+
+ /**
+ * Encodes the specified Backup message. Does not implicitly {@link google.cloud.metastore.v1.Backup.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.metastore.v1.Backup
+ * @static
+ * @param {google.cloud.metastore.v1.IBackup} message Backup message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Backup.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.name != null && Object.hasOwnProperty.call(message, "name"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
+ if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime"))
+ $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
+ if (message.endTime != null && Object.hasOwnProperty.call(message, "endTime"))
+ $root.google.protobuf.Timestamp.encode(message.endTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
+ if (message.state != null && Object.hasOwnProperty.call(message, "state"))
+ writer.uint32(/* id 4, wireType 0 =*/32).int32(message.state);
+ if (message.serviceRevision != null && Object.hasOwnProperty.call(message, "serviceRevision"))
+ $root.google.cloud.metastore.v1.Service.encode(message.serviceRevision, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
+ if (message.description != null && Object.hasOwnProperty.call(message, "description"))
+ writer.uint32(/* id 6, wireType 2 =*/50).string(message.description);
+ if (message.restoringServices != null && message.restoringServices.length)
+ for (var i = 0; i < message.restoringServices.length; ++i)
+ writer.uint32(/* id 7, wireType 2 =*/58).string(message.restoringServices[i]);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified Backup message, length delimited. Does not implicitly {@link google.cloud.metastore.v1.Backup.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.metastore.v1.Backup
+ * @static
+ * @param {google.cloud.metastore.v1.IBackup} message Backup message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Backup.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a Backup message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.metastore.v1.Backup
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.metastore.v1.Backup} Backup
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Backup.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.metastore.v1.Backup();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.name = reader.string();
+ break;
+ }
+ case 2: {
+ message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
+ break;
+ }
+ case 3: {
+ message.endTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
+ break;
+ }
+ case 4: {
+ message.state = reader.int32();
+ break;
+ }
+ case 5: {
+ message.serviceRevision = $root.google.cloud.metastore.v1.Service.decode(reader, reader.uint32());
+ break;
+ }
+ case 6: {
+ message.description = reader.string();
+ break;
+ }
+ case 7: {
+ if (!(message.restoringServices && message.restoringServices.length))
+ message.restoringServices = [];
+ message.restoringServices.push(reader.string());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a Backup message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.metastore.v1.Backup
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.metastore.v1.Backup} Backup
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Backup.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a Backup message.
+ * @function verify
+ * @memberof google.cloud.metastore.v1.Backup
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ Backup.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.name != null && message.hasOwnProperty("name"))
+ if (!$util.isString(message.name))
+ return "name: string expected";
+ if (message.createTime != null && message.hasOwnProperty("createTime")) {
+ var error = $root.google.protobuf.Timestamp.verify(message.createTime);
+ if (error)
+ return "createTime." + error;
+ }
+ if (message.endTime != null && message.hasOwnProperty("endTime")) {
+ var error = $root.google.protobuf.Timestamp.verify(message.endTime);
+ if (error)
+ return "endTime." + error;
+ }
+ if (message.state != null && message.hasOwnProperty("state"))
+ switch (message.state) {
+ default:
+ return "state: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ case 3:
+ case 4:
+ case 5:
+ break;
+ }
+ if (message.serviceRevision != null && message.hasOwnProperty("serviceRevision")) {
+ var error = $root.google.cloud.metastore.v1.Service.verify(message.serviceRevision);
+ if (error)
+ return "serviceRevision." + error;
+ }
+ if (message.description != null && message.hasOwnProperty("description"))
+ if (!$util.isString(message.description))
+ return "description: string expected";
+ if (message.restoringServices != null && message.hasOwnProperty("restoringServices")) {
+ if (!Array.isArray(message.restoringServices))
+ return "restoringServices: array expected";
+ for (var i = 0; i < message.restoringServices.length; ++i)
+ if (!$util.isString(message.restoringServices[i]))
+ return "restoringServices: string[] expected";
+ }
+ return null;
+ };
+
+ /**
+ * Creates a Backup message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.metastore.v1.Backup
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.metastore.v1.Backup} Backup
+ */
+ Backup.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.metastore.v1.Backup)
+ return object;
+ var message = new $root.google.cloud.metastore.v1.Backup();
+ if (object.name != null)
+ message.name = String(object.name);
+ if (object.createTime != null) {
+ if (typeof object.createTime !== "object")
+ throw TypeError(".google.cloud.metastore.v1.Backup.createTime: object expected");
+ message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime);
+ }
+ if (object.endTime != null) {
+ if (typeof object.endTime !== "object")
+ throw TypeError(".google.cloud.metastore.v1.Backup.endTime: object expected");
+ message.endTime = $root.google.protobuf.Timestamp.fromObject(object.endTime);
+ }
+ switch (object.state) {
+ default:
+ if (typeof object.state === "number") {
+ message.state = object.state;
+ break;
+ }
+ break;
+ case "STATE_UNSPECIFIED":
+ case 0:
+ message.state = 0;
+ break;
+ case "CREATING":
+ case 1:
+ message.state = 1;
+ break;
+ case "DELETING":
+ case 2:
+ message.state = 2;
+ break;
+ case "ACTIVE":
+ case 3:
+ message.state = 3;
+ break;
+ case "FAILED":
+ case 4:
+ message.state = 4;
+ break;
+ case "RESTORING":
+ case 5:
+ message.state = 5;
+ break;
+ }
+ if (object.serviceRevision != null) {
+ if (typeof object.serviceRevision !== "object")
+ throw TypeError(".google.cloud.metastore.v1.Backup.serviceRevision: object expected");
+ message.serviceRevision = $root.google.cloud.metastore.v1.Service.fromObject(object.serviceRevision);
+ }
+ if (object.description != null)
+ message.description = String(object.description);
+ if (object.restoringServices) {
+ if (!Array.isArray(object.restoringServices))
+ throw TypeError(".google.cloud.metastore.v1.Backup.restoringServices: array expected");
+ message.restoringServices = [];
+ for (var i = 0; i < object.restoringServices.length; ++i)
+ message.restoringServices[i] = String(object.restoringServices[i]);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a Backup message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.metastore.v1.Backup
+ * @static
+ * @param {google.cloud.metastore.v1.Backup} message Backup
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ Backup.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.restoringServices = [];
+ if (options.defaults) {
+ object.name = "";
+ object.createTime = null;
+ object.endTime = null;
+ object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0;
+ object.serviceRevision = null;
+ object.description = "";
+ }
+ if (message.name != null && message.hasOwnProperty("name"))
+ object.name = message.name;
+ if (message.createTime != null && message.hasOwnProperty("createTime"))
+ object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options);
+ if (message.endTime != null && message.hasOwnProperty("endTime"))
+ object.endTime = $root.google.protobuf.Timestamp.toObject(message.endTime, options);
+ if (message.state != null && message.hasOwnProperty("state"))
+ object.state = options.enums === String ? $root.google.cloud.metastore.v1.Backup.State[message.state] === undefined ? message.state : $root.google.cloud.metastore.v1.Backup.State[message.state] : message.state;
+ if (message.serviceRevision != null && message.hasOwnProperty("serviceRevision"))
+ object.serviceRevision = $root.google.cloud.metastore.v1.Service.toObject(message.serviceRevision, options);
+ if (message.description != null && message.hasOwnProperty("description"))
+ object.description = message.description;
+ if (message.restoringServices && message.restoringServices.length) {
+ object.restoringServices = [];
+ for (var j = 0; j < message.restoringServices.length; ++j)
+ object.restoringServices[j] = message.restoringServices[j];
+ }
+ return object;
+ };
+
+ /**
+ * Converts this Backup to JSON.
+ * @function toJSON
+ * @memberof google.cloud.metastore.v1.Backup
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ Backup.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for Backup
+ * @function getTypeUrl
+ * @memberof google.cloud.metastore.v1.Backup
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ Backup.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.metastore.v1.Backup";
+ };
+
+ /**
+ * State enum.
+ * @name google.cloud.metastore.v1.Backup.State
+ * @enum {number}
+ * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value
+ * @property {number} CREATING=1 CREATING value
+ * @property {number} DELETING=2 DELETING value
+ * @property {number} ACTIVE=3 ACTIVE value
+ * @property {number} FAILED=4 FAILED value
+ * @property {number} RESTORING=5 RESTORING value
+ */
+ Backup.State = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "STATE_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "CREATING"] = 1;
+ values[valuesById[2] = "DELETING"] = 2;
+ values[valuesById[3] = "ACTIVE"] = 3;
+ values[valuesById[4] = "FAILED"] = 4;
+ values[valuesById[5] = "RESTORING"] = 5;
+ return values;
+ })();
+
+ return Backup;
+ })();
+
+ v1.Restore = (function() {
+
+ /**
+ * Properties of a Restore.
+ * @memberof google.cloud.metastore.v1
+ * @interface IRestore
+ * @property {google.protobuf.ITimestamp|null} [startTime] Restore startTime
+ * @property {google.protobuf.ITimestamp|null} [endTime] Restore endTime
+ * @property {google.cloud.metastore.v1.Restore.State|null} [state] Restore state
+ * @property {string|null} [backup] Restore backup
+ * @property {google.cloud.metastore.v1.Restore.RestoreType|null} [type] Restore type
+ * @property {string|null} [details] Restore details
+ */
+
+ /**
+ * Constructs a new Restore.
+ * @memberof google.cloud.metastore.v1
+ * @classdesc Represents a Restore.
+ * @implements IRestore
+ * @constructor
+ * @param {google.cloud.metastore.v1.IRestore=} [properties] Properties to set
+ */
+ function Restore(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]];
+ }
+
+ /**
+ * Restore startTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} startTime
+ * @memberof google.cloud.metastore.v1.Restore
+ * @instance
+ */
+ Restore.prototype.startTime = null;
+
+ /**
+ * Restore endTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} endTime
+ * @memberof google.cloud.metastore.v1.Restore
+ * @instance
+ */
+ Restore.prototype.endTime = null;
+
+ /**
+ * Restore state.
+ * @member {google.cloud.metastore.v1.Restore.State} state
+ * @memberof google.cloud.metastore.v1.Restore
+ * @instance
+ */
+ Restore.prototype.state = 0;
+
+ /**
+ * Restore backup.
+ * @member {string} backup
+ * @memberof google.cloud.metastore.v1.Restore
+ * @instance
+ */
+ Restore.prototype.backup = "";
+
+ /**
+ * Restore type.
+ * @member {google.cloud.metastore.v1.Restore.RestoreType} type
+ * @memberof google.cloud.metastore.v1.Restore
+ * @instance
+ */
+ Restore.prototype.type = 0;
+
+ /**
+ * Restore details.
+ * @member {string} details
+ * @memberof google.cloud.metastore.v1.Restore
+ * @instance
+ */
+ Restore.prototype.details = "";
+
+ /**
+ * Creates a new Restore instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.metastore.v1.Restore
+ * @static
+ * @param {google.cloud.metastore.v1.IRestore=} [properties] Properties to set
+ * @returns {google.cloud.metastore.v1.Restore} Restore instance
+ */
+ Restore.create = function create(properties) {
+ return new Restore(properties);
+ };
+
+ /**
+ * Encodes the specified Restore message. Does not implicitly {@link google.cloud.metastore.v1.Restore.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.metastore.v1.Restore
+ * @static
+ * @param {google.cloud.metastore.v1.IRestore} message Restore message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Restore.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.startTime != null && Object.hasOwnProperty.call(message, "startTime"))
+ $root.google.protobuf.Timestamp.encode(message.startTime, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
+ if (message.endTime != null && Object.hasOwnProperty.call(message, "endTime"))
+ $root.google.protobuf.Timestamp.encode(message.endTime, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
+ if (message.state != null && Object.hasOwnProperty.call(message, "state"))
+ writer.uint32(/* id 3, wireType 0 =*/24).int32(message.state);
+ if (message.backup != null && Object.hasOwnProperty.call(message, "backup"))
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.backup);
+ if (message.type != null && Object.hasOwnProperty.call(message, "type"))
+ writer.uint32(/* id 5, wireType 0 =*/40).int32(message.type);
+ if (message.details != null && Object.hasOwnProperty.call(message, "details"))
+ writer.uint32(/* id 6, wireType 2 =*/50).string(message.details);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified Restore message, length delimited. Does not implicitly {@link google.cloud.metastore.v1.Restore.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.metastore.v1.Restore
+ * @static
+ * @param {google.cloud.metastore.v1.IRestore} message Restore message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Restore.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a Restore message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.metastore.v1.Restore
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.metastore.v1.Restore} Restore
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Restore.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.metastore.v1.Restore();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.startTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
+ break;
+ }
+ case 2: {
+ message.endTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
+ break;
+ }
+ case 3: {
+ message.state = reader.int32();
+ break;
+ }
+ case 4: {
+ message.backup = reader.string();
+ break;
+ }
+ case 5: {
+ message.type = reader.int32();
+ break;
+ }
+ case 6: {
+ message.details = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a Restore message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.metastore.v1.Restore
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.metastore.v1.Restore} Restore
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Restore.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a Restore message.
+ * @function verify
+ * @memberof google.cloud.metastore.v1.Restore
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ Restore.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.startTime != null && message.hasOwnProperty("startTime")) {
+ var error = $root.google.protobuf.Timestamp.verify(message.startTime);
+ if (error)
+ return "startTime." + error;
+ }
+ if (message.endTime != null && message.hasOwnProperty("endTime")) {
+ var error = $root.google.protobuf.Timestamp.verify(message.endTime);
+ if (error)
+ return "endTime." + error;
+ }
+ if (message.state != null && message.hasOwnProperty("state"))
+ switch (message.state) {
+ default:
+ return "state: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ case 3:
+ case 4:
+ break;
+ }
+ if (message.backup != null && message.hasOwnProperty("backup"))
+ if (!$util.isString(message.backup))
+ return "backup: string expected";
+ if (message.type != null && message.hasOwnProperty("type"))
+ switch (message.type) {
+ default:
+ return "type: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ break;
+ }
+ if (message.details != null && message.hasOwnProperty("details"))
+ if (!$util.isString(message.details))
+ return "details: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a Restore message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.metastore.v1.Restore
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.metastore.v1.Restore} Restore
+ */
+ Restore.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.metastore.v1.Restore)
+ return object;
+ var message = new $root.google.cloud.metastore.v1.Restore();
+ if (object.startTime != null) {
+ if (typeof object.startTime !== "object")
+ throw TypeError(".google.cloud.metastore.v1.Restore.startTime: object expected");
+ message.startTime = $root.google.protobuf.Timestamp.fromObject(object.startTime);
+ }
+ if (object.endTime != null) {
+ if (typeof object.endTime !== "object")
+ throw TypeError(".google.cloud.metastore.v1.Restore.endTime: object expected");
+ message.endTime = $root.google.protobuf.Timestamp.fromObject(object.endTime);
+ }
+ switch (object.state) {
+ default:
+ if (typeof object.state === "number") {
+ message.state = object.state;
+ break;
+ }
+ break;
+ case "STATE_UNSPECIFIED":
+ case 0:
+ message.state = 0;
+ break;
+ case "RUNNING":
+ case 1:
+ message.state = 1;
+ break;
+ case "SUCCEEDED":
+ case 2:
+ message.state = 2;
+ break;
+ case "FAILED":
+ case 3:
+ message.state = 3;
+ break;
+ case "CANCELLED":
+ case 4:
+ message.state = 4;
+ break;
+ }
+ if (object.backup != null)
+ message.backup = String(object.backup);
+ switch (object.type) {
+ default:
+ if (typeof object.type === "number") {
+ message.type = object.type;
+ break;
+ }
+ break;
+ case "RESTORE_TYPE_UNSPECIFIED":
+ case 0:
+ message.type = 0;
+ break;
+ case "FULL":
+ case 1:
+ message.type = 1;
+ break;
+ case "METADATA_ONLY":
+ case 2:
+ message.type = 2;
+ break;
+ }
+ if (object.details != null)
+ message.details = String(object.details);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a Restore message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.metastore.v1.Restore
+ * @static
+ * @param {google.cloud.metastore.v1.Restore} message Restore
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ Restore.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.startTime = null;
+ object.endTime = null;
+ object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0;
+ object.backup = "";
+ object.type = options.enums === String ? "RESTORE_TYPE_UNSPECIFIED" : 0;
+ object.details = "";
+ }
+ if (message.startTime != null && message.hasOwnProperty("startTime"))
+ object.startTime = $root.google.protobuf.Timestamp.toObject(message.startTime, options);
+ if (message.endTime != null && message.hasOwnProperty("endTime"))
+ object.endTime = $root.google.protobuf.Timestamp.toObject(message.endTime, options);
+ if (message.state != null && message.hasOwnProperty("state"))
+ object.state = options.enums === String ? $root.google.cloud.metastore.v1.Restore.State[message.state] === undefined ? message.state : $root.google.cloud.metastore.v1.Restore.State[message.state] : message.state;
+ if (message.backup != null && message.hasOwnProperty("backup"))
+ object.backup = message.backup;
+ if (message.type != null && message.hasOwnProperty("type"))
+ object.type = options.enums === String ? $root.google.cloud.metastore.v1.Restore.RestoreType[message.type] === undefined ? message.type : $root.google.cloud.metastore.v1.Restore.RestoreType[message.type] : message.type;
+ if (message.details != null && message.hasOwnProperty("details"))
+ object.details = message.details;
+ return object;
+ };
+
+ /**
+ * Converts this Restore to JSON.
+ * @function toJSON
+ * @memberof google.cloud.metastore.v1.Restore
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ Restore.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for Restore
+ * @function getTypeUrl
+ * @memberof google.cloud.metastore.v1.Restore
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ Restore.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.metastore.v1.Restore";
+ };
+
+ /**
+ * State enum.
+ * @name google.cloud.metastore.v1.Restore.State
+ * @enum {number}
+ * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value
+ * @property {number} RUNNING=1 RUNNING value
+ * @property {number} SUCCEEDED=2 SUCCEEDED value
+ * @property {number} FAILED=3 FAILED value
+ * @property {number} CANCELLED=4 CANCELLED value
+ */
+ Restore.State = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "STATE_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "RUNNING"] = 1;
+ values[valuesById[2] = "SUCCEEDED"] = 2;
+ values[valuesById[3] = "FAILED"] = 3;
+ values[valuesById[4] = "CANCELLED"] = 4;
+ return values;
+ })();
+
+ /**
+ * RestoreType enum.
+ * @name google.cloud.metastore.v1.Restore.RestoreType
+ * @enum {number}
+ * @property {number} RESTORE_TYPE_UNSPECIFIED=0 RESTORE_TYPE_UNSPECIFIED value
+ * @property {number} FULL=1 FULL value
+ * @property {number} METADATA_ONLY=2 METADATA_ONLY value
+ */
+ Restore.RestoreType = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "RESTORE_TYPE_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "FULL"] = 1;
+ values[valuesById[2] = "METADATA_ONLY"] = 2;
+ return values;
+ })();
+
+ return Restore;
+ })();
+
+ v1.ListServicesRequest = (function() {
+
+ /**
+ * Properties of a ListServicesRequest.
+ * @memberof google.cloud.metastore.v1
+ * @interface IListServicesRequest
+ * @property {string|null} [parent] ListServicesRequest parent
+ * @property {number|null} [pageSize] ListServicesRequest pageSize
+ * @property {string|null} [pageToken] ListServicesRequest pageToken
+ * @property {string|null} [filter] ListServicesRequest filter
+ * @property {string|null} [orderBy] ListServicesRequest orderBy
+ */
+
+ /**
+ * Constructs a new ListServicesRequest.
+ * @memberof google.cloud.metastore.v1
+ * @classdesc Represents a ListServicesRequest.
+ * @implements IListServicesRequest
+ * @constructor
+ * @param {google.cloud.metastore.v1.IListServicesRequest=} [properties] Properties to set
+ */
+ function ListServicesRequest(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]];
+ }
+
+ /**
+ * ListServicesRequest parent.
+ * @member {string} parent
+ * @memberof google.cloud.metastore.v1.ListServicesRequest
+ * @instance
+ */
+ ListServicesRequest.prototype.parent = "";
+
+ /**
+ * ListServicesRequest pageSize.
+ * @member {number} pageSize
+ * @memberof google.cloud.metastore.v1.ListServicesRequest
+ * @instance
+ */
+ ListServicesRequest.prototype.pageSize = 0;
+
+ /**
+ * ListServicesRequest pageToken.
+ * @member {string} pageToken
+ * @memberof google.cloud.metastore.v1.ListServicesRequest
+ * @instance
+ */
+ ListServicesRequest.prototype.pageToken = "";
+
+ /**
+ * ListServicesRequest filter.
+ * @member {string} filter
+ * @memberof google.cloud.metastore.v1.ListServicesRequest
+ * @instance
+ */
+ ListServicesRequest.prototype.filter = "";
+
+ /**
+ * ListServicesRequest orderBy.
+ * @member {string} orderBy
+ * @memberof google.cloud.metastore.v1.ListServicesRequest
+ * @instance
+ */
+ ListServicesRequest.prototype.orderBy = "";
+
+ /**
+ * Creates a new ListServicesRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.metastore.v1.ListServicesRequest
+ * @static
+ * @param {google.cloud.metastore.v1.IListServicesRequest=} [properties] Properties to set
+ * @returns {google.cloud.metastore.v1.ListServicesRequest} ListServicesRequest instance
+ */
+ ListServicesRequest.create = function create(properties) {
+ return new ListServicesRequest(properties);
+ };
+
+ /**
+ * Encodes the specified ListServicesRequest message. Does not implicitly {@link google.cloud.metastore.v1.ListServicesRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.metastore.v1.ListServicesRequest
+ * @static
+ * @param {google.cloud.metastore.v1.IListServicesRequest} message ListServicesRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListServicesRequest.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.parent != null && Object.hasOwnProperty.call(message, "parent"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent);
+ if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize"))
+ writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize);
+ if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken);
+ if (message.filter != null && Object.hasOwnProperty.call(message, "filter"))
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.filter);
+ if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy"))
+ writer.uint32(/* id 5, wireType 2 =*/42).string(message.orderBy);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ListServicesRequest message, length delimited. Does not implicitly {@link google.cloud.metastore.v1.ListServicesRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.metastore.v1.ListServicesRequest
+ * @static
+ * @param {google.cloud.metastore.v1.IListServicesRequest} message ListServicesRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListServicesRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ListServicesRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.metastore.v1.ListServicesRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.metastore.v1.ListServicesRequest} ListServicesRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListServicesRequest.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.metastore.v1.ListServicesRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.parent = reader.string();
+ break;
+ }
+ case 2: {
+ message.pageSize = reader.int32();
+ break;
+ }
+ case 3: {
+ message.pageToken = reader.string();
+ break;
+ }
+ case 4: {
+ message.filter = reader.string();
+ break;
+ }
+ case 5: {
+ message.orderBy = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ListServicesRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.metastore.v1.ListServicesRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.metastore.v1.ListServicesRequest} ListServicesRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListServicesRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ListServicesRequest message.
+ * @function verify
+ * @memberof google.cloud.metastore.v1.ListServicesRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ListServicesRequest.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.parent != null && message.hasOwnProperty("parent"))
+ if (!$util.isString(message.parent))
+ return "parent: string expected";
+ if (message.pageSize != null && message.hasOwnProperty("pageSize"))
+ if (!$util.isInteger(message.pageSize))
+ return "pageSize: integer expected";
+ if (message.pageToken != null && message.hasOwnProperty("pageToken"))
+ if (!$util.isString(message.pageToken))
+ return "pageToken: string expected";
+ if (message.filter != null && message.hasOwnProperty("filter"))
+ if (!$util.isString(message.filter))
+ return "filter: string expected";
+ if (message.orderBy != null && message.hasOwnProperty("orderBy"))
+ if (!$util.isString(message.orderBy))
+ return "orderBy: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a ListServicesRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.metastore.v1.ListServicesRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.metastore.v1.ListServicesRequest} ListServicesRequest
+ */
+ ListServicesRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.metastore.v1.ListServicesRequest)
+ return object;
+ var message = new $root.google.cloud.metastore.v1.ListServicesRequest();
+ if (object.parent != null)
+ message.parent = String(object.parent);
+ if (object.pageSize != null)
+ message.pageSize = object.pageSize | 0;
+ if (object.pageToken != null)
+ message.pageToken = String(object.pageToken);
+ if (object.filter != null)
+ message.filter = String(object.filter);
+ if (object.orderBy != null)
+ message.orderBy = String(object.orderBy);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ListServicesRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.metastore.v1.ListServicesRequest
+ * @static
+ * @param {google.cloud.metastore.v1.ListServicesRequest} message ListServicesRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ListServicesRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.parent = "";
+ object.pageSize = 0;
+ object.pageToken = "";
+ object.filter = "";
+ object.orderBy = "";
+ }
+ if (message.parent != null && message.hasOwnProperty("parent"))
+ object.parent = message.parent;
+ if (message.pageSize != null && message.hasOwnProperty("pageSize"))
+ object.pageSize = message.pageSize;
+ if (message.pageToken != null && message.hasOwnProperty("pageToken"))
+ object.pageToken = message.pageToken;
+ if (message.filter != null && message.hasOwnProperty("filter"))
+ object.filter = message.filter;
+ if (message.orderBy != null && message.hasOwnProperty("orderBy"))
+ object.orderBy = message.orderBy;
+ return object;
+ };
+
+ /**
+ * Converts this ListServicesRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.metastore.v1.ListServicesRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ListServicesRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ListServicesRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.metastore.v1.ListServicesRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ListServicesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.metastore.v1.ListServicesRequest";
+ };
+
+ return ListServicesRequest;
+ })();
+
+ v1.ListServicesResponse = (function() {
+
+ /**
+ * Properties of a ListServicesResponse.
+ * @memberof google.cloud.metastore.v1
+ * @interface IListServicesResponse
+ * @property {Array.|null} [services] ListServicesResponse services
+ * @property {string|null} [nextPageToken] ListServicesResponse nextPageToken
+ * @property {Array.|null} [unreachable] ListServicesResponse unreachable
+ */
+
+ /**
+ * Constructs a new ListServicesResponse.
+ * @memberof google.cloud.metastore.v1
+ * @classdesc Represents a ListServicesResponse.
+ * @implements IListServicesResponse
+ * @constructor
+ * @param {google.cloud.metastore.v1.IListServicesResponse=} [properties] Properties to set
+ */
+ function ListServicesResponse(properties) {
+ this.services = [];
+ this.unreachable = [];
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null)
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * ListServicesResponse services.
+ * @member {Array.} services
+ * @memberof google.cloud.metastore.v1.ListServicesResponse
+ * @instance
+ */
+ ListServicesResponse.prototype.services = $util.emptyArray;
+
+ /**
+ * ListServicesResponse nextPageToken.
+ * @member {string} nextPageToken
+ * @memberof google.cloud.metastore.v1.ListServicesResponse
+ * @instance
+ */
+ ListServicesResponse.prototype.nextPageToken = "";
+
+ /**
+ * ListServicesResponse unreachable.
+ * @member {Array.} unreachable
+ * @memberof google.cloud.metastore.v1.ListServicesResponse
+ * @instance
+ */
+ ListServicesResponse.prototype.unreachable = $util.emptyArray;
+
+ /**
+ * Creates a new ListServicesResponse instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.metastore.v1.ListServicesResponse
+ * @static
+ * @param {google.cloud.metastore.v1.IListServicesResponse=} [properties] Properties to set
+ * @returns {google.cloud.metastore.v1.ListServicesResponse} ListServicesResponse instance
+ */
+ ListServicesResponse.create = function create(properties) {
+ return new ListServicesResponse(properties);
+ };
+
+ /**
+ * Encodes the specified ListServicesResponse message. Does not implicitly {@link google.cloud.metastore.v1.ListServicesResponse.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.metastore.v1.ListServicesResponse
+ * @static
+ * @param {google.cloud.metastore.v1.IListServicesResponse} message ListServicesResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListServicesResponse.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.services != null && message.services.length)
+ for (var i = 0; i < message.services.length; ++i)
+ $root.google.cloud.metastore.v1.Service.encode(message.services[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
+ if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken);
+ if (message.unreachable != null && message.unreachable.length)
+ for (var i = 0; i < message.unreachable.length; ++i)
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.unreachable[i]);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ListServicesResponse message, length delimited. Does not implicitly {@link google.cloud.metastore.v1.ListServicesResponse.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.metastore.v1.ListServicesResponse
+ * @static
+ * @param {google.cloud.metastore.v1.IListServicesResponse} message ListServicesResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListServicesResponse.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ListServicesResponse message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.metastore.v1.ListServicesResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.metastore.v1.ListServicesResponse} ListServicesResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListServicesResponse.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.metastore.v1.ListServicesResponse();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ if (!(message.services && message.services.length))
+ message.services = [];
+ message.services.push($root.google.cloud.metastore.v1.Service.decode(reader, reader.uint32()));
+ break;
+ }
+ case 2: {
+ message.nextPageToken = reader.string();
+ break;
+ }
+ case 3: {
+ if (!(message.unreachable && message.unreachable.length))
+ message.unreachable = [];
+ message.unreachable.push(reader.string());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ListServicesResponse message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.metastore.v1.ListServicesResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.metastore.v1.ListServicesResponse} ListServicesResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListServicesResponse.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ListServicesResponse message.
+ * @function verify
+ * @memberof google.cloud.metastore.v1.ListServicesResponse
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ListServicesResponse.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.services != null && message.hasOwnProperty("services")) {
+ if (!Array.isArray(message.services))
+ return "services: array expected";
+ for (var i = 0; i < message.services.length; ++i) {
+ var error = $root.google.cloud.metastore.v1.Service.verify(message.services[i]);
+ if (error)
+ return "services." + error;
+ }
+ }
+ if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken"))
+ if (!$util.isString(message.nextPageToken))
+ return "nextPageToken: string expected";
+ if (message.unreachable != null && message.hasOwnProperty("unreachable")) {
+ if (!Array.isArray(message.unreachable))
+ return "unreachable: array expected";
+ for (var i = 0; i < message.unreachable.length; ++i)
+ if (!$util.isString(message.unreachable[i]))
+ return "unreachable: string[] expected";
+ }
+ return null;
+ };
+
+ /**
+ * Creates a ListServicesResponse message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.metastore.v1.ListServicesResponse
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.metastore.v1.ListServicesResponse} ListServicesResponse
+ */
+ ListServicesResponse.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.metastore.v1.ListServicesResponse)
+ return object;
+ var message = new $root.google.cloud.metastore.v1.ListServicesResponse();
+ if (object.services) {
+ if (!Array.isArray(object.services))
+ throw TypeError(".google.cloud.metastore.v1.ListServicesResponse.services: array expected");
+ message.services = [];
+ for (var i = 0; i < object.services.length; ++i) {
+ if (typeof object.services[i] !== "object")
+ throw TypeError(".google.cloud.metastore.v1.ListServicesResponse.services: object expected");
+ message.services[i] = $root.google.cloud.metastore.v1.Service.fromObject(object.services[i]);
+ }
+ }
+ if (object.nextPageToken != null)
+ message.nextPageToken = String(object.nextPageToken);
+ if (object.unreachable) {
+ if (!Array.isArray(object.unreachable))
+ throw TypeError(".google.cloud.metastore.v1.ListServicesResponse.unreachable: array expected");
+ message.unreachable = [];
+ for (var i = 0; i < object.unreachable.length; ++i)
+ message.unreachable[i] = String(object.unreachable[i]);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ListServicesResponse message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.metastore.v1.ListServicesResponse
+ * @static
+ * @param {google.cloud.metastore.v1.ListServicesResponse} message ListServicesResponse
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ListServicesResponse.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults) {
+ object.services = [];
+ object.unreachable = [];
+ }
+ if (options.defaults)
+ object.nextPageToken = "";
+ if (message.services && message.services.length) {
+ object.services = [];
+ for (var j = 0; j < message.services.length; ++j)
+ object.services[j] = $root.google.cloud.metastore.v1.Service.toObject(message.services[j], options);
+ }
+ if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken"))
+ object.nextPageToken = message.nextPageToken;
+ if (message.unreachable && message.unreachable.length) {
+ object.unreachable = [];
+ for (var j = 0; j < message.unreachable.length; ++j)
+ object.unreachable[j] = message.unreachable[j];
+ }
+ return object;
+ };
+
+ /**
+ * Converts this ListServicesResponse to JSON.
+ * @function toJSON
+ * @memberof google.cloud.metastore.v1.ListServicesResponse
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ListServicesResponse.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ListServicesResponse
+ * @function getTypeUrl
+ * @memberof google.cloud.metastore.v1.ListServicesResponse
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ListServicesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.metastore.v1.ListServicesResponse";
+ };
+
+ return ListServicesResponse;
+ })();
+
+ v1.GetServiceRequest = (function() {
+
+ /**
+ * Properties of a GetServiceRequest.
+ * @memberof google.cloud.metastore.v1
+ * @interface IGetServiceRequest
+ * @property {string|null} [name] GetServiceRequest name
+ */
+
+ /**
+ * Constructs a new GetServiceRequest.
+ * @memberof google.cloud.metastore.v1
+ * @classdesc Represents a GetServiceRequest.
+ * @implements IGetServiceRequest
+ * @constructor
+ * @param {google.cloud.metastore.v1.IGetServiceRequest=} [properties] Properties to set
+ */
+ function GetServiceRequest(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]];
+ }
+
+ /**
+ * GetServiceRequest name.
+ * @member {string} name
+ * @memberof google.cloud.metastore.v1.GetServiceRequest
+ * @instance
+ */
+ GetServiceRequest.prototype.name = "";
+
+ /**
+ * Creates a new GetServiceRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.metastore.v1.GetServiceRequest
+ * @static
+ * @param {google.cloud.metastore.v1.IGetServiceRequest=} [properties] Properties to set
+ * @returns {google.cloud.metastore.v1.GetServiceRequest} GetServiceRequest instance
+ */
+ GetServiceRequest.create = function create(properties) {
+ return new GetServiceRequest(properties);
+ };
+
+ /**
+ * Encodes the specified GetServiceRequest message. Does not implicitly {@link google.cloud.metastore.v1.GetServiceRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.metastore.v1.GetServiceRequest
+ * @static
+ * @param {google.cloud.metastore.v1.IGetServiceRequest} message GetServiceRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GetServiceRequest.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 GetServiceRequest message, length delimited. Does not implicitly {@link google.cloud.metastore.v1.GetServiceRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.metastore.v1.GetServiceRequest
+ * @static
+ * @param {google.cloud.metastore.v1.IGetServiceRequest} message GetServiceRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GetServiceRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a GetServiceRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.metastore.v1.GetServiceRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.metastore.v1.GetServiceRequest} GetServiceRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GetServiceRequest.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.metastore.v1.GetServiceRequest();
+ 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 GetServiceRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.metastore.v1.GetServiceRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.metastore.v1.GetServiceRequest} GetServiceRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GetServiceRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a GetServiceRequest message.
+ * @function verify
+ * @memberof google.cloud.metastore.v1.GetServiceRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ GetServiceRequest.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 GetServiceRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.metastore.v1.GetServiceRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.metastore.v1.GetServiceRequest} GetServiceRequest
+ */
+ GetServiceRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.metastore.v1.GetServiceRequest)
+ return object;
+ var message = new $root.google.cloud.metastore.v1.GetServiceRequest();
+ if (object.name != null)
+ message.name = String(object.name);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a GetServiceRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.metastore.v1.GetServiceRequest
+ * @static
+ * @param {google.cloud.metastore.v1.GetServiceRequest} message GetServiceRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ GetServiceRequest.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 GetServiceRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.metastore.v1.GetServiceRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ GetServiceRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for GetServiceRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.metastore.v1.GetServiceRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ GetServiceRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.metastore.v1.GetServiceRequest";
+ };
+
+ return GetServiceRequest;
+ })();
+
+ v1.CreateServiceRequest = (function() {
+
+ /**
+ * Properties of a CreateServiceRequest.
+ * @memberof google.cloud.metastore.v1
+ * @interface ICreateServiceRequest
+ * @property {string|null} [parent] CreateServiceRequest parent
+ * @property {string|null} [serviceId] CreateServiceRequest serviceId
+ * @property {google.cloud.metastore.v1.IService|null} [service] CreateServiceRequest service
+ * @property {string|null} [requestId] CreateServiceRequest requestId
+ */
+
+ /**
+ * Constructs a new CreateServiceRequest.
+ * @memberof google.cloud.metastore.v1
+ * @classdesc Represents a CreateServiceRequest.
+ * @implements ICreateServiceRequest
+ * @constructor
+ * @param {google.cloud.metastore.v1.ICreateServiceRequest=} [properties] Properties to set
+ */
+ function CreateServiceRequest(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]];
+ }
+
+ /**
+ * CreateServiceRequest parent.
+ * @member {string} parent
+ * @memberof google.cloud.metastore.v1.CreateServiceRequest
+ * @instance
+ */
+ CreateServiceRequest.prototype.parent = "";
+
+ /**
+ * CreateServiceRequest serviceId.
+ * @member {string} serviceId
+ * @memberof google.cloud.metastore.v1.CreateServiceRequest
+ * @instance
+ */
+ CreateServiceRequest.prototype.serviceId = "";
+
+ /**
+ * CreateServiceRequest service.
+ * @member {google.cloud.metastore.v1.IService|null|undefined} service
+ * @memberof google.cloud.metastore.v1.CreateServiceRequest
+ * @instance
+ */
+ CreateServiceRequest.prototype.service = null;
+
+ /**
+ * CreateServiceRequest requestId.
+ * @member {string} requestId
+ * @memberof google.cloud.metastore.v1.CreateServiceRequest
+ * @instance
+ */
+ CreateServiceRequest.prototype.requestId = "";
+
+ /**
+ * Creates a new CreateServiceRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.metastore.v1.CreateServiceRequest
+ * @static
+ * @param {google.cloud.metastore.v1.ICreateServiceRequest=} [properties] Properties to set
+ * @returns {google.cloud.metastore.v1.CreateServiceRequest} CreateServiceRequest instance
+ */
+ CreateServiceRequest.create = function create(properties) {
+ return new CreateServiceRequest(properties);
+ };
+
+ /**
+ * Encodes the specified CreateServiceRequest message. Does not implicitly {@link google.cloud.metastore.v1.CreateServiceRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.metastore.v1.CreateServiceRequest
+ * @static
+ * @param {google.cloud.metastore.v1.ICreateServiceRequest} message CreateServiceRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ CreateServiceRequest.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.serviceId != null && Object.hasOwnProperty.call(message, "serviceId"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.serviceId);
+ if (message.service != null && Object.hasOwnProperty.call(message, "service"))
+ $root.google.cloud.metastore.v1.Service.encode(message.service, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
+ if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId"))
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.requestId);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified CreateServiceRequest message, length delimited. Does not implicitly {@link google.cloud.metastore.v1.CreateServiceRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.metastore.v1.CreateServiceRequest
+ * @static
+ * @param {google.cloud.metastore.v1.ICreateServiceRequest} message CreateServiceRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ CreateServiceRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a CreateServiceRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.metastore.v1.CreateServiceRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.metastore.v1.CreateServiceRequest} CreateServiceRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ CreateServiceRequest.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.metastore.v1.CreateServiceRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.parent = reader.string();
+ break;
+ }
+ case 2: {
+ message.serviceId = reader.string();
+ break;
+ }
+ case 3: {
+ message.service = $root.google.cloud.metastore.v1.Service.decode(reader, reader.uint32());
+ break;
+ }
+ case 4: {
+ message.requestId = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a CreateServiceRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.metastore.v1.CreateServiceRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.metastore.v1.CreateServiceRequest} CreateServiceRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ CreateServiceRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a CreateServiceRequest message.
+ * @function verify
+ * @memberof google.cloud.metastore.v1.CreateServiceRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ CreateServiceRequest.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.serviceId != null && message.hasOwnProperty("serviceId"))
+ if (!$util.isString(message.serviceId))
+ return "serviceId: string expected";
+ if (message.service != null && message.hasOwnProperty("service")) {
+ var error = $root.google.cloud.metastore.v1.Service.verify(message.service);
+ if (error)
+ return "service." + error;
+ }
+ if (message.requestId != null && message.hasOwnProperty("requestId"))
+ if (!$util.isString(message.requestId))
+ return "requestId: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a CreateServiceRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.metastore.v1.CreateServiceRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.metastore.v1.CreateServiceRequest} CreateServiceRequest
+ */
+ CreateServiceRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.metastore.v1.CreateServiceRequest)
+ return object;
+ var message = new $root.google.cloud.metastore.v1.CreateServiceRequest();
+ if (object.parent != null)
+ message.parent = String(object.parent);
+ if (object.serviceId != null)
+ message.serviceId = String(object.serviceId);
+ if (object.service != null) {
+ if (typeof object.service !== "object")
+ throw TypeError(".google.cloud.metastore.v1.CreateServiceRequest.service: object expected");
+ message.service = $root.google.cloud.metastore.v1.Service.fromObject(object.service);
+ }
+ if (object.requestId != null)
+ message.requestId = String(object.requestId);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a CreateServiceRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.metastore.v1.CreateServiceRequest
+ * @static
+ * @param {google.cloud.metastore.v1.CreateServiceRequest} message CreateServiceRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ CreateServiceRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.parent = "";
+ object.serviceId = "";
+ object.service = null;
+ object.requestId = "";
+ }
+ if (message.parent != null && message.hasOwnProperty("parent"))
+ object.parent = message.parent;
+ if (message.serviceId != null && message.hasOwnProperty("serviceId"))
+ object.serviceId = message.serviceId;
+ if (message.service != null && message.hasOwnProperty("service"))
+ object.service = $root.google.cloud.metastore.v1.Service.toObject(message.service, options);
+ if (message.requestId != null && message.hasOwnProperty("requestId"))
+ object.requestId = message.requestId;
+ return object;
+ };
+
+ /**
+ * Converts this CreateServiceRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.metastore.v1.CreateServiceRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ CreateServiceRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for CreateServiceRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.metastore.v1.CreateServiceRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ CreateServiceRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.metastore.v1.CreateServiceRequest";
+ };
+
+ return CreateServiceRequest;
+ })();
+
+ v1.UpdateServiceRequest = (function() {
+
+ /**
+ * Properties of an UpdateServiceRequest.
+ * @memberof google.cloud.metastore.v1
+ * @interface IUpdateServiceRequest
+ * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateServiceRequest updateMask
+ * @property {google.cloud.metastore.v1.IService|null} [service] UpdateServiceRequest service
+ * @property {string|null} [requestId] UpdateServiceRequest requestId
+ */
+
+ /**
+ * Constructs a new UpdateServiceRequest.
+ * @memberof google.cloud.metastore.v1
+ * @classdesc Represents an UpdateServiceRequest.
+ * @implements IUpdateServiceRequest
+ * @constructor
+ * @param {google.cloud.metastore.v1.IUpdateServiceRequest=} [properties] Properties to set
+ */
+ function UpdateServiceRequest(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]];
+ }
+
+ /**
+ * UpdateServiceRequest updateMask.
+ * @member {google.protobuf.IFieldMask|null|undefined} updateMask
+ * @memberof google.cloud.metastore.v1.UpdateServiceRequest
+ * @instance
+ */
+ UpdateServiceRequest.prototype.updateMask = null;
+
+ /**
+ * UpdateServiceRequest service.
+ * @member {google.cloud.metastore.v1.IService|null|undefined} service
+ * @memberof google.cloud.metastore.v1.UpdateServiceRequest
+ * @instance
+ */
+ UpdateServiceRequest.prototype.service = null;
+
+ /**
+ * UpdateServiceRequest requestId.
+ * @member {string} requestId
+ * @memberof google.cloud.metastore.v1.UpdateServiceRequest
+ * @instance
+ */
+ UpdateServiceRequest.prototype.requestId = "";
+
+ /**
+ * Creates a new UpdateServiceRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.metastore.v1.UpdateServiceRequest
+ * @static
+ * @param {google.cloud.metastore.v1.IUpdateServiceRequest=} [properties] Properties to set
+ * @returns {google.cloud.metastore.v1.UpdateServiceRequest} UpdateServiceRequest instance
+ */
+ UpdateServiceRequest.create = function create(properties) {
+ return new UpdateServiceRequest(properties);
+ };
+
+ /**
+ * Encodes the specified UpdateServiceRequest message. Does not implicitly {@link google.cloud.metastore.v1.UpdateServiceRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.metastore.v1.UpdateServiceRequest
+ * @static
+ * @param {google.cloud.metastore.v1.IUpdateServiceRequest} message UpdateServiceRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ UpdateServiceRequest.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask"))
+ $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
+ if (message.service != null && Object.hasOwnProperty.call(message, "service"))
+ $root.google.cloud.metastore.v1.Service.encode(message.service, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
+ if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.requestId);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified UpdateServiceRequest message, length delimited. Does not implicitly {@link google.cloud.metastore.v1.UpdateServiceRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.metastore.v1.UpdateServiceRequest
+ * @static
+ * @param {google.cloud.metastore.v1.IUpdateServiceRequest} message UpdateServiceRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ UpdateServiceRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes an UpdateServiceRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.metastore.v1.UpdateServiceRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.metastore.v1.UpdateServiceRequest} UpdateServiceRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ UpdateServiceRequest.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.metastore.v1.UpdateServiceRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32());
+ break;
+ }
+ case 2: {
+ message.service = $root.google.cloud.metastore.v1.Service.decode(reader, reader.uint32());
+ break;
+ }
+ case 3: {
+ message.requestId = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an UpdateServiceRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.metastore.v1.UpdateServiceRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.metastore.v1.UpdateServiceRequest} UpdateServiceRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ UpdateServiceRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an UpdateServiceRequest message.
+ * @function verify
+ * @memberof google.cloud.metastore.v1.UpdateServiceRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ UpdateServiceRequest.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.updateMask != null && message.hasOwnProperty("updateMask")) {
+ var error = $root.google.protobuf.FieldMask.verify(message.updateMask);
+ if (error)
+ return "updateMask." + error;
+ }
+ if (message.service != null && message.hasOwnProperty("service")) {
+ var error = $root.google.cloud.metastore.v1.Service.verify(message.service);
+ if (error)
+ return "service." + error;
+ }
+ if (message.requestId != null && message.hasOwnProperty("requestId"))
+ if (!$util.isString(message.requestId))
+ return "requestId: string expected";
+ return null;
+ };
+
+ /**
+ * Creates an UpdateServiceRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.metastore.v1.UpdateServiceRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.metastore.v1.UpdateServiceRequest} UpdateServiceRequest
+ */
+ UpdateServiceRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.metastore.v1.UpdateServiceRequest)
+ return object;
+ var message = new $root.google.cloud.metastore.v1.UpdateServiceRequest();
+ if (object.updateMask != null) {
+ if (typeof object.updateMask !== "object")
+ throw TypeError(".google.cloud.metastore.v1.UpdateServiceRequest.updateMask: object expected");
+ message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask);
+ }
+ if (object.service != null) {
+ if (typeof object.service !== "object")
+ throw TypeError(".google.cloud.metastore.v1.UpdateServiceRequest.service: object expected");
+ message.service = $root.google.cloud.metastore.v1.Service.fromObject(object.service);
+ }
+ if (object.requestId != null)
+ message.requestId = String(object.requestId);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an UpdateServiceRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.metastore.v1.UpdateServiceRequest
+ * @static
+ * @param {google.cloud.metastore.v1.UpdateServiceRequest} message UpdateServiceRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ UpdateServiceRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.updateMask = null;
+ object.service = null;
+ object.requestId = "";
+ }
+ if (message.updateMask != null && message.hasOwnProperty("updateMask"))
+ object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options);
+ if (message.service != null && message.hasOwnProperty("service"))
+ object.service = $root.google.cloud.metastore.v1.Service.toObject(message.service, options);
+ if (message.requestId != null && message.hasOwnProperty("requestId"))
+ object.requestId = message.requestId;
+ return object;
+ };
+
+ /**
+ * Converts this UpdateServiceRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.metastore.v1.UpdateServiceRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ UpdateServiceRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for UpdateServiceRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.metastore.v1.UpdateServiceRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ UpdateServiceRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.metastore.v1.UpdateServiceRequest";
+ };
+
+ return UpdateServiceRequest;
+ })();
+
+ v1.DeleteServiceRequest = (function() {
+
+ /**
+ * Properties of a DeleteServiceRequest.
+ * @memberof google.cloud.metastore.v1
+ * @interface IDeleteServiceRequest
+ * @property {string|null} [name] DeleteServiceRequest name
+ * @property {string|null} [requestId] DeleteServiceRequest requestId
+ */
+
+ /**
+ * Constructs a new DeleteServiceRequest.
+ * @memberof google.cloud.metastore.v1
+ * @classdesc Represents a DeleteServiceRequest.
+ * @implements IDeleteServiceRequest
+ * @constructor
+ * @param {google.cloud.metastore.v1.IDeleteServiceRequest=} [properties] Properties to set
+ */
+ function DeleteServiceRequest(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]];
+ }
+
+ /**
+ * DeleteServiceRequest name.
+ * @member {string} name
+ * @memberof google.cloud.metastore.v1.DeleteServiceRequest
+ * @instance
+ */
+ DeleteServiceRequest.prototype.name = "";
+
+ /**
+ * DeleteServiceRequest requestId.
+ * @member {string} requestId
+ * @memberof google.cloud.metastore.v1.DeleteServiceRequest
+ * @instance
+ */
+ DeleteServiceRequest.prototype.requestId = "";
+
+ /**
+ * Creates a new DeleteServiceRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.metastore.v1.DeleteServiceRequest
+ * @static
+ * @param {google.cloud.metastore.v1.IDeleteServiceRequest=} [properties] Properties to set
+ * @returns {google.cloud.metastore.v1.DeleteServiceRequest} DeleteServiceRequest instance
+ */
+ DeleteServiceRequest.create = function create(properties) {
+ return new DeleteServiceRequest(properties);
+ };
+
+ /**
+ * Encodes the specified DeleteServiceRequest message. Does not implicitly {@link google.cloud.metastore.v1.DeleteServiceRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.metastore.v1.DeleteServiceRequest
+ * @static
+ * @param {google.cloud.metastore.v1.IDeleteServiceRequest} message DeleteServiceRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ DeleteServiceRequest.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.requestId != null && Object.hasOwnProperty.call(message, "requestId"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.requestId);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified DeleteServiceRequest message, length delimited. Does not implicitly {@link google.cloud.metastore.v1.DeleteServiceRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.metastore.v1.DeleteServiceRequest
+ * @static
+ * @param {google.cloud.metastore.v1.IDeleteServiceRequest} message DeleteServiceRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ DeleteServiceRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a DeleteServiceRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.metastore.v1.DeleteServiceRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.metastore.v1.DeleteServiceRequest} DeleteServiceRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ DeleteServiceRequest.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.metastore.v1.DeleteServiceRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.name = reader.string();
+ break;
+ }
+ case 2: {
+ message.requestId = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a DeleteServiceRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.metastore.v1.DeleteServiceRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.metastore.v1.DeleteServiceRequest} DeleteServiceRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ DeleteServiceRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a DeleteServiceRequest message.
+ * @function verify
+ * @memberof google.cloud.metastore.v1.DeleteServiceRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ DeleteServiceRequest.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.requestId != null && message.hasOwnProperty("requestId"))
+ if (!$util.isString(message.requestId))
+ return "requestId: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a DeleteServiceRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.metastore.v1.DeleteServiceRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.metastore.v1.DeleteServiceRequest} DeleteServiceRequest
+ */
+ DeleteServiceRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.metastore.v1.DeleteServiceRequest)
+ return object;
+ var message = new $root.google.cloud.metastore.v1.DeleteServiceRequest();
+ if (object.name != null)
+ message.name = String(object.name);
+ if (object.requestId != null)
+ message.requestId = String(object.requestId);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a DeleteServiceRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.metastore.v1.DeleteServiceRequest
+ * @static
+ * @param {google.cloud.metastore.v1.DeleteServiceRequest} message DeleteServiceRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ DeleteServiceRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.name = "";
+ object.requestId = "";
+ }
+ if (message.name != null && message.hasOwnProperty("name"))
+ object.name = message.name;
+ if (message.requestId != null && message.hasOwnProperty("requestId"))
+ object.requestId = message.requestId;
+ return object;
+ };
+
+ /**
+ * Converts this DeleteServiceRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.metastore.v1.DeleteServiceRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ DeleteServiceRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for DeleteServiceRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.metastore.v1.DeleteServiceRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ DeleteServiceRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.metastore.v1.DeleteServiceRequest";
+ };
+
+ return DeleteServiceRequest;
+ })();
+
+ v1.ListMetadataImportsRequest = (function() {
+
+ /**
+ * Properties of a ListMetadataImportsRequest.
+ * @memberof google.cloud.metastore.v1
+ * @interface IListMetadataImportsRequest
+ * @property {string|null} [parent] ListMetadataImportsRequest parent
+ * @property {number|null} [pageSize] ListMetadataImportsRequest pageSize
+ * @property {string|null} [pageToken] ListMetadataImportsRequest pageToken
+ * @property {string|null} [filter] ListMetadataImportsRequest filter
+ * @property {string|null} [orderBy] ListMetadataImportsRequest orderBy
+ */
+
+ /**
+ * Constructs a new ListMetadataImportsRequest.
+ * @memberof google.cloud.metastore.v1
+ * @classdesc Represents a ListMetadataImportsRequest.
+ * @implements IListMetadataImportsRequest
+ * @constructor
+ * @param {google.cloud.metastore.v1.IListMetadataImportsRequest=} [properties] Properties to set
+ */
+ function ListMetadataImportsRequest(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]];
+ }
+
+ /**
+ * ListMetadataImportsRequest parent.
+ * @member {string} parent
+ * @memberof google.cloud.metastore.v1.ListMetadataImportsRequest
+ * @instance
+ */
+ ListMetadataImportsRequest.prototype.parent = "";
+
+ /**
+ * ListMetadataImportsRequest pageSize.
+ * @member {number} pageSize
+ * @memberof google.cloud.metastore.v1.ListMetadataImportsRequest
+ * @instance
+ */
+ ListMetadataImportsRequest.prototype.pageSize = 0;
+
+ /**
+ * ListMetadataImportsRequest pageToken.
+ * @member {string} pageToken
+ * @memberof google.cloud.metastore.v1.ListMetadataImportsRequest
+ * @instance
+ */
+ ListMetadataImportsRequest.prototype.pageToken = "";
+
+ /**
+ * ListMetadataImportsRequest filter.
+ * @member {string} filter
+ * @memberof google.cloud.metastore.v1.ListMetadataImportsRequest
+ * @instance
+ */
+ ListMetadataImportsRequest.prototype.filter = "";
+
+ /**
+ * ListMetadataImportsRequest orderBy.
+ * @member {string} orderBy
+ * @memberof google.cloud.metastore.v1.ListMetadataImportsRequest
+ * @instance
+ */
+ ListMetadataImportsRequest.prototype.orderBy = "";
+
+ /**
+ * Creates a new ListMetadataImportsRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.metastore.v1.ListMetadataImportsRequest
+ * @static
+ * @param {google.cloud.metastore.v1.IListMetadataImportsRequest=} [properties] Properties to set
+ * @returns {google.cloud.metastore.v1.ListMetadataImportsRequest} ListMetadataImportsRequest instance
+ */
+ ListMetadataImportsRequest.create = function create(properties) {
+ return new ListMetadataImportsRequest(properties);
+ };
+
+ /**
+ * Encodes the specified ListMetadataImportsRequest message. Does not implicitly {@link google.cloud.metastore.v1.ListMetadataImportsRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.metastore.v1.ListMetadataImportsRequest
+ * @static
+ * @param {google.cloud.metastore.v1.IListMetadataImportsRequest} message ListMetadataImportsRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListMetadataImportsRequest.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.parent != null && Object.hasOwnProperty.call(message, "parent"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent);
+ if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize"))
+ writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize);
+ if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken);
+ if (message.filter != null && Object.hasOwnProperty.call(message, "filter"))
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.filter);
+ if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy"))
+ writer.uint32(/* id 5, wireType 2 =*/42).string(message.orderBy);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ListMetadataImportsRequest message, length delimited. Does not implicitly {@link google.cloud.metastore.v1.ListMetadataImportsRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.metastore.v1.ListMetadataImportsRequest
+ * @static
+ * @param {google.cloud.metastore.v1.IListMetadataImportsRequest} message ListMetadataImportsRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListMetadataImportsRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ListMetadataImportsRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.metastore.v1.ListMetadataImportsRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.metastore.v1.ListMetadataImportsRequest} ListMetadataImportsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListMetadataImportsRequest.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.metastore.v1.ListMetadataImportsRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.parent = reader.string();
+ break;
+ }
+ case 2: {
+ message.pageSize = reader.int32();
+ break;
+ }
+ case 3: {
+ message.pageToken = reader.string();
+ break;
+ }
+ case 4: {
+ message.filter = reader.string();
+ break;
+ }
+ case 5: {
+ message.orderBy = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ListMetadataImportsRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.metastore.v1.ListMetadataImportsRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.metastore.v1.ListMetadataImportsRequest} ListMetadataImportsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListMetadataImportsRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ListMetadataImportsRequest message.
+ * @function verify
+ * @memberof google.cloud.metastore.v1.ListMetadataImportsRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ListMetadataImportsRequest.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.parent != null && message.hasOwnProperty("parent"))
+ if (!$util.isString(message.parent))
+ return "parent: string expected";
+ if (message.pageSize != null && message.hasOwnProperty("pageSize"))
+ if (!$util.isInteger(message.pageSize))
+ return "pageSize: integer expected";
+ if (message.pageToken != null && message.hasOwnProperty("pageToken"))
+ if (!$util.isString(message.pageToken))
+ return "pageToken: string expected";
+ if (message.filter != null && message.hasOwnProperty("filter"))
+ if (!$util.isString(message.filter))
+ return "filter: string expected";
+ if (message.orderBy != null && message.hasOwnProperty("orderBy"))
+ if (!$util.isString(message.orderBy))
+ return "orderBy: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a ListMetadataImportsRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.metastore.v1.ListMetadataImportsRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.metastore.v1.ListMetadataImportsRequest} ListMetadataImportsRequest
+ */
+ ListMetadataImportsRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.metastore.v1.ListMetadataImportsRequest)
+ return object;
+ var message = new $root.google.cloud.metastore.v1.ListMetadataImportsRequest();
+ if (object.parent != null)
+ message.parent = String(object.parent);
+ if (object.pageSize != null)
+ message.pageSize = object.pageSize | 0;
+ if (object.pageToken != null)
+ message.pageToken = String(object.pageToken);
+ if (object.filter != null)
+ message.filter = String(object.filter);
+ if (object.orderBy != null)
+ message.orderBy = String(object.orderBy);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ListMetadataImportsRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.metastore.v1.ListMetadataImportsRequest
+ * @static
+ * @param {google.cloud.metastore.v1.ListMetadataImportsRequest} message ListMetadataImportsRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ListMetadataImportsRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.parent = "";
+ object.pageSize = 0;
+ object.pageToken = "";
+ object.filter = "";
+ object.orderBy = "";
+ }
+ if (message.parent != null && message.hasOwnProperty("parent"))
+ object.parent = message.parent;
+ if (message.pageSize != null && message.hasOwnProperty("pageSize"))
+ object.pageSize = message.pageSize;
+ if (message.pageToken != null && message.hasOwnProperty("pageToken"))
+ object.pageToken = message.pageToken;
+ if (message.filter != null && message.hasOwnProperty("filter"))
+ object.filter = message.filter;
+ if (message.orderBy != null && message.hasOwnProperty("orderBy"))
+ object.orderBy = message.orderBy;
+ return object;
+ };
+
+ /**
+ * Converts this ListMetadataImportsRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.metastore.v1.ListMetadataImportsRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ListMetadataImportsRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ListMetadataImportsRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.metastore.v1.ListMetadataImportsRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ListMetadataImportsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.metastore.v1.ListMetadataImportsRequest";
+ };
+
+ return ListMetadataImportsRequest;
+ })();
+
+ v1.ListMetadataImportsResponse = (function() {
+
+ /**
+ * Properties of a ListMetadataImportsResponse.
+ * @memberof google.cloud.metastore.v1
+ * @interface IListMetadataImportsResponse
+ * @property {Array.|null} [metadataImports] ListMetadataImportsResponse metadataImports
+ * @property {string|null} [nextPageToken] ListMetadataImportsResponse nextPageToken
+ * @property {Array.|null} [unreachable] ListMetadataImportsResponse unreachable
+ */
+
+ /**
+ * Constructs a new ListMetadataImportsResponse.
+ * @memberof google.cloud.metastore.v1
+ * @classdesc Represents a ListMetadataImportsResponse.
+ * @implements IListMetadataImportsResponse
+ * @constructor
+ * @param {google.cloud.metastore.v1.IListMetadataImportsResponse=} [properties] Properties to set
+ */
+ function ListMetadataImportsResponse(properties) {
+ this.metadataImports = [];
+ this.unreachable = [];
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null)
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * ListMetadataImportsResponse metadataImports.
+ * @member {Array.} metadataImports
+ * @memberof google.cloud.metastore.v1.ListMetadataImportsResponse
+ * @instance
+ */
+ ListMetadataImportsResponse.prototype.metadataImports = $util.emptyArray;
+
+ /**
+ * ListMetadataImportsResponse nextPageToken.
+ * @member {string} nextPageToken
+ * @memberof google.cloud.metastore.v1.ListMetadataImportsResponse
+ * @instance
+ */
+ ListMetadataImportsResponse.prototype.nextPageToken = "";
+
+ /**
+ * ListMetadataImportsResponse unreachable.
+ * @member {Array.} unreachable
+ * @memberof google.cloud.metastore.v1.ListMetadataImportsResponse
+ * @instance
+ */
+ ListMetadataImportsResponse.prototype.unreachable = $util.emptyArray;
+
+ /**
+ * Creates a new ListMetadataImportsResponse instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.metastore.v1.ListMetadataImportsResponse
+ * @static
+ * @param {google.cloud.metastore.v1.IListMetadataImportsResponse=} [properties] Properties to set
+ * @returns {google.cloud.metastore.v1.ListMetadataImportsResponse} ListMetadataImportsResponse instance
+ */
+ ListMetadataImportsResponse.create = function create(properties) {
+ return new ListMetadataImportsResponse(properties);
+ };
+
+ /**
+ * Encodes the specified ListMetadataImportsResponse message. Does not implicitly {@link google.cloud.metastore.v1.ListMetadataImportsResponse.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.metastore.v1.ListMetadataImportsResponse
+ * @static
+ * @param {google.cloud.metastore.v1.IListMetadataImportsResponse} message ListMetadataImportsResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListMetadataImportsResponse.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.metadataImports != null && message.metadataImports.length)
+ for (var i = 0; i < message.metadataImports.length; ++i)
+ $root.google.cloud.metastore.v1.MetadataImport.encode(message.metadataImports[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
+ if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken);
+ if (message.unreachable != null && message.unreachable.length)
+ for (var i = 0; i < message.unreachable.length; ++i)
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.unreachable[i]);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ListMetadataImportsResponse message, length delimited. Does not implicitly {@link google.cloud.metastore.v1.ListMetadataImportsResponse.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.metastore.v1.ListMetadataImportsResponse
+ * @static
+ * @param {google.cloud.metastore.v1.IListMetadataImportsResponse} message ListMetadataImportsResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListMetadataImportsResponse.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ListMetadataImportsResponse message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.metastore.v1.ListMetadataImportsResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.metastore.v1.ListMetadataImportsResponse} ListMetadataImportsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListMetadataImportsResponse.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.metastore.v1.ListMetadataImportsResponse();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ if (!(message.metadataImports && message.metadataImports.length))
+ message.metadataImports = [];
+ message.metadataImports.push($root.google.cloud.metastore.v1.MetadataImport.decode(reader, reader.uint32()));
+ break;
+ }
+ case 2: {
+ message.nextPageToken = reader.string();
+ break;
+ }
+ case 3: {
+ if (!(message.unreachable && message.unreachable.length))
+ message.unreachable = [];
+ message.unreachable.push(reader.string());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ListMetadataImportsResponse message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.metastore.v1.ListMetadataImportsResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.metastore.v1.ListMetadataImportsResponse} ListMetadataImportsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListMetadataImportsResponse.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ListMetadataImportsResponse message.
+ * @function verify
+ * @memberof google.cloud.metastore.v1.ListMetadataImportsResponse
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ListMetadataImportsResponse.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.metadataImports != null && message.hasOwnProperty("metadataImports")) {
+ if (!Array.isArray(message.metadataImports))
+ return "metadataImports: array expected";
+ for (var i = 0; i < message.metadataImports.length; ++i) {
+ var error = $root.google.cloud.metastore.v1.MetadataImport.verify(message.metadataImports[i]);
+ if (error)
+ return "metadataImports." + error;
+ }
+ }
+ if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken"))
+ if (!$util.isString(message.nextPageToken))
+ return "nextPageToken: string expected";
+ if (message.unreachable != null && message.hasOwnProperty("unreachable")) {
+ if (!Array.isArray(message.unreachable))
+ return "unreachable: array expected";
+ for (var i = 0; i < message.unreachable.length; ++i)
+ if (!$util.isString(message.unreachable[i]))
+ return "unreachable: string[] expected";
+ }
+ return null;
+ };
+
+ /**
+ * Creates a ListMetadataImportsResponse message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.metastore.v1.ListMetadataImportsResponse
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.metastore.v1.ListMetadataImportsResponse} ListMetadataImportsResponse
+ */
+ ListMetadataImportsResponse.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.metastore.v1.ListMetadataImportsResponse)
+ return object;
+ var message = new $root.google.cloud.metastore.v1.ListMetadataImportsResponse();
+ if (object.metadataImports) {
+ if (!Array.isArray(object.metadataImports))
+ throw TypeError(".google.cloud.metastore.v1.ListMetadataImportsResponse.metadataImports: array expected");
+ message.metadataImports = [];
+ for (var i = 0; i < object.metadataImports.length; ++i) {
+ if (typeof object.metadataImports[i] !== "object")
+ throw TypeError(".google.cloud.metastore.v1.ListMetadataImportsResponse.metadataImports: object expected");
+ message.metadataImports[i] = $root.google.cloud.metastore.v1.MetadataImport.fromObject(object.metadataImports[i]);
+ }
+ }
+ if (object.nextPageToken != null)
+ message.nextPageToken = String(object.nextPageToken);
+ if (object.unreachable) {
+ if (!Array.isArray(object.unreachable))
+ throw TypeError(".google.cloud.metastore.v1.ListMetadataImportsResponse.unreachable: array expected");
+ message.unreachable = [];
+ for (var i = 0; i < object.unreachable.length; ++i)
+ message.unreachable[i] = String(object.unreachable[i]);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ListMetadataImportsResponse message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.metastore.v1.ListMetadataImportsResponse
+ * @static
+ * @param {google.cloud.metastore.v1.ListMetadataImportsResponse} message ListMetadataImportsResponse
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ListMetadataImportsResponse.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults) {
+ object.metadataImports = [];
+ object.unreachable = [];
+ }
+ if (options.defaults)
+ object.nextPageToken = "";
+ if (message.metadataImports && message.metadataImports.length) {
+ object.metadataImports = [];
+ for (var j = 0; j < message.metadataImports.length; ++j)
+ object.metadataImports[j] = $root.google.cloud.metastore.v1.MetadataImport.toObject(message.metadataImports[j], options);
+ }
+ if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken"))
+ object.nextPageToken = message.nextPageToken;
+ if (message.unreachable && message.unreachable.length) {
+ object.unreachable = [];
+ for (var j = 0; j < message.unreachable.length; ++j)
+ object.unreachable[j] = message.unreachable[j];
+ }
+ return object;
+ };
+
+ /**
+ * Converts this ListMetadataImportsResponse to JSON.
+ * @function toJSON
+ * @memberof google.cloud.metastore.v1.ListMetadataImportsResponse
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ListMetadataImportsResponse.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ListMetadataImportsResponse
+ * @function getTypeUrl
+ * @memberof google.cloud.metastore.v1.ListMetadataImportsResponse
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ListMetadataImportsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.metastore.v1.ListMetadataImportsResponse";
+ };
+
+ return ListMetadataImportsResponse;
+ })();
+
+ v1.GetMetadataImportRequest = (function() {
+
+ /**
+ * Properties of a GetMetadataImportRequest.
+ * @memberof google.cloud.metastore.v1
+ * @interface IGetMetadataImportRequest
+ * @property {string|null} [name] GetMetadataImportRequest name
+ */
+
+ /**
+ * Constructs a new GetMetadataImportRequest.
+ * @memberof google.cloud.metastore.v1
+ * @classdesc Represents a GetMetadataImportRequest.
+ * @implements IGetMetadataImportRequest
+ * @constructor
+ * @param {google.cloud.metastore.v1.IGetMetadataImportRequest=} [properties] Properties to set
+ */
+ function GetMetadataImportRequest(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]];
+ }
+
+ /**
+ * GetMetadataImportRequest name.
+ * @member {string} name
+ * @memberof google.cloud.metastore.v1.GetMetadataImportRequest
+ * @instance
+ */
+ GetMetadataImportRequest.prototype.name = "";
+
+ /**
+ * Creates a new GetMetadataImportRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.metastore.v1.GetMetadataImportRequest
+ * @static
+ * @param {google.cloud.metastore.v1.IGetMetadataImportRequest=} [properties] Properties to set
+ * @returns {google.cloud.metastore.v1.GetMetadataImportRequest} GetMetadataImportRequest instance
+ */
+ GetMetadataImportRequest.create = function create(properties) {
+ return new GetMetadataImportRequest(properties);
+ };
+
+ /**
+ * Encodes the specified GetMetadataImportRequest message. Does not implicitly {@link google.cloud.metastore.v1.GetMetadataImportRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.metastore.v1.GetMetadataImportRequest
+ * @static
+ * @param {google.cloud.metastore.v1.IGetMetadataImportRequest} message GetMetadataImportRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GetMetadataImportRequest.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 GetMetadataImportRequest message, length delimited. Does not implicitly {@link google.cloud.metastore.v1.GetMetadataImportRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.metastore.v1.GetMetadataImportRequest
+ * @static
+ * @param {google.cloud.metastore.v1.IGetMetadataImportRequest} message GetMetadataImportRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GetMetadataImportRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a GetMetadataImportRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.metastore.v1.GetMetadataImportRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.metastore.v1.GetMetadataImportRequest} GetMetadataImportRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GetMetadataImportRequest.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.metastore.v1.GetMetadataImportRequest();
+ 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 GetMetadataImportRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.metastore.v1.GetMetadataImportRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.metastore.v1.GetMetadataImportRequest} GetMetadataImportRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GetMetadataImportRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a GetMetadataImportRequest message.
+ * @function verify
+ * @memberof google.cloud.metastore.v1.GetMetadataImportRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ GetMetadataImportRequest.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 GetMetadataImportRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.metastore.v1.GetMetadataImportRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.metastore.v1.GetMetadataImportRequest} GetMetadataImportRequest
+ */
+ GetMetadataImportRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.metastore.v1.GetMetadataImportRequest)
+ return object;
+ var message = new $root.google.cloud.metastore.v1.GetMetadataImportRequest();
+ if (object.name != null)
+ message.name = String(object.name);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a GetMetadataImportRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.metastore.v1.GetMetadataImportRequest
+ * @static
+ * @param {google.cloud.metastore.v1.GetMetadataImportRequest} message GetMetadataImportRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ GetMetadataImportRequest.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 GetMetadataImportRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.metastore.v1.GetMetadataImportRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ GetMetadataImportRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for GetMetadataImportRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.metastore.v1.GetMetadataImportRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ GetMetadataImportRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.metastore.v1.GetMetadataImportRequest";
+ };
+
+ return GetMetadataImportRequest;
+ })();
+
+ v1.CreateMetadataImportRequest = (function() {
+
+ /**
+ * Properties of a CreateMetadataImportRequest.
+ * @memberof google.cloud.metastore.v1
+ * @interface ICreateMetadataImportRequest
+ * @property {string|null} [parent] CreateMetadataImportRequest parent
+ * @property {string|null} [metadataImportId] CreateMetadataImportRequest metadataImportId
+ * @property {google.cloud.metastore.v1.IMetadataImport|null} [metadataImport] CreateMetadataImportRequest metadataImport
+ * @property {string|null} [requestId] CreateMetadataImportRequest requestId
+ */
+
+ /**
+ * Constructs a new CreateMetadataImportRequest.
+ * @memberof google.cloud.metastore.v1
+ * @classdesc Represents a CreateMetadataImportRequest.
+ * @implements ICreateMetadataImportRequest
+ * @constructor
+ * @param {google.cloud.metastore.v1.ICreateMetadataImportRequest=} [properties] Properties to set
+ */
+ function CreateMetadataImportRequest(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]];
+ }
+
+ /**
+ * CreateMetadataImportRequest parent.
+ * @member {string} parent
+ * @memberof google.cloud.metastore.v1.CreateMetadataImportRequest
+ * @instance
+ */
+ CreateMetadataImportRequest.prototype.parent = "";
+
+ /**
+ * CreateMetadataImportRequest metadataImportId.
+ * @member {string} metadataImportId
+ * @memberof google.cloud.metastore.v1.CreateMetadataImportRequest
+ * @instance
+ */
+ CreateMetadataImportRequest.prototype.metadataImportId = "";
+
+ /**
+ * CreateMetadataImportRequest metadataImport.
+ * @member {google.cloud.metastore.v1.IMetadataImport|null|undefined} metadataImport
+ * @memberof google.cloud.metastore.v1.CreateMetadataImportRequest
+ * @instance
+ */
+ CreateMetadataImportRequest.prototype.metadataImport = null;
+
+ /**
+ * CreateMetadataImportRequest requestId.
+ * @member {string} requestId
+ * @memberof google.cloud.metastore.v1.CreateMetadataImportRequest
+ * @instance
+ */
+ CreateMetadataImportRequest.prototype.requestId = "";
+
+ /**
+ * Creates a new CreateMetadataImportRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.metastore.v1.CreateMetadataImportRequest
+ * @static
+ * @param {google.cloud.metastore.v1.ICreateMetadataImportRequest=} [properties] Properties to set
+ * @returns {google.cloud.metastore.v1.CreateMetadataImportRequest} CreateMetadataImportRequest instance
+ */
+ CreateMetadataImportRequest.create = function create(properties) {
+ return new CreateMetadataImportRequest(properties);
+ };
+
+ /**
+ * Encodes the specified CreateMetadataImportRequest message. Does not implicitly {@link google.cloud.metastore.v1.CreateMetadataImportRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.metastore.v1.CreateMetadataImportRequest
+ * @static
+ * @param {google.cloud.metastore.v1.ICreateMetadataImportRequest} message CreateMetadataImportRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ CreateMetadataImportRequest.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.metadataImportId != null && Object.hasOwnProperty.call(message, "metadataImportId"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.metadataImportId);
+ if (message.metadataImport != null && Object.hasOwnProperty.call(message, "metadataImport"))
+ $root.google.cloud.metastore.v1.MetadataImport.encode(message.metadataImport, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
+ if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId"))
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.requestId);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified CreateMetadataImportRequest message, length delimited. Does not implicitly {@link google.cloud.metastore.v1.CreateMetadataImportRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.metastore.v1.CreateMetadataImportRequest
+ * @static
+ * @param {google.cloud.metastore.v1.ICreateMetadataImportRequest} message CreateMetadataImportRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ CreateMetadataImportRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a CreateMetadataImportRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.metastore.v1.CreateMetadataImportRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.metastore.v1.CreateMetadataImportRequest} CreateMetadataImportRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ CreateMetadataImportRequest.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.metastore.v1.CreateMetadataImportRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.parent = reader.string();
+ break;
+ }
+ case 2: {
+ message.metadataImportId = reader.string();
+ break;
+ }
+ case 3: {
+ message.metadataImport = $root.google.cloud.metastore.v1.MetadataImport.decode(reader, reader.uint32());
+ break;
+ }
+ case 4: {
+ message.requestId = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a CreateMetadataImportRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.metastore.v1.CreateMetadataImportRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.metastore.v1.CreateMetadataImportRequest} CreateMetadataImportRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ CreateMetadataImportRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a CreateMetadataImportRequest message.
+ * @function verify
+ * @memberof google.cloud.metastore.v1.CreateMetadataImportRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ CreateMetadataImportRequest.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.metadataImportId != null && message.hasOwnProperty("metadataImportId"))
+ if (!$util.isString(message.metadataImportId))
+ return "metadataImportId: string expected";
+ if (message.metadataImport != null && message.hasOwnProperty("metadataImport")) {
+ var error = $root.google.cloud.metastore.v1.MetadataImport.verify(message.metadataImport);
+ if (error)
+ return "metadataImport." + error;
+ }
+ if (message.requestId != null && message.hasOwnProperty("requestId"))
+ if (!$util.isString(message.requestId))
+ return "requestId: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a CreateMetadataImportRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.metastore.v1.CreateMetadataImportRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.metastore.v1.CreateMetadataImportRequest} CreateMetadataImportRequest
+ */
+ CreateMetadataImportRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.metastore.v1.CreateMetadataImportRequest)
+ return object;
+ var message = new $root.google.cloud.metastore.v1.CreateMetadataImportRequest();
+ if (object.parent != null)
+ message.parent = String(object.parent);
+ if (object.metadataImportId != null)
+ message.metadataImportId = String(object.metadataImportId);
+ if (object.metadataImport != null) {
+ if (typeof object.metadataImport !== "object")
+ throw TypeError(".google.cloud.metastore.v1.CreateMetadataImportRequest.metadataImport: object expected");
+ message.metadataImport = $root.google.cloud.metastore.v1.MetadataImport.fromObject(object.metadataImport);
+ }
+ if (object.requestId != null)
+ message.requestId = String(object.requestId);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a CreateMetadataImportRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.metastore.v1.CreateMetadataImportRequest
+ * @static
+ * @param {google.cloud.metastore.v1.CreateMetadataImportRequest} message CreateMetadataImportRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ CreateMetadataImportRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.parent = "";
+ object.metadataImportId = "";
+ object.metadataImport = null;
+ object.requestId = "";
+ }
+ if (message.parent != null && message.hasOwnProperty("parent"))
+ object.parent = message.parent;
+ if (message.metadataImportId != null && message.hasOwnProperty("metadataImportId"))
+ object.metadataImportId = message.metadataImportId;
+ if (message.metadataImport != null && message.hasOwnProperty("metadataImport"))
+ object.metadataImport = $root.google.cloud.metastore.v1.MetadataImport.toObject(message.metadataImport, options);
+ if (message.requestId != null && message.hasOwnProperty("requestId"))
+ object.requestId = message.requestId;
+ return object;
+ };
+
+ /**
+ * Converts this CreateMetadataImportRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.metastore.v1.CreateMetadataImportRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ CreateMetadataImportRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for CreateMetadataImportRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.metastore.v1.CreateMetadataImportRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ CreateMetadataImportRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.metastore.v1.CreateMetadataImportRequest";
+ };
+
+ return CreateMetadataImportRequest;
+ })();
+
+ v1.UpdateMetadataImportRequest = (function() {
+
+ /**
+ * Properties of an UpdateMetadataImportRequest.
+ * @memberof google.cloud.metastore.v1
+ * @interface IUpdateMetadataImportRequest
+ * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateMetadataImportRequest updateMask
+ * @property {google.cloud.metastore.v1.IMetadataImport|null} [metadataImport] UpdateMetadataImportRequest metadataImport
+ * @property {string|null} [requestId] UpdateMetadataImportRequest requestId
+ */
+
+ /**
+ * Constructs a new UpdateMetadataImportRequest.
+ * @memberof google.cloud.metastore.v1
+ * @classdesc Represents an UpdateMetadataImportRequest.
+ * @implements IUpdateMetadataImportRequest
+ * @constructor
+ * @param {google.cloud.metastore.v1.IUpdateMetadataImportRequest=} [properties] Properties to set
+ */
+ function UpdateMetadataImportRequest(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]];
+ }
+
+ /**
+ * UpdateMetadataImportRequest updateMask.
+ * @member {google.protobuf.IFieldMask|null|undefined} updateMask
+ * @memberof google.cloud.metastore.v1.UpdateMetadataImportRequest
+ * @instance
+ */
+ UpdateMetadataImportRequest.prototype.updateMask = null;
+
+ /**
+ * UpdateMetadataImportRequest metadataImport.
+ * @member {google.cloud.metastore.v1.IMetadataImport|null|undefined} metadataImport
+ * @memberof google.cloud.metastore.v1.UpdateMetadataImportRequest
+ * @instance
+ */
+ UpdateMetadataImportRequest.prototype.metadataImport = null;
+
+ /**
+ * UpdateMetadataImportRequest requestId.
+ * @member {string} requestId
+ * @memberof google.cloud.metastore.v1.UpdateMetadataImportRequest
+ * @instance
+ */
+ UpdateMetadataImportRequest.prototype.requestId = "";
+
+ /**
+ * Creates a new UpdateMetadataImportRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.metastore.v1.UpdateMetadataImportRequest
+ * @static
+ * @param {google.cloud.metastore.v1.IUpdateMetadataImportRequest=} [properties] Properties to set
+ * @returns {google.cloud.metastore.v1.UpdateMetadataImportRequest} UpdateMetadataImportRequest instance
+ */
+ UpdateMetadataImportRequest.create = function create(properties) {
+ return new UpdateMetadataImportRequest(properties);
+ };
+
+ /**
+ * Encodes the specified UpdateMetadataImportRequest message. Does not implicitly {@link google.cloud.metastore.v1.UpdateMetadataImportRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.metastore.v1.UpdateMetadataImportRequest
+ * @static
+ * @param {google.cloud.metastore.v1.IUpdateMetadataImportRequest} message UpdateMetadataImportRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ UpdateMetadataImportRequest.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask"))
+ $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
+ if (message.metadataImport != null && Object.hasOwnProperty.call(message, "metadataImport"))
+ $root.google.cloud.metastore.v1.MetadataImport.encode(message.metadataImport, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
+ if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.requestId);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified UpdateMetadataImportRequest message, length delimited. Does not implicitly {@link google.cloud.metastore.v1.UpdateMetadataImportRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.metastore.v1.UpdateMetadataImportRequest
+ * @static
+ * @param {google.cloud.metastore.v1.IUpdateMetadataImportRequest} message UpdateMetadataImportRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ UpdateMetadataImportRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes an UpdateMetadataImportRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.metastore.v1.UpdateMetadataImportRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.metastore.v1.UpdateMetadataImportRequest} UpdateMetadataImportRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ UpdateMetadataImportRequest.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.metastore.v1.UpdateMetadataImportRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32());
+ break;
+ }
+ case 2: {
+ message.metadataImport = $root.google.cloud.metastore.v1.MetadataImport.decode(reader, reader.uint32());
+ break;
+ }
+ case 3: {
+ message.requestId = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an UpdateMetadataImportRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.metastore.v1.UpdateMetadataImportRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.metastore.v1.UpdateMetadataImportRequest} UpdateMetadataImportRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ UpdateMetadataImportRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an UpdateMetadataImportRequest message.
+ * @function verify
+ * @memberof google.cloud.metastore.v1.UpdateMetadataImportRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ UpdateMetadataImportRequest.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.updateMask != null && message.hasOwnProperty("updateMask")) {
+ var error = $root.google.protobuf.FieldMask.verify(message.updateMask);
+ if (error)
+ return "updateMask." + error;
+ }
+ if (message.metadataImport != null && message.hasOwnProperty("metadataImport")) {
+ var error = $root.google.cloud.metastore.v1.MetadataImport.verify(message.metadataImport);
+ if (error)
+ return "metadataImport." + error;
+ }
+ if (message.requestId != null && message.hasOwnProperty("requestId"))
+ if (!$util.isString(message.requestId))
+ return "requestId: string expected";
+ return null;
+ };
+
+ /**
+ * Creates an UpdateMetadataImportRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.metastore.v1.UpdateMetadataImportRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.metastore.v1.UpdateMetadataImportRequest} UpdateMetadataImportRequest
+ */
+ UpdateMetadataImportRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.metastore.v1.UpdateMetadataImportRequest)
+ return object;
+ var message = new $root.google.cloud.metastore.v1.UpdateMetadataImportRequest();
+ if (object.updateMask != null) {
+ if (typeof object.updateMask !== "object")
+ throw TypeError(".google.cloud.metastore.v1.UpdateMetadataImportRequest.updateMask: object expected");
+ message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask);
+ }
+ if (object.metadataImport != null) {
+ if (typeof object.metadataImport !== "object")
+ throw TypeError(".google.cloud.metastore.v1.UpdateMetadataImportRequest.metadataImport: object expected");
+ message.metadataImport = $root.google.cloud.metastore.v1.MetadataImport.fromObject(object.metadataImport);
+ }
+ if (object.requestId != null)
+ message.requestId = String(object.requestId);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an UpdateMetadataImportRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.metastore.v1.UpdateMetadataImportRequest
+ * @static
+ * @param {google.cloud.metastore.v1.UpdateMetadataImportRequest} message UpdateMetadataImportRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ UpdateMetadataImportRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.updateMask = null;
+ object.metadataImport = null;
+ object.requestId = "";
+ }
+ if (message.updateMask != null && message.hasOwnProperty("updateMask"))
+ object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options);
+ if (message.metadataImport != null && message.hasOwnProperty("metadataImport"))
+ object.metadataImport = $root.google.cloud.metastore.v1.MetadataImport.toObject(message.metadataImport, options);
+ if (message.requestId != null && message.hasOwnProperty("requestId"))
+ object.requestId = message.requestId;
+ return object;
+ };
+
+ /**
+ * Converts this UpdateMetadataImportRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.metastore.v1.UpdateMetadataImportRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ UpdateMetadataImportRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for UpdateMetadataImportRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.metastore.v1.UpdateMetadataImportRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ UpdateMetadataImportRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.metastore.v1.UpdateMetadataImportRequest";
+ };
+
+ return UpdateMetadataImportRequest;
+ })();
+
+ v1.ListBackupsRequest = (function() {
+
+ /**
+ * Properties of a ListBackupsRequest.
+ * @memberof google.cloud.metastore.v1
+ * @interface IListBackupsRequest
+ * @property {string|null} [parent] ListBackupsRequest parent
+ * @property {number|null} [pageSize] ListBackupsRequest pageSize
+ * @property {string|null} [pageToken] ListBackupsRequest pageToken
+ * @property {string|null} [filter] ListBackupsRequest filter
+ * @property {string|null} [orderBy] ListBackupsRequest orderBy
+ */
+
+ /**
+ * Constructs a new ListBackupsRequest.
+ * @memberof google.cloud.metastore.v1
+ * @classdesc Represents a ListBackupsRequest.
+ * @implements IListBackupsRequest
+ * @constructor
+ * @param {google.cloud.metastore.v1.IListBackupsRequest=} [properties] Properties to set
+ */
+ function ListBackupsRequest(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]];
+ }
+
+ /**
+ * ListBackupsRequest parent.
+ * @member {string} parent
+ * @memberof google.cloud.metastore.v1.ListBackupsRequest
+ * @instance
+ */
+ ListBackupsRequest.prototype.parent = "";
+
+ /**
+ * ListBackupsRequest pageSize.
+ * @member {number} pageSize
+ * @memberof google.cloud.metastore.v1.ListBackupsRequest
+ * @instance
+ */
+ ListBackupsRequest.prototype.pageSize = 0;
+
+ /**
+ * ListBackupsRequest pageToken.
+ * @member {string} pageToken
+ * @memberof google.cloud.metastore.v1.ListBackupsRequest
+ * @instance
+ */
+ ListBackupsRequest.prototype.pageToken = "";
+
+ /**
+ * ListBackupsRequest filter.
+ * @member {string} filter
+ * @memberof google.cloud.metastore.v1.ListBackupsRequest
+ * @instance
+ */
+ ListBackupsRequest.prototype.filter = "";
+
+ /**
+ * ListBackupsRequest orderBy.
+ * @member {string} orderBy
+ * @memberof google.cloud.metastore.v1.ListBackupsRequest
+ * @instance
+ */
+ ListBackupsRequest.prototype.orderBy = "";
+
+ /**
+ * Creates a new ListBackupsRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.metastore.v1.ListBackupsRequest
+ * @static
+ * @param {google.cloud.metastore.v1.IListBackupsRequest=} [properties] Properties to set
+ * @returns {google.cloud.metastore.v1.ListBackupsRequest} ListBackupsRequest instance
+ */
+ ListBackupsRequest.create = function create(properties) {
+ return new ListBackupsRequest(properties);
+ };
+
+ /**
+ * Encodes the specified ListBackupsRequest message. Does not implicitly {@link google.cloud.metastore.v1.ListBackupsRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.metastore.v1.ListBackupsRequest
+ * @static
+ * @param {google.cloud.metastore.v1.IListBackupsRequest} message ListBackupsRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListBackupsRequest.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.parent != null && Object.hasOwnProperty.call(message, "parent"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent);
+ if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize"))
+ writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize);
+ if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken);
+ if (message.filter != null && Object.hasOwnProperty.call(message, "filter"))
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.filter);
+ if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy"))
+ writer.uint32(/* id 5, wireType 2 =*/42).string(message.orderBy);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ListBackupsRequest message, length delimited. Does not implicitly {@link google.cloud.metastore.v1.ListBackupsRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.metastore.v1.ListBackupsRequest
+ * @static
+ * @param {google.cloud.metastore.v1.IListBackupsRequest} message ListBackupsRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListBackupsRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ListBackupsRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.metastore.v1.ListBackupsRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.metastore.v1.ListBackupsRequest} ListBackupsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListBackupsRequest.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.metastore.v1.ListBackupsRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.parent = reader.string();
+ break;
+ }
+ case 2: {
+ message.pageSize = reader.int32();
+ break;
+ }
+ case 3: {
+ message.pageToken = reader.string();
+ break;
+ }
+ case 4: {
+ message.filter = reader.string();
+ break;
+ }
+ case 5: {
+ message.orderBy = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ListBackupsRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.metastore.v1.ListBackupsRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.metastore.v1.ListBackupsRequest} ListBackupsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListBackupsRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ListBackupsRequest message.
+ * @function verify
+ * @memberof google.cloud.metastore.v1.ListBackupsRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ListBackupsRequest.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.parent != null && message.hasOwnProperty("parent"))
+ if (!$util.isString(message.parent))
+ return "parent: string expected";
+ if (message.pageSize != null && message.hasOwnProperty("pageSize"))
+ if (!$util.isInteger(message.pageSize))
+ return "pageSize: integer expected";
+ if (message.pageToken != null && message.hasOwnProperty("pageToken"))
+ if (!$util.isString(message.pageToken))
+ return "pageToken: string expected";
+ if (message.filter != null && message.hasOwnProperty("filter"))
+ if (!$util.isString(message.filter))
+ return "filter: string expected";
+ if (message.orderBy != null && message.hasOwnProperty("orderBy"))
+ if (!$util.isString(message.orderBy))
+ return "orderBy: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a ListBackupsRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.metastore.v1.ListBackupsRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.metastore.v1.ListBackupsRequest} ListBackupsRequest
+ */
+ ListBackupsRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.metastore.v1.ListBackupsRequest)
+ return object;
+ var message = new $root.google.cloud.metastore.v1.ListBackupsRequest();
+ if (object.parent != null)
+ message.parent = String(object.parent);
+ if (object.pageSize != null)
+ message.pageSize = object.pageSize | 0;
+ if (object.pageToken != null)
+ message.pageToken = String(object.pageToken);
+ if (object.filter != null)
+ message.filter = String(object.filter);
+ if (object.orderBy != null)
+ message.orderBy = String(object.orderBy);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ListBackupsRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.metastore.v1.ListBackupsRequest
+ * @static
+ * @param {google.cloud.metastore.v1.ListBackupsRequest} message ListBackupsRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ListBackupsRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.parent = "";
+ object.pageSize = 0;
+ object.pageToken = "";
+ object.filter = "";
+ object.orderBy = "";
+ }
+ if (message.parent != null && message.hasOwnProperty("parent"))
+ object.parent = message.parent;
+ if (message.pageSize != null && message.hasOwnProperty("pageSize"))
+ object.pageSize = message.pageSize;
+ if (message.pageToken != null && message.hasOwnProperty("pageToken"))
+ object.pageToken = message.pageToken;
+ if (message.filter != null && message.hasOwnProperty("filter"))
+ object.filter = message.filter;
+ if (message.orderBy != null && message.hasOwnProperty("orderBy"))
+ object.orderBy = message.orderBy;
+ return object;
+ };
+
+ /**
+ * Converts this ListBackupsRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.metastore.v1.ListBackupsRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ListBackupsRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ListBackupsRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.metastore.v1.ListBackupsRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ListBackupsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.metastore.v1.ListBackupsRequest";
+ };
+
+ return ListBackupsRequest;
+ })();
+
+ v1.ListBackupsResponse = (function() {
+
+ /**
+ * Properties of a ListBackupsResponse.
+ * @memberof google.cloud.metastore.v1
+ * @interface IListBackupsResponse
+ * @property {Array.|null} [backups] ListBackupsResponse backups
+ * @property {string|null} [nextPageToken] ListBackupsResponse nextPageToken
+ * @property {Array.|null} [unreachable] ListBackupsResponse unreachable
+ */
+
+ /**
+ * Constructs a new ListBackupsResponse.
+ * @memberof google.cloud.metastore.v1
+ * @classdesc Represents a ListBackupsResponse.
+ * @implements IListBackupsResponse
+ * @constructor
+ * @param {google.cloud.metastore.v1.IListBackupsResponse=} [properties] Properties to set
+ */
+ function ListBackupsResponse(properties) {
+ this.backups = [];
+ this.unreachable = [];
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null)
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * ListBackupsResponse backups.
+ * @member {Array.} backups
+ * @memberof google.cloud.metastore.v1.ListBackupsResponse
+ * @instance
+ */
+ ListBackupsResponse.prototype.backups = $util.emptyArray;
+
+ /**
+ * ListBackupsResponse nextPageToken.
+ * @member {string} nextPageToken
+ * @memberof google.cloud.metastore.v1.ListBackupsResponse
+ * @instance
+ */
+ ListBackupsResponse.prototype.nextPageToken = "";
+
+ /**
+ * ListBackupsResponse unreachable.
+ * @member {Array.} unreachable
+ * @memberof google.cloud.metastore.v1.ListBackupsResponse
+ * @instance
+ */
+ ListBackupsResponse.prototype.unreachable = $util.emptyArray;
+
+ /**
+ * Creates a new ListBackupsResponse instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.metastore.v1.ListBackupsResponse
+ * @static
+ * @param {google.cloud.metastore.v1.IListBackupsResponse=} [properties] Properties to set
+ * @returns {google.cloud.metastore.v1.ListBackupsResponse} ListBackupsResponse instance
+ */
+ ListBackupsResponse.create = function create(properties) {
+ return new ListBackupsResponse(properties);
+ };
+
+ /**
+ * Encodes the specified ListBackupsResponse message. Does not implicitly {@link google.cloud.metastore.v1.ListBackupsResponse.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.metastore.v1.ListBackupsResponse
+ * @static
+ * @param {google.cloud.metastore.v1.IListBackupsResponse} message ListBackupsResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListBackupsResponse.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.backups != null && message.backups.length)
+ for (var i = 0; i < message.backups.length; ++i)
+ $root.google.cloud.metastore.v1.Backup.encode(message.backups[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
+ if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken);
+ if (message.unreachable != null && message.unreachable.length)
+ for (var i = 0; i < message.unreachable.length; ++i)
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.unreachable[i]);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ListBackupsResponse message, length delimited. Does not implicitly {@link google.cloud.metastore.v1.ListBackupsResponse.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.metastore.v1.ListBackupsResponse
+ * @static
+ * @param {google.cloud.metastore.v1.IListBackupsResponse} message ListBackupsResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListBackupsResponse.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ListBackupsResponse message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.metastore.v1.ListBackupsResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.metastore.v1.ListBackupsResponse} ListBackupsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListBackupsResponse.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.metastore.v1.ListBackupsResponse();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ if (!(message.backups && message.backups.length))
+ message.backups = [];
+ message.backups.push($root.google.cloud.metastore.v1.Backup.decode(reader, reader.uint32()));
+ break;
+ }
+ case 2: {
+ message.nextPageToken = reader.string();
+ break;
+ }
+ case 3: {
+ if (!(message.unreachable && message.unreachable.length))
+ message.unreachable = [];
+ message.unreachable.push(reader.string());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ListBackupsResponse message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.metastore.v1.ListBackupsResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.metastore.v1.ListBackupsResponse} ListBackupsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListBackupsResponse.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ListBackupsResponse message.
+ * @function verify
+ * @memberof google.cloud.metastore.v1.ListBackupsResponse
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ListBackupsResponse.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.backups != null && message.hasOwnProperty("backups")) {
+ if (!Array.isArray(message.backups))
+ return "backups: array expected";
+ for (var i = 0; i < message.backups.length; ++i) {
+ var error = $root.google.cloud.metastore.v1.Backup.verify(message.backups[i]);
+ if (error)
+ return "backups." + error;
+ }
+ }
+ if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken"))
+ if (!$util.isString(message.nextPageToken))
+ return "nextPageToken: string expected";
+ if (message.unreachable != null && message.hasOwnProperty("unreachable")) {
+ if (!Array.isArray(message.unreachable))
+ return "unreachable: array expected";
+ for (var i = 0; i < message.unreachable.length; ++i)
+ if (!$util.isString(message.unreachable[i]))
+ return "unreachable: string[] expected";
+ }
+ return null;
+ };
+
+ /**
+ * Creates a ListBackupsResponse message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.metastore.v1.ListBackupsResponse
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.metastore.v1.ListBackupsResponse} ListBackupsResponse
+ */
+ ListBackupsResponse.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.metastore.v1.ListBackupsResponse)
+ return object;
+ var message = new $root.google.cloud.metastore.v1.ListBackupsResponse();
+ if (object.backups) {
+ if (!Array.isArray(object.backups))
+ throw TypeError(".google.cloud.metastore.v1.ListBackupsResponse.backups: array expected");
+ message.backups = [];
+ for (var i = 0; i < object.backups.length; ++i) {
+ if (typeof object.backups[i] !== "object")
+ throw TypeError(".google.cloud.metastore.v1.ListBackupsResponse.backups: object expected");
+ message.backups[i] = $root.google.cloud.metastore.v1.Backup.fromObject(object.backups[i]);
+ }
+ }
+ if (object.nextPageToken != null)
+ message.nextPageToken = String(object.nextPageToken);
+ if (object.unreachable) {
+ if (!Array.isArray(object.unreachable))
+ throw TypeError(".google.cloud.metastore.v1.ListBackupsResponse.unreachable: array expected");
+ message.unreachable = [];
+ for (var i = 0; i < object.unreachable.length; ++i)
+ message.unreachable[i] = String(object.unreachable[i]);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ListBackupsResponse message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.metastore.v1.ListBackupsResponse
+ * @static
+ * @param {google.cloud.metastore.v1.ListBackupsResponse} message ListBackupsResponse
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ListBackupsResponse.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults) {
+ object.backups = [];
+ object.unreachable = [];
+ }
+ if (options.defaults)
+ object.nextPageToken = "";
+ if (message.backups && message.backups.length) {
+ object.backups = [];
+ for (var j = 0; j < message.backups.length; ++j)
+ object.backups[j] = $root.google.cloud.metastore.v1.Backup.toObject(message.backups[j], options);
+ }
+ if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken"))
+ object.nextPageToken = message.nextPageToken;
+ if (message.unreachable && message.unreachable.length) {
+ object.unreachable = [];
+ for (var j = 0; j < message.unreachable.length; ++j)
+ object.unreachable[j] = message.unreachable[j];
+ }
+ return object;
+ };
+
+ /**
+ * Converts this ListBackupsResponse to JSON.
+ * @function toJSON
+ * @memberof google.cloud.metastore.v1.ListBackupsResponse
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ListBackupsResponse.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ListBackupsResponse
+ * @function getTypeUrl
+ * @memberof google.cloud.metastore.v1.ListBackupsResponse
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ListBackupsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.metastore.v1.ListBackupsResponse";
+ };
+
+ return ListBackupsResponse;
+ })();
+
+ v1.GetBackupRequest = (function() {
+
+ /**
+ * Properties of a GetBackupRequest.
+ * @memberof google.cloud.metastore.v1
+ * @interface IGetBackupRequest
+ * @property {string|null} [name] GetBackupRequest name
+ */
+
+ /**
+ * Constructs a new GetBackupRequest.
+ * @memberof google.cloud.metastore.v1
+ * @classdesc Represents a GetBackupRequest.
+ * @implements IGetBackupRequest
+ * @constructor
+ * @param {google.cloud.metastore.v1.IGetBackupRequest=} [properties] Properties to set
+ */
+ function GetBackupRequest(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]];
+ }
+
+ /**
+ * GetBackupRequest name.
+ * @member {string} name
+ * @memberof google.cloud.metastore.v1.GetBackupRequest
+ * @instance
+ */
+ GetBackupRequest.prototype.name = "";
+
+ /**
+ * Creates a new GetBackupRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.metastore.v1.GetBackupRequest
+ * @static
+ * @param {google.cloud.metastore.v1.IGetBackupRequest=} [properties] Properties to set
+ * @returns {google.cloud.metastore.v1.GetBackupRequest} GetBackupRequest instance
+ */
+ GetBackupRequest.create = function create(properties) {
+ return new GetBackupRequest(properties);
+ };
+
+ /**
+ * Encodes the specified GetBackupRequest message. Does not implicitly {@link google.cloud.metastore.v1.GetBackupRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.metastore.v1.GetBackupRequest
+ * @static
+ * @param {google.cloud.metastore.v1.IGetBackupRequest} message GetBackupRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GetBackupRequest.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 GetBackupRequest message, length delimited. Does not implicitly {@link google.cloud.metastore.v1.GetBackupRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.metastore.v1.GetBackupRequest
+ * @static
+ * @param {google.cloud.metastore.v1.IGetBackupRequest} message GetBackupRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GetBackupRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a GetBackupRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.metastore.v1.GetBackupRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.metastore.v1.GetBackupRequest} GetBackupRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GetBackupRequest.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.metastore.v1.GetBackupRequest();
+ 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 GetBackupRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.metastore.v1.GetBackupRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.metastore.v1.GetBackupRequest} GetBackupRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GetBackupRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a GetBackupRequest message.
+ * @function verify
+ * @memberof google.cloud.metastore.v1.GetBackupRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ GetBackupRequest.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 GetBackupRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.metastore.v1.GetBackupRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.metastore.v1.GetBackupRequest} GetBackupRequest
+ */
+ GetBackupRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.metastore.v1.GetBackupRequest)
+ return object;
+ var message = new $root.google.cloud.metastore.v1.GetBackupRequest();
+ if (object.name != null)
+ message.name = String(object.name);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a GetBackupRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.metastore.v1.GetBackupRequest
+ * @static
+ * @param {google.cloud.metastore.v1.GetBackupRequest} message GetBackupRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ GetBackupRequest.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 GetBackupRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.metastore.v1.GetBackupRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ GetBackupRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for GetBackupRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.metastore.v1.GetBackupRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ GetBackupRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.metastore.v1.GetBackupRequest";
+ };
+
+ return GetBackupRequest;
+ })();
+
+ v1.CreateBackupRequest = (function() {
+
+ /**
+ * Properties of a CreateBackupRequest.
+ * @memberof google.cloud.metastore.v1
+ * @interface ICreateBackupRequest
+ * @property {string|null} [parent] CreateBackupRequest parent
+ * @property {string|null} [backupId] CreateBackupRequest backupId
+ * @property {google.cloud.metastore.v1.IBackup|null} [backup] CreateBackupRequest backup
+ * @property {string|null} [requestId] CreateBackupRequest requestId
+ */
+
+ /**
+ * Constructs a new CreateBackupRequest.
+ * @memberof google.cloud.metastore.v1
+ * @classdesc Represents a CreateBackupRequest.
+ * @implements ICreateBackupRequest
+ * @constructor
+ * @param {google.cloud.metastore.v1.ICreateBackupRequest=} [properties] Properties to set
+ */
+ function CreateBackupRequest(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]];
+ }
+
+ /**
+ * CreateBackupRequest parent.
+ * @member {string} parent
+ * @memberof google.cloud.metastore.v1.CreateBackupRequest
+ * @instance
+ */
+ CreateBackupRequest.prototype.parent = "";
+
+ /**
+ * CreateBackupRequest backupId.
+ * @member {string} backupId
+ * @memberof google.cloud.metastore.v1.CreateBackupRequest
+ * @instance
+ */
+ CreateBackupRequest.prototype.backupId = "";
+
+ /**
+ * CreateBackupRequest backup.
+ * @member {google.cloud.metastore.v1.IBackup|null|undefined} backup
+ * @memberof google.cloud.metastore.v1.CreateBackupRequest
+ * @instance
+ */
+ CreateBackupRequest.prototype.backup = null;
+
+ /**
+ * CreateBackupRequest requestId.
+ * @member {string} requestId
+ * @memberof google.cloud.metastore.v1.CreateBackupRequest
+ * @instance
+ */
+ CreateBackupRequest.prototype.requestId = "";
+
+ /**
+ * Creates a new CreateBackupRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.metastore.v1.CreateBackupRequest
+ * @static
+ * @param {google.cloud.metastore.v1.ICreateBackupRequest=} [properties] Properties to set
+ * @returns {google.cloud.metastore.v1.CreateBackupRequest} CreateBackupRequest instance
+ */
+ CreateBackupRequest.create = function create(properties) {
+ return new CreateBackupRequest(properties);
+ };
+
+ /**
+ * Encodes the specified CreateBackupRequest message. Does not implicitly {@link google.cloud.metastore.v1.CreateBackupRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.metastore.v1.CreateBackupRequest
+ * @static
+ * @param {google.cloud.metastore.v1.ICreateBackupRequest} message CreateBackupRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ CreateBackupRequest.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.backupId != null && Object.hasOwnProperty.call(message, "backupId"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.backupId);
+ if (message.backup != null && Object.hasOwnProperty.call(message, "backup"))
+ $root.google.cloud.metastore.v1.Backup.encode(message.backup, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
+ if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId"))
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.requestId);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified CreateBackupRequest message, length delimited. Does not implicitly {@link google.cloud.metastore.v1.CreateBackupRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.metastore.v1.CreateBackupRequest
+ * @static
+ * @param {google.cloud.metastore.v1.ICreateBackupRequest} message CreateBackupRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ CreateBackupRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a CreateBackupRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.metastore.v1.CreateBackupRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.metastore.v1.CreateBackupRequest} CreateBackupRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ CreateBackupRequest.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.metastore.v1.CreateBackupRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.parent = reader.string();
+ break;
+ }
+ case 2: {
+ message.backupId = reader.string();
+ break;
+ }
+ case 3: {
+ message.backup = $root.google.cloud.metastore.v1.Backup.decode(reader, reader.uint32());
+ break;
+ }
+ case 4: {
+ message.requestId = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a CreateBackupRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.metastore.v1.CreateBackupRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.metastore.v1.CreateBackupRequest} CreateBackupRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ CreateBackupRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a CreateBackupRequest message.
+ * @function verify
+ * @memberof google.cloud.metastore.v1.CreateBackupRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ CreateBackupRequest.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.backupId != null && message.hasOwnProperty("backupId"))
+ if (!$util.isString(message.backupId))
+ return "backupId: string expected";
+ if (message.backup != null && message.hasOwnProperty("backup")) {
+ var error = $root.google.cloud.metastore.v1.Backup.verify(message.backup);
+ if (error)
+ return "backup." + error;
+ }
+ if (message.requestId != null && message.hasOwnProperty("requestId"))
+ if (!$util.isString(message.requestId))
+ return "requestId: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a CreateBackupRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.metastore.v1.CreateBackupRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.metastore.v1.CreateBackupRequest} CreateBackupRequest
+ */
+ CreateBackupRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.metastore.v1.CreateBackupRequest)
+ return object;
+ var message = new $root.google.cloud.metastore.v1.CreateBackupRequest();
+ if (object.parent != null)
+ message.parent = String(object.parent);
+ if (object.backupId != null)
+ message.backupId = String(object.backupId);
+ if (object.backup != null) {
+ if (typeof object.backup !== "object")
+ throw TypeError(".google.cloud.metastore.v1.CreateBackupRequest.backup: object expected");
+ message.backup = $root.google.cloud.metastore.v1.Backup.fromObject(object.backup);
+ }
+ if (object.requestId != null)
+ message.requestId = String(object.requestId);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a CreateBackupRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.metastore.v1.CreateBackupRequest
+ * @static
+ * @param {google.cloud.metastore.v1.CreateBackupRequest} message CreateBackupRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ CreateBackupRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.parent = "";
+ object.backupId = "";
+ object.backup = null;
+ object.requestId = "";
+ }
+ if (message.parent != null && message.hasOwnProperty("parent"))
+ object.parent = message.parent;
+ if (message.backupId != null && message.hasOwnProperty("backupId"))
+ object.backupId = message.backupId;
+ if (message.backup != null && message.hasOwnProperty("backup"))
+ object.backup = $root.google.cloud.metastore.v1.Backup.toObject(message.backup, options);
+ if (message.requestId != null && message.hasOwnProperty("requestId"))
+ object.requestId = message.requestId;
+ return object;
+ };
+
+ /**
+ * Converts this CreateBackupRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.metastore.v1.CreateBackupRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ CreateBackupRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for CreateBackupRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.metastore.v1.CreateBackupRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ CreateBackupRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.metastore.v1.CreateBackupRequest";
+ };
+
+ return CreateBackupRequest;
+ })();
+
+ v1.DeleteBackupRequest = (function() {
+
+ /**
+ * Properties of a DeleteBackupRequest.
+ * @memberof google.cloud.metastore.v1
+ * @interface IDeleteBackupRequest
+ * @property {string|null} [name] DeleteBackupRequest name
+ * @property {string|null} [requestId] DeleteBackupRequest requestId
+ */
+
+ /**
+ * Constructs a new DeleteBackupRequest.
+ * @memberof google.cloud.metastore.v1
+ * @classdesc Represents a DeleteBackupRequest.
+ * @implements IDeleteBackupRequest
+ * @constructor
+ * @param {google.cloud.metastore.v1.IDeleteBackupRequest=} [properties] Properties to set
+ */
+ function DeleteBackupRequest(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]];
+ }
+
+ /**
+ * DeleteBackupRequest name.
+ * @member {string} name
+ * @memberof google.cloud.metastore.v1.DeleteBackupRequest
+ * @instance
+ */
+ DeleteBackupRequest.prototype.name = "";
+
+ /**
+ * DeleteBackupRequest requestId.
+ * @member {string} requestId
+ * @memberof google.cloud.metastore.v1.DeleteBackupRequest
+ * @instance
+ */
+ DeleteBackupRequest.prototype.requestId = "";
+
+ /**
+ * Creates a new DeleteBackupRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.metastore.v1.DeleteBackupRequest
+ * @static
+ * @param {google.cloud.metastore.v1.IDeleteBackupRequest=} [properties] Properties to set
+ * @returns {google.cloud.metastore.v1.DeleteBackupRequest} DeleteBackupRequest instance
+ */
+ DeleteBackupRequest.create = function create(properties) {
+ return new DeleteBackupRequest(properties);
+ };
+
+ /**
+ * Encodes the specified DeleteBackupRequest message. Does not implicitly {@link google.cloud.metastore.v1.DeleteBackupRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.metastore.v1.DeleteBackupRequest
+ * @static
+ * @param {google.cloud.metastore.v1.IDeleteBackupRequest} message DeleteBackupRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ DeleteBackupRequest.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.requestId != null && Object.hasOwnProperty.call(message, "requestId"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.requestId);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified DeleteBackupRequest message, length delimited. Does not implicitly {@link google.cloud.metastore.v1.DeleteBackupRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.metastore.v1.DeleteBackupRequest
+ * @static
+ * @param {google.cloud.metastore.v1.IDeleteBackupRequest} message DeleteBackupRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ DeleteBackupRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a DeleteBackupRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.metastore.v1.DeleteBackupRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.metastore.v1.DeleteBackupRequest} DeleteBackupRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ DeleteBackupRequest.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.metastore.v1.DeleteBackupRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.name = reader.string();
+ break;
+ }
+ case 2: {
+ message.requestId = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a DeleteBackupRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.metastore.v1.DeleteBackupRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.metastore.v1.DeleteBackupRequest} DeleteBackupRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ DeleteBackupRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a DeleteBackupRequest message.
+ * @function verify
+ * @memberof google.cloud.metastore.v1.DeleteBackupRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ DeleteBackupRequest.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.requestId != null && message.hasOwnProperty("requestId"))
+ if (!$util.isString(message.requestId))
+ return "requestId: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a DeleteBackupRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.metastore.v1.DeleteBackupRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.metastore.v1.DeleteBackupRequest} DeleteBackupRequest
+ */
+ DeleteBackupRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.metastore.v1.DeleteBackupRequest)
+ return object;
+ var message = new $root.google.cloud.metastore.v1.DeleteBackupRequest();
+ if (object.name != null)
+ message.name = String(object.name);
+ if (object.requestId != null)
+ message.requestId = String(object.requestId);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a DeleteBackupRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.metastore.v1.DeleteBackupRequest
+ * @static
+ * @param {google.cloud.metastore.v1.DeleteBackupRequest} message DeleteBackupRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ DeleteBackupRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.name = "";
+ object.requestId = "";
+ }
+ if (message.name != null && message.hasOwnProperty("name"))
+ object.name = message.name;
+ if (message.requestId != null && message.hasOwnProperty("requestId"))
+ object.requestId = message.requestId;
+ return object;
+ };
+
+ /**
+ * Converts this DeleteBackupRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.metastore.v1.DeleteBackupRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ DeleteBackupRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for DeleteBackupRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.metastore.v1.DeleteBackupRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ DeleteBackupRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.metastore.v1.DeleteBackupRequest";
+ };
+
+ return DeleteBackupRequest;
+ })();
+
+ v1.ExportMetadataRequest = (function() {
+
+ /**
+ * Properties of an ExportMetadataRequest.
+ * @memberof google.cloud.metastore.v1
+ * @interface IExportMetadataRequest
+ * @property {string|null} [destinationGcsFolder] ExportMetadataRequest destinationGcsFolder
+ * @property {string|null} [service] ExportMetadataRequest service
+ * @property {string|null} [requestId] ExportMetadataRequest requestId
+ * @property {google.cloud.metastore.v1.DatabaseDumpSpec.Type|null} [databaseDumpType] ExportMetadataRequest databaseDumpType
+ */
+
+ /**
+ * Constructs a new ExportMetadataRequest.
+ * @memberof google.cloud.metastore.v1
+ * @classdesc Represents an ExportMetadataRequest.
+ * @implements IExportMetadataRequest
+ * @constructor
+ * @param {google.cloud.metastore.v1.IExportMetadataRequest=} [properties] Properties to set
+ */
+ function ExportMetadataRequest(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]];
+ }
+
+ /**
+ * ExportMetadataRequest destinationGcsFolder.
+ * @member {string|null|undefined} destinationGcsFolder
+ * @memberof google.cloud.metastore.v1.ExportMetadataRequest
+ * @instance
+ */
+ ExportMetadataRequest.prototype.destinationGcsFolder = null;
+
+ /**
+ * ExportMetadataRequest service.
+ * @member {string} service
+ * @memberof google.cloud.metastore.v1.ExportMetadataRequest
+ * @instance
+ */
+ ExportMetadataRequest.prototype.service = "";
+
+ /**
+ * ExportMetadataRequest requestId.
+ * @member {string} requestId
+ * @memberof google.cloud.metastore.v1.ExportMetadataRequest
+ * @instance
+ */
+ ExportMetadataRequest.prototype.requestId = "";
+
+ /**
+ * ExportMetadataRequest databaseDumpType.
+ * @member {google.cloud.metastore.v1.DatabaseDumpSpec.Type} databaseDumpType
+ * @memberof google.cloud.metastore.v1.ExportMetadataRequest
+ * @instance
+ */
+ ExportMetadataRequest.prototype.databaseDumpType = 0;
+
+ // OneOf field names bound to virtual getters and setters
+ var $oneOfFields;
+
+ /**
+ * ExportMetadataRequest destination.
+ * @member {"destinationGcsFolder"|undefined} destination
+ * @memberof google.cloud.metastore.v1.ExportMetadataRequest
+ * @instance
+ */
+ Object.defineProperty(ExportMetadataRequest.prototype, "destination", {
+ get: $util.oneOfGetter($oneOfFields = ["destinationGcsFolder"]),
+ set: $util.oneOfSetter($oneOfFields)
+ });
+
+ /**
+ * Creates a new ExportMetadataRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.metastore.v1.ExportMetadataRequest
+ * @static
+ * @param {google.cloud.metastore.v1.IExportMetadataRequest=} [properties] Properties to set
+ * @returns {google.cloud.metastore.v1.ExportMetadataRequest} ExportMetadataRequest instance
+ */
+ ExportMetadataRequest.create = function create(properties) {
+ return new ExportMetadataRequest(properties);
+ };
+
+ /**
+ * Encodes the specified ExportMetadataRequest message. Does not implicitly {@link google.cloud.metastore.v1.ExportMetadataRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.metastore.v1.ExportMetadataRequest
+ * @static
+ * @param {google.cloud.metastore.v1.IExportMetadataRequest} message ExportMetadataRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ExportMetadataRequest.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.service != null && Object.hasOwnProperty.call(message, "service"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.service);
+ if (message.destinationGcsFolder != null && Object.hasOwnProperty.call(message, "destinationGcsFolder"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.destinationGcsFolder);
+ if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.requestId);
+ if (message.databaseDumpType != null && Object.hasOwnProperty.call(message, "databaseDumpType"))
+ writer.uint32(/* id 4, wireType 0 =*/32).int32(message.databaseDumpType);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ExportMetadataRequest message, length delimited. Does not implicitly {@link google.cloud.metastore.v1.ExportMetadataRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.metastore.v1.ExportMetadataRequest
+ * @static
+ * @param {google.cloud.metastore.v1.IExportMetadataRequest} message ExportMetadataRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ExportMetadataRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes an ExportMetadataRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.metastore.v1.ExportMetadataRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.metastore.v1.ExportMetadataRequest} ExportMetadataRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ExportMetadataRequest.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.metastore.v1.ExportMetadataRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 2: {
+ message.destinationGcsFolder = reader.string();
+ break;
+ }
+ case 1: {
+ message.service = reader.string();
+ break;
+ }
+ case 3: {
+ message.requestId = reader.string();
+ break;
+ }
+ case 4: {
+ message.databaseDumpType = reader.int32();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an ExportMetadataRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.metastore.v1.ExportMetadataRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.metastore.v1.ExportMetadataRequest} ExportMetadataRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ExportMetadataRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an ExportMetadataRequest message.
+ * @function verify
+ * @memberof google.cloud.metastore.v1.ExportMetadataRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ExportMetadataRequest.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ var properties = {};
+ if (message.destinationGcsFolder != null && message.hasOwnProperty("destinationGcsFolder")) {
+ properties.destination = 1;
+ if (!$util.isString(message.destinationGcsFolder))
+ return "destinationGcsFolder: string expected";
+ }
+ if (message.service != null && message.hasOwnProperty("service"))
+ if (!$util.isString(message.service))
+ return "service: string expected";
+ if (message.requestId != null && message.hasOwnProperty("requestId"))
+ if (!$util.isString(message.requestId))
+ return "requestId: string expected";
+ if (message.databaseDumpType != null && message.hasOwnProperty("databaseDumpType"))
+ switch (message.databaseDumpType) {
+ default:
+ return "databaseDumpType: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ break;
+ }
+ return null;
+ };
+
+ /**
+ * Creates an ExportMetadataRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.metastore.v1.ExportMetadataRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.metastore.v1.ExportMetadataRequest} ExportMetadataRequest
+ */
+ ExportMetadataRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.metastore.v1.ExportMetadataRequest)
+ return object;
+ var message = new $root.google.cloud.metastore.v1.ExportMetadataRequest();
+ if (object.destinationGcsFolder != null)
+ message.destinationGcsFolder = String(object.destinationGcsFolder);
+ if (object.service != null)
+ message.service = String(object.service);
+ if (object.requestId != null)
+ message.requestId = String(object.requestId);
+ switch (object.databaseDumpType) {
+ default:
+ if (typeof object.databaseDumpType === "number") {
+ message.databaseDumpType = object.databaseDumpType;
+ break;
+ }
+ break;
+ case "TYPE_UNSPECIFIED":
+ case 0:
+ message.databaseDumpType = 0;
+ break;
+ case "MYSQL":
+ case 1:
+ message.databaseDumpType = 1;
+ break;
+ case "AVRO":
+ case 2:
+ message.databaseDumpType = 2;
+ break;
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an ExportMetadataRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.metastore.v1.ExportMetadataRequest
+ * @static
+ * @param {google.cloud.metastore.v1.ExportMetadataRequest} message ExportMetadataRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ExportMetadataRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.service = "";
+ object.requestId = "";
+ object.databaseDumpType = options.enums === String ? "TYPE_UNSPECIFIED" : 0;
+ }
+ if (message.service != null && message.hasOwnProperty("service"))
+ object.service = message.service;
+ if (message.destinationGcsFolder != null && message.hasOwnProperty("destinationGcsFolder")) {
+ object.destinationGcsFolder = message.destinationGcsFolder;
+ if (options.oneofs)
+ object.destination = "destinationGcsFolder";
+ }
+ if (message.requestId != null && message.hasOwnProperty("requestId"))
+ object.requestId = message.requestId;
+ if (message.databaseDumpType != null && message.hasOwnProperty("databaseDumpType"))
+ object.databaseDumpType = options.enums === String ? $root.google.cloud.metastore.v1.DatabaseDumpSpec.Type[message.databaseDumpType] === undefined ? message.databaseDumpType : $root.google.cloud.metastore.v1.DatabaseDumpSpec.Type[message.databaseDumpType] : message.databaseDumpType;
+ return object;
+ };
+
+ /**
+ * Converts this ExportMetadataRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.metastore.v1.ExportMetadataRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ExportMetadataRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ExportMetadataRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.metastore.v1.ExportMetadataRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ExportMetadataRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.metastore.v1.ExportMetadataRequest";
+ };
+
+ return ExportMetadataRequest;
+ })();
+
+ v1.RestoreServiceRequest = (function() {
+
+ /**
+ * Properties of a RestoreServiceRequest.
+ * @memberof google.cloud.metastore.v1
+ * @interface IRestoreServiceRequest
+ * @property {string|null} [service] RestoreServiceRequest service
+ * @property {string|null} [backup] RestoreServiceRequest backup
+ * @property {google.cloud.metastore.v1.Restore.RestoreType|null} [restoreType] RestoreServiceRequest restoreType
+ * @property {string|null} [requestId] RestoreServiceRequest requestId
+ */
+
+ /**
+ * Constructs a new RestoreServiceRequest.
+ * @memberof google.cloud.metastore.v1
+ * @classdesc Represents a RestoreServiceRequest.
+ * @implements IRestoreServiceRequest
+ * @constructor
+ * @param {google.cloud.metastore.v1.IRestoreServiceRequest=} [properties] Properties to set
+ */
+ function RestoreServiceRequest(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]];
+ }
+
+ /**
+ * RestoreServiceRequest service.
+ * @member {string} service
+ * @memberof google.cloud.metastore.v1.RestoreServiceRequest
+ * @instance
+ */
+ RestoreServiceRequest.prototype.service = "";
+
+ /**
+ * RestoreServiceRequest backup.
+ * @member {string} backup
+ * @memberof google.cloud.metastore.v1.RestoreServiceRequest
+ * @instance
+ */
+ RestoreServiceRequest.prototype.backup = "";
+
+ /**
+ * RestoreServiceRequest restoreType.
+ * @member {google.cloud.metastore.v1.Restore.RestoreType} restoreType
+ * @memberof google.cloud.metastore.v1.RestoreServiceRequest
+ * @instance
+ */
+ RestoreServiceRequest.prototype.restoreType = 0;
+
+ /**
+ * RestoreServiceRequest requestId.
+ * @member {string} requestId
+ * @memberof google.cloud.metastore.v1.RestoreServiceRequest
+ * @instance
+ */
+ RestoreServiceRequest.prototype.requestId = "";
+
+ /**
+ * Creates a new RestoreServiceRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.metastore.v1.RestoreServiceRequest
+ * @static
+ * @param {google.cloud.metastore.v1.IRestoreServiceRequest=} [properties] Properties to set
+ * @returns {google.cloud.metastore.v1.RestoreServiceRequest} RestoreServiceRequest instance
+ */
+ RestoreServiceRequest.create = function create(properties) {
+ return new RestoreServiceRequest(properties);
+ };
+
+ /**
+ * Encodes the specified RestoreServiceRequest message. Does not implicitly {@link google.cloud.metastore.v1.RestoreServiceRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.metastore.v1.RestoreServiceRequest
+ * @static
+ * @param {google.cloud.metastore.v1.IRestoreServiceRequest} message RestoreServiceRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ RestoreServiceRequest.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.service != null && Object.hasOwnProperty.call(message, "service"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.service);
+ if (message.backup != null && Object.hasOwnProperty.call(message, "backup"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.backup);
+ if (message.restoreType != null && Object.hasOwnProperty.call(message, "restoreType"))
+ writer.uint32(/* id 3, wireType 0 =*/24).int32(message.restoreType);
+ if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId"))
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.requestId);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified RestoreServiceRequest message, length delimited. Does not implicitly {@link google.cloud.metastore.v1.RestoreServiceRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.metastore.v1.RestoreServiceRequest
+ * @static
+ * @param {google.cloud.metastore.v1.IRestoreServiceRequest} message RestoreServiceRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ RestoreServiceRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a RestoreServiceRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.metastore.v1.RestoreServiceRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.metastore.v1.RestoreServiceRequest} RestoreServiceRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ RestoreServiceRequest.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.metastore.v1.RestoreServiceRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.service = reader.string();
+ break;
+ }
+ case 2: {
+ message.backup = reader.string();
+ break;
+ }
+ case 3: {
+ message.restoreType = reader.int32();
+ break;
+ }
+ case 4: {
+ message.requestId = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a RestoreServiceRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.metastore.v1.RestoreServiceRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.metastore.v1.RestoreServiceRequest} RestoreServiceRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ RestoreServiceRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a RestoreServiceRequest message.
+ * @function verify
+ * @memberof google.cloud.metastore.v1.RestoreServiceRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ RestoreServiceRequest.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.service != null && message.hasOwnProperty("service"))
+ if (!$util.isString(message.service))
+ return "service: string expected";
+ if (message.backup != null && message.hasOwnProperty("backup"))
+ if (!$util.isString(message.backup))
+ return "backup: string expected";
+ if (message.restoreType != null && message.hasOwnProperty("restoreType"))
+ switch (message.restoreType) {
+ default:
+ return "restoreType: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ break;
+ }
+ if (message.requestId != null && message.hasOwnProperty("requestId"))
+ if (!$util.isString(message.requestId))
+ return "requestId: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a RestoreServiceRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.metastore.v1.RestoreServiceRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.metastore.v1.RestoreServiceRequest} RestoreServiceRequest
+ */
+ RestoreServiceRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.metastore.v1.RestoreServiceRequest)
+ return object;
+ var message = new $root.google.cloud.metastore.v1.RestoreServiceRequest();
+ if (object.service != null)
+ message.service = String(object.service);
+ if (object.backup != null)
+ message.backup = String(object.backup);
+ switch (object.restoreType) {
+ default:
+ if (typeof object.restoreType === "number") {
+ message.restoreType = object.restoreType;
+ break;
+ }
+ break;
+ case "RESTORE_TYPE_UNSPECIFIED":
+ case 0:
+ message.restoreType = 0;
+ break;
+ case "FULL":
+ case 1:
+ message.restoreType = 1;
+ break;
+ case "METADATA_ONLY":
+ case 2:
+ message.restoreType = 2;
+ break;
+ }
+ if (object.requestId != null)
+ message.requestId = String(object.requestId);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a RestoreServiceRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.metastore.v1.RestoreServiceRequest
+ * @static
+ * @param {google.cloud.metastore.v1.RestoreServiceRequest} message RestoreServiceRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ RestoreServiceRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.service = "";
+ object.backup = "";
+ object.restoreType = options.enums === String ? "RESTORE_TYPE_UNSPECIFIED" : 0;
+ object.requestId = "";
+ }
+ if (message.service != null && message.hasOwnProperty("service"))
+ object.service = message.service;
+ if (message.backup != null && message.hasOwnProperty("backup"))
+ object.backup = message.backup;
+ if (message.restoreType != null && message.hasOwnProperty("restoreType"))
+ object.restoreType = options.enums === String ? $root.google.cloud.metastore.v1.Restore.RestoreType[message.restoreType] === undefined ? message.restoreType : $root.google.cloud.metastore.v1.Restore.RestoreType[message.restoreType] : message.restoreType;
+ if (message.requestId != null && message.hasOwnProperty("requestId"))
+ object.requestId = message.requestId;
+ return object;
+ };
+
+ /**
+ * Converts this RestoreServiceRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.metastore.v1.RestoreServiceRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ RestoreServiceRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for RestoreServiceRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.metastore.v1.RestoreServiceRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ RestoreServiceRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.metastore.v1.RestoreServiceRequest";
+ };
+
+ return RestoreServiceRequest;
+ })();
+
+ v1.OperationMetadata = (function() {
+
+ /**
+ * Properties of an OperationMetadata.
+ * @memberof google.cloud.metastore.v1
+ * @interface IOperationMetadata
+ * @property {google.protobuf.ITimestamp|null} [createTime] OperationMetadata createTime
+ * @property {google.protobuf.ITimestamp|null} [endTime] OperationMetadata endTime
+ * @property {string|null} [target] OperationMetadata target
+ * @property {string|null} [verb] OperationMetadata verb
+ * @property {string|null} [statusMessage] OperationMetadata statusMessage
+ * @property {boolean|null} [requestedCancellation] OperationMetadata requestedCancellation
+ * @property {string|null} [apiVersion] OperationMetadata apiVersion
+ */
+
+ /**
+ * Constructs a new OperationMetadata.
+ * @memberof google.cloud.metastore.v1
+ * @classdesc Represents an OperationMetadata.
+ * @implements IOperationMetadata
+ * @constructor
+ * @param {google.cloud.metastore.v1.IOperationMetadata=} [properties] Properties to set
+ */
+ function OperationMetadata(properties) {
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null)
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * OperationMetadata createTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} createTime
+ * @memberof google.cloud.metastore.v1.OperationMetadata
+ * @instance
+ */
+ OperationMetadata.prototype.createTime = null;
+
+ /**
+ * OperationMetadata endTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} endTime
+ * @memberof google.cloud.metastore.v1.OperationMetadata
+ * @instance
+ */
+ OperationMetadata.prototype.endTime = null;
+
+ /**
+ * OperationMetadata target.
+ * @member {string} target
+ * @memberof google.cloud.metastore.v1.OperationMetadata
+ * @instance
+ */
+ OperationMetadata.prototype.target = "";
+
+ /**
+ * OperationMetadata verb.
+ * @member {string} verb
+ * @memberof google.cloud.metastore.v1.OperationMetadata
+ * @instance
+ */
+ OperationMetadata.prototype.verb = "";
+
+ /**
+ * OperationMetadata statusMessage.
+ * @member {string} statusMessage
+ * @memberof google.cloud.metastore.v1.OperationMetadata
+ * @instance
+ */
+ OperationMetadata.prototype.statusMessage = "";
+
+ /**
+ * OperationMetadata requestedCancellation.
+ * @member {boolean} requestedCancellation
+ * @memberof google.cloud.metastore.v1.OperationMetadata
+ * @instance
+ */
+ OperationMetadata.prototype.requestedCancellation = false;
+
+ /**
+ * OperationMetadata apiVersion.
+ * @member {string} apiVersion
+ * @memberof google.cloud.metastore.v1.OperationMetadata
+ * @instance
+ */
+ OperationMetadata.prototype.apiVersion = "";
+
+ /**
+ * Creates a new OperationMetadata instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.metastore.v1.OperationMetadata
+ * @static
+ * @param {google.cloud.metastore.v1.IOperationMetadata=} [properties] Properties to set
+ * @returns {google.cloud.metastore.v1.OperationMetadata} OperationMetadata instance
+ */
+ OperationMetadata.create = function create(properties) {
+ return new OperationMetadata(properties);
+ };
+
+ /**
+ * Encodes the specified OperationMetadata message. Does not implicitly {@link google.cloud.metastore.v1.OperationMetadata.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.metastore.v1.OperationMetadata
+ * @static
+ * @param {google.cloud.metastore.v1.IOperationMetadata} message OperationMetadata message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ OperationMetadata.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime"))
+ $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
+ if (message.endTime != null && Object.hasOwnProperty.call(message, "endTime"))
+ $root.google.protobuf.Timestamp.encode(message.endTime, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
+ if (message.target != null && Object.hasOwnProperty.call(message, "target"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.target);
+ if (message.verb != null && Object.hasOwnProperty.call(message, "verb"))
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.verb);
+ if (message.statusMessage != null && Object.hasOwnProperty.call(message, "statusMessage"))
+ writer.uint32(/* id 5, wireType 2 =*/42).string(message.statusMessage);
+ if (message.requestedCancellation != null && Object.hasOwnProperty.call(message, "requestedCancellation"))
+ writer.uint32(/* id 6, wireType 0 =*/48).bool(message.requestedCancellation);
+ if (message.apiVersion != null && Object.hasOwnProperty.call(message, "apiVersion"))
+ writer.uint32(/* id 7, wireType 2 =*/58).string(message.apiVersion);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified OperationMetadata message, length delimited. Does not implicitly {@link google.cloud.metastore.v1.OperationMetadata.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.metastore.v1.OperationMetadata
+ * @static
+ * @param {google.cloud.metastore.v1.IOperationMetadata} message OperationMetadata message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ OperationMetadata.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes an OperationMetadata message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.metastore.v1.OperationMetadata
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.metastore.v1.OperationMetadata} OperationMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ OperationMetadata.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.metastore.v1.OperationMetadata();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
+ break;
+ }
+ case 2: {
+ message.endTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
+ break;
+ }
+ case 3: {
+ message.target = reader.string();
+ break;
+ }
+ case 4: {
+ message.verb = reader.string();
+ break;
+ }
+ case 5: {
+ message.statusMessage = reader.string();
+ break;
+ }
+ case 6: {
+ message.requestedCancellation = reader.bool();
+ break;
+ }
+ case 7: {
+ message.apiVersion = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an OperationMetadata message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.metastore.v1.OperationMetadata
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.metastore.v1.OperationMetadata} OperationMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ OperationMetadata.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an OperationMetadata message.
+ * @function verify
+ * @memberof google.cloud.metastore.v1.OperationMetadata
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ OperationMetadata.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.createTime != null && message.hasOwnProperty("createTime")) {
+ var error = $root.google.protobuf.Timestamp.verify(message.createTime);
+ if (error)
+ return "createTime." + error;
+ }
+ if (message.endTime != null && message.hasOwnProperty("endTime")) {
+ var error = $root.google.protobuf.Timestamp.verify(message.endTime);
+ if (error)
+ return "endTime." + error;
+ }
+ if (message.target != null && message.hasOwnProperty("target"))
+ if (!$util.isString(message.target))
+ return "target: string expected";
+ if (message.verb != null && message.hasOwnProperty("verb"))
+ if (!$util.isString(message.verb))
+ return "verb: string expected";
+ if (message.statusMessage != null && message.hasOwnProperty("statusMessage"))
+ if (!$util.isString(message.statusMessage))
+ return "statusMessage: string expected";
+ if (message.requestedCancellation != null && message.hasOwnProperty("requestedCancellation"))
+ if (typeof message.requestedCancellation !== "boolean")
+ return "requestedCancellation: boolean expected";
+ if (message.apiVersion != null && message.hasOwnProperty("apiVersion"))
+ if (!$util.isString(message.apiVersion))
+ return "apiVersion: string expected";
+ return null;
+ };
+
+ /**
+ * Creates an OperationMetadata message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.metastore.v1.OperationMetadata
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.metastore.v1.OperationMetadata} OperationMetadata
+ */
+ OperationMetadata.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.metastore.v1.OperationMetadata)
+ return object;
+ var message = new $root.google.cloud.metastore.v1.OperationMetadata();
+ if (object.createTime != null) {
+ if (typeof object.createTime !== "object")
+ throw TypeError(".google.cloud.metastore.v1.OperationMetadata.createTime: object expected");
+ message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime);
+ }
+ if (object.endTime != null) {
+ if (typeof object.endTime !== "object")
+ throw TypeError(".google.cloud.metastore.v1.OperationMetadata.endTime: object expected");
+ message.endTime = $root.google.protobuf.Timestamp.fromObject(object.endTime);
+ }
+ if (object.target != null)
+ message.target = String(object.target);
+ if (object.verb != null)
+ message.verb = String(object.verb);
+ if (object.statusMessage != null)
+ message.statusMessage = String(object.statusMessage);
+ if (object.requestedCancellation != null)
+ message.requestedCancellation = Boolean(object.requestedCancellation);
+ if (object.apiVersion != null)
+ message.apiVersion = String(object.apiVersion);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an OperationMetadata message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.metastore.v1.OperationMetadata
+ * @static
+ * @param {google.cloud.metastore.v1.OperationMetadata} message OperationMetadata
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ OperationMetadata.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.createTime = null;
+ object.endTime = null;
+ object.target = "";
+ object.verb = "";
+ object.statusMessage = "";
+ object.requestedCancellation = false;
+ object.apiVersion = "";
+ }
+ if (message.createTime != null && message.hasOwnProperty("createTime"))
+ object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options);
+ if (message.endTime != null && message.hasOwnProperty("endTime"))
+ object.endTime = $root.google.protobuf.Timestamp.toObject(message.endTime, options);
+ if (message.target != null && message.hasOwnProperty("target"))
+ object.target = message.target;
+ if (message.verb != null && message.hasOwnProperty("verb"))
+ object.verb = message.verb;
+ if (message.statusMessage != null && message.hasOwnProperty("statusMessage"))
+ object.statusMessage = message.statusMessage;
+ if (message.requestedCancellation != null && message.hasOwnProperty("requestedCancellation"))
+ object.requestedCancellation = message.requestedCancellation;
+ if (message.apiVersion != null && message.hasOwnProperty("apiVersion"))
+ object.apiVersion = message.apiVersion;
+ return object;
+ };
+
+ /**
+ * Converts this OperationMetadata to JSON.
+ * @function toJSON
+ * @memberof google.cloud.metastore.v1.OperationMetadata
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ OperationMetadata.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for OperationMetadata
+ * @function getTypeUrl
+ * @memberof google.cloud.metastore.v1.OperationMetadata
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ OperationMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.metastore.v1.OperationMetadata";
+ };
+
+ return OperationMetadata;
+ })();
+
+ v1.LocationMetadata = (function() {
+
+ /**
+ * Properties of a LocationMetadata.
+ * @memberof google.cloud.metastore.v1
+ * @interface ILocationMetadata
+ * @property {Array.|null} [supportedHiveMetastoreVersions] LocationMetadata supportedHiveMetastoreVersions
+ */
+
+ /**
+ * Constructs a new LocationMetadata.
+ * @memberof google.cloud.metastore.v1
+ * @classdesc Represents a LocationMetadata.
+ * @implements ILocationMetadata
+ * @constructor
+ * @param {google.cloud.metastore.v1.ILocationMetadata=} [properties] Properties to set
+ */
+ function LocationMetadata(properties) {
+ this.supportedHiveMetastoreVersions = [];
+ 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]];
+ }
+
+ /**
+ * LocationMetadata supportedHiveMetastoreVersions.
+ * @member {Array.} supportedHiveMetastoreVersions
+ * @memberof google.cloud.metastore.v1.LocationMetadata
+ * @instance
+ */
+ LocationMetadata.prototype.supportedHiveMetastoreVersions = $util.emptyArray;
+
+ /**
+ * Creates a new LocationMetadata instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.metastore.v1.LocationMetadata
+ * @static
+ * @param {google.cloud.metastore.v1.ILocationMetadata=} [properties] Properties to set
+ * @returns {google.cloud.metastore.v1.LocationMetadata} LocationMetadata instance
+ */
+ LocationMetadata.create = function create(properties) {
+ return new LocationMetadata(properties);
+ };
+
+ /**
+ * Encodes the specified LocationMetadata message. Does not implicitly {@link google.cloud.metastore.v1.LocationMetadata.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.metastore.v1.LocationMetadata
+ * @static
+ * @param {google.cloud.metastore.v1.ILocationMetadata} message LocationMetadata message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ LocationMetadata.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.supportedHiveMetastoreVersions != null && message.supportedHiveMetastoreVersions.length)
+ for (var i = 0; i < message.supportedHiveMetastoreVersions.length; ++i)
+ $root.google.cloud.metastore.v1.LocationMetadata.HiveMetastoreVersion.encode(message.supportedHiveMetastoreVersions[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified LocationMetadata message, length delimited. Does not implicitly {@link google.cloud.metastore.v1.LocationMetadata.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.metastore.v1.LocationMetadata
+ * @static
+ * @param {google.cloud.metastore.v1.ILocationMetadata} message LocationMetadata message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ LocationMetadata.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a LocationMetadata message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.metastore.v1.LocationMetadata
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.metastore.v1.LocationMetadata} LocationMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ LocationMetadata.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.metastore.v1.LocationMetadata();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ if (!(message.supportedHiveMetastoreVersions && message.supportedHiveMetastoreVersions.length))
+ message.supportedHiveMetastoreVersions = [];
+ message.supportedHiveMetastoreVersions.push($root.google.cloud.metastore.v1.LocationMetadata.HiveMetastoreVersion.decode(reader, reader.uint32()));
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a LocationMetadata message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.metastore.v1.LocationMetadata
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.metastore.v1.LocationMetadata} LocationMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ LocationMetadata.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a LocationMetadata message.
+ * @function verify
+ * @memberof google.cloud.metastore.v1.LocationMetadata
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ LocationMetadata.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.supportedHiveMetastoreVersions != null && message.hasOwnProperty("supportedHiveMetastoreVersions")) {
+ if (!Array.isArray(message.supportedHiveMetastoreVersions))
+ return "supportedHiveMetastoreVersions: array expected";
+ for (var i = 0; i < message.supportedHiveMetastoreVersions.length; ++i) {
+ var error = $root.google.cloud.metastore.v1.LocationMetadata.HiveMetastoreVersion.verify(message.supportedHiveMetastoreVersions[i]);
+ if (error)
+ return "supportedHiveMetastoreVersions." + error;
+ }
+ }
+ return null;
+ };
+
+ /**
+ * Creates a LocationMetadata message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.metastore.v1.LocationMetadata
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.metastore.v1.LocationMetadata} LocationMetadata
+ */
+ LocationMetadata.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.metastore.v1.LocationMetadata)
+ return object;
+ var message = new $root.google.cloud.metastore.v1.LocationMetadata();
+ if (object.supportedHiveMetastoreVersions) {
+ if (!Array.isArray(object.supportedHiveMetastoreVersions))
+ throw TypeError(".google.cloud.metastore.v1.LocationMetadata.supportedHiveMetastoreVersions: array expected");
+ message.supportedHiveMetastoreVersions = [];
+ for (var i = 0; i < object.supportedHiveMetastoreVersions.length; ++i) {
+ if (typeof object.supportedHiveMetastoreVersions[i] !== "object")
+ throw TypeError(".google.cloud.metastore.v1.LocationMetadata.supportedHiveMetastoreVersions: object expected");
+ message.supportedHiveMetastoreVersions[i] = $root.google.cloud.metastore.v1.LocationMetadata.HiveMetastoreVersion.fromObject(object.supportedHiveMetastoreVersions[i]);
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a LocationMetadata message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.metastore.v1.LocationMetadata
+ * @static
+ * @param {google.cloud.metastore.v1.LocationMetadata} message LocationMetadata
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ LocationMetadata.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.supportedHiveMetastoreVersions = [];
+ if (message.supportedHiveMetastoreVersions && message.supportedHiveMetastoreVersions.length) {
+ object.supportedHiveMetastoreVersions = [];
+ for (var j = 0; j < message.supportedHiveMetastoreVersions.length; ++j)
+ object.supportedHiveMetastoreVersions[j] = $root.google.cloud.metastore.v1.LocationMetadata.HiveMetastoreVersion.toObject(message.supportedHiveMetastoreVersions[j], options);
+ }
+ return object;
+ };
+
+ /**
+ * Converts this LocationMetadata to JSON.
+ * @function toJSON
+ * @memberof google.cloud.metastore.v1.LocationMetadata
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ LocationMetadata.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for LocationMetadata
+ * @function getTypeUrl
+ * @memberof google.cloud.metastore.v1.LocationMetadata
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ LocationMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.metastore.v1.LocationMetadata";
+ };
+
+ LocationMetadata.HiveMetastoreVersion = (function() {
+
+ /**
+ * Properties of a HiveMetastoreVersion.
+ * @memberof google.cloud.metastore.v1.LocationMetadata
+ * @interface IHiveMetastoreVersion
+ * @property {string|null} [version] HiveMetastoreVersion version
+ * @property {boolean|null} [isDefault] HiveMetastoreVersion isDefault
+ */
+
+ /**
+ * Constructs a new HiveMetastoreVersion.
+ * @memberof google.cloud.metastore.v1.LocationMetadata
+ * @classdesc Represents a HiveMetastoreVersion.
+ * @implements IHiveMetastoreVersion
+ * @constructor
+ * @param {google.cloud.metastore.v1.LocationMetadata.IHiveMetastoreVersion=} [properties] Properties to set
+ */
+ function HiveMetastoreVersion(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]];
+ }
+
+ /**
+ * HiveMetastoreVersion version.
+ * @member {string} version
+ * @memberof google.cloud.metastore.v1.LocationMetadata.HiveMetastoreVersion
+ * @instance
+ */
+ HiveMetastoreVersion.prototype.version = "";
+
+ /**
+ * HiveMetastoreVersion isDefault.
+ * @member {boolean} isDefault
+ * @memberof google.cloud.metastore.v1.LocationMetadata.HiveMetastoreVersion
+ * @instance
+ */
+ HiveMetastoreVersion.prototype.isDefault = false;
+
+ /**
+ * Creates a new HiveMetastoreVersion instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.metastore.v1.LocationMetadata.HiveMetastoreVersion
+ * @static
+ * @param {google.cloud.metastore.v1.LocationMetadata.IHiveMetastoreVersion=} [properties] Properties to set
+ * @returns {google.cloud.metastore.v1.LocationMetadata.HiveMetastoreVersion} HiveMetastoreVersion instance
+ */
+ HiveMetastoreVersion.create = function create(properties) {
+ return new HiveMetastoreVersion(properties);
+ };
+
+ /**
+ * Encodes the specified HiveMetastoreVersion message. Does not implicitly {@link google.cloud.metastore.v1.LocationMetadata.HiveMetastoreVersion.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.metastore.v1.LocationMetadata.HiveMetastoreVersion
+ * @static
+ * @param {google.cloud.metastore.v1.LocationMetadata.IHiveMetastoreVersion} message HiveMetastoreVersion message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ HiveMetastoreVersion.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.version != null && Object.hasOwnProperty.call(message, "version"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.version);
+ if (message.isDefault != null && Object.hasOwnProperty.call(message, "isDefault"))
+ writer.uint32(/* id 2, wireType 0 =*/16).bool(message.isDefault);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified HiveMetastoreVersion message, length delimited. Does not implicitly {@link google.cloud.metastore.v1.LocationMetadata.HiveMetastoreVersion.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.metastore.v1.LocationMetadata.HiveMetastoreVersion
+ * @static
+ * @param {google.cloud.metastore.v1.LocationMetadata.IHiveMetastoreVersion} message HiveMetastoreVersion message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ HiveMetastoreVersion.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a HiveMetastoreVersion message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.metastore.v1.LocationMetadata.HiveMetastoreVersion
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.metastore.v1.LocationMetadata.HiveMetastoreVersion} HiveMetastoreVersion
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ HiveMetastoreVersion.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.metastore.v1.LocationMetadata.HiveMetastoreVersion();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.version = reader.string();
+ break;
+ }
+ case 2: {
+ message.isDefault = reader.bool();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a HiveMetastoreVersion message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.metastore.v1.LocationMetadata.HiveMetastoreVersion
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.metastore.v1.LocationMetadata.HiveMetastoreVersion} HiveMetastoreVersion
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ HiveMetastoreVersion.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a HiveMetastoreVersion message.
+ * @function verify
+ * @memberof google.cloud.metastore.v1.LocationMetadata.HiveMetastoreVersion
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ HiveMetastoreVersion.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.version != null && message.hasOwnProperty("version"))
+ if (!$util.isString(message.version))
+ return "version: string expected";
+ if (message.isDefault != null && message.hasOwnProperty("isDefault"))
+ if (typeof message.isDefault !== "boolean")
+ return "isDefault: boolean expected";
+ return null;
+ };
+
+ /**
+ * Creates a HiveMetastoreVersion message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.metastore.v1.LocationMetadata.HiveMetastoreVersion
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.metastore.v1.LocationMetadata.HiveMetastoreVersion} HiveMetastoreVersion
+ */
+ HiveMetastoreVersion.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.metastore.v1.LocationMetadata.HiveMetastoreVersion)
+ return object;
+ var message = new $root.google.cloud.metastore.v1.LocationMetadata.HiveMetastoreVersion();
+ if (object.version != null)
+ message.version = String(object.version);
+ if (object.isDefault != null)
+ message.isDefault = Boolean(object.isDefault);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a HiveMetastoreVersion message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.metastore.v1.LocationMetadata.HiveMetastoreVersion
+ * @static
+ * @param {google.cloud.metastore.v1.LocationMetadata.HiveMetastoreVersion} message HiveMetastoreVersion
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ HiveMetastoreVersion.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.version = "";
+ object.isDefault = false;
+ }
+ if (message.version != null && message.hasOwnProperty("version"))
+ object.version = message.version;
+ if (message.isDefault != null && message.hasOwnProperty("isDefault"))
+ object.isDefault = message.isDefault;
+ return object;
+ };
+
+ /**
+ * Converts this HiveMetastoreVersion to JSON.
+ * @function toJSON
+ * @memberof google.cloud.metastore.v1.LocationMetadata.HiveMetastoreVersion
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ HiveMetastoreVersion.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for HiveMetastoreVersion
+ * @function getTypeUrl
+ * @memberof google.cloud.metastore.v1.LocationMetadata.HiveMetastoreVersion
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ HiveMetastoreVersion.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.metastore.v1.LocationMetadata.HiveMetastoreVersion";
+ };
+
+ return HiveMetastoreVersion;
+ })();
+
+ return LocationMetadata;
+ })();
+
+ v1.DatabaseDumpSpec = (function() {
+
+ /**
+ * Properties of a DatabaseDumpSpec.
+ * @memberof google.cloud.metastore.v1
+ * @interface IDatabaseDumpSpec
+ */
+
+ /**
+ * Constructs a new DatabaseDumpSpec.
+ * @memberof google.cloud.metastore.v1
+ * @classdesc Represents a DatabaseDumpSpec.
+ * @implements IDatabaseDumpSpec
+ * @constructor
+ * @param {google.cloud.metastore.v1.IDatabaseDumpSpec=} [properties] Properties to set
+ */
+ function DatabaseDumpSpec(properties) {
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null)
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * Creates a new DatabaseDumpSpec instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.metastore.v1.DatabaseDumpSpec
+ * @static
+ * @param {google.cloud.metastore.v1.IDatabaseDumpSpec=} [properties] Properties to set
+ * @returns {google.cloud.metastore.v1.DatabaseDumpSpec} DatabaseDumpSpec instance
+ */
+ DatabaseDumpSpec.create = function create(properties) {
+ return new DatabaseDumpSpec(properties);
+ };
+
+ /**
+ * Encodes the specified DatabaseDumpSpec message. Does not implicitly {@link google.cloud.metastore.v1.DatabaseDumpSpec.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.metastore.v1.DatabaseDumpSpec
+ * @static
+ * @param {google.cloud.metastore.v1.IDatabaseDumpSpec} message DatabaseDumpSpec message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ DatabaseDumpSpec.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified DatabaseDumpSpec message, length delimited. Does not implicitly {@link google.cloud.metastore.v1.DatabaseDumpSpec.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.metastore.v1.DatabaseDumpSpec
+ * @static
+ * @param {google.cloud.metastore.v1.IDatabaseDumpSpec} message DatabaseDumpSpec message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ DatabaseDumpSpec.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a DatabaseDumpSpec message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.metastore.v1.DatabaseDumpSpec
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.metastore.v1.DatabaseDumpSpec} DatabaseDumpSpec
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ DatabaseDumpSpec.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.metastore.v1.DatabaseDumpSpec();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a DatabaseDumpSpec message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.metastore.v1.DatabaseDumpSpec
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.metastore.v1.DatabaseDumpSpec} DatabaseDumpSpec
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ DatabaseDumpSpec.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a DatabaseDumpSpec message.
+ * @function verify
+ * @memberof google.cloud.metastore.v1.DatabaseDumpSpec
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ DatabaseDumpSpec.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ return null;
+ };
+
+ /**
+ * Creates a DatabaseDumpSpec message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.metastore.v1.DatabaseDumpSpec
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.metastore.v1.DatabaseDumpSpec} DatabaseDumpSpec
+ */
+ DatabaseDumpSpec.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.metastore.v1.DatabaseDumpSpec)
+ return object;
+ return new $root.google.cloud.metastore.v1.DatabaseDumpSpec();
+ };
+
+ /**
+ * Creates a plain object from a DatabaseDumpSpec message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.metastore.v1.DatabaseDumpSpec
+ * @static
+ * @param {google.cloud.metastore.v1.DatabaseDumpSpec} message DatabaseDumpSpec
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ DatabaseDumpSpec.toObject = function toObject() {
+ return {};
+ };
+
+ /**
+ * Converts this DatabaseDumpSpec to JSON.
+ * @function toJSON
+ * @memberof google.cloud.metastore.v1.DatabaseDumpSpec
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ DatabaseDumpSpec.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for DatabaseDumpSpec
+ * @function getTypeUrl
+ * @memberof google.cloud.metastore.v1.DatabaseDumpSpec
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ DatabaseDumpSpec.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.metastore.v1.DatabaseDumpSpec";
+ };
+
+ /**
+ * Type enum.
+ * @name google.cloud.metastore.v1.DatabaseDumpSpec.Type
+ * @enum {number}
+ * @property {number} TYPE_UNSPECIFIED=0 TYPE_UNSPECIFIED value
+ * @property {number} MYSQL=1 MYSQL value
+ * @property {number} AVRO=2 AVRO value
+ */
+ DatabaseDumpSpec.Type = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "TYPE_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "MYSQL"] = 1;
+ values[valuesById[2] = "AVRO"] = 2;
+ return values;
+ })();
+
+ return DatabaseDumpSpec;
+ })();
+
+ return v1;
+ })();
+
+ metastore.v1alpha = (function() {
+
+ /**
+ * Namespace v1alpha.
+ * @memberof google.cloud.metastore
+ * @namespace
+ */
+ var v1alpha = {};
+
+ v1alpha.DataprocMetastore = (function() {
+
+ /**
+ * Constructs a new DataprocMetastore service.
+ * @memberof google.cloud.metastore.v1alpha
+ * @classdesc Represents a DataprocMetastore
+ * @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 DataprocMetastore(rpcImpl, requestDelimited, responseDelimited) {
+ $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited);
+ }
+
+ (DataprocMetastore.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = DataprocMetastore;
+
+ /**
+ * Creates new DataprocMetastore service using the specified rpc implementation.
+ * @function create
+ * @memberof google.cloud.metastore.v1alpha.DataprocMetastore
+ * @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 {DataprocMetastore} RPC service. Useful where requests and/or responses are streamed.
+ */
+ DataprocMetastore.create = function create(rpcImpl, requestDelimited, responseDelimited) {
+ return new this(rpcImpl, requestDelimited, responseDelimited);
+ };
+
+ /**
+ * Callback as used by {@link google.cloud.metastore.v1alpha.DataprocMetastore|listServices}.
+ * @memberof google.cloud.metastore.v1alpha.DataprocMetastore
+ * @typedef ListServicesCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.metastore.v1alpha.ListServicesResponse} [response] ListServicesResponse
+ */
+
+ /**
+ * Calls ListServices.
+ * @function listServices
+ * @memberof google.cloud.metastore.v1alpha.DataprocMetastore
+ * @instance
+ * @param {google.cloud.metastore.v1alpha.IListServicesRequest} request ListServicesRequest message or plain object
+ * @param {google.cloud.metastore.v1alpha.DataprocMetastore.ListServicesCallback} callback Node-style callback called with the error, if any, and ListServicesResponse
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(DataprocMetastore.prototype.listServices = function listServices(request, callback) {
+ return this.rpcCall(listServices, $root.google.cloud.metastore.v1alpha.ListServicesRequest, $root.google.cloud.metastore.v1alpha.ListServicesResponse, request, callback);
+ }, "name", { value: "ListServices" });
+
+ /**
+ * Calls ListServices.
+ * @function listServices
+ * @memberof google.cloud.metastore.v1alpha.DataprocMetastore
+ * @instance
+ * @param {google.cloud.metastore.v1alpha.IListServicesRequest} request ListServicesRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.metastore.v1alpha.DataprocMetastore|getService}.
+ * @memberof google.cloud.metastore.v1alpha.DataprocMetastore
+ * @typedef GetServiceCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.metastore.v1alpha.Service} [response] Service
+ */
+
+ /**
+ * Calls GetService.
+ * @function getService
+ * @memberof google.cloud.metastore.v1alpha.DataprocMetastore
+ * @instance
+ * @param {google.cloud.metastore.v1alpha.IGetServiceRequest} request GetServiceRequest message or plain object
+ * @param {google.cloud.metastore.v1alpha.DataprocMetastore.GetServiceCallback} callback Node-style callback called with the error, if any, and Service
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(DataprocMetastore.prototype.getService = function getService(request, callback) {
+ return this.rpcCall(getService, $root.google.cloud.metastore.v1alpha.GetServiceRequest, $root.google.cloud.metastore.v1alpha.Service, request, callback);
+ }, "name", { value: "GetService" });
+
+ /**
+ * Calls GetService.
+ * @function getService
+ * @memberof google.cloud.metastore.v1alpha.DataprocMetastore
+ * @instance
+ * @param {google.cloud.metastore.v1alpha.IGetServiceRequest} request GetServiceRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.metastore.v1alpha.DataprocMetastore|createService}.
+ * @memberof google.cloud.metastore.v1alpha.DataprocMetastore
+ * @typedef CreateServiceCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.longrunning.Operation} [response] Operation
+ */
+
+ /**
+ * Calls CreateService.
+ * @function createService
+ * @memberof google.cloud.metastore.v1alpha.DataprocMetastore
+ * @instance
+ * @param {google.cloud.metastore.v1alpha.ICreateServiceRequest} request CreateServiceRequest message or plain object
+ * @param {google.cloud.metastore.v1alpha.DataprocMetastore.CreateServiceCallback} callback Node-style callback called with the error, if any, and Operation
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(DataprocMetastore.prototype.createService = function createService(request, callback) {
+ return this.rpcCall(createService, $root.google.cloud.metastore.v1alpha.CreateServiceRequest, $root.google.longrunning.Operation, request, callback);
+ }, "name", { value: "CreateService" });
+
+ /**
+ * Calls CreateService.
+ * @function createService
+ * @memberof google.cloud.metastore.v1alpha.DataprocMetastore
+ * @instance
+ * @param {google.cloud.metastore.v1alpha.ICreateServiceRequest} request CreateServiceRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.metastore.v1alpha.DataprocMetastore|updateService}.
+ * @memberof google.cloud.metastore.v1alpha.DataprocMetastore
+ * @typedef UpdateServiceCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.longrunning.Operation} [response] Operation
+ */
+
+ /**
+ * Calls UpdateService.
+ * @function updateService
+ * @memberof google.cloud.metastore.v1alpha.DataprocMetastore
+ * @instance
+ * @param {google.cloud.metastore.v1alpha.IUpdateServiceRequest} request UpdateServiceRequest message or plain object
+ * @param {google.cloud.metastore.v1alpha.DataprocMetastore.UpdateServiceCallback} callback Node-style callback called with the error, if any, and Operation
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(DataprocMetastore.prototype.updateService = function updateService(request, callback) {
+ return this.rpcCall(updateService, $root.google.cloud.metastore.v1alpha.UpdateServiceRequest, $root.google.longrunning.Operation, request, callback);
+ }, "name", { value: "UpdateService" });
+
+ /**
+ * Calls UpdateService.
+ * @function updateService
+ * @memberof google.cloud.metastore.v1alpha.DataprocMetastore
+ * @instance
+ * @param {google.cloud.metastore.v1alpha.IUpdateServiceRequest} request UpdateServiceRequest message or plain object
+ * @returns {Promise