diff --git a/.release-please-manifest.json b/.release-please-manifest.json
index f49e51a92b4..4b5c6e4f530 100644
--- a/.release-please-manifest.json
+++ b/.release-please-manifest.json
@@ -14,6 +14,7 @@
"packages/google-cloud-bigquery-reservation": "2.0.4",
"packages/google-cloud-certificatemanager": "0.6.2",
"packages/google-cloud-contentwarehouse": "0.1.2",
+ "packages/google-cloud-datalabeling": "3.1.1",
"packages/google-cloud-dataplex": "2.2.2",
"packages/google-cloud-dataproc": "4.1.1",
"packages/google-cloud-deploy": "2.2.2",
diff --git a/packages/google-cloud-datalabeling/.OwlBot.yaml b/packages/google-cloud-datalabeling/.OwlBot.yaml
new file mode 100644
index 00000000000..5383934f13a
--- /dev/null
+++ b/packages/google-cloud-datalabeling/.OwlBot.yaml
@@ -0,0 +1,21 @@
+# Copyright 2021 Google LLC
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+deep-remove-regex:
+ - /owl-bot-staging
+
+deep-copy-regex:
+ - source: /google/cloud/datalabeling/(.*)/.*-nodejs
+ dest: /owl-bot-staging/google-cloud-datalabeling/$1
+
diff --git a/packages/google-cloud-datalabeling/.eslintignore b/packages/google-cloud-datalabeling/.eslintignore
new file mode 100644
index 00000000000..ea5b04aebe6
--- /dev/null
+++ b/packages/google-cloud-datalabeling/.eslintignore
@@ -0,0 +1,7 @@
+**/node_modules
+**/coverage
+test/fixtures
+build/
+docs/
+protos/
+samples/generated/
diff --git a/packages/google-cloud-datalabeling/.eslintrc.json b/packages/google-cloud-datalabeling/.eslintrc.json
new file mode 100644
index 00000000000..78215349546
--- /dev/null
+++ b/packages/google-cloud-datalabeling/.eslintrc.json
@@ -0,0 +1,3 @@
+{
+ "extends": "./node_modules/gts"
+}
diff --git a/packages/google-cloud-datalabeling/.gitattributes b/packages/google-cloud-datalabeling/.gitattributes
new file mode 100644
index 00000000000..33739cb74e4
--- /dev/null
+++ b/packages/google-cloud-datalabeling/.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-datalabeling/.gitignore b/packages/google-cloud-datalabeling/.gitignore
new file mode 100644
index 00000000000..5d32b23782f
--- /dev/null
+++ b/packages/google-cloud-datalabeling/.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-datalabeling/.jsdoc.js b/packages/google-cloud-datalabeling/.jsdoc.js
new file mode 100644
index 00000000000..507b1065d1f
--- /dev/null
+++ b/packages/google-cloud-datalabeling/.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/datalabeling',
+ theme: 'lumen',
+ default: {
+ outputSourceFiles: false
+ }
+ },
+ markdown: {
+ idInHeadings: true
+ }
+};
diff --git a/packages/google-cloud-datalabeling/.mocharc.js b/packages/google-cloud-datalabeling/.mocharc.js
new file mode 100644
index 00000000000..cdb7b752160
--- /dev/null
+++ b/packages/google-cloud-datalabeling/.mocharc.js
@@ -0,0 +1,29 @@
+// Copyright 2022 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+const config = {
+ "enable-source-maps": true,
+ "throw-deprecation": true,
+ "timeout": 10000,
+ "recursive": true
+}
+if (process.env.MOCHA_THROW_DEPRECATION === 'false') {
+ delete config['throw-deprecation'];
+}
+if (process.env.MOCHA_REPORTER) {
+ config.reporter = process.env.MOCHA_REPORTER;
+}
+if (process.env.MOCHA_REPORTER_OUTPUT) {
+ config['reporter-option'] = `output=${process.env.MOCHA_REPORTER_OUTPUT}`;
+}
+module.exports = config
diff --git a/packages/google-cloud-datalabeling/.mocharc.json b/packages/google-cloud-datalabeling/.mocharc.json
new file mode 100644
index 00000000000..670c5e2c24b
--- /dev/null
+++ b/packages/google-cloud-datalabeling/.mocharc.json
@@ -0,0 +1,5 @@
+{
+ "enable-source-maps": true,
+ "throw-deprecation": true,
+ "timeout": 10000
+}
diff --git a/packages/google-cloud-datalabeling/.nycrc b/packages/google-cloud-datalabeling/.nycrc
new file mode 100644
index 00000000000..b18d5472b62
--- /dev/null
+++ b/packages/google-cloud-datalabeling/.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-datalabeling/.prettierignore b/packages/google-cloud-datalabeling/.prettierignore
new file mode 100644
index 00000000000..9340ad9b86d
--- /dev/null
+++ b/packages/google-cloud-datalabeling/.prettierignore
@@ -0,0 +1,6 @@
+**/node_modules
+**/coverage
+test/fixtures
+build/
+docs/
+protos/
diff --git a/packages/google-cloud-datalabeling/.prettierrc.js b/packages/google-cloud-datalabeling/.prettierrc.js
new file mode 100644
index 00000000000..d546a4ad546
--- /dev/null
+++ b/packages/google-cloud-datalabeling/.prettierrc.js
@@ -0,0 +1,17 @@
+// Copyright 2022 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// https://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+module.exports = {
+ ...require('gts/.prettierrc.json')
+}
diff --git a/packages/google-cloud-datalabeling/.repo-metadata.json b/packages/google-cloud-datalabeling/.repo-metadata.json
new file mode 100644
index 00000000000..d446de958e7
--- /dev/null
+++ b/packages/google-cloud-datalabeling/.repo-metadata.json
@@ -0,0 +1,17 @@
+{
+ "default_version": "v1beta1",
+ "release_level": "preview",
+ "requires_billing": true,
+ "client_documentation": "https://cloud.google.com/nodejs/docs/reference/datalabeling/latest",
+ "codeowner_team": "@googleapis/ml-apis",
+ "language": "nodejs",
+ "issue_tracker": "",
+ "product_documentation": "https://cloud.google.com/data-labeling/docs/",
+ "name": "datalabeling",
+ "distribution_name": "@google-cloud/datalabeling",
+ "name_pretty": "Google Cloud Data Labeling",
+ "api_id": "datalabeling.googleapis.com",
+ "repo": "googleapis/google-cloud-node",
+ "api_shortname": "datalabeling",
+ "library_type": "GAPIC_AUTO"
+}
diff --git a/packages/google-cloud-datalabeling/CHANGELOG.md b/packages/google-cloud-datalabeling/CHANGELOG.md
new file mode 100644
index 00000000000..bf54f8d32f0
--- /dev/null
+++ b/packages/google-cloud-datalabeling/CHANGELOG.md
@@ -0,0 +1,300 @@
+# Changelog
+
+[npm history][1]
+
+[1]: https://www.npmjs.com/package/@google-cloud/datalabeling?activeTab=versions
+
+## [3.1.1](https://github.com/googleapis/nodejs-datalabeling/compare/v3.1.0...v3.1.1) (2022-11-11)
+
+
+### Bug Fixes
+
+* Allow passing gax instance to client constructor ([#373](https://github.com/googleapis/nodejs-datalabeling/issues/373)) ([79cdd8f](https://github.com/googleapis/nodejs-datalabeling/commit/79cdd8f9034fbd65f1db9b50a33116929d529736))
+* Better support for fallback mode ([#369](https://github.com/googleapis/nodejs-datalabeling/issues/369)) ([bc2cf61](https://github.com/googleapis/nodejs-datalabeling/commit/bc2cf61fefcd03248a8b1eae492729edc677555a))
+* Change import long to require ([#370](https://github.com/googleapis/nodejs-datalabeling/issues/370)) ([7e53220](https://github.com/googleapis/nodejs-datalabeling/commit/7e53220e039ef6ec12a96dfbacd539cbc4948288))
+* **deps:** Do not depend on protobufjs ([#365](https://github.com/googleapis/nodejs-datalabeling/issues/365)) ([68c3205](https://github.com/googleapis/nodejs-datalabeling/commit/68c320583fcd4157a2a95aa01c431bf2193d0182))
+* **deps:** Use google-gax v3.5.2 ([#379](https://github.com/googleapis/nodejs-datalabeling/issues/379)) ([67a6af6](https://github.com/googleapis/nodejs-datalabeling/commit/67a6af631dcb9919eaa58ccbc2d19f359489f277))
+* Do not import the whole google-gax from proto JS ([#1553](https://github.com/googleapis/nodejs-datalabeling/issues/1553)) ([#372](https://github.com/googleapis/nodejs-datalabeling/issues/372)) ([7740922](https://github.com/googleapis/nodejs-datalabeling/commit/77409220eba817c81a7b87fd535e839a75bcb7d3))
+* Preserve default values in x-goog-request-params header ([#374](https://github.com/googleapis/nodejs-datalabeling/issues/374)) ([c2df026](https://github.com/googleapis/nodejs-datalabeling/commit/c2df0262f6135946f0bf81ad89748e80079321c3))
+* Regenerated protos JS and TS definitions ([#382](https://github.com/googleapis/nodejs-datalabeling/issues/382)) ([91598fc](https://github.com/googleapis/nodejs-datalabeling/commit/91598fce400d2f9a11b3780f81f8d30be101c864))
+* Remove pip install statements ([#1546](https://github.com/googleapis/nodejs-datalabeling/issues/1546)) ([#371](https://github.com/googleapis/nodejs-datalabeling/issues/371)) ([d8844f2](https://github.com/googleapis/nodejs-datalabeling/commit/d8844f29ccfd352b98b91f3422d085934e722f76))
+* use google-gax v3.3.0 ([7740922](https://github.com/googleapis/nodejs-datalabeling/commit/77409220eba817c81a7b87fd535e839a75bcb7d3))
+
+## [3.1.0](https://github.com/googleapis/nodejs-datalabeling/compare/v3.0.0...v3.1.0) (2022-07-05)
+
+
+### Features
+
+* support regapic LRO ([aa77671](https://github.com/googleapis/nodejs-datalabeling/commit/aa77671435d69c4270af35f0d6e5f2be71f1b4b2))
+
+## [3.0.0](https://github.com/googleapis/nodejs-datalabeling/compare/v2.3.0...v3.0.0) (2022-06-10)
+
+
+### ⚠ BREAKING CHANGES
+
+* update library to use Node 12 (#356)
+
+### Bug Fixes
+
+* **datalabeling:** add ancillary service bindings to service_yaml ([#331](https://github.com/googleapis/nodejs-datalabeling/issues/331)) ([1df9ca2](https://github.com/googleapis/nodejs-datalabeling/commit/1df9ca2c5f3bf0a5c937d5372d6ba1324536683f))
+
+
+### Build System
+
+* update library to use Node 12 ([#356](https://github.com/googleapis/nodejs-datalabeling/issues/356)) ([07afd31](https://github.com/googleapis/nodejs-datalabeling/commit/07afd3120b29225442eb9d38c3756de13766ae50))
+
+## [2.3.0](https://www.github.com/googleapis/nodejs-datalabeling/compare/v2.2.7...v2.3.0) (2021-08-23)
+
+
+### Features
+
+* turns on self-signed JWT feature flag ([#307](https://www.github.com/googleapis/nodejs-datalabeling/issues/307)) ([adbe0cd](https://www.github.com/googleapis/nodejs-datalabeling/commit/adbe0cdef6538df9055a5e5039161e5a680cb336))
+
+### [2.2.7](https://www.github.com/googleapis/nodejs-datalabeling/compare/v2.2.6...v2.2.7) (2021-08-17)
+
+
+### Bug Fixes
+
+* **build:** migrate to using main branch ([#304](https://www.github.com/googleapis/nodejs-datalabeling/issues/304)) ([8835988](https://www.github.com/googleapis/nodejs-datalabeling/commit/88359888f303d90d27b0449dd811e42dadebc5d2))
+* **deps:** google-gax v2.24.1 ([#306](https://www.github.com/googleapis/nodejs-datalabeling/issues/306)) ([ea18b87](https://www.github.com/googleapis/nodejs-datalabeling/commit/ea18b87feff1da34b57decb44fea83b3b371b162))
+
+### [2.2.6](https://www.github.com/googleapis/nodejs-datalabeling/compare/v2.2.5...v2.2.6) (2021-07-21)
+
+
+### Bug Fixes
+
+* Updating WORKSPACE files to use the newest version of the Typescript generator. ([#296](https://www.github.com/googleapis/nodejs-datalabeling/issues/296)) ([b67af5c](https://www.github.com/googleapis/nodejs-datalabeling/commit/b67af5c6eea1142d6b1f08f7dd9213a7078a4d59))
+
+### [2.2.5](https://www.github.com/googleapis/nodejs-datalabeling/compare/v2.2.4...v2.2.5) (2021-07-12)
+
+
+### Bug Fixes
+
+* **deps:** google-gax v2.17.1 ([#294](https://www.github.com/googleapis/nodejs-datalabeling/issues/294)) ([f2fc8c0](https://www.github.com/googleapis/nodejs-datalabeling/commit/f2fc8c06a8440311ddf9525c2c16c43c31ce1e7d))
+
+### [2.2.4](https://www.github.com/googleapis/nodejs-datalabeling/compare/v2.2.3...v2.2.4) (2021-06-30)
+
+
+### Bug Fixes
+
+* **deps:** google-gax v2.17.0 with mTLS ([#291](https://www.github.com/googleapis/nodejs-datalabeling/issues/291)) ([ba455a8](https://www.github.com/googleapis/nodejs-datalabeling/commit/ba455a8d574f9bb87c9f7531ba56e199ad0dc8be))
+
+### [2.2.3](https://www.github.com/googleapis/nodejs-datalabeling/compare/v2.2.2...v2.2.3) (2021-06-22)
+
+
+### Bug Fixes
+
+* make request optional in all cases ([#287](https://www.github.com/googleapis/nodejs-datalabeling/issues/287)) ([2565d60](https://www.github.com/googleapis/nodejs-datalabeling/commit/2565d60b3e98946c216fe040c2e7eb42cee6019f))
+
+### [2.2.2](https://www.github.com/googleapis/nodejs-datalabeling/compare/v2.2.1...v2.2.2) (2021-05-25)
+
+
+### Bug Fixes
+
+* GoogleAdsError missing using generator version after 1.3.0 ([#279](https://www.github.com/googleapis/nodejs-datalabeling/issues/279)) ([a78809f](https://www.github.com/googleapis/nodejs-datalabeling/commit/a78809f7a83fd774dad8599315938e1cdb6e438a))
+
+### [2.2.1](https://www.github.com/googleapis/nodejs-datalabeling/compare/v2.2.0...v2.2.1) (2021-05-12)
+
+
+### Bug Fixes
+
+* **deps:** require google-gax v2.12.0 ([#270](https://www.github.com/googleapis/nodejs-datalabeling/issues/270)) ([9f1d2fa](https://www.github.com/googleapis/nodejs-datalabeling/commit/9f1d2faacdbb3e9503b450b6c8da4d70bcd4d66f))
+* use require() to load JSON protos ([#273](https://www.github.com/googleapis/nodejs-datalabeling/issues/273)) ([4ba477e](https://www.github.com/googleapis/nodejs-datalabeling/commit/4ba477e2f408db02ed08cc4acfc02914273c5b92))
+
+## [2.2.0](https://www.github.com/googleapis/nodejs-datalabeling/compare/v2.1.2...v2.2.0) (2021-01-09)
+
+
+### Features
+
+* introduces style enumeration ([#242](https://www.github.com/googleapis/nodejs-datalabeling/issues/242)) ([34bd1ec](https://www.github.com/googleapis/nodejs-datalabeling/commit/34bd1ec34d76976cbb96ee75892a62500dbd3cef))
+
+### [2.1.2](https://www.github.com/googleapis/nodejs-datalabeling/compare/v2.1.1...v2.1.2) (2020-11-25)
+
+
+### Bug Fixes
+
+* **browser:** check for fetch on window ([#236](https://www.github.com/googleapis/nodejs-datalabeling/issues/236)) ([a861cd0](https://www.github.com/googleapis/nodejs-datalabeling/commit/a861cd0671cb04baf0f2b40f376fcb974e4c7159))
+* do not modify options object, use defaultScopes ([#231](https://www.github.com/googleapis/nodejs-datalabeling/issues/231)) ([6bcb17b](https://www.github.com/googleapis/nodejs-datalabeling/commit/6bcb17b6cc40cbc2448e8722e8918324ae2261e4))
+
+### [2.1.1](https://www.github.com/googleapis/nodejs-datalabeling/compare/v2.1.0...v2.1.1) (2020-07-10)
+
+
+### Bug Fixes
+
+* typeo in nodejs .gitattribute ([#198](https://www.github.com/googleapis/nodejs-datalabeling/issues/198)) ([494d94c](https://www.github.com/googleapis/nodejs-datalabeling/commit/494d94c6baafe7626feb4eb611e09eb25f7936f2))
+
+## [2.1.0](https://www.github.com/googleapis/nodejs-datalabeling/compare/v2.0.0...v2.1.0) (2020-06-28)
+
+
+### Features
+
+* move ts target to es2018 from es2016 ([#187](https://www.github.com/googleapis/nodejs-datalabeling/issues/187)) ([c221d20](https://www.github.com/googleapis/nodejs-datalabeling/commit/c221d20ca6db52d9c42940bd37efba8e04130fe2))
+
+
+### Bug Fixes
+
+* proper fallback option handling ([180d2e2](https://www.github.com/googleapis/nodejs-datalabeling/commit/180d2e2a9f5385e4befd1ebaa78fdac3237d6a71))
+
+## [2.0.0](https://www.github.com/googleapis/nodejs-datalabeling/compare/v1.6.0...v2.0.0) (2020-06-04)
+
+
+### ⚠ BREAKING CHANGES
+
+* The library now supports Node.js v10+. The last version to support Node.js v8 is tagged legacy-8 on NPM.
+
+### Features
+
+* check status of long running operation by its name ([#180](https://www.github.com/googleapis/nodejs-datalabeling/issues/180)) ([914f99c](https://www.github.com/googleapis/nodejs-datalabeling/commit/914f99c2bbd4870ffbd7e4085dcd1e2d1284d77a))
+* drop node8 support, support for async iterators ([#161](https://www.github.com/googleapis/nodejs-datalabeling/issues/161)) ([8f6cfa8](https://www.github.com/googleapis/nodejs-datalabeling/commit/8f6cfa8bef7ac591d3432d5a6480305524bf96c9))
+
+
+### Bug Fixes
+
+* export explicit version from protos.js ([#166](https://www.github.com/googleapis/nodejs-datalabeling/issues/166)) ([7096188](https://www.github.com/googleapis/nodejs-datalabeling/commit/709618898603d50c8c92b01e8bb26a866ed47e3e))
+* remove eslint, update gax, fix generated protos, run the generator ([#170](https://www.github.com/googleapis/nodejs-datalabeling/issues/170)) ([35d38b2](https://www.github.com/googleapis/nodejs-datalabeling/commit/35d38b2cde5d19b4c00c88a4a3907e81997f6e35))
+* remove unused files from package ([#173](https://www.github.com/googleapis/nodejs-datalabeling/issues/173)) ([7d43739](https://www.github.com/googleapis/nodejs-datalabeling/commit/7d437395f993774eaab20bff1d58cda025e20a54))
+* synth.py clean up for multiple version ([#182](https://www.github.com/googleapis/nodejs-datalabeling/issues/182)) ([67f56a1](https://www.github.com/googleapis/nodejs-datalabeling/commit/67f56a18588c3e12615b6ad630b906d745ae6093))
+
+## [1.6.0](https://www.github.com/googleapis/nodejs-datalabeling/compare/v1.5.0...v1.6.0) (2020-03-06)
+
+
+### Features
+
+* deferred client initialization ([#146](https://www.github.com/googleapis/nodejs-datalabeling/issues/146)) ([cbd8224](https://www.github.com/googleapis/nodejs-datalabeling/commit/cbd82248f93360815e17dbf50098ad3a3ec6360a))
+
+## [1.5.0](https://www.github.com/googleapis/nodejs-datalabeling/compare/v1.4.2...v1.5.0) (2020-02-29)
+
+
+### Features
+
+* export protos in src/index.ts ([42812db](https://www.github.com/googleapis/nodejs-datalabeling/commit/42812db5f9c56b744c32314aaf4e7c48c13a62b1))
+
+### [1.4.2](https://www.github.com/googleapis/nodejs-datalabeling/compare/v1.4.1...v1.4.2) (2020-02-10)
+
+
+### Bug Fixes
+
+* pass x-goog-request-params header for streaming calls ([e4e78e6](https://www.github.com/googleapis/nodejs-datalabeling/commit/e4e78e69090103a81bea41d6a48040e1803bd924))
+
+### [1.4.1](https://www.github.com/googleapis/nodejs-datalabeling/compare/v1.4.0...v1.4.1) (2020-01-31)
+
+
+### Bug Fixes
+
+* resource names helper functions; enum, bytes, and Long types now accept strings ([#117](https://www.github.com/googleapis/nodejs-datalabeling/issues/117)) ([e9793d6](https://www.github.com/googleapis/nodejs-datalabeling/commit/e9793d67bc76e781e8f52f700cf20915bac4c3b4))
+* update proto files ([3e53076](https://www.github.com/googleapis/nodejs-datalabeling/commit/3e530762affd4896b65921fe7a13717cb0fdcb0d))
+* updated proto files ([cc8f27d](https://www.github.com/googleapis/nodejs-datalabeling/commit/cc8f27d05c58a4cba2f5544fad07752f49ca56da))
+
+## [1.4.0](https://www.github.com/googleapis/nodejs-datalabeling/compare/v1.3.4...v1.4.0) (2020-01-17)
+
+
+### Features
+
+* move to typescript code generation ([#109](https://www.github.com/googleapis/nodejs-datalabeling/issues/109)) ([381b1eb](https://www.github.com/googleapis/nodejs-datalabeling/commit/381b1eb70eef00ffd4292fbffbddf36d4e13bdec))
+
+### [1.3.4](https://www.github.com/googleapis/nodejs-datalabeling/compare/v1.3.3...v1.3.4) (2019-12-05)
+
+
+### Bug Fixes
+
+* import long type into proto ts declaration file ([#93](https://www.github.com/googleapis/nodejs-datalabeling/issues/93)) ([7b16da1](https://www.github.com/googleapis/nodejs-datalabeling/commit/7b16da1bc47cc0b235c7a6293ff393d9db2b7538))
+* **deps:** pin TypeScript below 3.7.0 ([6b91e93](https://www.github.com/googleapis/nodejs-datalabeling/commit/6b91e93e9c56697c07001323a84733f17992c3c5))
+
+### [1.3.3](https://www.github.com/googleapis/nodejs-datalabeling/compare/v1.3.2...v1.3.3) (2019-11-15)
+
+
+### Bug Fixes
+
+* **docs:** bump release level to beta ([#89](https://www.github.com/googleapis/nodejs-datalabeling/issues/89)) ([b3467e6](https://www.github.com/googleapis/nodejs-datalabeling/commit/b3467e656733702012348d2819c7ca6829bdc492))
+
+### [1.3.2](https://www.github.com/googleapis/nodejs-datalabeling/compare/v1.3.1...v1.3.2) (2019-11-14)
+
+
+### Bug Fixes
+
+* **docs:** snippets are now replaced in jsdoc comments ([#85](https://www.github.com/googleapis/nodejs-datalabeling/issues/85)) ([d1ebe18](https://www.github.com/googleapis/nodejs-datalabeling/commit/d1ebe186ae05e0d47d7cc78b095996dad1d4d506))
+
+### [1.3.1](https://www.github.com/googleapis/nodejs-datalabeling/compare/v1.3.0...v1.3.1) (2019-10-22)
+
+
+### Bug Fixes
+
+* **deps:** bump google-gax to 1.7.5 ([#80](https://www.github.com/googleapis/nodejs-datalabeling/issues/80)) ([32a1f60](https://www.github.com/googleapis/nodejs-datalabeling/commit/32a1f608198e0992c206c135784692810155eee6))
+
+## [1.3.0](https://www.github.com/googleapis/nodejs-datalabeling/compare/v1.2.0...v1.3.0) (2019-10-09)
+
+
+### Bug Fixes
+
+* use compatible version of google-gax ([716b9f6](https://www.github.com/googleapis/nodejs-datalabeling/commit/716b9f6))
+
+
+### Features
+
+* .d.ts for protos ([#72](https://www.github.com/googleapis/nodejs-datalabeling/issues/72)) ([f6b4d28](https://www.github.com/googleapis/nodejs-datalabeling/commit/f6b4d28))
+
+## [1.2.0](https://www.github.com/googleapis/nodejs-datalabeling/compare/v1.1.3...v1.2.0) (2019-09-16)
+
+
+### Bug Fixes
+
+* set proper version # for x-goog-api-client ([aeb0de9](https://www.github.com/googleapis/nodejs-datalabeling/commit/aeb0de9))
+
+
+### Features
+
+* load protos from JSON, grpc-fallback support ([3bc5d92](https://www.github.com/googleapis/nodejs-datalabeling/commit/3bc5d92))
+
+### [1.1.3](https://www.github.com/googleapis/nodejs-datalabeling/compare/v1.1.2...v1.1.3) (2019-08-02)
+
+
+### Bug Fixes
+
+* allow calls with no request, add JSON proto ([ed3743f](https://www.github.com/googleapis/nodejs-datalabeling/commit/ed3743f))
+
+### [1.1.2](https://www.github.com/googleapis/nodejs-datalabeling/compare/v1.1.1...v1.1.2) (2019-06-26)
+
+
+### Bug Fixes
+
+* **docs:** link to reference docs section on googleapis.dev ([#51](https://www.github.com/googleapis/nodejs-datalabeling/issues/51)) ([8976320](https://www.github.com/googleapis/nodejs-datalabeling/commit/8976320))
+
+### [1.1.1](https://www.github.com/googleapis/nodejs-datalabeling/compare/v1.1.0...v1.1.1) (2019-06-14)
+
+
+### Bug Fixes
+
+* **docs:** move to new client docs URL ([#46](https://www.github.com/googleapis/nodejs-datalabeling/issues/46)) ([d670a96](https://www.github.com/googleapis/nodejs-datalabeling/commit/d670a96))
+
+## [1.1.0](https://www.github.com/googleapis/nodejs-datalabeling/compare/v1.0.0...v1.1.0) (2019-06-06)
+
+
+### Features
+
+* support apiEndpoint override in client constructor ([#41](https://www.github.com/googleapis/nodejs-datalabeling/issues/41)) ([7989746](https://www.github.com/googleapis/nodejs-datalabeling/commit/7989746))
+* support apiEndpoint override in client constructor ([#43](https://www.github.com/googleapis/nodejs-datalabeling/issues/43)) ([0bfe818](https://www.github.com/googleapis/nodejs-datalabeling/commit/0bfe818))
+
+## [1.0.0](https://www.github.com/googleapis/nodejs-datalabeling/compare/v0.1.0...v1.0.0) (2019-05-20)
+
+
+### ⚠ BREAKING CHANGES
+
+* upgrade engines field to >=8.10.0 (#18)
+
+### Bug Fixes
+
+* **deps:** update dependency google-gax to ^0.26.0 ([#16](https://www.github.com/googleapis/nodejs-datalabeling/issues/16)) ([2783120](https://www.github.com/googleapis/nodejs-datalabeling/commit/2783120))
+* DEADLINE_EXCEEDED is no longer retried ([5cedb2d](https://www.github.com/googleapis/nodejs-datalabeling/commit/5cedb2d))
+* DEADLINE_EXCEEDED retry code is idempotent ([#27](https://www.github.com/googleapis/nodejs-datalabeling/issues/27)) ([00a9c2e](https://www.github.com/googleapis/nodejs-datalabeling/commit/00a9c2e))
+* **deps:** update dependency google-gax to v1 ([#26](https://www.github.com/googleapis/nodejs-datalabeling/issues/26)) ([482dab5](https://www.github.com/googleapis/nodejs-datalabeling/commit/482dab5))
+
+
+### Build System
+
+* upgrade engines field to >=8.10.0 ([#18](https://www.github.com/googleapis/nodejs-datalabeling/issues/18)) ([5affe85](https://www.github.com/googleapis/nodejs-datalabeling/commit/5affe85))
+
+## v0.1.0
+
+04-05-2019 14:33 PDT
+
+This is the initial release of the Node.js Data Labeling API client library.
diff --git a/packages/google-cloud-datalabeling/CODE_OF_CONDUCT.md b/packages/google-cloud-datalabeling/CODE_OF_CONDUCT.md
new file mode 100644
index 00000000000..2add2547a81
--- /dev/null
+++ b/packages/google-cloud-datalabeling/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-datalabeling/CONTRIBUTING.md b/packages/google-cloud-datalabeling/CONTRIBUTING.md
new file mode 100644
index 00000000000..1536096efcf
--- /dev/null
+++ b/packages/google-cloud-datalabeling/CONTRIBUTING.md
@@ -0,0 +1,76 @@
+# How to become a contributor and submit your own code
+
+**Table of contents**
+
+* [Contributor License Agreements](#contributor-license-agreements)
+* [Contributing a patch](#contributing-a-patch)
+* [Running the tests](#running-the-tests)
+* [Releasing the library](#releasing-the-library)
+
+## Contributor License Agreements
+
+We'd love to accept your sample apps and patches! Before we can take them, we
+have to jump a couple of legal hurdles.
+
+Please fill out either the individual or corporate Contributor License Agreement
+(CLA).
+
+ * If you are an individual writing original source code and you're sure you
+ own the intellectual property, then you'll need to sign an [individual CLA](https://developers.google.com/open-source/cla/individual).
+ * If you work for a company that wants to allow you to contribute your work,
+ then you'll need to sign a [corporate CLA](https://developers.google.com/open-source/cla/corporate).
+
+Follow either of the two links above to access the appropriate CLA and
+instructions for how to sign and return it. Once we receive it, we'll be able to
+accept your pull requests.
+
+## Contributing A Patch
+
+1. Submit an issue describing your proposed change to the repo in question.
+1. The repo owner will respond to your issue promptly.
+1. If your proposed change is accepted, and you haven't already done so, sign a
+ Contributor License Agreement (see details above).
+1. Fork the desired repo, develop and test your code changes.
+1. Ensure that your code adheres to the existing style in the code to which
+ you are contributing.
+1. Ensure that your code has an appropriate set of tests which all pass.
+1. Title your pull request following [Conventional Commits](https://www.conventionalcommits.org/) styling.
+1. Submit a pull request.
+
+### Before you begin
+
+1. [Select or create a Cloud Platform project][projects].
+1. [Enable billing for your project][billing].
+1. [Enable the Google Cloud Data Labeling 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=datalabeling.googleapis.com
+[auth]: https://cloud.google.com/docs/authentication/getting-started
\ No newline at end of file
diff --git a/packages/google-cloud-datalabeling/LICENSE b/packages/google-cloud-datalabeling/LICENSE
new file mode 100644
index 00000000000..d6456956733
--- /dev/null
+++ b/packages/google-cloud-datalabeling/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-datalabeling/README.md b/packages/google-cloud-datalabeling/README.md
new file mode 100644
index 00000000000..013d0fbcee9
--- /dev/null
+++ b/packages/google-cloud-datalabeling/README.md
@@ -0,0 +1,185 @@
+[//]: # "This README.md file is auto-generated, all changes to this file will be lost."
+[//]: # "To regenerate it, use `python -m synthtool`."
+
+
+# [Google Cloud Data Labeling: Node.js Client](https://github.com/googleapis/google-cloud-node)
+
+[](https://cloud.google.com/terms/launch-stages)
+[](https://www.npmjs.org/package/@google-cloud/datalabeling)
+
+
+
+
+Data Labeling API client for Node.js
+
+
+A comprehensive list of changes in each version may be found in
+[the CHANGELOG](https://github.com/googleapis/google-cloud-node/tree/main/packages/google-cloud-datalabeling/CHANGELOG.md).
+
+* [Google Cloud Data Labeling Node.js Client API Reference][client-docs]
+* [Google Cloud Data Labeling Documentation][product-docs]
+* [github.com/googleapis/google-cloud-node/packages/google-cloud-datalabeling](https://github.com/googleapis/google-cloud-node/tree/main/packages/google-cloud-datalabeling)
+
+Read more about the client libraries for Cloud APIs, including the older
+Google APIs Client Libraries, in [Client Libraries Explained][explained].
+
+[explained]: https://cloud.google.com/apis/docs/client-libraries-explained
+
+**Table of contents:**
+
+
+* [Quickstart](#quickstart)
+ * [Before you begin](#before-you-begin)
+ * [Installing the client library](#installing-the-client-library)
+ * [Using the client library](#using-the-client-library)
+* [Samples](#samples)
+* [Versioning](#versioning)
+* [Contributing](#contributing)
+* [License](#license)
+
+## Quickstart
+
+### Before you begin
+
+1. [Select or create a Cloud Platform project][projects].
+1. [Enable billing for your project][billing].
+1. [Enable the Google Cloud Data Labeling 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/datalabeling
+```
+
+
+### Using the client library
+
+```javascript
+const {DataLabelingServiceClient} = require('@google-cloud/datalabeling');
+const client = new DataLabelingServiceClient();
+
+async function quickstart() {
+ const parent = client.projectPath(projectId);
+ const [result] = await client.listDatasets({parent});
+ console.log('Datasets:');
+ console.log(result);
+}
+quickstart();
+
+```
+
+
+
+## Samples
+
+Samples are in the [`samples/`](https://github.com/googleapis/google-cloud-node/tree/main/samples) directory. Each sample's `README.md` has instructions for running its sample.
+
+| Sample | Source Code | Try it |
+| --------------------------- | --------------------------------- | ------ |
+| Data_labeling_service.create_annotation_spec_set | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-datalabeling/samples/generated/v1beta1/data_labeling_service.create_annotation_spec_set.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-datalabeling/samples/generated/v1beta1/data_labeling_service.create_annotation_spec_set.js,samples/README.md) |
+| Data_labeling_service.create_dataset | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-datalabeling/samples/generated/v1beta1/data_labeling_service.create_dataset.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-datalabeling/samples/generated/v1beta1/data_labeling_service.create_dataset.js,samples/README.md) |
+| Data_labeling_service.create_evaluation_job | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-datalabeling/samples/generated/v1beta1/data_labeling_service.create_evaluation_job.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-datalabeling/samples/generated/v1beta1/data_labeling_service.create_evaluation_job.js,samples/README.md) |
+| Data_labeling_service.create_instruction | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-datalabeling/samples/generated/v1beta1/data_labeling_service.create_instruction.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-datalabeling/samples/generated/v1beta1/data_labeling_service.create_instruction.js,samples/README.md) |
+| Data_labeling_service.delete_annotated_dataset | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-datalabeling/samples/generated/v1beta1/data_labeling_service.delete_annotated_dataset.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-datalabeling/samples/generated/v1beta1/data_labeling_service.delete_annotated_dataset.js,samples/README.md) |
+| Data_labeling_service.delete_annotation_spec_set | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-datalabeling/samples/generated/v1beta1/data_labeling_service.delete_annotation_spec_set.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-datalabeling/samples/generated/v1beta1/data_labeling_service.delete_annotation_spec_set.js,samples/README.md) |
+| Data_labeling_service.delete_dataset | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-datalabeling/samples/generated/v1beta1/data_labeling_service.delete_dataset.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-datalabeling/samples/generated/v1beta1/data_labeling_service.delete_dataset.js,samples/README.md) |
+| Data_labeling_service.delete_evaluation_job | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-datalabeling/samples/generated/v1beta1/data_labeling_service.delete_evaluation_job.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-datalabeling/samples/generated/v1beta1/data_labeling_service.delete_evaluation_job.js,samples/README.md) |
+| Data_labeling_service.delete_instruction | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-datalabeling/samples/generated/v1beta1/data_labeling_service.delete_instruction.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-datalabeling/samples/generated/v1beta1/data_labeling_service.delete_instruction.js,samples/README.md) |
+| Data_labeling_service.export_data | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-datalabeling/samples/generated/v1beta1/data_labeling_service.export_data.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-datalabeling/samples/generated/v1beta1/data_labeling_service.export_data.js,samples/README.md) |
+| Data_labeling_service.get_annotated_dataset | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-datalabeling/samples/generated/v1beta1/data_labeling_service.get_annotated_dataset.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-datalabeling/samples/generated/v1beta1/data_labeling_service.get_annotated_dataset.js,samples/README.md) |
+| Data_labeling_service.get_annotation_spec_set | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-datalabeling/samples/generated/v1beta1/data_labeling_service.get_annotation_spec_set.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-datalabeling/samples/generated/v1beta1/data_labeling_service.get_annotation_spec_set.js,samples/README.md) |
+| Data_labeling_service.get_data_item | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-datalabeling/samples/generated/v1beta1/data_labeling_service.get_data_item.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-datalabeling/samples/generated/v1beta1/data_labeling_service.get_data_item.js,samples/README.md) |
+| Data_labeling_service.get_dataset | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-datalabeling/samples/generated/v1beta1/data_labeling_service.get_dataset.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-datalabeling/samples/generated/v1beta1/data_labeling_service.get_dataset.js,samples/README.md) |
+| Data_labeling_service.get_evaluation | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-datalabeling/samples/generated/v1beta1/data_labeling_service.get_evaluation.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-datalabeling/samples/generated/v1beta1/data_labeling_service.get_evaluation.js,samples/README.md) |
+| Data_labeling_service.get_evaluation_job | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-datalabeling/samples/generated/v1beta1/data_labeling_service.get_evaluation_job.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-datalabeling/samples/generated/v1beta1/data_labeling_service.get_evaluation_job.js,samples/README.md) |
+| Data_labeling_service.get_example | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-datalabeling/samples/generated/v1beta1/data_labeling_service.get_example.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-datalabeling/samples/generated/v1beta1/data_labeling_service.get_example.js,samples/README.md) |
+| Data_labeling_service.get_instruction | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-datalabeling/samples/generated/v1beta1/data_labeling_service.get_instruction.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-datalabeling/samples/generated/v1beta1/data_labeling_service.get_instruction.js,samples/README.md) |
+| Data_labeling_service.import_data | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-datalabeling/samples/generated/v1beta1/data_labeling_service.import_data.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-datalabeling/samples/generated/v1beta1/data_labeling_service.import_data.js,samples/README.md) |
+| Data_labeling_service.label_image | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-datalabeling/samples/generated/v1beta1/data_labeling_service.label_image.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-datalabeling/samples/generated/v1beta1/data_labeling_service.label_image.js,samples/README.md) |
+| Data_labeling_service.label_text | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-datalabeling/samples/generated/v1beta1/data_labeling_service.label_text.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-datalabeling/samples/generated/v1beta1/data_labeling_service.label_text.js,samples/README.md) |
+| Data_labeling_service.label_video | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-datalabeling/samples/generated/v1beta1/data_labeling_service.label_video.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-datalabeling/samples/generated/v1beta1/data_labeling_service.label_video.js,samples/README.md) |
+| Data_labeling_service.list_annotated_datasets | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-datalabeling/samples/generated/v1beta1/data_labeling_service.list_annotated_datasets.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-datalabeling/samples/generated/v1beta1/data_labeling_service.list_annotated_datasets.js,samples/README.md) |
+| Data_labeling_service.list_annotation_spec_sets | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-datalabeling/samples/generated/v1beta1/data_labeling_service.list_annotation_spec_sets.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-datalabeling/samples/generated/v1beta1/data_labeling_service.list_annotation_spec_sets.js,samples/README.md) |
+| Data_labeling_service.list_data_items | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-datalabeling/samples/generated/v1beta1/data_labeling_service.list_data_items.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-datalabeling/samples/generated/v1beta1/data_labeling_service.list_data_items.js,samples/README.md) |
+| Data_labeling_service.list_datasets | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-datalabeling/samples/generated/v1beta1/data_labeling_service.list_datasets.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-datalabeling/samples/generated/v1beta1/data_labeling_service.list_datasets.js,samples/README.md) |
+| Data_labeling_service.list_evaluation_jobs | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-datalabeling/samples/generated/v1beta1/data_labeling_service.list_evaluation_jobs.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-datalabeling/samples/generated/v1beta1/data_labeling_service.list_evaluation_jobs.js,samples/README.md) |
+| Data_labeling_service.list_examples | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-datalabeling/samples/generated/v1beta1/data_labeling_service.list_examples.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-datalabeling/samples/generated/v1beta1/data_labeling_service.list_examples.js,samples/README.md) |
+| Data_labeling_service.list_instructions | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-datalabeling/samples/generated/v1beta1/data_labeling_service.list_instructions.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-datalabeling/samples/generated/v1beta1/data_labeling_service.list_instructions.js,samples/README.md) |
+| Data_labeling_service.pause_evaluation_job | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-datalabeling/samples/generated/v1beta1/data_labeling_service.pause_evaluation_job.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-datalabeling/samples/generated/v1beta1/data_labeling_service.pause_evaluation_job.js,samples/README.md) |
+| Data_labeling_service.resume_evaluation_job | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-datalabeling/samples/generated/v1beta1/data_labeling_service.resume_evaluation_job.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-datalabeling/samples/generated/v1beta1/data_labeling_service.resume_evaluation_job.js,samples/README.md) |
+| Data_labeling_service.search_evaluations | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-datalabeling/samples/generated/v1beta1/data_labeling_service.search_evaluations.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-datalabeling/samples/generated/v1beta1/data_labeling_service.search_evaluations.js,samples/README.md) |
+| Data_labeling_service.search_example_comparisons | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-datalabeling/samples/generated/v1beta1/data_labeling_service.search_example_comparisons.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-datalabeling/samples/generated/v1beta1/data_labeling_service.search_example_comparisons.js,samples/README.md) |
+| Data_labeling_service.update_evaluation_job | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-datalabeling/samples/generated/v1beta1/data_labeling_service.update_evaluation_job.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-datalabeling/samples/generated/v1beta1/data_labeling_service.update_evaluation_job.js,samples/README.md) |
+| Get Datasets | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-datalabeling/samples/quickstart.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-datalabeling/samples/quickstart.js,samples/README.md) |
+| Quickstart.test | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-datalabeling/samples/test/quickstart.test.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-datalabeling/samples/test/quickstart.test.js,samples/README.md) |
+
+
+
+The [Google Cloud Data Labeling 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/datalabeling@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 in **preview**. This means it is still a
+work-in-progress and under active development. Any release is subject to
+backwards-incompatible changes at any time.
+
+
+More Information: [Google Cloud Platform Launch Stages][launch_stages]
+
+[launch_stages]: https://cloud.google.com/terms/launch-stages
+
+## Contributing
+
+Contributions welcome! See the [Contributing Guide](https://github.com/googleapis/google-cloud-node/blob/main/CONTRIBUTING.md).
+
+Please note that this `README.md`, the `samples/README.md`,
+and a variety of configuration files in this repository (including `.nycrc` and `tsconfig.json`)
+are generated from a central template. To edit one of these files, make an edit
+to its templates in
+[directory](https://github.com/googleapis/synthtool).
+
+## License
+
+Apache Version 2.0
+
+See [LICENSE](https://github.com/googleapis/google-cloud-node/blob/main/LICENSE)
+
+[client-docs]: https://cloud.google.com/nodejs/docs/reference/datalabeling/latest
+[product-docs]: https://cloud.google.com/data-labeling/docs/
+[shell_img]: https://gstatic.com/cloudssh/images/open-btn.png
+[projects]: https://console.cloud.google.com/project
+[billing]: https://support.google.com/cloud/answer/6293499#enable-billing
+[enable_api]: https://console.cloud.google.com/flows/enableapi?apiid=datalabeling.googleapis.com
+[auth]: https://cloud.google.com/docs/authentication/getting-started
diff --git a/packages/google-cloud-datalabeling/linkinator.config.json b/packages/google-cloud-datalabeling/linkinator.config.json
new file mode 100644
index 00000000000..befd23c8633
--- /dev/null
+++ b/packages/google-cloud-datalabeling/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-datalabeling/package.json b/packages/google-cloud-datalabeling/package.json
new file mode 100644
index 00000000000..7e2e8b1608a
--- /dev/null
+++ b/packages/google-cloud-datalabeling/package.json
@@ -0,0 +1,72 @@
+{
+ "name": "@google-cloud/datalabeling",
+ "description": "Data Labeling API client for Node.js",
+ "version": "3.1.1",
+ "license": "Apache-2.0",
+ "author": "Google LLC",
+ "engines": {
+ "node": ">=12.0.0"
+ },
+ "repository": {
+ "type": "git",
+ "directory": "packages/google-cloud-datalabeling",
+ "url": "https://github.com/googleapis/google-cloud-node.git"
+ },
+ "main": "build/src/index.js",
+ "files": [
+ "build/protos",
+ "build/src"
+ ],
+ "keywords": [
+ "google apis client",
+ "google api client",
+ "google apis",
+ "google api",
+ "google",
+ "google cloud platform",
+ "google cloud",
+ "cloud",
+ "google datalabeling",
+ "datalabeling",
+ "Data Labeling API"
+ ],
+ "scripts": {
+ "test": "c8 mocha build/test",
+ "samples-test": "npm run compile && cd samples/ && npm link ../ && npm i && npm test",
+ "system-test": "npm run compile && c8 mocha build/system-test",
+ "docs": "jsdoc -c .jsdoc.js",
+ "lint": "gts check",
+ "fix": "gts fix",
+ "docs-test": "linkinator docs",
+ "clean": "gts clean",
+ "compile": "tsc -p . && cp -r protos build/",
+ "compile-protos": "compileProtos src",
+ "predocs-test": "npm run docs",
+ "prepare": "npm run compile",
+ "prelint": "cd samples; npm link ../; npm install",
+ "precompile": "gts clean"
+ },
+ "dependencies": {
+ "google-gax": "^3.5.2"
+ },
+ "devDependencies": {
+ "@types/mocha": "^9.0.0",
+ "@types/node": "^18.0.0",
+ "@types/sinon": "^10.0.0",
+ "c8": "^7.0.0",
+ "gts": "^3.1.0",
+ "jsdoc": "^4.0.0",
+ "jsdoc-fresh": "^2.0.0",
+ "jsdoc-region-tag": "^2.0.0",
+ "linkinator": "^4.0.0",
+ "mocha": "^9.2.2",
+ "null-loader": "^4.0.0",
+ "pack-n-play": "^1.0.0-2",
+ "sinon": "^14.0.0",
+ "ts-loader": "^9.0.0",
+ "typescript": "^4.6.4",
+ "webpack": "^5.0.0",
+ "webpack-cli": "^4.0.0"
+ },
+ "homepage": "https://github.com/googleapis/google-cloud-node/tree/main/packages/google-cloud-datalabeling"
+}
diff --git a/packages/google-cloud-datalabeling/protos/google/cloud/common_resources.proto b/packages/google-cloud-datalabeling/protos/google/cloud/common_resources.proto
new file mode 100644
index 00000000000..56c9f800d5e
--- /dev/null
+++ b/packages/google-cloud-datalabeling/protos/google/cloud/common_resources.proto
@@ -0,0 +1,52 @@
+// Copyright 2019 Google LLC.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+// This file contains stub messages for common resources in GCP.
+// It is not intended to be directly generated, and is instead used by
+// other tooling to be able to match common resource patterns.
+syntax = "proto3";
+
+package google.cloud;
+
+import "google/api/resource.proto";
+
+
+option (google.api.resource_definition) = {
+ type: "cloudresourcemanager.googleapis.com/Project"
+ pattern: "projects/{project}"
+};
+
+
+option (google.api.resource_definition) = {
+ type: "cloudresourcemanager.googleapis.com/Organization"
+ pattern: "organizations/{organization}"
+};
+
+
+option (google.api.resource_definition) = {
+ type: "cloudresourcemanager.googleapis.com/Folder"
+ pattern: "folders/{folder}"
+};
+
+
+option (google.api.resource_definition) = {
+ type: "cloudbilling.googleapis.com/BillingAccount"
+ pattern: "billingAccounts/{billing_account}"
+};
+
+option (google.api.resource_definition) = {
+ type: "locations.googleapis.com/Location"
+ pattern: "projects/{project}/locations/{location}"
+};
+
diff --git a/packages/google-cloud-datalabeling/protos/google/cloud/datalabeling/v1beta1/annotation.proto b/packages/google-cloud-datalabeling/protos/google/cloud/datalabeling/v1beta1/annotation.proto
new file mode 100644
index 00000000000..d62cbfd136b
--- /dev/null
+++ b/packages/google-cloud-datalabeling/protos/google/cloud/datalabeling/v1beta1/annotation.proto
@@ -0,0 +1,345 @@
+// Copyright 2019 Google LLC.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+syntax = "proto3";
+
+package google.cloud.datalabeling.v1beta1;
+
+import "google/cloud/datalabeling/v1beta1/annotation_spec_set.proto";
+import "google/protobuf/duration.proto";
+
+option csharp_namespace = "Google.Cloud.DataLabeling.V1Beta1";
+option go_package = "google.golang.org/genproto/googleapis/cloud/datalabeling/v1beta1;datalabeling";
+option java_multiple_files = true;
+option java_package = "com.google.cloud.datalabeling.v1beta1";
+option php_namespace = "Google\\Cloud\\DataLabeling\\V1beta1";
+option ruby_package = "Google::Cloud::DataLabeling::V1beta1";
+
+// Specifies where the annotation comes from (whether it was provided by a
+// human labeler or a different source).
+enum AnnotationSource {
+ ANNOTATION_SOURCE_UNSPECIFIED = 0;
+
+ // Answer is provided by a human contributor.
+ OPERATOR = 3;
+}
+
+// Annotation for Example. Each example may have one or more annotations. For
+// example in image classification problem, each image might have one or more
+// labels. We call labels binded with this image an Annotation.
+message Annotation {
+ // Output only. Unique name of this annotation, format is:
+ //
+ // projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/{annotated_dataset}/examples/{example_id}/annotations/{annotation_id}
+ string name = 1;
+
+ // Output only. The source of the annotation.
+ AnnotationSource annotation_source = 2;
+
+ // Output only. This is the actual annotation value, e.g classification,
+ // bounding box values are stored here.
+ AnnotationValue annotation_value = 3;
+
+ // Output only. Annotation metadata, including information like votes
+ // for labels.
+ AnnotationMetadata annotation_metadata = 4;
+
+ // Output only. Sentiment for this annotation.
+ AnnotationSentiment annotation_sentiment = 6;
+}
+
+enum AnnotationSentiment {
+ ANNOTATION_SENTIMENT_UNSPECIFIED = 0;
+
+ // This annotation describes negatively about the data.
+ NEGATIVE = 1;
+
+ // This label describes positively about the data.
+ POSITIVE = 2;
+}
+
+enum AnnotationType {
+ ANNOTATION_TYPE_UNSPECIFIED = 0;
+
+ // Classification annotations in an image. Allowed for continuous evaluation.
+ IMAGE_CLASSIFICATION_ANNOTATION = 1;
+
+ // Bounding box annotations in an image. A form of image object detection.
+ // Allowed for continuous evaluation.
+ IMAGE_BOUNDING_BOX_ANNOTATION = 2;
+
+ // Oriented bounding box. The box does not have to be parallel to horizontal
+ // line.
+ IMAGE_ORIENTED_BOUNDING_BOX_ANNOTATION = 13;
+
+ // Bounding poly annotations in an image.
+ IMAGE_BOUNDING_POLY_ANNOTATION = 10;
+
+ // Polyline annotations in an image.
+ IMAGE_POLYLINE_ANNOTATION = 11;
+
+ // Segmentation annotations in an image.
+ IMAGE_SEGMENTATION_ANNOTATION = 12;
+
+ // Classification annotations in video shots.
+ VIDEO_SHOTS_CLASSIFICATION_ANNOTATION = 3;
+
+ // Video object tracking annotation.
+ VIDEO_OBJECT_TRACKING_ANNOTATION = 4;
+
+ // Video object detection annotation.
+ VIDEO_OBJECT_DETECTION_ANNOTATION = 5;
+
+ // Video event annotation.
+ VIDEO_EVENT_ANNOTATION = 6;
+
+ // Classification for text. Allowed for continuous evaluation.
+ TEXT_CLASSIFICATION_ANNOTATION = 8;
+
+ // Entity extraction for text.
+ TEXT_ENTITY_EXTRACTION_ANNOTATION = 9;
+
+ // General classification. Allowed for continuous evaluation.
+ GENERAL_CLASSIFICATION_ANNOTATION = 14;
+}
+
+// Annotation value for an example.
+message AnnotationValue {
+ oneof value_type {
+ // Annotation value for image classification case.
+ ImageClassificationAnnotation image_classification_annotation = 1;
+
+ // Annotation value for image bounding box, oriented bounding box
+ // and polygon cases.
+ ImageBoundingPolyAnnotation image_bounding_poly_annotation = 2;
+
+ // Annotation value for image polyline cases.
+ // Polyline here is different from BoundingPoly. It is formed by
+ // line segments connected to each other but not closed form(Bounding Poly).
+ // The line segments can cross each other.
+ ImagePolylineAnnotation image_polyline_annotation = 8;
+
+ // Annotation value for image segmentation.
+ ImageSegmentationAnnotation image_segmentation_annotation = 9;
+
+ // Annotation value for text classification case.
+ TextClassificationAnnotation text_classification_annotation = 3;
+
+ // Annotation value for text entity extraction case.
+ TextEntityExtractionAnnotation text_entity_extraction_annotation = 10;
+
+ // Annotation value for video classification case.
+ VideoClassificationAnnotation video_classification_annotation = 4;
+
+ // Annotation value for video object detection and tracking case.
+ VideoObjectTrackingAnnotation video_object_tracking_annotation = 5;
+
+ // Annotation value for video event case.
+ VideoEventAnnotation video_event_annotation = 6;
+ }
+}
+
+// Image classification annotation definition.
+message ImageClassificationAnnotation {
+ // Label of image.
+ AnnotationSpec annotation_spec = 1;
+}
+
+// A vertex represents a 2D point in the image.
+// NOTE: the vertex coordinates are in the same scale as the original image.
+message Vertex {
+ // X coordinate.
+ int32 x = 1;
+
+ // Y coordinate.
+ int32 y = 2;
+}
+
+// A vertex represents a 2D point in the image.
+// NOTE: the normalized vertex coordinates are relative to the original image
+// and range from 0 to 1.
+message NormalizedVertex {
+ // X coordinate.
+ float x = 1;
+
+ // Y coordinate.
+ float y = 2;
+}
+
+// A bounding polygon in the image.
+message BoundingPoly {
+ // The bounding polygon vertices.
+ repeated Vertex vertices = 1;
+}
+
+// Normalized bounding polygon.
+message NormalizedBoundingPoly {
+ // The bounding polygon normalized vertices.
+ repeated NormalizedVertex normalized_vertices = 1;
+}
+
+// Image bounding poly annotation. It represents a polygon including
+// bounding box in the image.
+message ImageBoundingPolyAnnotation {
+ // The region of the polygon. If it is a bounding box, it is guaranteed to be
+ // four points.
+ oneof bounded_area {
+ BoundingPoly bounding_poly = 2;
+
+ NormalizedBoundingPoly normalized_bounding_poly = 3;
+ }
+
+ // Label of object in this bounding polygon.
+ AnnotationSpec annotation_spec = 1;
+}
+
+// A line with multiple line segments.
+message Polyline {
+ // The polyline vertices.
+ repeated Vertex vertices = 1;
+}
+
+// Normalized polyline.
+message NormalizedPolyline {
+ // The normalized polyline vertices.
+ repeated NormalizedVertex normalized_vertices = 1;
+}
+
+// A polyline for the image annotation.
+message ImagePolylineAnnotation {
+ oneof poly {
+ Polyline polyline = 2;
+
+ NormalizedPolyline normalized_polyline = 3;
+ }
+
+ // Label of this polyline.
+ AnnotationSpec annotation_spec = 1;
+}
+
+// Image segmentation annotation.
+message ImageSegmentationAnnotation {
+ // The mapping between rgb color and annotation spec. The key is the rgb
+ // color represented in format of rgb(0, 0, 0). The value is the
+ // AnnotationSpec.
+ map annotation_colors = 1;
+
+ // Image format.
+ string mime_type = 2;
+
+ // A byte string of a full image's color map.
+ bytes image_bytes = 3;
+}
+
+// Text classification annotation.
+message TextClassificationAnnotation {
+ // Label of the text.
+ AnnotationSpec annotation_spec = 1;
+}
+
+// Text entity extraction annotation.
+message TextEntityExtractionAnnotation {
+ // Label of the text entities.
+ AnnotationSpec annotation_spec = 1;
+
+ // Position of the entity.
+ SequentialSegment sequential_segment = 2;
+}
+
+// Start and end position in a sequence (e.g. text segment).
+message SequentialSegment {
+ // Start position (inclusive).
+ int32 start = 1;
+
+ // End position (exclusive).
+ int32 end = 2;
+}
+
+// A time period inside of an example that has a time dimension (e.g. video).
+message TimeSegment {
+ // Start of the time segment (inclusive), represented as the duration since
+ // the example start.
+ google.protobuf.Duration start_time_offset = 1;
+
+ // End of the time segment (exclusive), represented as the duration since the
+ // example start.
+ google.protobuf.Duration end_time_offset = 2;
+}
+
+// Video classification annotation.
+message VideoClassificationAnnotation {
+ // The time segment of the video to which the annotation applies.
+ TimeSegment time_segment = 1;
+
+ // Label of the segment specified by time_segment.
+ AnnotationSpec annotation_spec = 2;
+}
+
+// Video frame level annotation for object detection and tracking.
+message ObjectTrackingFrame {
+ // The bounding box location of this object track for the frame.
+ oneof bounded_area {
+ BoundingPoly bounding_poly = 1;
+
+ NormalizedBoundingPoly normalized_bounding_poly = 2;
+ }
+
+ // The time offset of this frame relative to the beginning of the video.
+ google.protobuf.Duration time_offset = 3;
+}
+
+// Video object tracking annotation.
+message VideoObjectTrackingAnnotation {
+ // Label of the object tracked in this annotation.
+ AnnotationSpec annotation_spec = 1;
+
+ // The time segment of the video to which object tracking applies.
+ TimeSegment time_segment = 2;
+
+ // The list of frames where this object track appears.
+ repeated ObjectTrackingFrame object_tracking_frames = 3;
+}
+
+// Video event annotation.
+message VideoEventAnnotation {
+ // Label of the event in this annotation.
+ AnnotationSpec annotation_spec = 1;
+
+ // The time segment of the video to which the annotation applies.
+ TimeSegment time_segment = 2;
+}
+
+// Additional information associated with the annotation.
+message AnnotationMetadata {
+ // Metadata related to human labeling.
+ OperatorMetadata operator_metadata = 2;
+}
+
+// General information useful for labels coming from contributors.
+message OperatorMetadata {
+ // Confidence score corresponding to a label. For examle, if 3 contributors
+ // have answered the question and 2 of them agree on the final label, the
+ // confidence score will be 0.67 (2/3).
+ float score = 1;
+
+ // The total number of contributors that answer this question.
+ int32 total_votes = 2;
+
+ // The total number of contributors that choose this label.
+ int32 label_votes = 3;
+
+ // Comments from contributors.
+ repeated string comments = 4;
+}
diff --git a/packages/google-cloud-datalabeling/protos/google/cloud/datalabeling/v1beta1/annotation_spec_set.proto b/packages/google-cloud-datalabeling/protos/google/cloud/datalabeling/v1beta1/annotation_spec_set.proto
new file mode 100644
index 00000000000..7670ae6a9f9
--- /dev/null
+++ b/packages/google-cloud-datalabeling/protos/google/cloud/datalabeling/v1beta1/annotation_spec_set.proto
@@ -0,0 +1,71 @@
+// Copyright 2019 Google LLC.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+syntax = "proto3";
+
+package google.cloud.datalabeling.v1beta1;
+
+import "google/api/resource.proto";
+
+option csharp_namespace = "Google.Cloud.DataLabeling.V1Beta1";
+option go_package = "google.golang.org/genproto/googleapis/cloud/datalabeling/v1beta1;datalabeling";
+option java_multiple_files = true;
+option java_package = "com.google.cloud.datalabeling.v1beta1";
+option php_namespace = "Google\\Cloud\\DataLabeling\\V1beta1";
+option ruby_package = "Google::Cloud::DataLabeling::V1beta1";
+
+// An AnnotationSpecSet is a collection of label definitions. For example, in
+// image classification tasks, you define a set of possible labels for images as
+// an AnnotationSpecSet. An AnnotationSpecSet is immutable upon creation.
+message AnnotationSpecSet {
+ option (google.api.resource) = {
+ type: "datalabeling.googleapis.com/AnnotationSpecSet"
+ pattern: "projects/{project}/annotationSpecSets/{annotation_spec_set}"
+ };
+
+ // Output only. The AnnotationSpecSet resource name in the following format:
+ //
+ // "projects/{project_id}/annotationSpecSets/{annotation_spec_set_id}"
+ string name = 1;
+
+ // Required. The display name for AnnotationSpecSet that you define when you
+ // create it. Maximum of 64 characters.
+ string display_name = 2;
+
+ // Optional. User-provided description of the annotation specification set.
+ // The description can be up to 10,000 characters long.
+ string description = 3;
+
+ // Required. The array of AnnotationSpecs that you define when you create the
+ // AnnotationSpecSet. These are the possible labels for the labeling task.
+ repeated AnnotationSpec annotation_specs = 4;
+
+ // Output only. The names of any related resources that are blocking changes
+ // to the annotation spec set.
+ repeated string blocking_resources = 5;
+}
+
+// Container of information related to one possible annotation that can be used
+// in a labeling task. For example, an image classification task where images
+// are labeled as `dog` or `cat` must reference an AnnotationSpec for `dog` and
+// an AnnotationSpec for `cat`.
+message AnnotationSpec {
+ // Required. The display name of the AnnotationSpec. Maximum of 64 characters.
+ string display_name = 1;
+
+ // Optional. User-provided description of the annotation specification.
+ // The description can be up to 10,000 characters long.
+ string description = 2;
+}
diff --git a/packages/google-cloud-datalabeling/protos/google/cloud/datalabeling/v1beta1/data_labeling_service.proto b/packages/google-cloud-datalabeling/protos/google/cloud/datalabeling/v1beta1/data_labeling_service.proto
new file mode 100644
index 00000000000..5d0746c8a6d
--- /dev/null
+++ b/packages/google-cloud-datalabeling/protos/google/cloud/datalabeling/v1beta1/data_labeling_service.proto
@@ -0,0 +1,1236 @@
+// Copyright 2019 Google LLC.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+syntax = "proto3";
+
+package google.cloud.datalabeling.v1beta1;
+
+import "google/api/annotations.proto";
+import "google/api/client.proto";
+import "google/api/field_behavior.proto";
+import "google/api/resource.proto";
+import "google/cloud/datalabeling/v1beta1/annotation_spec_set.proto";
+import "google/cloud/datalabeling/v1beta1/dataset.proto";
+import "google/cloud/datalabeling/v1beta1/evaluation.proto";
+import "google/cloud/datalabeling/v1beta1/evaluation_job.proto";
+import "google/cloud/datalabeling/v1beta1/human_annotation_config.proto";
+import "google/cloud/datalabeling/v1beta1/instruction.proto";
+import "google/longrunning/operations.proto";
+import "google/protobuf/empty.proto";
+import "google/protobuf/field_mask.proto";
+
+option csharp_namespace = "Google.Cloud.DataLabeling.V1Beta1";
+option go_package = "google.golang.org/genproto/googleapis/cloud/datalabeling/v1beta1;datalabeling";
+option java_multiple_files = true;
+option java_package = "com.google.cloud.datalabeling.v1beta1";
+option php_namespace = "Google\\Cloud\\DataLabeling\\V1beta1";
+option ruby_package = "Google::Cloud::DataLabeling::V1beta1";
+
+// Service for the AI Platform Data Labeling API.
+service DataLabelingService {
+ option (google.api.default_host) = "datalabeling.googleapis.com";
+ option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform";
+
+ // Creates dataset. If success return a Dataset resource.
+ rpc CreateDataset(CreateDatasetRequest) returns (Dataset) {
+ option (google.api.http) = {
+ post: "/v1beta1/{parent=projects/*}/datasets"
+ body: "*"
+ };
+ option (google.api.method_signature) = "parent,dataset";
+ }
+
+ // Gets dataset by resource name.
+ rpc GetDataset(GetDatasetRequest) returns (Dataset) {
+ option (google.api.http) = {
+ get: "/v1beta1/{name=projects/*/datasets/*}"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // Lists datasets under a project. Pagination is supported.
+ rpc ListDatasets(ListDatasetsRequest) returns (ListDatasetsResponse) {
+ option (google.api.http) = {
+ get: "/v1beta1/{parent=projects/*}/datasets"
+ };
+ option (google.api.method_signature) = "parent,filter";
+ }
+
+ // Deletes a dataset by resource name.
+ rpc DeleteDataset(DeleteDatasetRequest) returns (google.protobuf.Empty) {
+ option (google.api.http) = {
+ delete: "/v1beta1/{name=projects/*/datasets/*}"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // Imports data into dataset based on source locations defined in request.
+ // It can be called multiple times for the same dataset. Each dataset can
+ // only have one long running operation running on it. For example, no
+ // labeling task (also long running operation) can be started while
+ // importing is still ongoing. Vice versa.
+ rpc ImportData(ImportDataRequest) returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ post: "/v1beta1/{name=projects/*/datasets/*}:importData"
+ body: "*"
+ };
+ option (google.api.method_signature) = "name,input_config";
+ option (google.longrunning.operation_info) = {
+ response_type: "ImportDataOperationResponse"
+ metadata_type: "ImportDataOperationMetadata"
+ };
+ }
+
+ // Exports data and annotations from dataset.
+ rpc ExportData(ExportDataRequest) returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ post: "/v1beta1/{name=projects/*/datasets/*}:exportData"
+ body: "*"
+ };
+ option (google.api.method_signature) = "name,annotated_dataset,filter,output_config";
+ option (google.longrunning.operation_info) = {
+ response_type: "ExportDataOperationResponse"
+ metadata_type: "ExportDataOperationMetadata"
+ };
+ }
+
+ // Gets a data item in a dataset by resource name. This API can be
+ // called after data are imported into dataset.
+ rpc GetDataItem(GetDataItemRequest) returns (DataItem) {
+ option (google.api.http) = {
+ get: "/v1beta1/{name=projects/*/datasets/*/dataItems/*}"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // Lists data items in a dataset. This API can be called after data
+ // are imported into dataset. Pagination is supported.
+ rpc ListDataItems(ListDataItemsRequest) returns (ListDataItemsResponse) {
+ option (google.api.http) = {
+ get: "/v1beta1/{parent=projects/*/datasets/*}/dataItems"
+ };
+ option (google.api.method_signature) = "parent,filter";
+ }
+
+ // Gets an annotated dataset by resource name.
+ rpc GetAnnotatedDataset(GetAnnotatedDatasetRequest) returns (AnnotatedDataset) {
+ option (google.api.http) = {
+ get: "/v1beta1/{name=projects/*/datasets/*/annotatedDatasets/*}"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // Lists annotated datasets for a dataset. Pagination is supported.
+ rpc ListAnnotatedDatasets(ListAnnotatedDatasetsRequest) returns (ListAnnotatedDatasetsResponse) {
+ option (google.api.http) = {
+ get: "/v1beta1/{parent=projects/*/datasets/*}/annotatedDatasets"
+ };
+ option (google.api.method_signature) = "parent,filter";
+ }
+
+ // Deletes an annotated dataset by resource name.
+ rpc DeleteAnnotatedDataset(DeleteAnnotatedDatasetRequest) returns (google.protobuf.Empty) {
+ option (google.api.http) = {
+ delete: "/v1beta1/{name=projects/*/datasets/*/annotatedDatasets/*}"
+ };
+ }
+
+ // Starts a labeling task for image. The type of image labeling task is
+ // configured by feature in the request.
+ rpc LabelImage(LabelImageRequest) returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ post: "/v1beta1/{parent=projects/*/datasets/*}/image:label"
+ body: "*"
+ };
+ option (google.api.method_signature) = "parent,basic_config,feature";
+ option (google.longrunning.operation_info) = {
+ response_type: "AnnotatedDataset"
+ metadata_type: "LabelOperationMetadata"
+ };
+ }
+
+ // Starts a labeling task for video. The type of video labeling task is
+ // configured by feature in the request.
+ rpc LabelVideo(LabelVideoRequest) returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ post: "/v1beta1/{parent=projects/*/datasets/*}/video:label"
+ body: "*"
+ };
+ option (google.api.method_signature) = "parent,basic_config,feature";
+ option (google.longrunning.operation_info) = {
+ response_type: "AnnotatedDataset"
+ metadata_type: "LabelOperationMetadata"
+ };
+ }
+
+ // Starts a labeling task for text. The type of text labeling task is
+ // configured by feature in the request.
+ rpc LabelText(LabelTextRequest) returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ post: "/v1beta1/{parent=projects/*/datasets/*}/text:label"
+ body: "*"
+ };
+ option (google.api.method_signature) = "parent,basic_config,feature";
+ option (google.longrunning.operation_info) = {
+ response_type: "AnnotatedDataset"
+ metadata_type: "LabelOperationMetadata"
+ };
+ }
+
+ // Gets an example by resource name, including both data and annotation.
+ rpc GetExample(GetExampleRequest) returns (Example) {
+ option (google.api.http) = {
+ get: "/v1beta1/{name=projects/*/datasets/*/annotatedDatasets/*/examples/*}"
+ };
+ option (google.api.method_signature) = "name,filter";
+ }
+
+ // Lists examples in an annotated dataset. Pagination is supported.
+ rpc ListExamples(ListExamplesRequest) returns (ListExamplesResponse) {
+ option (google.api.http) = {
+ get: "/v1beta1/{parent=projects/*/datasets/*/annotatedDatasets/*}/examples"
+ };
+ option (google.api.method_signature) = "parent,filter";
+ }
+
+ // Creates an annotation spec set by providing a set of labels.
+ rpc CreateAnnotationSpecSet(CreateAnnotationSpecSetRequest) returns (AnnotationSpecSet) {
+ option (google.api.http) = {
+ post: "/v1beta1/{parent=projects/*}/annotationSpecSets"
+ body: "*"
+ };
+ option (google.api.method_signature) = "parent,annotation_spec_set";
+ }
+
+ // Gets an annotation spec set by resource name.
+ rpc GetAnnotationSpecSet(GetAnnotationSpecSetRequest) returns (AnnotationSpecSet) {
+ option (google.api.http) = {
+ get: "/v1beta1/{name=projects/*/annotationSpecSets/*}"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // Lists annotation spec sets for a project. Pagination is supported.
+ rpc ListAnnotationSpecSets(ListAnnotationSpecSetsRequest) returns (ListAnnotationSpecSetsResponse) {
+ option (google.api.http) = {
+ get: "/v1beta1/{parent=projects/*}/annotationSpecSets"
+ };
+ option (google.api.method_signature) = "parent,filter";
+ }
+
+ // Deletes an annotation spec set by resource name.
+ rpc DeleteAnnotationSpecSet(DeleteAnnotationSpecSetRequest) returns (google.protobuf.Empty) {
+ option (google.api.http) = {
+ delete: "/v1beta1/{name=projects/*/annotationSpecSets/*}"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // Creates an instruction for how data should be labeled.
+ rpc CreateInstruction(CreateInstructionRequest) returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ post: "/v1beta1/{parent=projects/*}/instructions"
+ body: "*"
+ };
+ option (google.api.method_signature) = "parent,instruction";
+ option (google.longrunning.operation_info) = {
+ response_type: "Instruction"
+ metadata_type: "CreateInstructionMetadata"
+ };
+ }
+
+ // Gets an instruction by resource name.
+ rpc GetInstruction(GetInstructionRequest) returns (Instruction) {
+ option (google.api.http) = {
+ get: "/v1beta1/{name=projects/*/instructions/*}"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // Lists instructions for a project. Pagination is supported.
+ rpc ListInstructions(ListInstructionsRequest) returns (ListInstructionsResponse) {
+ option (google.api.http) = {
+ get: "/v1beta1/{parent=projects/*}/instructions"
+ };
+ option (google.api.method_signature) = "parent,filter";
+ }
+
+ // Deletes an instruction object by resource name.
+ rpc DeleteInstruction(DeleteInstructionRequest) returns (google.protobuf.Empty) {
+ option (google.api.http) = {
+ delete: "/v1beta1/{name=projects/*/instructions/*}"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // Gets an evaluation by resource name (to search, use
+ // [projects.evaluations.search][google.cloud.datalabeling.v1beta1.DataLabelingService.SearchEvaluations]).
+ rpc GetEvaluation(GetEvaluationRequest) returns (Evaluation) {
+ option (google.api.http) = {
+ get: "/v1beta1/{name=projects/*/datasets/*/evaluations/*}"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // Searches [evaluations][google.cloud.datalabeling.v1beta1.Evaluation] within a project.
+ rpc SearchEvaluations(SearchEvaluationsRequest) returns (SearchEvaluationsResponse) {
+ option (google.api.http) = {
+ get: "/v1beta1/{parent=projects/*}/evaluations:search"
+ };
+ option (google.api.method_signature) = "parent,filter";
+ }
+
+ // Searches example comparisons from an evaluation. The return format is a
+ // list of example comparisons that show ground truth and prediction(s) for
+ // a single input. Search by providing an evaluation ID.
+ rpc SearchExampleComparisons(SearchExampleComparisonsRequest) returns (SearchExampleComparisonsResponse) {
+ option (google.api.http) = {
+ post: "/v1beta1/{parent=projects/*/datasets/*/evaluations/*}/exampleComparisons:search"
+ body: "*"
+ };
+ option (google.api.method_signature) = "parent";
+ }
+
+ // Creates an evaluation job.
+ rpc CreateEvaluationJob(CreateEvaluationJobRequest) returns (EvaluationJob) {
+ option (google.api.http) = {
+ post: "/v1beta1/{parent=projects/*}/evaluationJobs"
+ body: "*"
+ };
+ option (google.api.method_signature) = "parent,job";
+ }
+
+ // Updates an evaluation job. You can only update certain fields of the job's
+ // [EvaluationJobConfig][google.cloud.datalabeling.v1beta1.EvaluationJobConfig]: `humanAnnotationConfig.instruction`,
+ // `exampleCount`, and `exampleSamplePercentage`.
+ //
+ // If you want to change any other aspect of the evaluation job, you must
+ // delete the job and create a new one.
+ rpc UpdateEvaluationJob(UpdateEvaluationJobRequest) returns (EvaluationJob) {
+ option (google.api.http) = {
+ patch: "/v1beta1/{evaluation_job.name=projects/*/evaluationJobs/*}"
+ body: "evaluation_job"
+ };
+ option (google.api.method_signature) = "evaluation_job,update_mask";
+ }
+
+ // Gets an evaluation job by resource name.
+ rpc GetEvaluationJob(GetEvaluationJobRequest) returns (EvaluationJob) {
+ option (google.api.http) = {
+ get: "/v1beta1/{name=projects/*/evaluationJobs/*}"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // Pauses an evaluation job. Pausing an evaluation job that is already in a
+ // `PAUSED` state is a no-op.
+ rpc PauseEvaluationJob(PauseEvaluationJobRequest) returns (google.protobuf.Empty) {
+ option (google.api.http) = {
+ post: "/v1beta1/{name=projects/*/evaluationJobs/*}:pause"
+ body: "*"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // Resumes a paused evaluation job. A deleted evaluation job can't be resumed.
+ // Resuming a running or scheduled evaluation job is a no-op.
+ rpc ResumeEvaluationJob(ResumeEvaluationJobRequest) returns (google.protobuf.Empty) {
+ option (google.api.http) = {
+ post: "/v1beta1/{name=projects/*/evaluationJobs/*}:resume"
+ body: "*"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // Stops and deletes an evaluation job.
+ rpc DeleteEvaluationJob(DeleteEvaluationJobRequest) returns (google.protobuf.Empty) {
+ option (google.api.http) = {
+ delete: "/v1beta1/{name=projects/*/evaluationJobs/*}"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // Lists all evaluation jobs within a project with possible filters.
+ // Pagination is supported.
+ rpc ListEvaluationJobs(ListEvaluationJobsRequest) returns (ListEvaluationJobsResponse) {
+ option (google.api.http) = {
+ get: "/v1beta1/{parent=projects/*}/evaluationJobs"
+ };
+ option (google.api.method_signature) = "parent,filter";
+ }
+}
+
+// Request message for CreateDataset.
+message CreateDatasetRequest {
+ // Required. Dataset resource parent, format:
+ // projects/{project_id}
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "cloudresourcemanager.googleapis.com/Project"
+ }
+ ];
+
+ // Required. The dataset to be created.
+ Dataset dataset = 2 [(google.api.field_behavior) = REQUIRED];
+}
+
+// Request message for GetDataSet.
+message GetDatasetRequest {
+ // Required. Dataset resource name, format:
+ // projects/{project_id}/datasets/{dataset_id}
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "datalabeling.googleapis.com/Dataset"
+ }
+ ];
+}
+
+// Request message for ListDataset.
+message ListDatasetsRequest {
+ // Required. Dataset resource parent, format:
+ // projects/{project_id}
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "cloudresourcemanager.googleapis.com/Project"
+ }
+ ];
+
+ // Optional. Filter on dataset is not supported at this moment.
+ string filter = 2 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Requested page size. Server may return fewer results than
+ // requested. Default value is 100.
+ int32 page_size = 3 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. A token identifying a page of results for the server to return.
+ // Typically obtained by
+ // [ListDatasetsResponse.next_page_token][google.cloud.datalabeling.v1beta1.ListDatasetsResponse.next_page_token] of the previous
+ // [DataLabelingService.ListDatasets] call.
+ // Returns the first page if empty.
+ string page_token = 4 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Results of listing datasets within a project.
+message ListDatasetsResponse {
+ // The list of datasets to return.
+ repeated Dataset datasets = 1;
+
+ // A token to retrieve next page of results.
+ string next_page_token = 2;
+}
+
+// Request message for DeleteDataset.
+message DeleteDatasetRequest {
+ // Required. Dataset resource name, format:
+ // projects/{project_id}/datasets/{dataset_id}
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "datalabeling.googleapis.com/Dataset"
+ }
+ ];
+}
+
+// Request message for ImportData API.
+message ImportDataRequest {
+ // Required. Dataset resource name, format:
+ // projects/{project_id}/datasets/{dataset_id}
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "datalabeling.googleapis.com/Dataset"
+ }
+ ];
+
+ // Required. Specify the input source of the data.
+ InputConfig input_config = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // Email of the user who started the import task and should be notified by
+ // email. If empty no notification will be sent.
+ string user_email_address = 3;
+}
+
+// Request message for ExportData API.
+message ExportDataRequest {
+ // Required. Dataset resource name, format:
+ // projects/{project_id}/datasets/{dataset_id}
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "datalabeling.googleapis.com/Dataset"
+ }
+ ];
+
+ // Required. Annotated dataset resource name. DataItem in
+ // Dataset and their annotations in specified annotated dataset will be
+ // exported. It's in format of
+ // projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/
+ // {annotated_dataset_id}
+ string annotated_dataset = 2 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "datalabeling.googleapis.com/AnnotatedDataset"
+ }
+ ];
+
+ // Optional. Filter is not supported at this moment.
+ string filter = 3 [(google.api.field_behavior) = OPTIONAL];
+
+ // Required. Specify the output destination.
+ OutputConfig output_config = 4 [(google.api.field_behavior) = REQUIRED];
+
+ // Email of the user who started the export task and should be notified by
+ // email. If empty no notification will be sent.
+ string user_email_address = 5;
+}
+
+// Request message for GetDataItem.
+message GetDataItemRequest {
+ // Required. The name of the data item to get, format:
+ // projects/{project_id}/datasets/{dataset_id}/dataItems/{data_item_id}
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "datalabeling.googleapis.com/DataItem"
+ }
+ ];
+}
+
+// Request message for ListDataItems.
+message ListDataItemsRequest {
+ // Required. Name of the dataset to list data items, format:
+ // projects/{project_id}/datasets/{dataset_id}
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "datalabeling.googleapis.com/Dataset"
+ }
+ ];
+
+ // Optional. Filter is not supported at this moment.
+ string filter = 2 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Requested page size. Server may return fewer results than
+ // requested. Default value is 100.
+ int32 page_size = 3 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. A token identifying a page of results for the server to return.
+ // Typically obtained by
+ // [ListDataItemsResponse.next_page_token][google.cloud.datalabeling.v1beta1.ListDataItemsResponse.next_page_token] of the previous
+ // [DataLabelingService.ListDataItems] call.
+ // Return first page if empty.
+ string page_token = 4 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Results of listing data items in a dataset.
+message ListDataItemsResponse {
+ // The list of data items to return.
+ repeated DataItem data_items = 1;
+
+ // A token to retrieve next page of results.
+ string next_page_token = 2;
+}
+
+// Request message for GetAnnotatedDataset.
+message GetAnnotatedDatasetRequest {
+ // Required. Name of the annotated dataset to get, format:
+ // projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/
+ // {annotated_dataset_id}
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "datalabeling.googleapis.com/AnnotatedDataset"
+ }
+ ];
+}
+
+// Request message for ListAnnotatedDatasets.
+message ListAnnotatedDatasetsRequest {
+ // Required. Name of the dataset to list annotated datasets, format:
+ // projects/{project_id}/datasets/{dataset_id}
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "datalabeling.googleapis.com/Dataset"
+ }
+ ];
+
+ // Optional. Filter is not supported at this moment.
+ string filter = 2 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Requested page size. Server may return fewer results than
+ // requested. Default value is 100.
+ int32 page_size = 3 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. A token identifying a page of results for the server to return.
+ // Typically obtained by
+ // [ListAnnotatedDatasetsResponse.next_page_token][google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse.next_page_token] of the previous
+ // [DataLabelingService.ListAnnotatedDatasets] call.
+ // Return first page if empty.
+ string page_token = 4 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Results of listing annotated datasets for a dataset.
+message ListAnnotatedDatasetsResponse {
+ // The list of annotated datasets to return.
+ repeated AnnotatedDataset annotated_datasets = 1;
+
+ // A token to retrieve next page of results.
+ string next_page_token = 2;
+}
+
+// Request message for DeleteAnnotatedDataset.
+message DeleteAnnotatedDatasetRequest {
+ // Required. Name of the annotated dataset to delete, format:
+ // projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/
+ // {annotated_dataset_id}
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "datalabeling.googleapis.com/AnnotatedDataset"
+ }
+ ];
+}
+
+// Request message for starting an image labeling task.
+message LabelImageRequest {
+ // Image labeling task feature.
+ enum Feature {
+ FEATURE_UNSPECIFIED = 0;
+
+ // Label whole image with one or more of labels.
+ CLASSIFICATION = 1;
+
+ // Label image with bounding boxes for labels.
+ BOUNDING_BOX = 2;
+
+ // Label oriented bounding box. The box does not have to be parallel to
+ // horizontal line.
+ ORIENTED_BOUNDING_BOX = 6;
+
+ // Label images with bounding poly. A bounding poly is a plane figure that
+ // is bounded by a finite chain of straight line segments closing in a loop.
+ BOUNDING_POLY = 3;
+
+ // Label images with polyline. Polyline is formed by connected line segments
+ // which are not in closed form.
+ POLYLINE = 4;
+
+ // Label images with segmentation. Segmentation is different from bounding
+ // poly since it is more fine-grained, pixel level annotation.
+ SEGMENTATION = 5;
+ }
+
+ // Required. Config for labeling tasks. The type of request config must
+ // match the selected feature.
+ oneof request_config {
+ // Configuration for image classification task.
+ // One of image_classification_config, bounding_poly_config,
+ // polyline_config and segmentation_config are required.
+ ImageClassificationConfig image_classification_config = 4;
+
+ // Configuration for bounding box and bounding poly task.
+ // One of image_classification_config, bounding_poly_config,
+ // polyline_config and segmentation_config are required.
+ BoundingPolyConfig bounding_poly_config = 5;
+
+ // Configuration for polyline task.
+ // One of image_classification_config, bounding_poly_config,
+ // polyline_config and segmentation_config are required.
+ PolylineConfig polyline_config = 6;
+
+ // Configuration for segmentation task.
+ // One of image_classification_config, bounding_poly_config,
+ // polyline_config and segmentation_config are required.
+ SegmentationConfig segmentation_config = 7;
+ }
+
+ // Required. Name of the dataset to request labeling task, format:
+ // projects/{project_id}/datasets/{dataset_id}
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "datalabeling.googleapis.com/Dataset"
+ }
+ ];
+
+ // Required. Basic human annotation config.
+ HumanAnnotationConfig basic_config = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. The type of image labeling task.
+ Feature feature = 3 [(google.api.field_behavior) = REQUIRED];
+}
+
+// Request message for LabelVideo.
+message LabelVideoRequest {
+ // Video labeling task feature.
+ enum Feature {
+ FEATURE_UNSPECIFIED = 0;
+
+ // Label whole video or video segment with one or more labels.
+ CLASSIFICATION = 1;
+
+ // Label objects with bounding box on image frames extracted from the video.
+ OBJECT_DETECTION = 2;
+
+ // Label and track objects in video.
+ OBJECT_TRACKING = 3;
+
+ // Label the range of video for the specified events.
+ EVENT = 4;
+ }
+
+ // Required. Config for labeling tasks. The type of request config must
+ // match the selected feature.
+ oneof request_config {
+ // Configuration for video classification task.
+ // One of video_classification_config, object_detection_config,
+ // object_tracking_config and event_config is required.
+ VideoClassificationConfig video_classification_config = 4;
+
+ // Configuration for video object detection task.
+ // One of video_classification_config, object_detection_config,
+ // object_tracking_config and event_config is required.
+ ObjectDetectionConfig object_detection_config = 5;
+
+ // Configuration for video object tracking task.
+ // One of video_classification_config, object_detection_config,
+ // object_tracking_config and event_config is required.
+ ObjectTrackingConfig object_tracking_config = 6;
+
+ // Configuration for video event task.
+ // One of video_classification_config, object_detection_config,
+ // object_tracking_config and event_config is required.
+ EventConfig event_config = 7;
+ }
+
+ // Required. Name of the dataset to request labeling task, format:
+ // projects/{project_id}/datasets/{dataset_id}
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "datalabeling.googleapis.com/Dataset"
+ }
+ ];
+
+ // Required. Basic human annotation config.
+ HumanAnnotationConfig basic_config = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. The type of video labeling task.
+ Feature feature = 3 [(google.api.field_behavior) = REQUIRED];
+}
+
+// Request message for LabelText.
+message LabelTextRequest {
+ // Text labeling task feature.
+ enum Feature {
+ FEATURE_UNSPECIFIED = 0;
+
+ // Label text content to one of more labels.
+ TEXT_CLASSIFICATION = 1;
+
+ // Label entities and their span in text.
+ TEXT_ENTITY_EXTRACTION = 2;
+ }
+
+ // Required. Config for labeling tasks. The type of request config must
+ // match the selected feature.
+ oneof request_config {
+ // Configuration for text classification task.
+ // One of text_classification_config and text_entity_extraction_config
+ // is required.
+ TextClassificationConfig text_classification_config = 4;
+
+ // Configuration for entity extraction task.
+ // One of text_classification_config and text_entity_extraction_config
+ // is required.
+ TextEntityExtractionConfig text_entity_extraction_config = 5;
+ }
+
+ // Required. Name of the data set to request labeling task, format:
+ // projects/{project_id}/datasets/{dataset_id}
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "datalabeling.googleapis.com/Dataset"
+ }
+ ];
+
+ // Required. Basic human annotation config.
+ HumanAnnotationConfig basic_config = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. The type of text labeling task.
+ Feature feature = 6 [(google.api.field_behavior) = REQUIRED];
+}
+
+// Request message for GetExample
+message GetExampleRequest {
+ // Required. Name of example, format:
+ // projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/
+ // {annotated_dataset_id}/examples/{example_id}
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "datalabeling.googleapis.com/Example"
+ }
+ ];
+
+ // Optional. An expression for filtering Examples. Filter by
+ // annotation_spec.display_name is supported. Format
+ // "annotation_spec.display_name = {display_name}"
+ string filter = 2 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Request message for ListExamples.
+message ListExamplesRequest {
+ // Required. Example resource parent.
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "datalabeling.googleapis.com/AnnotatedDataset"
+ }
+ ];
+
+ // Optional. An expression for filtering Examples. For annotated datasets that
+ // have annotation spec set, filter by
+ // annotation_spec.display_name is supported. Format
+ // "annotation_spec.display_name = {display_name}"
+ string filter = 2 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Requested page size. Server may return fewer results than
+ // requested. Default value is 100.
+ int32 page_size = 3 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. A token identifying a page of results for the server to return.
+ // Typically obtained by
+ // [ListExamplesResponse.next_page_token][google.cloud.datalabeling.v1beta1.ListExamplesResponse.next_page_token] of the previous
+ // [DataLabelingService.ListExamples] call.
+ // Return first page if empty.
+ string page_token = 4 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Results of listing Examples in and annotated dataset.
+message ListExamplesResponse {
+ // The list of examples to return.
+ repeated Example examples = 1;
+
+ // A token to retrieve next page of results.
+ string next_page_token = 2;
+}
+
+// Request message for CreateAnnotationSpecSet.
+message CreateAnnotationSpecSetRequest {
+ // Required. AnnotationSpecSet resource parent, format:
+ // projects/{project_id}
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "cloudresourcemanager.googleapis.com/Project"
+ }
+ ];
+
+ // Required. Annotation spec set to create. Annotation specs must be included.
+ // Only one annotation spec will be accepted for annotation specs with same
+ // display_name.
+ AnnotationSpecSet annotation_spec_set = 2 [(google.api.field_behavior) = REQUIRED];
+}
+
+// Request message for GetAnnotationSpecSet.
+message GetAnnotationSpecSetRequest {
+ // Required. AnnotationSpecSet resource name, format:
+ // projects/{project_id}/annotationSpecSets/{annotation_spec_set_id}
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "datalabeling.googleapis.com/AnnotationSpecSet"
+ }
+ ];
+}
+
+// Request message for ListAnnotationSpecSets.
+message ListAnnotationSpecSetsRequest {
+ // Required. Parent of AnnotationSpecSet resource, format:
+ // projects/{project_id}
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "cloudresourcemanager.googleapis.com/Project"
+ }
+ ];
+
+ // Optional. Filter is not supported at this moment.
+ string filter = 2 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Requested page size. Server may return fewer results than
+ // requested. Default value is 100.
+ int32 page_size = 3 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. A token identifying a page of results for the server to return.
+ // Typically obtained by
+ // [ListAnnotationSpecSetsResponse.next_page_token][google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse.next_page_token] of the previous
+ // [DataLabelingService.ListAnnotationSpecSets] call.
+ // Return first page if empty.
+ string page_token = 4 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Results of listing annotation spec set under a project.
+message ListAnnotationSpecSetsResponse {
+ // The list of annotation spec sets.
+ repeated AnnotationSpecSet annotation_spec_sets = 1;
+
+ // A token to retrieve next page of results.
+ string next_page_token = 2;
+}
+
+// Request message for DeleteAnnotationSpecSet.
+message DeleteAnnotationSpecSetRequest {
+ // Required. AnnotationSpec resource name, format:
+ // `projects/{project_id}/annotationSpecSets/{annotation_spec_set_id}`.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "datalabeling.googleapis.com/AnnotationSpecSet"
+ }
+ ];
+}
+
+// Request message for CreateInstruction.
+message CreateInstructionRequest {
+ // Required. Instruction resource parent, format:
+ // projects/{project_id}
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "cloudresourcemanager.googleapis.com/Project"
+ }
+ ];
+
+ // Required. Instruction of how to perform the labeling task.
+ Instruction instruction = 2 [(google.api.field_behavior) = REQUIRED];
+}
+
+// Request message for GetInstruction.
+message GetInstructionRequest {
+ // Required. Instruction resource name, format:
+ // projects/{project_id}/instructions/{instruction_id}
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "datalabeling.googleapis.com/Instruction"
+ }
+ ];
+}
+
+// Request message for DeleteInstruction.
+message DeleteInstructionRequest {
+ // Required. Instruction resource name, format:
+ // projects/{project_id}/instructions/{instruction_id}
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "datalabeling.googleapis.com/Instruction"
+ }
+ ];
+}
+
+// Request message for ListInstructions.
+message ListInstructionsRequest {
+ // Required. Instruction resource parent, format:
+ // projects/{project_id}
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "cloudresourcemanager.googleapis.com/Project"
+ }
+ ];
+
+ // Optional. Filter is not supported at this moment.
+ string filter = 2 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Requested page size. Server may return fewer results than
+ // requested. Default value is 100.
+ int32 page_size = 3 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. A token identifying a page of results for the server to return.
+ // Typically obtained by
+ // [ListInstructionsResponse.next_page_token][google.cloud.datalabeling.v1beta1.ListInstructionsResponse.next_page_token] of the previous
+ // [DataLabelingService.ListInstructions] call.
+ // Return first page if empty.
+ string page_token = 4 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Results of listing instructions under a project.
+message ListInstructionsResponse {
+ // The list of Instructions to return.
+ repeated Instruction instructions = 1;
+
+ // A token to retrieve next page of results.
+ string next_page_token = 2;
+}
+
+// Request message for GetEvaluation.
+message GetEvaluationRequest {
+ // Required. Name of the evaluation. Format:
+ //
+ // "projects/{project_id}/datasets/{dataset_id}/evaluations/{evaluation_id}'
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "datalabeling.googleapis.com/Evaluation"
+ }
+ ];
+}
+
+// Request message for SearchEvaluation.
+message SearchEvaluationsRequest {
+ // Required. Evaluation search parent (project ID). Format:
+ // "projects/{project_id}"
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "datalabeling.googleapis.com/Evaluation"
+ }
+ ];
+
+ // Optional. To search evaluations, you can filter by the following:
+ //
+ // * evaluation_job.evaluation_job_id (the last part of
+ // [EvaluationJob.name][google.cloud.datalabeling.v1beta1.EvaluationJob.name])
+ // * evaluation_job.model_id (the {model_name} portion
+ // of [EvaluationJob.modelVersion][google.cloud.datalabeling.v1beta1.EvaluationJob.model_version])
+ // * evaluation_job.evaluation_job_run_time_start (Minimum
+ // threshold for the
+ // [evaluationJobRunTime][google.cloud.datalabeling.v1beta1.Evaluation.evaluation_job_run_time] that created
+ // the evaluation)
+ // * evaluation_job.evaluation_job_run_time_end (Maximum
+ // threshold for the
+ // [evaluationJobRunTime][google.cloud.datalabeling.v1beta1.Evaluation.evaluation_job_run_time] that created
+ // the evaluation)
+ // * evaluation_job.job_state ([EvaluationJob.state][google.cloud.datalabeling.v1beta1.EvaluationJob.state])
+ // * annotation_spec.display_name (the Evaluation contains a
+ // metric for the annotation spec with this
+ // [displayName][google.cloud.datalabeling.v1beta1.AnnotationSpec.display_name])
+ //
+ // To filter by multiple critiera, use the `AND` operator or the `OR`
+ // operator. The following examples shows a string that filters by several
+ // critiera:
+ //
+ // "evaluation_job.evaluation_job_id =
+ // {evaluation_job_id} AND evaluation_job.model_id =
+ // {model_name} AND
+ // evaluation_job.evaluation_job_run_time_start =
+ // {timestamp_1} AND
+ // evaluation_job.evaluation_job_run_time_end =
+ // {timestamp_2} AND annotation_spec.display_name =
+ // {display_name}"
+ string filter = 2 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Requested page size. Server may return fewer results than
+ // requested. Default value is 100.
+ int32 page_size = 3 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. A token identifying a page of results for the server to return.
+ // Typically obtained by the
+ // [nextPageToken][google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse.next_page_token] of the response
+ // to a previous search request.
+ //
+ // If you don't specify this field, the API call requests the first page of
+ // the search.
+ string page_token = 4 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Results of searching evaluations.
+message SearchEvaluationsResponse {
+ // The list of evaluations matching the search.
+ repeated Evaluation evaluations = 1;
+
+ // A token to retrieve next page of results.
+ string next_page_token = 2;
+}
+
+// Request message of SearchExampleComparisons.
+message SearchExampleComparisonsRequest {
+ // Required. Name of the [Evaluation][google.cloud.datalabeling.v1beta1.Evaluation] resource to search for example
+ // comparisons from. Format:
+ //
+ // "projects/{project_id}/datasets/{dataset_id}/evaluations/{evaluation_id}"
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "datalabeling.googleapis.com/Evaluation"
+ }
+ ];
+
+ // Optional. Requested page size. Server may return fewer results than
+ // requested. Default value is 100.
+ int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. A token identifying a page of results for the server to return.
+ // Typically obtained by the
+ // [nextPageToken][SearchExampleComparisons.next_page_token] of the response
+ // to a previous search rquest.
+ //
+ // If you don't specify this field, the API call requests the first page of
+ // the search.
+ string page_token = 3 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Results of searching example comparisons.
+message SearchExampleComparisonsResponse {
+ // Example comparisons comparing ground truth output and predictions for a
+ // specific input.
+ message ExampleComparison {
+ // The ground truth output for the input.
+ Example ground_truth_example = 1;
+
+ // Predictions by the model for the input.
+ repeated Example model_created_examples = 2;
+ }
+
+ // A list of example comparisons matching the search criteria.
+ repeated ExampleComparison example_comparisons = 1;
+
+ // A token to retrieve next page of results.
+ string next_page_token = 2;
+}
+
+// Request message for CreateEvaluationJob.
+message CreateEvaluationJobRequest {
+ // Required. Evaluation job resource parent. Format:
+ // "projects/{project_id}"
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "cloudresourcemanager.googleapis.com/Project"
+ }
+ ];
+
+ // Required. The evaluation job to create.
+ EvaluationJob job = 2 [(google.api.field_behavior) = REQUIRED];
+}
+
+// Request message for UpdateEvaluationJob.
+message UpdateEvaluationJobRequest {
+ // Required. Evaluation job that is going to be updated.
+ EvaluationJob evaluation_job = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Optional. Mask for which fields to update. You can only provide the
+ // following fields:
+ //
+ // * `evaluationJobConfig.humanAnnotationConfig.instruction`
+ // * `evaluationJobConfig.exampleCount`
+ // * `evaluationJobConfig.exampleSamplePercentage`
+ //
+ // You can provide more than one of these fields by separating them with
+ // commas.
+ google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Request message for GetEvaluationJob.
+message GetEvaluationJobRequest {
+ // Required. Name of the evaluation job. Format:
+ //
+ // "projects/{project_id}/evaluationJobs/{evaluation_job_id}"
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "datalabeling.googleapis.com/EvaluationJob"
+ }
+ ];
+}
+
+// Request message for PauseEvaluationJob.
+message PauseEvaluationJobRequest {
+ // Required. Name of the evaluation job that is going to be paused. Format:
+ //
+ // "projects/{project_id}/evaluationJobs/{evaluation_job_id}"
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "datalabeling.googleapis.com/EvaluationJob"
+ }
+ ];
+}
+
+// Request message ResumeEvaluationJob.
+message ResumeEvaluationJobRequest {
+ // Required. Name of the evaluation job that is going to be resumed. Format:
+ //
+ // "projects/{project_id}/evaluationJobs/{evaluation_job_id}"
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "datalabeling.googleapis.com/EvaluationJob"
+ }
+ ];
+}
+
+// Request message DeleteEvaluationJob.
+message DeleteEvaluationJobRequest {
+ // Required. Name of the evaluation job that is going to be deleted. Format:
+ //
+ // "projects/{project_id}/evaluationJobs/{evaluation_job_id}"
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "datalabeling.googleapis.com/EvaluationJob"
+ }
+ ];
+}
+
+// Request message for ListEvaluationJobs.
+message ListEvaluationJobsRequest {
+ // Required. Evaluation job resource parent. Format:
+ // "projects/{project_id}"
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "cloudresourcemanager.googleapis.com/Project"
+ }
+ ];
+
+ // Optional. You can filter the jobs to list by model_id (also known as
+ // model_name, as described in
+ // [EvaluationJob.modelVersion][google.cloud.datalabeling.v1beta1.EvaluationJob.model_version]) or by
+ // evaluation job state (as described in [EvaluationJob.state][google.cloud.datalabeling.v1beta1.EvaluationJob.state]). To filter
+ // by both criteria, use the `AND` operator or the `OR` operator. For example,
+ // you can use the following string for your filter:
+ // "evaluation_job.model_id = {model_name} AND
+ // evaluation_job.state = {evaluation_job_state}"
+ string filter = 2 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Requested page size. Server may return fewer results than
+ // requested. Default value is 100.
+ int32 page_size = 3 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. A token identifying a page of results for the server to return.
+ // Typically obtained by the
+ // [nextPageToken][google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse.next_page_token] in the response
+ // to the previous request. The request returns the first page if this is
+ // empty.
+ string page_token = 4 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Results for listing evaluation jobs.
+message ListEvaluationJobsResponse {
+ // The list of evaluation jobs to return.
+ repeated EvaluationJob evaluation_jobs = 1;
+
+ // A token to retrieve next page of results.
+ string next_page_token = 2;
+}
diff --git a/packages/google-cloud-datalabeling/protos/google/cloud/datalabeling/v1beta1/data_payloads.proto b/packages/google-cloud-datalabeling/protos/google/cloud/datalabeling/v1beta1/data_payloads.proto
new file mode 100644
index 00000000000..a9ca0fc93fe
--- /dev/null
+++ b/packages/google-cloud-datalabeling/protos/google/cloud/datalabeling/v1beta1/data_payloads.proto
@@ -0,0 +1,76 @@
+// Copyright 2019 Google LLC.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+syntax = "proto3";
+
+package google.cloud.datalabeling.v1beta1;
+
+import "google/protobuf/duration.proto";
+
+option csharp_namespace = "Google.Cloud.DataLabeling.V1Beta1";
+option go_package = "google.golang.org/genproto/googleapis/cloud/datalabeling/v1beta1;datalabeling";
+option java_multiple_files = true;
+option java_package = "com.google.cloud.datalabeling.v1beta1";
+option php_namespace = "Google\\Cloud\\DataLabeling\\V1beta1";
+option ruby_package = "Google::Cloud::DataLabeling::V1beta1";
+
+// Container of information about an image.
+message ImagePayload {
+ // Image format.
+ string mime_type = 1;
+
+ // A byte string of a thumbnail image.
+ bytes image_thumbnail = 2;
+
+ // Image uri from the user bucket.
+ string image_uri = 3;
+
+ // Signed uri of the image file in the service bucket.
+ string signed_uri = 4;
+}
+
+// Container of information about a piece of text.
+message TextPayload {
+ // Text content.
+ string text_content = 1;
+}
+
+// Container of information of a video thumbnail.
+message VideoThumbnail {
+ // A byte string of the video frame.
+ bytes thumbnail = 1;
+
+ // Time offset relative to the beginning of the video, corresponding to the
+ // video frame where the thumbnail has been extracted from.
+ google.protobuf.Duration time_offset = 2;
+}
+
+// Container of information of a video.
+message VideoPayload {
+ // Video format.
+ string mime_type = 1;
+
+ // Video uri from the user bucket.
+ string video_uri = 2;
+
+ // The list of video thumbnails.
+ repeated VideoThumbnail video_thumbnails = 3;
+
+ // FPS of the video.
+ float frame_rate = 4;
+
+ // Signed uri of the video file in the service bucket.
+ string signed_uri = 5;
+}
diff --git a/packages/google-cloud-datalabeling/protos/google/cloud/datalabeling/v1beta1/dataset.proto b/packages/google-cloud-datalabeling/protos/google/cloud/datalabeling/v1beta1/dataset.proto
new file mode 100644
index 00000000000..557279fa746
--- /dev/null
+++ b/packages/google-cloud-datalabeling/protos/google/cloud/datalabeling/v1beta1/dataset.proto
@@ -0,0 +1,347 @@
+// Copyright 2019 Google LLC.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+syntax = "proto3";
+
+package google.cloud.datalabeling.v1beta1;
+
+import "google/api/resource.proto";
+import "google/cloud/datalabeling/v1beta1/annotation.proto";
+import "google/cloud/datalabeling/v1beta1/annotation_spec_set.proto";
+import "google/cloud/datalabeling/v1beta1/data_payloads.proto";
+import "google/cloud/datalabeling/v1beta1/human_annotation_config.proto";
+import "google/protobuf/timestamp.proto";
+
+option csharp_namespace = "Google.Cloud.DataLabeling.V1Beta1";
+option go_package = "google.golang.org/genproto/googleapis/cloud/datalabeling/v1beta1;datalabeling";
+option java_multiple_files = true;
+option java_package = "com.google.cloud.datalabeling.v1beta1";
+option php_namespace = "Google\\Cloud\\DataLabeling\\V1beta1";
+option ruby_package = "Google::Cloud::DataLabeling::V1beta1";
+
+enum DataType {
+ DATA_TYPE_UNSPECIFIED = 0;
+
+ // Allowed for continuous evaluation.
+ IMAGE = 1;
+
+ VIDEO = 2;
+
+ // Allowed for continuous evaluation.
+ TEXT = 4;
+
+ // Allowed for continuous evaluation.
+ GENERAL_DATA = 6;
+}
+
+// Dataset is the resource to hold your data. You can request multiple labeling
+// tasks for a dataset while each one will generate an AnnotatedDataset.
+message Dataset {
+ option (google.api.resource) = {
+ type: "datalabeling.googleapis.com/Dataset"
+ pattern: "projects/{project}/datasets/{dataset}"
+ };
+
+ // Output only. Dataset resource name, format is:
+ // projects/{project_id}/datasets/{dataset_id}
+ string name = 1;
+
+ // Required. The display name of the dataset. Maximum of 64 characters.
+ string display_name = 2;
+
+ // Optional. User-provided description of the annotation specification set.
+ // The description can be up to 10000 characters long.
+ string description = 3;
+
+ // Output only. Time the dataset is created.
+ google.protobuf.Timestamp create_time = 4;
+
+ // Output only. This is populated with the original input configs
+ // where ImportData is called. It is available only after the clients
+ // import data to this dataset.
+ repeated InputConfig input_configs = 5;
+
+ // Output only. The names of any related resources that are blocking changes
+ // to the dataset.
+ repeated string blocking_resources = 6;
+
+ // Output only. The number of data items in the dataset.
+ int64 data_item_count = 7;
+}
+
+// The configuration of input data, including data type, location, etc.
+message InputConfig {
+ // Optional. The metadata associated with each data type.
+ oneof data_type_metadata {
+ // Required for text import, as language code must be specified.
+ TextMetadata text_metadata = 6;
+ }
+
+ // Required. Where the data is from.
+ oneof source {
+ // Source located in Cloud Storage.
+ GcsSource gcs_source = 2;
+
+ // Source located in BigQuery. You must specify this field if you are using
+ // this InputConfig in an [EvaluationJob][google.cloud.datalabeling.v1beta1.EvaluationJob].
+ BigQuerySource bigquery_source = 5;
+ }
+
+ // Required. Data type must be specifed when user tries to import data.
+ DataType data_type = 1;
+
+ // Optional. The type of annotation to be performed on this data. You must
+ // specify this field if you are using this InputConfig in an
+ // [EvaluationJob][google.cloud.datalabeling.v1beta1.EvaluationJob].
+ AnnotationType annotation_type = 3;
+
+ // Optional. Metadata about annotations for the input. You must specify this
+ // field if you are using this InputConfig in an [EvaluationJob][google.cloud.datalabeling.v1beta1.EvaluationJob] for a
+ // model version that performs classification.
+ ClassificationMetadata classification_metadata = 4;
+}
+
+// Metadata for the text.
+message TextMetadata {
+ // The language of this text, as a
+ // [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt).
+ // Default value is en-US.
+ string language_code = 1;
+}
+
+// Metadata for classification annotations.
+message ClassificationMetadata {
+ // Whether the classification task is multi-label or not.
+ bool is_multi_label = 1;
+}
+
+// Source of the Cloud Storage file to be imported.
+message GcsSource {
+ // Required. The input URI of source file. This must be a Cloud Storage path
+ // (`gs://...`).
+ string input_uri = 1;
+
+ // Required. The format of the source file. Only "text/csv" is supported.
+ string mime_type = 2;
+}
+
+// The BigQuery location for input data. If used in an [EvaluationJob][google.cloud.datalabeling.v1beta1.EvaluationJob], this
+// is where the service saves the prediction input and output sampled from the
+// model version.
+message BigQuerySource {
+ // Required. BigQuery URI to a table, up to 2,000 characters long. If you
+ // specify the URI of a table that does not exist, Data Labeling Service
+ // creates a table at the URI with the correct schema when you create your
+ // [EvaluationJob][google.cloud.datalabeling.v1beta1.EvaluationJob]. If you specify the URI of a table that already exists,
+ // it must have the
+ // [correct
+ // schema](/ml-engine/docs/continuous-evaluation/create-job#table-schema).
+ //
+ // Provide the table URI in the following format:
+ //
+ // "bq://{your_project_id}/{your_dataset_name}/{your_table_name}"
+ //
+ // [Learn
+ // more](/ml-engine/docs/continuous-evaluation/create-job#table-schema).
+ string input_uri = 1;
+}
+
+// The configuration of output data.
+message OutputConfig {
+ // Required. Location to output data to.
+ oneof destination {
+ // Output to a file in Cloud Storage. Should be used for labeling output
+ // other than image segmentation.
+ GcsDestination gcs_destination = 1;
+
+ // Output to a folder in Cloud Storage. Should be used for image
+ // segmentation labeling output.
+ GcsFolderDestination gcs_folder_destination = 2;
+ }
+}
+
+// Export destination of the data.Only gcs path is allowed in
+// output_uri.
+message GcsDestination {
+ // Required. The output uri of destination file.
+ string output_uri = 1;
+
+ // Required. The format of the gcs destination. Only "text/csv" and
+ // "application/json"
+ // are supported.
+ string mime_type = 2;
+}
+
+// Export folder destination of the data.
+message GcsFolderDestination {
+ // Required. Cloud Storage directory to export data to.
+ string output_folder_uri = 1;
+}
+
+// DataItem is a piece of data, without annotation. For example, an image.
+message DataItem {
+ option (google.api.resource) = {
+ type: "datalabeling.googleapis.com/DataItem"
+ pattern: "projects/{project}/datasets/{dataset}/dataItems/{data_item}"
+ };
+
+ // Output only.
+ oneof payload {
+ // The image payload, a container of the image bytes/uri.
+ ImagePayload image_payload = 2;
+
+ // The text payload, a container of text content.
+ TextPayload text_payload = 3;
+
+ // The video payload, a container of the video uri.
+ VideoPayload video_payload = 4;
+ }
+
+ // Output only. Name of the data item, in format of:
+ // projects/{project_id}/datasets/{dataset_id}/dataItems/{data_item_id}
+ string name = 1;
+}
+
+// AnnotatedDataset is a set holding annotations for data in a Dataset. Each
+// labeling task will generate an AnnotatedDataset under the Dataset that the
+// task is requested for.
+message AnnotatedDataset {
+ option (google.api.resource) = {
+ type: "datalabeling.googleapis.com/AnnotatedDataset"
+ pattern: "projects/{project}/datasets/{dataset}/annotatedDatasets/{annotated_dataset}"
+ };
+
+ // Output only. AnnotatedDataset resource name in format of:
+ // projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/
+ // {annotated_dataset_id}
+ string name = 1;
+
+ // Output only. The display name of the AnnotatedDataset. It is specified in
+ // HumanAnnotationConfig when user starts a labeling task. Maximum of 64
+ // characters.
+ string display_name = 2;
+
+ // Output only. The description of the AnnotatedDataset. It is specified in
+ // HumanAnnotationConfig when user starts a labeling task. Maximum of 10000
+ // characters.
+ string description = 9;
+
+ // Output only. Source of the annotation.
+ AnnotationSource annotation_source = 3;
+
+ // Output only. Type of the annotation. It is specified when starting labeling
+ // task.
+ AnnotationType annotation_type = 8;
+
+ // Output only. Number of examples in the annotated dataset.
+ int64 example_count = 4;
+
+ // Output only. Number of examples that have annotation in the annotated
+ // dataset.
+ int64 completed_example_count = 5;
+
+ // Output only. Per label statistics.
+ LabelStats label_stats = 6;
+
+ // Output only. Time the AnnotatedDataset was created.
+ google.protobuf.Timestamp create_time = 7;
+
+ // Output only. Additional information about AnnotatedDataset.
+ AnnotatedDatasetMetadata metadata = 10;
+
+ // Output only. The names of any related resources that are blocking changes
+ // to the annotated dataset.
+ repeated string blocking_resources = 11;
+}
+
+// Statistics about annotation specs.
+message LabelStats {
+ // Map of each annotation spec's example count. Key is the annotation spec
+ // name and value is the number of examples for that annotation spec.
+ // If the annotated dataset does not have annotation spec, the map will return
+ // a pair where the key is empty string and value is the total number of
+ // annotations.
+ map example_count = 1;
+}
+
+// Metadata on AnnotatedDataset.
+message AnnotatedDatasetMetadata {
+ // Specific request configuration used when requesting the labeling task.
+ oneof annotation_request_config {
+ // Configuration for image classification task.
+ ImageClassificationConfig image_classification_config = 2;
+
+ // Configuration for image bounding box and bounding poly task.
+ BoundingPolyConfig bounding_poly_config = 3;
+
+ // Configuration for image polyline task.
+ PolylineConfig polyline_config = 4;
+
+ // Configuration for image segmentation task.
+ SegmentationConfig segmentation_config = 5;
+
+ // Configuration for video classification task.
+ VideoClassificationConfig video_classification_config = 6;
+
+ // Configuration for video object detection task.
+ ObjectDetectionConfig object_detection_config = 7;
+
+ // Configuration for video object tracking task.
+ ObjectTrackingConfig object_tracking_config = 8;
+
+ // Configuration for video event labeling task.
+ EventConfig event_config = 9;
+
+ // Configuration for text classification task.
+ TextClassificationConfig text_classification_config = 10;
+
+ // Configuration for text entity extraction task.
+ TextEntityExtractionConfig text_entity_extraction_config = 11;
+ }
+
+ // HumanAnnotationConfig used when requesting the human labeling task for this
+ // AnnotatedDataset.
+ HumanAnnotationConfig human_annotation_config = 1;
+}
+
+// An Example is a piece of data and its annotation. For example, an image with
+// label "house".
+message Example {
+ option (google.api.resource) = {
+ type: "datalabeling.googleapis.com/Example"
+ pattern: "projects/{project}/datasets/{dataset}/annotatedDatasets/{annotated_dataset}/examples/{example}"
+ };
+
+ // Output only. The data part of Example.
+ oneof payload {
+ // The image payload, a container of the image bytes/uri.
+ ImagePayload image_payload = 2;
+
+ // The text payload, a container of the text content.
+ TextPayload text_payload = 6;
+
+ // The video payload, a container of the video uri.
+ VideoPayload video_payload = 7;
+ }
+
+ // Output only. Name of the example, in format of:
+ // projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/
+ // {annotated_dataset_id}/examples/{example_id}
+ string name = 1;
+
+ // Output only. Annotations for the piece of data in Example.
+ // One piece of data can have multiple annotations.
+ repeated Annotation annotations = 5;
+}
diff --git a/packages/google-cloud-datalabeling/protos/google/cloud/datalabeling/v1beta1/evaluation.proto b/packages/google-cloud-datalabeling/protos/google/cloud/datalabeling/v1beta1/evaluation.proto
new file mode 100644
index 00000000000..950fa82cf45
--- /dev/null
+++ b/packages/google-cloud-datalabeling/protos/google/cloud/datalabeling/v1beta1/evaluation.proto
@@ -0,0 +1,207 @@
+// Copyright 2019 Google LLC.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+syntax = "proto3";
+
+package google.cloud.datalabeling.v1beta1;
+
+import "google/api/resource.proto";
+import "google/cloud/datalabeling/v1beta1/annotation.proto";
+import "google/cloud/datalabeling/v1beta1/annotation_spec_set.proto";
+import "google/protobuf/timestamp.proto";
+
+option csharp_namespace = "Google.Cloud.DataLabeling.V1Beta1";
+option go_package = "google.golang.org/genproto/googleapis/cloud/datalabeling/v1beta1;datalabeling";
+option java_multiple_files = true;
+option java_package = "com.google.cloud.datalabeling.v1beta1";
+option php_namespace = "Google\\Cloud\\DataLabeling\\V1beta1";
+option ruby_package = "Google::Cloud::DataLabeling::V1beta1";
+
+// Describes an evaluation between a machine learning model's predictions and
+// ground truth labels. Created when an [EvaluationJob][google.cloud.datalabeling.v1beta1.EvaluationJob] runs successfully.
+message Evaluation {
+ option (google.api.resource) = {
+ type: "datalabeling.googleapis.com/Evaluation"
+ pattern: "projects/{project}/datasets/{dataset}/evaluations/{evaluation}"
+ };
+
+ // Output only. Resource name of an evaluation. The name has the following
+ // format:
+ //
+ // "projects/{project_id}/datasets/{dataset_id}/evaluations/{evaluation_id}'
+ string name = 1;
+
+ // Output only. Options used in the evaluation job that created this
+ // evaluation.
+ EvaluationConfig config = 2;
+
+ // Output only. Timestamp for when the evaluation job that created this
+ // evaluation ran.
+ google.protobuf.Timestamp evaluation_job_run_time = 3;
+
+ // Output only. Timestamp for when this evaluation was created.
+ google.protobuf.Timestamp create_time = 4;
+
+ // Output only. Metrics comparing predictions to ground truth labels.
+ EvaluationMetrics evaluation_metrics = 5;
+
+ // Output only. Type of task that the model version being evaluated performs,
+ // as defined in the
+ //
+ // [evaluationJobConfig.inputConfig.annotationType][google.cloud.datalabeling.v1beta1.EvaluationJobConfig.input_config]
+ // field of the evaluation job that created this evaluation.
+ AnnotationType annotation_type = 6;
+
+ // Output only. The number of items in the ground truth dataset that were used
+ // for this evaluation. Only populated when the evaulation is for certain
+ // AnnotationTypes.
+ int64 evaluated_item_count = 7;
+}
+
+// Configuration details used for calculating evaluation metrics and creating an
+// [Evaluation][google.cloud.datalabeling.v1beta1.Evaluation].
+message EvaluationConfig {
+ // Vertical specific options for general metrics.
+ oneof vertical_option {
+ // Only specify this field if the related model performs image object
+ // detection (`IMAGE_BOUNDING_BOX_ANNOTATION`). Describes how to evaluate
+ // bounding boxes.
+ BoundingBoxEvaluationOptions bounding_box_evaluation_options = 1;
+ }
+}
+
+// Options regarding evaluation between bounding boxes.
+message BoundingBoxEvaluationOptions {
+ // Minimum
+ // [intersection-over-union
+ //
+ // (IOU)](/vision/automl/object-detection/docs/evaluate#intersection-over-union)
+ // required for 2 bounding boxes to be considered a match. This must be a
+ // number between 0 and 1.
+ float iou_threshold = 1;
+}
+
+message EvaluationMetrics {
+ // Common metrics covering most general cases.
+ oneof metrics {
+ ClassificationMetrics classification_metrics = 1;
+
+ ObjectDetectionMetrics object_detection_metrics = 2;
+ }
+}
+
+// Metrics calculated for a classification model.
+message ClassificationMetrics {
+ // Precision-recall curve based on ground truth labels, predicted labels, and
+ // scores for the predicted labels.
+ PrCurve pr_curve = 1;
+
+ // Confusion matrix of predicted labels vs. ground truth labels.
+ ConfusionMatrix confusion_matrix = 2;
+}
+
+// Metrics calculated for an image object detection (bounding box) model.
+message ObjectDetectionMetrics {
+ // Precision-recall curve.
+ PrCurve pr_curve = 1;
+}
+
+message PrCurve {
+ message ConfidenceMetricsEntry {
+ // Threshold used for this entry.
+ //
+ // For classification tasks, this is a classification threshold: a
+ // predicted label is categorized as positive or negative (in the context of
+ // this point on the PR curve) based on whether the label's score meets this
+ // threshold.
+ //
+ // For image object detection (bounding box) tasks, this is the
+ // [intersection-over-union
+ //
+ // (IOU)](/vision/automl/object-detection/docs/evaluate#intersection-over-union)
+ // threshold for the context of this point on the PR curve.
+ float confidence_threshold = 1;
+
+ // Recall value.
+ float recall = 2;
+
+ // Precision value.
+ float precision = 3;
+
+ // Harmonic mean of recall and precision.
+ float f1_score = 4;
+
+ // Recall value for entries with label that has highest score.
+ float recall_at1 = 5;
+
+ // Precision value for entries with label that has highest score.
+ float precision_at1 = 6;
+
+ // The harmonic mean of [recall_at1][google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry.recall_at1] and [precision_at1][google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry.precision_at1].
+ float f1_score_at1 = 7;
+
+ // Recall value for entries with label that has highest 5 scores.
+ float recall_at5 = 8;
+
+ // Precision value for entries with label that has highest 5 scores.
+ float precision_at5 = 9;
+
+ // The harmonic mean of [recall_at5][google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry.recall_at5] and [precision_at5][google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry.precision_at5].
+ float f1_score_at5 = 10;
+ }
+
+ // The annotation spec of the label for which the precision-recall curve
+ // calculated. If this field is empty, that means the precision-recall curve
+ // is an aggregate curve for all labels.
+ AnnotationSpec annotation_spec = 1;
+
+ // Area under the precision-recall curve. Not to be confused with area under
+ // a receiver operating characteristic (ROC) curve.
+ float area_under_curve = 2;
+
+ // Entries that make up the precision-recall graph. Each entry is a "point" on
+ // the graph drawn for a different `confidence_threshold`.
+ repeated ConfidenceMetricsEntry confidence_metrics_entries = 3;
+
+ // Mean average prcision of this curve.
+ float mean_average_precision = 4;
+}
+
+// Confusion matrix of the model running the classification. Only applicable
+// when the metrics entry aggregates multiple labels. Not applicable when the
+// entry is for a single label.
+message ConfusionMatrix {
+ message ConfusionMatrixEntry {
+ // The annotation spec of a predicted label.
+ AnnotationSpec annotation_spec = 1;
+
+ // Number of items predicted to have this label. (The ground truth label for
+ // these items is the `Row.annotationSpec` of this entry's parent.)
+ int32 item_count = 2;
+ }
+
+ // A row in the confusion matrix. Each entry in this row has the same
+ // ground truth label.
+ message Row {
+ // The annotation spec of the ground truth label for this row.
+ AnnotationSpec annotation_spec = 1;
+
+ // A list of the confusion matrix entries. One entry for each possible
+ // predicted label.
+ repeated ConfusionMatrixEntry entries = 2;
+ }
+
+ repeated Row row = 1;
+}
diff --git a/packages/google-cloud-datalabeling/protos/google/cloud/datalabeling/v1beta1/evaluation_job.proto b/packages/google-cloud-datalabeling/protos/google/cloud/datalabeling/v1beta1/evaluation_job.proto
new file mode 100644
index 00000000000..d40f8f2016d
--- /dev/null
+++ b/packages/google-cloud-datalabeling/protos/google/cloud/datalabeling/v1beta1/evaluation_job.proto
@@ -0,0 +1,274 @@
+// Copyright 2019 Google LLC.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+syntax = "proto3";
+
+package google.cloud.datalabeling.v1beta1;
+
+import "google/api/resource.proto";
+import "google/cloud/datalabeling/v1beta1/dataset.proto";
+import "google/cloud/datalabeling/v1beta1/evaluation.proto";
+import "google/cloud/datalabeling/v1beta1/human_annotation_config.proto";
+import "google/protobuf/timestamp.proto";
+import "google/rpc/status.proto";
+
+option csharp_namespace = "Google.Cloud.DataLabeling.V1Beta1";
+option go_package = "google.golang.org/genproto/googleapis/cloud/datalabeling/v1beta1;datalabeling";
+option java_multiple_files = true;
+option java_package = "com.google.cloud.datalabeling.v1beta1";
+option php_namespace = "Google\\Cloud\\DataLabeling\\V1beta1";
+option ruby_package = "Google::Cloud::DataLabeling::V1beta1";
+
+// Defines an evaluation job that runs periodically to generate
+// [Evaluations][google.cloud.datalabeling.v1beta1.Evaluation]. [Creating an evaluation
+// job](/ml-engine/docs/continuous-evaluation/create-job) is the starting point
+// for using continuous evaluation.
+message EvaluationJob {
+ option (google.api.resource) = {
+ type: "datalabeling.googleapis.com/EvaluationJob"
+ pattern: "projects/{project}/evaluationJobs/{evaluation_job}"
+ };
+
+ // State of the job.
+ enum State {
+ STATE_UNSPECIFIED = 0;
+
+ // The job is scheduled to run at the [configured interval][google.cloud.datalabeling.v1beta1.EvaluationJob.schedule]. You
+ // can [pause][google.cloud.datalabeling.v1beta1.DataLabelingService.PauseEvaluationJob] or
+ // [delete][google.cloud.datalabeling.v1beta1.DataLabelingService.DeleteEvaluationJob] the job.
+ //
+ // When the job is in this state, it samples prediction input and output
+ // from your model version into your BigQuery table as predictions occur.
+ SCHEDULED = 1;
+
+ // The job is currently running. When the job runs, Data Labeling Service
+ // does several things:
+ //
+ // 1. If you have configured your job to use Data Labeling Service for
+ // ground truth labeling, the service creates a
+ // [Dataset][google.cloud.datalabeling.v1beta1.Dataset] and a labeling task for all data sampled
+ // since the last time the job ran. Human labelers provide ground truth
+ // labels for your data. Human labeling may take hours, or even days,
+ // depending on how much data has been sampled. The job remains in the
+ // `RUNNING` state during this time, and it can even be running multiple
+ // times in parallel if it gets triggered again (for example 24 hours
+ // later) before the earlier run has completed. When human labelers have
+ // finished labeling the data, the next step occurs.
+ //
+ // If you have configured your job to provide your own ground truth
+ // labels, Data Labeling Service still creates a [Dataset][google.cloud.datalabeling.v1beta1.Dataset] for newly
+ // sampled data, but it expects that you have already added ground truth
+ // labels to the BigQuery table by this time. The next step occurs
+ // immediately.
+ //
+ // 2. Data Labeling Service creates an [Evaluation][google.cloud.datalabeling.v1beta1.Evaluation] by comparing your
+ // model version's predictions with the ground truth labels.
+ //
+ // If the job remains in this state for a long time, it continues to sample
+ // prediction data into your BigQuery table and will run again at the next
+ // interval, even if it causes the job to run multiple times in parallel.
+ RUNNING = 2;
+
+ // The job is not sampling prediction input and output into your BigQuery
+ // table and it will not run according to its schedule. You can
+ // [resume][google.cloud.datalabeling.v1beta1.DataLabelingService.ResumeEvaluationJob] the job.
+ PAUSED = 3;
+
+ // The job has this state right before it is deleted.
+ STOPPED = 4;
+ }
+
+ // Output only. After you create a job, Data Labeling Service assigns a name
+ // to the job with the following format:
+ //
+ // "projects/{project_id}/evaluationJobs/{evaluation_job_id}"
+ string name = 1;
+
+ // Required. Description of the job. The description can be up to 25,000
+ // characters long.
+ string description = 2;
+
+ // Output only. Describes the current state of the job.
+ State state = 3;
+
+ // Required. Describes the interval at which the job runs. This interval must
+ // be at least 1 day, and it is rounded to the nearest day. For example, if
+ // you specify a 50-hour interval, the job runs every 2 days.
+ //
+ // You can provide the schedule in
+ // [crontab format](/scheduler/docs/configuring/cron-job-schedules) or in an
+ // [English-like
+ // format](/appengine/docs/standard/python/config/cronref#schedule_format).
+ //
+ // Regardless of what you specify, the job will run at 10:00 AM UTC. Only the
+ // interval from this schedule is used, not the specific time of day.
+ string schedule = 4;
+
+ // Required. The [AI Platform Prediction model
+ // version](/ml-engine/docs/prediction-overview) to be evaluated. Prediction
+ // input and output is sampled from this model version. When creating an
+ // evaluation job, specify the model version in the following format:
+ //
+ // "projects/{project_id}/models/{model_name}/versions/{version_name}"
+ //
+ // There can only be one evaluation job per model version.
+ string model_version = 5;
+
+ // Required. Configuration details for the evaluation job.
+ EvaluationJobConfig evaluation_job_config = 6;
+
+ // Required. Name of the [AnnotationSpecSet][google.cloud.datalabeling.v1beta1.AnnotationSpecSet] describing all the
+ // labels that your machine learning model outputs. You must create this
+ // resource before you create an evaluation job and provide its name in the
+ // following format:
+ //
+ // "projects/{project_id}/annotationSpecSets/{annotation_spec_set_id}"
+ string annotation_spec_set = 7;
+
+ // Required. Whether you want Data Labeling Service to provide ground truth
+ // labels for prediction input. If you want the service to assign human
+ // labelers to annotate your data, set this to `true`. If you want to provide
+ // your own ground truth labels in the evaluation job's BigQuery table, set
+ // this to `false`.
+ bool label_missing_ground_truth = 8;
+
+ // Output only. Every time the evaluation job runs and an error occurs, the
+ // failed attempt is appended to this array.
+ repeated Attempt attempts = 9;
+
+ // Output only. Timestamp of when this evaluation job was created.
+ google.protobuf.Timestamp create_time = 10;
+}
+
+// Configures specific details of how a continuous evaluation job works. Provide
+// this configuration when you create an EvaluationJob.
+message EvaluationJobConfig {
+ // Required. Details for how you want human reviewers to provide ground truth
+ // labels.
+ oneof human_annotation_request_config {
+ // Specify this field if your model version performs image classification or
+ // general classification.
+ //
+ // `annotationSpecSet` in this configuration must match
+ // [EvaluationJob.annotationSpecSet][google.cloud.datalabeling.v1beta1.EvaluationJob.annotation_spec_set].
+ // `allowMultiLabel` in this configuration must match
+ // `classificationMetadata.isMultiLabel` in [input_config][google.cloud.datalabeling.v1beta1.EvaluationJobConfig.input_config].
+ ImageClassificationConfig image_classification_config = 4;
+
+ // Specify this field if your model version performs image object detection
+ // (bounding box detection).
+ //
+ // `annotationSpecSet` in this configuration must match
+ // [EvaluationJob.annotationSpecSet][google.cloud.datalabeling.v1beta1.EvaluationJob.annotation_spec_set].
+ BoundingPolyConfig bounding_poly_config = 5;
+
+ // Specify this field if your model version performs text classification.
+ //
+ // `annotationSpecSet` in this configuration must match
+ // [EvaluationJob.annotationSpecSet][google.cloud.datalabeling.v1beta1.EvaluationJob.annotation_spec_set].
+ // `allowMultiLabel` in this configuration must match
+ // `classificationMetadata.isMultiLabel` in [input_config][google.cloud.datalabeling.v1beta1.EvaluationJobConfig.input_config].
+ TextClassificationConfig text_classification_config = 8;
+ }
+
+ // Rquired. Details for the sampled prediction input. Within this
+ // configuration, there are requirements for several fields:
+ //
+ // * `dataType` must be one of `IMAGE`, `TEXT`, or `GENERAL_DATA`.
+ // * `annotationType` must be one of `IMAGE_CLASSIFICATION_ANNOTATION`,
+ // `TEXT_CLASSIFICATION_ANNOTATION`, `GENERAL_CLASSIFICATION_ANNOTATION`,
+ // or `IMAGE_BOUNDING_BOX_ANNOTATION` (image object detection).
+ // * If your machine learning model performs classification, you must specify
+ // `classificationMetadata.isMultiLabel`.
+ // * You must specify `bigquerySource` (not `gcsSource`).
+ InputConfig input_config = 1;
+
+ // Required. Details for calculating evaluation metrics and creating
+ // [Evaulations][google.cloud.datalabeling.v1beta1.Evaluation]. If your model version performs image object
+ // detection, you must specify the `boundingBoxEvaluationOptions` field within
+ // this configuration. Otherwise, provide an empty object for this
+ // configuration.
+ EvaluationConfig evaluation_config = 2;
+
+ // Optional. Details for human annotation of your data. If you set
+ // [labelMissingGroundTruth][google.cloud.datalabeling.v1beta1.EvaluationJob.label_missing_ground_truth] to
+ // `true` for this evaluation job, then you must specify this field. If you
+ // plan to provide your own ground truth labels, then omit this field.
+ //
+ // Note that you must create an [Instruction][google.cloud.datalabeling.v1beta1.Instruction] resource before you can
+ // specify this field. Provide the name of the instruction resource in the
+ // `instruction` field within this configuration.
+ HumanAnnotationConfig human_annotation_config = 3;
+
+ // Required. Prediction keys that tell Data Labeling Service where to find the
+ // data for evaluation in your BigQuery table. When the service samples
+ // prediction input and output from your model version and saves it to
+ // BigQuery, the data gets stored as JSON strings in the BigQuery table. These
+ // keys tell Data Labeling Service how to parse the JSON.
+ //
+ // You can provide the following entries in this field:
+ //
+ // * `data_json_key`: the data key for prediction input. You must provide
+ // either this key or `reference_json_key`.
+ // * `reference_json_key`: the data reference key for prediction input. You
+ // must provide either this key or `data_json_key`.
+ // * `label_json_key`: the label key for prediction output. Required.
+ // * `label_score_json_key`: the score key for prediction output. Required.
+ // * `bounding_box_json_key`: the bounding box key for prediction output.
+ // Required if your model version perform image object detection.
+ //
+ // Learn [how to configure prediction
+ // keys](/ml-engine/docs/continuous-evaluation/create-job#prediction-keys).
+ map bigquery_import_keys = 9;
+
+ // Required. The maximum number of predictions to sample and save to BigQuery
+ // during each [evaluation interval][google.cloud.datalabeling.v1beta1.EvaluationJob.schedule]. This limit
+ // overrides `example_sample_percentage`: even if the service has not sampled
+ // enough predictions to fulfill `example_sample_perecentage` during an
+ // interval, it stops sampling predictions when it meets this limit.
+ int32 example_count = 10;
+
+ // Required. Fraction of predictions to sample and save to BigQuery during
+ // each [evaluation interval][google.cloud.datalabeling.v1beta1.EvaluationJob.schedule]. For example, 0.1 means
+ // 10% of predictions served by your model version get saved to BigQuery.
+ double example_sample_percentage = 11;
+
+ // Optional. Configuration details for evaluation job alerts. Specify this
+ // field if you want to receive email alerts if the evaluation job finds that
+ // your predictions have low mean average precision during a run.
+ EvaluationJobAlertConfig evaluation_job_alert_config = 13;
+}
+
+// Provides details for how an evaluation job sends email alerts based on the
+// results of a run.
+message EvaluationJobAlertConfig {
+ // Required. An email address to send alerts to.
+ string email = 1;
+
+ // Required. A number between 0 and 1 that describes a minimum mean average
+ // precision threshold. When the evaluation job runs, if it calculates that
+ // your model version's predictions from the recent interval have
+ // [meanAveragePrecision][google.cloud.datalabeling.v1beta1.PrCurve.mean_average_precision] below this
+ // threshold, then it sends an alert to your specified email.
+ double min_acceptable_mean_average_precision = 2;
+}
+
+// Records a failed evaluation job run.
+message Attempt {
+ google.protobuf.Timestamp attempt_time = 1;
+
+ // Details of errors that occurred.
+ repeated google.rpc.Status partial_failures = 2;
+}
diff --git a/packages/google-cloud-datalabeling/protos/google/cloud/datalabeling/v1beta1/human_annotation_config.proto b/packages/google-cloud-datalabeling/protos/google/cloud/datalabeling/v1beta1/human_annotation_config.proto
new file mode 100644
index 00000000000..9cc2424be4d
--- /dev/null
+++ b/packages/google-cloud-datalabeling/protos/google/cloud/datalabeling/v1beta1/human_annotation_config.proto
@@ -0,0 +1,211 @@
+// Copyright 2019 Google LLC.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+syntax = "proto3";
+
+package google.cloud.datalabeling.v1beta1;
+
+import "google/api/field_behavior.proto";
+import "google/protobuf/duration.proto";
+
+option csharp_namespace = "Google.Cloud.DataLabeling.V1Beta1";
+option go_package = "google.golang.org/genproto/googleapis/cloud/datalabeling/v1beta1;datalabeling";
+option java_multiple_files = true;
+option java_package = "com.google.cloud.datalabeling.v1beta1";
+option php_namespace = "Google\\Cloud\\DataLabeling\\V1beta1";
+option ruby_package = "Google::Cloud::DataLabeling::V1beta1";
+
+enum StringAggregationType {
+ STRING_AGGREGATION_TYPE_UNSPECIFIED = 0;
+
+ // Majority vote to aggregate answers.
+ MAJORITY_VOTE = 1;
+
+ // Unanimous answers will be adopted.
+ UNANIMOUS_VOTE = 2;
+
+ // Preserve all answers by crowd compute.
+ NO_AGGREGATION = 3;
+}
+
+// Configuration for how human labeling task should be done.
+message HumanAnnotationConfig {
+ // Required. Instruction resource name.
+ string instruction = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. A human-readable name for AnnotatedDataset defined by
+ // users. Maximum of 64 characters
+ // .
+ string annotated_dataset_display_name = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // Optional. A human-readable description for AnnotatedDataset.
+ // The description can be up to 10000 characters long.
+ string annotated_dataset_description = 3 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. A human-readable label used to logically group labeling tasks.
+ // This string must match the regular expression `[a-zA-Z\\d_-]{0,128}`.
+ string label_group = 4 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The Language of this question, as a
+ // [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt).
+ // Default value is en-US.
+ // Only need to set this when task is language related. For example, French
+ // text classification.
+ string language_code = 5 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Replication of questions. Each question will be sent to up to
+ // this number of contributors to label. Aggregated answers will be returned.
+ // Default is set to 1.
+ // For image related labeling, valid values are 1, 3, 5.
+ int32 replica_count = 6 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Maximum duration for contributors to answer a question. Maximum
+ // is 3600 seconds. Default is 3600 seconds.
+ google.protobuf.Duration question_duration = 7 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. If you want your own labeling contributors to manage and work on
+ // this labeling request, you can set these contributors here. We will give
+ // them access to the question types in crowdcompute. Note that these
+ // emails must be registered in crowdcompute worker UI:
+ // https://crowd-compute.appspot.com/
+ repeated string contributor_emails = 9 [(google.api.field_behavior) = OPTIONAL];
+
+ // Email of the user who started the labeling task and should be notified by
+ // email. If empty no notification will be sent.
+ string user_email_address = 10;
+}
+
+// Config for image classification human labeling task.
+message ImageClassificationConfig {
+ // Required. Annotation spec set resource name.
+ string annotation_spec_set = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Optional. If allow_multi_label is true, contributors are able to choose
+ // multiple labels for one image.
+ bool allow_multi_label = 2 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The type of how to aggregate answers.
+ StringAggregationType answer_aggregation_type = 3 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Config for image bounding poly (and bounding box) human labeling task.
+message BoundingPolyConfig {
+ // Required. Annotation spec set resource name.
+ string annotation_spec_set = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Optional. Instruction message showed on contributors UI.
+ string instruction_message = 2 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Config for image polyline human labeling task.
+message PolylineConfig {
+ // Required. Annotation spec set resource name.
+ string annotation_spec_set = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Optional. Instruction message showed on contributors UI.
+ string instruction_message = 2 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Config for image segmentation
+message SegmentationConfig {
+ // Required. Annotation spec set resource name. format:
+ // projects/{project_id}/annotationSpecSets/{annotation_spec_set_id}
+ string annotation_spec_set = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Instruction message showed on labelers UI.
+ string instruction_message = 2;
+}
+
+// Config for video classification human labeling task.
+// Currently two types of video classification are supported:
+// 1. Assign labels on the entire video.
+// 2. Split the video into multiple video clips based on camera shot, and
+// assign labels on each video clip.
+message VideoClassificationConfig {
+ // Annotation spec set with the setting of allowing multi labels or not.
+ message AnnotationSpecSetConfig {
+ // Required. Annotation spec set resource name.
+ string annotation_spec_set = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Optional. If allow_multi_label is true, contributors are able to
+ // choose multiple labels from one annotation spec set.
+ bool allow_multi_label = 2 [(google.api.field_behavior) = OPTIONAL];
+ }
+
+ // Required. The list of annotation spec set configs.
+ // Since watching a video clip takes much longer time than an image, we
+ // support label with multiple AnnotationSpecSet at the same time. Labels
+ // in each AnnotationSpecSet will be shown in a group to contributors.
+ // Contributors can select one or more (depending on whether to allow multi
+ // label) from each group.
+ repeated AnnotationSpecSetConfig annotation_spec_set_configs = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Optional. Option to apply shot detection on the video.
+ bool apply_shot_detection = 2 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Config for video object detection human labeling task.
+// Object detection will be conducted on the images extracted from the video,
+// and those objects will be labeled with bounding boxes.
+// User need to specify the number of images to be extracted per second as the
+// extraction frame rate.
+message ObjectDetectionConfig {
+ // Required. Annotation spec set resource name.
+ string annotation_spec_set = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. Number of frames per second to be extracted from the video.
+ double extraction_frame_rate = 3 [(google.api.field_behavior) = REQUIRED];
+}
+
+// Config for video object tracking human labeling task.
+message ObjectTrackingConfig {
+ // Required. Annotation spec set resource name.
+ string annotation_spec_set = 1 [(google.api.field_behavior) = REQUIRED];
+}
+
+// Config for video event human labeling task.
+message EventConfig {
+ // Required. The list of annotation spec set resource name. Similar to video
+ // classification, we support selecting event from multiple AnnotationSpecSet
+ // at the same time.
+ repeated string annotation_spec_sets = 1 [(google.api.field_behavior) = REQUIRED];
+}
+
+// Config for text classification human labeling task.
+message TextClassificationConfig {
+ // Optional. If allow_multi_label is true, contributors are able to choose
+ // multiple labels for one text segment.
+ bool allow_multi_label = 1 [(google.api.field_behavior) = OPTIONAL];
+
+ // Required. Annotation spec set resource name.
+ string annotation_spec_set = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // Optional. Configs for sentiment selection.
+ SentimentConfig sentiment_config = 3 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Config for setting up sentiments.
+message SentimentConfig {
+ // If set to true, contributors will have the option to select sentiment of
+ // the label they selected, to mark it as negative or positive label. Default
+ // is false.
+ bool enable_label_sentiment_selection = 1;
+}
+
+// Config for text entity extraction human labeling task.
+message TextEntityExtractionConfig {
+ // Required. Annotation spec set resource name.
+ string annotation_spec_set = 1 [(google.api.field_behavior) = REQUIRED];
+}
diff --git a/packages/google-cloud-datalabeling/protos/google/cloud/datalabeling/v1beta1/instruction.proto b/packages/google-cloud-datalabeling/protos/google/cloud/datalabeling/v1beta1/instruction.proto
new file mode 100644
index 00000000000..9b19d32fdc5
--- /dev/null
+++ b/packages/google-cloud-datalabeling/protos/google/cloud/datalabeling/v1beta1/instruction.proto
@@ -0,0 +1,87 @@
+// Copyright 2019 Google LLC.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+syntax = "proto3";
+
+package google.cloud.datalabeling.v1beta1;
+
+import "google/api/resource.proto";
+import "google/cloud/datalabeling/v1beta1/dataset.proto";
+import "google/protobuf/timestamp.proto";
+
+option csharp_namespace = "Google.Cloud.DataLabeling.V1Beta1";
+option go_package = "google.golang.org/genproto/googleapis/cloud/datalabeling/v1beta1;datalabeling";
+option java_multiple_files = true;
+option java_package = "com.google.cloud.datalabeling.v1beta1";
+option php_namespace = "Google\\Cloud\\DataLabeling\\V1beta1";
+option ruby_package = "Google::Cloud::DataLabeling::V1beta1";
+
+// Instruction of how to perform the labeling task for human operators.
+// Currently only PDF instruction is supported.
+message Instruction {
+ option (google.api.resource) = {
+ type: "datalabeling.googleapis.com/Instruction"
+ pattern: "projects/{project}/instructions/{instruction}"
+ };
+
+ // Output only. Instruction resource name, format:
+ // projects/{project_id}/instructions/{instruction_id}
+ string name = 1;
+
+ // Required. The display name of the instruction. Maximum of 64 characters.
+ string display_name = 2;
+
+ // Optional. User-provided description of the instruction.
+ // The description can be up to 10000 characters long.
+ string description = 3;
+
+ // Output only. Creation time of instruction.
+ google.protobuf.Timestamp create_time = 4;
+
+ // Output only. Last update time of instruction.
+ google.protobuf.Timestamp update_time = 5;
+
+ // Required. The data type of this instruction.
+ DataType data_type = 6;
+
+ // Deprecated: this instruction format is not supported any more.
+ // Instruction from a CSV file, such as for classification task.
+ // The CSV file should have exact two columns, in the following format:
+ //
+ // * The first column is labeled data, such as an image reference, text.
+ // * The second column is comma separated labels associated with data.
+ CsvInstruction csv_instruction = 7 [deprecated = true];
+
+ // Instruction from a PDF document. The PDF should be in a Cloud Storage
+ // bucket.
+ PdfInstruction pdf_instruction = 9;
+
+ // Output only. The names of any related resources that are blocking changes
+ // to the instruction.
+ repeated string blocking_resources = 10;
+}
+
+// Deprecated: this instruction format is not supported any more.
+// Instruction from a CSV file.
+message CsvInstruction {
+ // CSV file for the instruction. Only gcs path is allowed.
+ string gcs_file_uri = 1;
+}
+
+// Instruction from a PDF file.
+message PdfInstruction {
+ // PDF file for the instruction. Only gcs path is allowed.
+ string gcs_file_uri = 1;
+}
diff --git a/packages/google-cloud-datalabeling/protos/google/cloud/datalabeling/v1beta1/operations.proto b/packages/google-cloud-datalabeling/protos/google/cloud/datalabeling/v1beta1/operations.proto
new file mode 100644
index 00000000000..02d596fc9c6
--- /dev/null
+++ b/packages/google-cloud-datalabeling/protos/google/cloud/datalabeling/v1beta1/operations.proto
@@ -0,0 +1,232 @@
+// Copyright 2019 Google LLC.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+syntax = "proto3";
+
+package google.cloud.datalabeling.v1beta1;
+
+import "google/cloud/datalabeling/v1beta1/dataset.proto";
+import "google/cloud/datalabeling/v1beta1/human_annotation_config.proto";
+import "google/protobuf/timestamp.proto";
+import "google/rpc/status.proto";
+
+option csharp_namespace = "Google.Cloud.DataLabeling.V1Beta1";
+option go_package = "google.golang.org/genproto/googleapis/cloud/datalabeling/v1beta1;datalabeling";
+option java_multiple_files = true;
+option java_package = "com.google.cloud.datalabeling.v1beta1";
+option php_namespace = "Google\\Cloud\\DataLabeling\\V1beta1";
+option ruby_package = "Google::Cloud::DataLabeling::V1beta1";
+
+// Response used for ImportData longrunning operation.
+message ImportDataOperationResponse {
+ // Ouptut only. The name of imported dataset.
+ string dataset = 1;
+
+ // Output only. Total number of examples requested to import
+ int32 total_count = 2;
+
+ // Output only. Number of examples imported successfully.
+ int32 import_count = 3;
+}
+
+// Response used for ExportDataset longrunning operation.
+message ExportDataOperationResponse {
+ // Ouptut only. The name of dataset.
+ // "projects/*/datasets/*"
+ string dataset = 1;
+
+ // Output only. Total number of examples requested to export
+ int32 total_count = 2;
+
+ // Output only. Number of examples exported successfully.
+ int32 export_count = 3;
+
+ // Output only. Statistic infos of labels in the exported dataset.
+ LabelStats label_stats = 4;
+
+ // Output only. output_config in the ExportData request.
+ OutputConfig output_config = 5;
+}
+
+// Metadata of an ImportData operation.
+message ImportDataOperationMetadata {
+ // Output only. The name of imported dataset.
+ // "projects/*/datasets/*"
+ string dataset = 1;
+
+ // Output only. Partial failures encountered.
+ // E.g. single files that couldn't be read.
+ // Status details field will contain standard GCP error details.
+ repeated google.rpc.Status partial_failures = 2;
+
+ // Output only. Timestamp when import dataset request was created.
+ google.protobuf.Timestamp create_time = 3;
+}
+
+// Metadata of an ExportData operation.
+message ExportDataOperationMetadata {
+ // Output only. The name of dataset to be exported.
+ // "projects/*/datasets/*"
+ string dataset = 1;
+
+ // Output only. Partial failures encountered.
+ // E.g. single files that couldn't be read.
+ // Status details field will contain standard GCP error details.
+ repeated google.rpc.Status partial_failures = 2;
+
+ // Output only. Timestamp when export dataset request was created.
+ google.protobuf.Timestamp create_time = 3;
+}
+
+// Metadata of a labeling operation, such as LabelImage or LabelVideo.
+// Next tag: 20
+message LabelOperationMetadata {
+ // Ouptut only. Details of specific label operation.
+ oneof details {
+ // Details of label image classification operation.
+ LabelImageClassificationOperationMetadata image_classification_details = 3;
+
+ // Details of label image bounding box operation.
+ LabelImageBoundingBoxOperationMetadata image_bounding_box_details = 4;
+
+ // Details of label image bounding poly operation.
+ LabelImageBoundingPolyOperationMetadata image_bounding_poly_details = 11;
+
+ // Details of label image oriented bounding box operation.
+ LabelImageOrientedBoundingBoxOperationMetadata image_oriented_bounding_box_details = 14;
+
+ // Details of label image polyline operation.
+ LabelImagePolylineOperationMetadata image_polyline_details = 12;
+
+ // Details of label image segmentation operation.
+ LabelImageSegmentationOperationMetadata image_segmentation_details = 15;
+
+ // Details of label video classification operation.
+ LabelVideoClassificationOperationMetadata video_classification_details = 5;
+
+ // Details of label video object detection operation.
+ LabelVideoObjectDetectionOperationMetadata video_object_detection_details = 6;
+
+ // Details of label video object tracking operation.
+ LabelVideoObjectTrackingOperationMetadata video_object_tracking_details = 7;
+
+ // Details of label video event operation.
+ LabelVideoEventOperationMetadata video_event_details = 8;
+
+ // Details of label text classification operation.
+ LabelTextClassificationOperationMetadata text_classification_details = 9;
+
+ // Details of label text entity extraction operation.
+ LabelTextEntityExtractionOperationMetadata text_entity_extraction_details = 13;
+ }
+
+ // Output only. Progress of label operation. Range: [0, 100].
+ int32 progress_percent = 1;
+
+ // Output only. Partial failures encountered.
+ // E.g. single files that couldn't be read.
+ // Status details field will contain standard GCP error details.
+ repeated google.rpc.Status partial_failures = 2;
+
+ // Output only. Timestamp when labeling request was created.
+ google.protobuf.Timestamp create_time = 16;
+}
+
+// Metadata of a LabelImageClassification operation.
+message LabelImageClassificationOperationMetadata {
+ // Basic human annotation config used in labeling request.
+ HumanAnnotationConfig basic_config = 1;
+}
+
+// Details of a LabelImageBoundingBox operation metadata.
+message LabelImageBoundingBoxOperationMetadata {
+ // Basic human annotation config used in labeling request.
+ HumanAnnotationConfig basic_config = 1;
+}
+
+// Details of a LabelImageOrientedBoundingBox operation metadata.
+message LabelImageOrientedBoundingBoxOperationMetadata {
+ // Basic human annotation config.
+ HumanAnnotationConfig basic_config = 1;
+}
+
+// Details of LabelImageBoundingPoly operation metadata.
+message LabelImageBoundingPolyOperationMetadata {
+ // Basic human annotation config used in labeling request.
+ HumanAnnotationConfig basic_config = 1;
+}
+
+// Details of LabelImagePolyline operation metadata.
+message LabelImagePolylineOperationMetadata {
+ // Basic human annotation config used in labeling request.
+ HumanAnnotationConfig basic_config = 1;
+}
+
+// Details of a LabelImageSegmentation operation metadata.
+message LabelImageSegmentationOperationMetadata {
+ // Basic human annotation config.
+ HumanAnnotationConfig basic_config = 1;
+}
+
+// Details of a LabelVideoClassification operation metadata.
+message LabelVideoClassificationOperationMetadata {
+ // Basic human annotation config used in labeling request.
+ HumanAnnotationConfig basic_config = 1;
+}
+
+// Details of a LabelVideoObjectDetection operation metadata.
+message LabelVideoObjectDetectionOperationMetadata {
+ // Basic human annotation config used in labeling request.
+ HumanAnnotationConfig basic_config = 1;
+}
+
+// Details of a LabelVideoObjectTracking operation metadata.
+message LabelVideoObjectTrackingOperationMetadata {
+ // Basic human annotation config used in labeling request.
+ HumanAnnotationConfig basic_config = 1;
+}
+
+// Details of a LabelVideoEvent operation metadata.
+message LabelVideoEventOperationMetadata {
+ // Basic human annotation config used in labeling request.
+ HumanAnnotationConfig basic_config = 1;
+}
+
+// Details of a LabelTextClassification operation metadata.
+message LabelTextClassificationOperationMetadata {
+ // Basic human annotation config used in labeling request.
+ HumanAnnotationConfig basic_config = 1;
+}
+
+// Details of a LabelTextEntityExtraction operation metadata.
+message LabelTextEntityExtractionOperationMetadata {
+ // Basic human annotation config used in labeling request.
+ HumanAnnotationConfig basic_config = 1;
+}
+
+// Metadata of a CreateInstruction operation.
+message CreateInstructionMetadata {
+ // The name of the created Instruction.
+ // projects/{project_id}/instructions/{instruction_id}
+ string instruction = 1;
+
+ // Partial failures encountered.
+ // E.g. single files that couldn't be read.
+ // Status details field will contain standard GCP error details.
+ repeated google.rpc.Status partial_failures = 2;
+
+ // Timestamp when create instruction request was created.
+ google.protobuf.Timestamp create_time = 3;
+}
diff --git a/packages/google-cloud-datalabeling/protos/protos.d.ts b/packages/google-cloud-datalabeling/protos/protos.d.ts
new file mode 100644
index 00000000000..b95ae9c94bf
--- /dev/null
+++ b/packages/google-cloud-datalabeling/protos/protos.d.ts
@@ -0,0 +1,21047 @@
+// 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 datalabeling. */
+ namespace datalabeling {
+
+ /** Namespace v1beta1. */
+ namespace v1beta1 {
+
+ /** AnnotationSource enum. */
+ enum AnnotationSource {
+ ANNOTATION_SOURCE_UNSPECIFIED = 0,
+ OPERATOR = 3
+ }
+
+ /** Properties of an Annotation. */
+ interface IAnnotation {
+
+ /** Annotation name */
+ name?: (string|null);
+
+ /** Annotation annotationSource */
+ annotationSource?: (google.cloud.datalabeling.v1beta1.AnnotationSource|keyof typeof google.cloud.datalabeling.v1beta1.AnnotationSource|null);
+
+ /** Annotation annotationValue */
+ annotationValue?: (google.cloud.datalabeling.v1beta1.IAnnotationValue|null);
+
+ /** Annotation annotationMetadata */
+ annotationMetadata?: (google.cloud.datalabeling.v1beta1.IAnnotationMetadata|null);
+
+ /** Annotation annotationSentiment */
+ annotationSentiment?: (google.cloud.datalabeling.v1beta1.AnnotationSentiment|keyof typeof google.cloud.datalabeling.v1beta1.AnnotationSentiment|null);
+ }
+
+ /** Represents an Annotation. */
+ class Annotation implements IAnnotation {
+
+ /**
+ * Constructs a new Annotation.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.datalabeling.v1beta1.IAnnotation);
+
+ /** Annotation name. */
+ public name: string;
+
+ /** Annotation annotationSource. */
+ public annotationSource: (google.cloud.datalabeling.v1beta1.AnnotationSource|keyof typeof google.cloud.datalabeling.v1beta1.AnnotationSource);
+
+ /** Annotation annotationValue. */
+ public annotationValue?: (google.cloud.datalabeling.v1beta1.IAnnotationValue|null);
+
+ /** Annotation annotationMetadata. */
+ public annotationMetadata?: (google.cloud.datalabeling.v1beta1.IAnnotationMetadata|null);
+
+ /** Annotation annotationSentiment. */
+ public annotationSentiment: (google.cloud.datalabeling.v1beta1.AnnotationSentiment|keyof typeof google.cloud.datalabeling.v1beta1.AnnotationSentiment);
+
+ /**
+ * Creates a new Annotation instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Annotation instance
+ */
+ public static create(properties?: google.cloud.datalabeling.v1beta1.IAnnotation): google.cloud.datalabeling.v1beta1.Annotation;
+
+ /**
+ * Encodes the specified Annotation message. Does not implicitly {@link google.cloud.datalabeling.v1beta1.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.cloud.datalabeling.v1beta1.IAnnotation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Annotation message, length delimited. Does not implicitly {@link google.cloud.datalabeling.v1beta1.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.cloud.datalabeling.v1beta1.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.cloud.datalabeling.v1beta1.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.cloud.datalabeling.v1beta1.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.cloud.datalabeling.v1beta1.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.cloud.datalabeling.v1beta1.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;
+ }
+
+ /** AnnotationSentiment enum. */
+ enum AnnotationSentiment {
+ ANNOTATION_SENTIMENT_UNSPECIFIED = 0,
+ NEGATIVE = 1,
+ POSITIVE = 2
+ }
+
+ /** AnnotationType enum. */
+ enum AnnotationType {
+ ANNOTATION_TYPE_UNSPECIFIED = 0,
+ IMAGE_CLASSIFICATION_ANNOTATION = 1,
+ IMAGE_BOUNDING_BOX_ANNOTATION = 2,
+ IMAGE_ORIENTED_BOUNDING_BOX_ANNOTATION = 13,
+ IMAGE_BOUNDING_POLY_ANNOTATION = 10,
+ IMAGE_POLYLINE_ANNOTATION = 11,
+ IMAGE_SEGMENTATION_ANNOTATION = 12,
+ VIDEO_SHOTS_CLASSIFICATION_ANNOTATION = 3,
+ VIDEO_OBJECT_TRACKING_ANNOTATION = 4,
+ VIDEO_OBJECT_DETECTION_ANNOTATION = 5,
+ VIDEO_EVENT_ANNOTATION = 6,
+ TEXT_CLASSIFICATION_ANNOTATION = 8,
+ TEXT_ENTITY_EXTRACTION_ANNOTATION = 9,
+ GENERAL_CLASSIFICATION_ANNOTATION = 14
+ }
+
+ /** Properties of an AnnotationValue. */
+ interface IAnnotationValue {
+
+ /** AnnotationValue imageClassificationAnnotation */
+ imageClassificationAnnotation?: (google.cloud.datalabeling.v1beta1.IImageClassificationAnnotation|null);
+
+ /** AnnotationValue imageBoundingPolyAnnotation */
+ imageBoundingPolyAnnotation?: (google.cloud.datalabeling.v1beta1.IImageBoundingPolyAnnotation|null);
+
+ /** AnnotationValue imagePolylineAnnotation */
+ imagePolylineAnnotation?: (google.cloud.datalabeling.v1beta1.IImagePolylineAnnotation|null);
+
+ /** AnnotationValue imageSegmentationAnnotation */
+ imageSegmentationAnnotation?: (google.cloud.datalabeling.v1beta1.IImageSegmentationAnnotation|null);
+
+ /** AnnotationValue textClassificationAnnotation */
+ textClassificationAnnotation?: (google.cloud.datalabeling.v1beta1.ITextClassificationAnnotation|null);
+
+ /** AnnotationValue textEntityExtractionAnnotation */
+ textEntityExtractionAnnotation?: (google.cloud.datalabeling.v1beta1.ITextEntityExtractionAnnotation|null);
+
+ /** AnnotationValue videoClassificationAnnotation */
+ videoClassificationAnnotation?: (google.cloud.datalabeling.v1beta1.IVideoClassificationAnnotation|null);
+
+ /** AnnotationValue videoObjectTrackingAnnotation */
+ videoObjectTrackingAnnotation?: (google.cloud.datalabeling.v1beta1.IVideoObjectTrackingAnnotation|null);
+
+ /** AnnotationValue videoEventAnnotation */
+ videoEventAnnotation?: (google.cloud.datalabeling.v1beta1.IVideoEventAnnotation|null);
+ }
+
+ /** Represents an AnnotationValue. */
+ class AnnotationValue implements IAnnotationValue {
+
+ /**
+ * Constructs a new AnnotationValue.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.datalabeling.v1beta1.IAnnotationValue);
+
+ /** AnnotationValue imageClassificationAnnotation. */
+ public imageClassificationAnnotation?: (google.cloud.datalabeling.v1beta1.IImageClassificationAnnotation|null);
+
+ /** AnnotationValue imageBoundingPolyAnnotation. */
+ public imageBoundingPolyAnnotation?: (google.cloud.datalabeling.v1beta1.IImageBoundingPolyAnnotation|null);
+
+ /** AnnotationValue imagePolylineAnnotation. */
+ public imagePolylineAnnotation?: (google.cloud.datalabeling.v1beta1.IImagePolylineAnnotation|null);
+
+ /** AnnotationValue imageSegmentationAnnotation. */
+ public imageSegmentationAnnotation?: (google.cloud.datalabeling.v1beta1.IImageSegmentationAnnotation|null);
+
+ /** AnnotationValue textClassificationAnnotation. */
+ public textClassificationAnnotation?: (google.cloud.datalabeling.v1beta1.ITextClassificationAnnotation|null);
+
+ /** AnnotationValue textEntityExtractionAnnotation. */
+ public textEntityExtractionAnnotation?: (google.cloud.datalabeling.v1beta1.ITextEntityExtractionAnnotation|null);
+
+ /** AnnotationValue videoClassificationAnnotation. */
+ public videoClassificationAnnotation?: (google.cloud.datalabeling.v1beta1.IVideoClassificationAnnotation|null);
+
+ /** AnnotationValue videoObjectTrackingAnnotation. */
+ public videoObjectTrackingAnnotation?: (google.cloud.datalabeling.v1beta1.IVideoObjectTrackingAnnotation|null);
+
+ /** AnnotationValue videoEventAnnotation. */
+ public videoEventAnnotation?: (google.cloud.datalabeling.v1beta1.IVideoEventAnnotation|null);
+
+ /** AnnotationValue valueType. */
+ public valueType?: ("imageClassificationAnnotation"|"imageBoundingPolyAnnotation"|"imagePolylineAnnotation"|"imageSegmentationAnnotation"|"textClassificationAnnotation"|"textEntityExtractionAnnotation"|"videoClassificationAnnotation"|"videoObjectTrackingAnnotation"|"videoEventAnnotation");
+
+ /**
+ * Creates a new AnnotationValue instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns AnnotationValue instance
+ */
+ public static create(properties?: google.cloud.datalabeling.v1beta1.IAnnotationValue): google.cloud.datalabeling.v1beta1.AnnotationValue;
+
+ /**
+ * Encodes the specified AnnotationValue message. Does not implicitly {@link google.cloud.datalabeling.v1beta1.AnnotationValue.verify|verify} messages.
+ * @param message AnnotationValue message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.datalabeling.v1beta1.IAnnotationValue, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified AnnotationValue message, length delimited. Does not implicitly {@link google.cloud.datalabeling.v1beta1.AnnotationValue.verify|verify} messages.
+ * @param message AnnotationValue message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.datalabeling.v1beta1.IAnnotationValue, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an AnnotationValue message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns AnnotationValue
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.datalabeling.v1beta1.AnnotationValue;
+
+ /**
+ * Decodes an AnnotationValue message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns AnnotationValue
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.datalabeling.v1beta1.AnnotationValue;
+
+ /**
+ * Verifies an AnnotationValue message.
+ * @param message Plain 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 AnnotationValue message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns AnnotationValue
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.datalabeling.v1beta1.AnnotationValue;
+
+ /**
+ * Creates a plain object from an AnnotationValue message. Also converts values to other types if specified.
+ * @param message AnnotationValue
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.datalabeling.v1beta1.AnnotationValue, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this AnnotationValue to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for AnnotationValue
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an ImageClassificationAnnotation. */
+ interface IImageClassificationAnnotation {
+
+ /** ImageClassificationAnnotation annotationSpec */
+ annotationSpec?: (google.cloud.datalabeling.v1beta1.IAnnotationSpec|null);
+ }
+
+ /** Represents an ImageClassificationAnnotation. */
+ class ImageClassificationAnnotation implements IImageClassificationAnnotation {
+
+ /**
+ * Constructs a new ImageClassificationAnnotation.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.datalabeling.v1beta1.IImageClassificationAnnotation);
+
+ /** ImageClassificationAnnotation annotationSpec. */
+ public annotationSpec?: (google.cloud.datalabeling.v1beta1.IAnnotationSpec|null);
+
+ /**
+ * Creates a new ImageClassificationAnnotation instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ImageClassificationAnnotation instance
+ */
+ public static create(properties?: google.cloud.datalabeling.v1beta1.IImageClassificationAnnotation): google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation;
+
+ /**
+ * Encodes the specified ImageClassificationAnnotation message. Does not implicitly {@link google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation.verify|verify} messages.
+ * @param message ImageClassificationAnnotation message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.datalabeling.v1beta1.IImageClassificationAnnotation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ImageClassificationAnnotation message, length delimited. Does not implicitly {@link google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation.verify|verify} messages.
+ * @param message ImageClassificationAnnotation message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.datalabeling.v1beta1.IImageClassificationAnnotation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an ImageClassificationAnnotation message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ImageClassificationAnnotation
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation;
+
+ /**
+ * Decodes an ImageClassificationAnnotation message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ImageClassificationAnnotation
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation;
+
+ /**
+ * Verifies an ImageClassificationAnnotation message.
+ * @param message Plain 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 ImageClassificationAnnotation message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ImageClassificationAnnotation
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation;
+
+ /**
+ * Creates a plain object from an ImageClassificationAnnotation message. Also converts values to other types if specified.
+ * @param message ImageClassificationAnnotation
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ImageClassificationAnnotation to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ImageClassificationAnnotation
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Vertex. */
+ interface IVertex {
+
+ /** Vertex x */
+ x?: (number|null);
+
+ /** Vertex y */
+ y?: (number|null);
+ }
+
+ /** Represents a Vertex. */
+ class Vertex implements IVertex {
+
+ /**
+ * Constructs a new Vertex.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.datalabeling.v1beta1.IVertex);
+
+ /** Vertex x. */
+ public x: number;
+
+ /** Vertex y. */
+ public y: number;
+
+ /**
+ * Creates a new Vertex instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Vertex instance
+ */
+ public static create(properties?: google.cloud.datalabeling.v1beta1.IVertex): google.cloud.datalabeling.v1beta1.Vertex;
+
+ /**
+ * Encodes the specified Vertex message. Does not implicitly {@link google.cloud.datalabeling.v1beta1.Vertex.verify|verify} messages.
+ * @param message Vertex message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.datalabeling.v1beta1.IVertex, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Vertex message, length delimited. Does not implicitly {@link google.cloud.datalabeling.v1beta1.Vertex.verify|verify} messages.
+ * @param message Vertex message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.datalabeling.v1beta1.IVertex, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Vertex message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Vertex
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.datalabeling.v1beta1.Vertex;
+
+ /**
+ * Decodes a Vertex message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Vertex
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.datalabeling.v1beta1.Vertex;
+
+ /**
+ * Verifies a Vertex message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Vertex message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Vertex
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.datalabeling.v1beta1.Vertex;
+
+ /**
+ * Creates a plain object from a Vertex message. Also converts values to other types if specified.
+ * @param message Vertex
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.datalabeling.v1beta1.Vertex, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Vertex to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Vertex
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a NormalizedVertex. */
+ interface INormalizedVertex {
+
+ /** NormalizedVertex x */
+ x?: (number|null);
+
+ /** NormalizedVertex y */
+ y?: (number|null);
+ }
+
+ /** Represents a NormalizedVertex. */
+ class NormalizedVertex implements INormalizedVertex {
+
+ /**
+ * Constructs a new NormalizedVertex.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.datalabeling.v1beta1.INormalizedVertex);
+
+ /** NormalizedVertex x. */
+ public x: number;
+
+ /** NormalizedVertex y. */
+ public y: number;
+
+ /**
+ * Creates a new NormalizedVertex instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns NormalizedVertex instance
+ */
+ public static create(properties?: google.cloud.datalabeling.v1beta1.INormalizedVertex): google.cloud.datalabeling.v1beta1.NormalizedVertex;
+
+ /**
+ * Encodes the specified NormalizedVertex message. Does not implicitly {@link google.cloud.datalabeling.v1beta1.NormalizedVertex.verify|verify} messages.
+ * @param message NormalizedVertex message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.datalabeling.v1beta1.INormalizedVertex, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified NormalizedVertex message, length delimited. Does not implicitly {@link google.cloud.datalabeling.v1beta1.NormalizedVertex.verify|verify} messages.
+ * @param message NormalizedVertex message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.datalabeling.v1beta1.INormalizedVertex, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a NormalizedVertex message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns NormalizedVertex
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.datalabeling.v1beta1.NormalizedVertex;
+
+ /**
+ * Decodes a NormalizedVertex message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns NormalizedVertex
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.datalabeling.v1beta1.NormalizedVertex;
+
+ /**
+ * Verifies a NormalizedVertex message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a NormalizedVertex message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns NormalizedVertex
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.datalabeling.v1beta1.NormalizedVertex;
+
+ /**
+ * Creates a plain object from a NormalizedVertex message. Also converts values to other types if specified.
+ * @param message NormalizedVertex
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.datalabeling.v1beta1.NormalizedVertex, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this NormalizedVertex to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for NormalizedVertex
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a BoundingPoly. */
+ interface IBoundingPoly {
+
+ /** BoundingPoly vertices */
+ vertices?: (google.cloud.datalabeling.v1beta1.IVertex[]|null);
+ }
+
+ /** Represents a BoundingPoly. */
+ class BoundingPoly implements IBoundingPoly {
+
+ /**
+ * Constructs a new BoundingPoly.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.datalabeling.v1beta1.IBoundingPoly);
+
+ /** BoundingPoly vertices. */
+ public vertices: google.cloud.datalabeling.v1beta1.IVertex[];
+
+ /**
+ * Creates a new BoundingPoly instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns BoundingPoly instance
+ */
+ public static create(properties?: google.cloud.datalabeling.v1beta1.IBoundingPoly): google.cloud.datalabeling.v1beta1.BoundingPoly;
+
+ /**
+ * Encodes the specified BoundingPoly message. Does not implicitly {@link google.cloud.datalabeling.v1beta1.BoundingPoly.verify|verify} messages.
+ * @param message BoundingPoly message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.datalabeling.v1beta1.IBoundingPoly, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified BoundingPoly message, length delimited. Does not implicitly {@link google.cloud.datalabeling.v1beta1.BoundingPoly.verify|verify} messages.
+ * @param message BoundingPoly message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.datalabeling.v1beta1.IBoundingPoly, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a BoundingPoly message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns BoundingPoly
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.datalabeling.v1beta1.BoundingPoly;
+
+ /**
+ * Decodes a BoundingPoly message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns BoundingPoly
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.datalabeling.v1beta1.BoundingPoly;
+
+ /**
+ * Verifies a BoundingPoly message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a BoundingPoly message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns BoundingPoly
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.datalabeling.v1beta1.BoundingPoly;
+
+ /**
+ * Creates a plain object from a BoundingPoly message. Also converts values to other types if specified.
+ * @param message BoundingPoly
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.datalabeling.v1beta1.BoundingPoly, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this BoundingPoly to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for BoundingPoly
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a NormalizedBoundingPoly. */
+ interface INormalizedBoundingPoly {
+
+ /** NormalizedBoundingPoly normalizedVertices */
+ normalizedVertices?: (google.cloud.datalabeling.v1beta1.INormalizedVertex[]|null);
+ }
+
+ /** Represents a NormalizedBoundingPoly. */
+ class NormalizedBoundingPoly implements INormalizedBoundingPoly {
+
+ /**
+ * Constructs a new NormalizedBoundingPoly.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.datalabeling.v1beta1.INormalizedBoundingPoly);
+
+ /** NormalizedBoundingPoly normalizedVertices. */
+ public normalizedVertices: google.cloud.datalabeling.v1beta1.INormalizedVertex[];
+
+ /**
+ * Creates a new NormalizedBoundingPoly instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns NormalizedBoundingPoly instance
+ */
+ public static create(properties?: google.cloud.datalabeling.v1beta1.INormalizedBoundingPoly): google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly;
+
+ /**
+ * Encodes the specified NormalizedBoundingPoly message. Does not implicitly {@link google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly.verify|verify} messages.
+ * @param message NormalizedBoundingPoly message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.datalabeling.v1beta1.INormalizedBoundingPoly, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified NormalizedBoundingPoly message, length delimited. Does not implicitly {@link google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly.verify|verify} messages.
+ * @param message NormalizedBoundingPoly message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.datalabeling.v1beta1.INormalizedBoundingPoly, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a NormalizedBoundingPoly message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns NormalizedBoundingPoly
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly;
+
+ /**
+ * Decodes a NormalizedBoundingPoly message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns NormalizedBoundingPoly
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly;
+
+ /**
+ * Verifies a NormalizedBoundingPoly message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a NormalizedBoundingPoly message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns NormalizedBoundingPoly
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly;
+
+ /**
+ * Creates a plain object from a NormalizedBoundingPoly message. Also converts values to other types if specified.
+ * @param message NormalizedBoundingPoly
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this NormalizedBoundingPoly to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for NormalizedBoundingPoly
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an ImageBoundingPolyAnnotation. */
+ interface IImageBoundingPolyAnnotation {
+
+ /** ImageBoundingPolyAnnotation boundingPoly */
+ boundingPoly?: (google.cloud.datalabeling.v1beta1.IBoundingPoly|null);
+
+ /** ImageBoundingPolyAnnotation normalizedBoundingPoly */
+ normalizedBoundingPoly?: (google.cloud.datalabeling.v1beta1.INormalizedBoundingPoly|null);
+
+ /** ImageBoundingPolyAnnotation annotationSpec */
+ annotationSpec?: (google.cloud.datalabeling.v1beta1.IAnnotationSpec|null);
+ }
+
+ /** Represents an ImageBoundingPolyAnnotation. */
+ class ImageBoundingPolyAnnotation implements IImageBoundingPolyAnnotation {
+
+ /**
+ * Constructs a new ImageBoundingPolyAnnotation.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.datalabeling.v1beta1.IImageBoundingPolyAnnotation);
+
+ /** ImageBoundingPolyAnnotation boundingPoly. */
+ public boundingPoly?: (google.cloud.datalabeling.v1beta1.IBoundingPoly|null);
+
+ /** ImageBoundingPolyAnnotation normalizedBoundingPoly. */
+ public normalizedBoundingPoly?: (google.cloud.datalabeling.v1beta1.INormalizedBoundingPoly|null);
+
+ /** ImageBoundingPolyAnnotation annotationSpec. */
+ public annotationSpec?: (google.cloud.datalabeling.v1beta1.IAnnotationSpec|null);
+
+ /** ImageBoundingPolyAnnotation boundedArea. */
+ public boundedArea?: ("boundingPoly"|"normalizedBoundingPoly");
+
+ /**
+ * Creates a new ImageBoundingPolyAnnotation instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ImageBoundingPolyAnnotation instance
+ */
+ public static create(properties?: google.cloud.datalabeling.v1beta1.IImageBoundingPolyAnnotation): google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation;
+
+ /**
+ * Encodes the specified ImageBoundingPolyAnnotation message. Does not implicitly {@link google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation.verify|verify} messages.
+ * @param message ImageBoundingPolyAnnotation message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.datalabeling.v1beta1.IImageBoundingPolyAnnotation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ImageBoundingPolyAnnotation message, length delimited. Does not implicitly {@link google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation.verify|verify} messages.
+ * @param message ImageBoundingPolyAnnotation message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.datalabeling.v1beta1.IImageBoundingPolyAnnotation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an ImageBoundingPolyAnnotation message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ImageBoundingPolyAnnotation
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation;
+
+ /**
+ * Decodes an ImageBoundingPolyAnnotation message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ImageBoundingPolyAnnotation
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation;
+
+ /**
+ * Verifies an ImageBoundingPolyAnnotation message.
+ * @param message Plain 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 ImageBoundingPolyAnnotation message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ImageBoundingPolyAnnotation
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation;
+
+ /**
+ * Creates a plain object from an ImageBoundingPolyAnnotation message. Also converts values to other types if specified.
+ * @param message ImageBoundingPolyAnnotation
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ImageBoundingPolyAnnotation to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ImageBoundingPolyAnnotation
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Polyline. */
+ interface IPolyline {
+
+ /** Polyline vertices */
+ vertices?: (google.cloud.datalabeling.v1beta1.IVertex[]|null);
+ }
+
+ /** Represents a Polyline. */
+ class Polyline implements IPolyline {
+
+ /**
+ * Constructs a new Polyline.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.datalabeling.v1beta1.IPolyline);
+
+ /** Polyline vertices. */
+ public vertices: google.cloud.datalabeling.v1beta1.IVertex[];
+
+ /**
+ * Creates a new Polyline instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Polyline instance
+ */
+ public static create(properties?: google.cloud.datalabeling.v1beta1.IPolyline): google.cloud.datalabeling.v1beta1.Polyline;
+
+ /**
+ * Encodes the specified Polyline message. Does not implicitly {@link google.cloud.datalabeling.v1beta1.Polyline.verify|verify} messages.
+ * @param message Polyline message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.datalabeling.v1beta1.IPolyline, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Polyline message, length delimited. Does not implicitly {@link google.cloud.datalabeling.v1beta1.Polyline.verify|verify} messages.
+ * @param message Polyline message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.datalabeling.v1beta1.IPolyline, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Polyline message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Polyline
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.datalabeling.v1beta1.Polyline;
+
+ /**
+ * Decodes a Polyline message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Polyline
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.datalabeling.v1beta1.Polyline;
+
+ /**
+ * Verifies a Polyline message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Polyline message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Polyline
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.datalabeling.v1beta1.Polyline;
+
+ /**
+ * Creates a plain object from a Polyline message. Also converts values to other types if specified.
+ * @param message Polyline
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.datalabeling.v1beta1.Polyline, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Polyline to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Polyline
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a NormalizedPolyline. */
+ interface INormalizedPolyline {
+
+ /** NormalizedPolyline normalizedVertices */
+ normalizedVertices?: (google.cloud.datalabeling.v1beta1.INormalizedVertex[]|null);
+ }
+
+ /** Represents a NormalizedPolyline. */
+ class NormalizedPolyline implements INormalizedPolyline {
+
+ /**
+ * Constructs a new NormalizedPolyline.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.datalabeling.v1beta1.INormalizedPolyline);
+
+ /** NormalizedPolyline normalizedVertices. */
+ public normalizedVertices: google.cloud.datalabeling.v1beta1.INormalizedVertex[];
+
+ /**
+ * Creates a new NormalizedPolyline instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns NormalizedPolyline instance
+ */
+ public static create(properties?: google.cloud.datalabeling.v1beta1.INormalizedPolyline): google.cloud.datalabeling.v1beta1.NormalizedPolyline;
+
+ /**
+ * Encodes the specified NormalizedPolyline message. Does not implicitly {@link google.cloud.datalabeling.v1beta1.NormalizedPolyline.verify|verify} messages.
+ * @param message NormalizedPolyline message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.datalabeling.v1beta1.INormalizedPolyline, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified NormalizedPolyline message, length delimited. Does not implicitly {@link google.cloud.datalabeling.v1beta1.NormalizedPolyline.verify|verify} messages.
+ * @param message NormalizedPolyline message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.datalabeling.v1beta1.INormalizedPolyline, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a NormalizedPolyline message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns NormalizedPolyline
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.datalabeling.v1beta1.NormalizedPolyline;
+
+ /**
+ * Decodes a NormalizedPolyline message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns NormalizedPolyline
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.datalabeling.v1beta1.NormalizedPolyline;
+
+ /**
+ * Verifies a NormalizedPolyline message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a NormalizedPolyline message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns NormalizedPolyline
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.datalabeling.v1beta1.NormalizedPolyline;
+
+ /**
+ * Creates a plain object from a NormalizedPolyline message. Also converts values to other types if specified.
+ * @param message NormalizedPolyline
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.datalabeling.v1beta1.NormalizedPolyline, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this NormalizedPolyline to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for NormalizedPolyline
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an ImagePolylineAnnotation. */
+ interface IImagePolylineAnnotation {
+
+ /** ImagePolylineAnnotation polyline */
+ polyline?: (google.cloud.datalabeling.v1beta1.IPolyline|null);
+
+ /** ImagePolylineAnnotation normalizedPolyline */
+ normalizedPolyline?: (google.cloud.datalabeling.v1beta1.INormalizedPolyline|null);
+
+ /** ImagePolylineAnnotation annotationSpec */
+ annotationSpec?: (google.cloud.datalabeling.v1beta1.IAnnotationSpec|null);
+ }
+
+ /** Represents an ImagePolylineAnnotation. */
+ class ImagePolylineAnnotation implements IImagePolylineAnnotation {
+
+ /**
+ * Constructs a new ImagePolylineAnnotation.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.datalabeling.v1beta1.IImagePolylineAnnotation);
+
+ /** ImagePolylineAnnotation polyline. */
+ public polyline?: (google.cloud.datalabeling.v1beta1.IPolyline|null);
+
+ /** ImagePolylineAnnotation normalizedPolyline. */
+ public normalizedPolyline?: (google.cloud.datalabeling.v1beta1.INormalizedPolyline|null);
+
+ /** ImagePolylineAnnotation annotationSpec. */
+ public annotationSpec?: (google.cloud.datalabeling.v1beta1.IAnnotationSpec|null);
+
+ /** ImagePolylineAnnotation poly. */
+ public poly?: ("polyline"|"normalizedPolyline");
+
+ /**
+ * Creates a new ImagePolylineAnnotation instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ImagePolylineAnnotation instance
+ */
+ public static create(properties?: google.cloud.datalabeling.v1beta1.IImagePolylineAnnotation): google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation;
+
+ /**
+ * Encodes the specified ImagePolylineAnnotation message. Does not implicitly {@link google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation.verify|verify} messages.
+ * @param message ImagePolylineAnnotation message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.datalabeling.v1beta1.IImagePolylineAnnotation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ImagePolylineAnnotation message, length delimited. Does not implicitly {@link google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation.verify|verify} messages.
+ * @param message ImagePolylineAnnotation message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.datalabeling.v1beta1.IImagePolylineAnnotation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an ImagePolylineAnnotation message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ImagePolylineAnnotation
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation;
+
+ /**
+ * Decodes an ImagePolylineAnnotation message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ImagePolylineAnnotation
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation;
+
+ /**
+ * Verifies an ImagePolylineAnnotation message.
+ * @param message Plain 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 ImagePolylineAnnotation message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ImagePolylineAnnotation
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation;
+
+ /**
+ * Creates a plain object from an ImagePolylineAnnotation message. Also converts values to other types if specified.
+ * @param message ImagePolylineAnnotation
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ImagePolylineAnnotation to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ImagePolylineAnnotation
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an ImageSegmentationAnnotation. */
+ interface IImageSegmentationAnnotation {
+
+ /** ImageSegmentationAnnotation annotationColors */
+ annotationColors?: ({ [k: string]: google.cloud.datalabeling.v1beta1.IAnnotationSpec }|null);
+
+ /** ImageSegmentationAnnotation mimeType */
+ mimeType?: (string|null);
+
+ /** ImageSegmentationAnnotation imageBytes */
+ imageBytes?: (Uint8Array|string|null);
+ }
+
+ /** Represents an ImageSegmentationAnnotation. */
+ class ImageSegmentationAnnotation implements IImageSegmentationAnnotation {
+
+ /**
+ * Constructs a new ImageSegmentationAnnotation.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.datalabeling.v1beta1.IImageSegmentationAnnotation);
+
+ /** ImageSegmentationAnnotation annotationColors. */
+ public annotationColors: { [k: string]: google.cloud.datalabeling.v1beta1.IAnnotationSpec };
+
+ /** ImageSegmentationAnnotation mimeType. */
+ public mimeType: string;
+
+ /** ImageSegmentationAnnotation imageBytes. */
+ public imageBytes: (Uint8Array|string);
+
+ /**
+ * Creates a new ImageSegmentationAnnotation instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ImageSegmentationAnnotation instance
+ */
+ public static create(properties?: google.cloud.datalabeling.v1beta1.IImageSegmentationAnnotation): google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation;
+
+ /**
+ * Encodes the specified ImageSegmentationAnnotation message. Does not implicitly {@link google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation.verify|verify} messages.
+ * @param message ImageSegmentationAnnotation message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.datalabeling.v1beta1.IImageSegmentationAnnotation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ImageSegmentationAnnotation message, length delimited. Does not implicitly {@link google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation.verify|verify} messages.
+ * @param message ImageSegmentationAnnotation message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.datalabeling.v1beta1.IImageSegmentationAnnotation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an ImageSegmentationAnnotation message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ImageSegmentationAnnotation
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation;
+
+ /**
+ * Decodes an ImageSegmentationAnnotation message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ImageSegmentationAnnotation
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation;
+
+ /**
+ * Verifies an ImageSegmentationAnnotation message.
+ * @param message Plain 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 ImageSegmentationAnnotation message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ImageSegmentationAnnotation
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation;
+
+ /**
+ * Creates a plain object from an ImageSegmentationAnnotation message. Also converts values to other types if specified.
+ * @param message ImageSegmentationAnnotation
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ImageSegmentationAnnotation to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ImageSegmentationAnnotation
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a TextClassificationAnnotation. */
+ interface ITextClassificationAnnotation {
+
+ /** TextClassificationAnnotation annotationSpec */
+ annotationSpec?: (google.cloud.datalabeling.v1beta1.IAnnotationSpec|null);
+ }
+
+ /** Represents a TextClassificationAnnotation. */
+ class TextClassificationAnnotation implements ITextClassificationAnnotation {
+
+ /**
+ * Constructs a new TextClassificationAnnotation.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.datalabeling.v1beta1.ITextClassificationAnnotation);
+
+ /** TextClassificationAnnotation annotationSpec. */
+ public annotationSpec?: (google.cloud.datalabeling.v1beta1.IAnnotationSpec|null);
+
+ /**
+ * Creates a new TextClassificationAnnotation instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns TextClassificationAnnotation instance
+ */
+ public static create(properties?: google.cloud.datalabeling.v1beta1.ITextClassificationAnnotation): google.cloud.datalabeling.v1beta1.TextClassificationAnnotation;
+
+ /**
+ * Encodes the specified TextClassificationAnnotation message. Does not implicitly {@link google.cloud.datalabeling.v1beta1.TextClassificationAnnotation.verify|verify} messages.
+ * @param message TextClassificationAnnotation message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.datalabeling.v1beta1.ITextClassificationAnnotation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified TextClassificationAnnotation message, length delimited. Does not implicitly {@link google.cloud.datalabeling.v1beta1.TextClassificationAnnotation.verify|verify} messages.
+ * @param message TextClassificationAnnotation message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.datalabeling.v1beta1.ITextClassificationAnnotation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a TextClassificationAnnotation message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns TextClassificationAnnotation
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.datalabeling.v1beta1.TextClassificationAnnotation;
+
+ /**
+ * Decodes a TextClassificationAnnotation message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns TextClassificationAnnotation
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.datalabeling.v1beta1.TextClassificationAnnotation;
+
+ /**
+ * Verifies a TextClassificationAnnotation message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a TextClassificationAnnotation message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns TextClassificationAnnotation
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.datalabeling.v1beta1.TextClassificationAnnotation;
+
+ /**
+ * Creates a plain object from a TextClassificationAnnotation message. Also converts values to other types if specified.
+ * @param message TextClassificationAnnotation
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.datalabeling.v1beta1.TextClassificationAnnotation, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this TextClassificationAnnotation to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for TextClassificationAnnotation
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a TextEntityExtractionAnnotation. */
+ interface ITextEntityExtractionAnnotation {
+
+ /** TextEntityExtractionAnnotation annotationSpec */
+ annotationSpec?: (google.cloud.datalabeling.v1beta1.IAnnotationSpec|null);
+
+ /** TextEntityExtractionAnnotation sequentialSegment */
+ sequentialSegment?: (google.cloud.datalabeling.v1beta1.ISequentialSegment|null);
+ }
+
+ /** Represents a TextEntityExtractionAnnotation. */
+ class TextEntityExtractionAnnotation implements ITextEntityExtractionAnnotation {
+
+ /**
+ * Constructs a new TextEntityExtractionAnnotation.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.datalabeling.v1beta1.ITextEntityExtractionAnnotation);
+
+ /** TextEntityExtractionAnnotation annotationSpec. */
+ public annotationSpec?: (google.cloud.datalabeling.v1beta1.IAnnotationSpec|null);
+
+ /** TextEntityExtractionAnnotation sequentialSegment. */
+ public sequentialSegment?: (google.cloud.datalabeling.v1beta1.ISequentialSegment|null);
+
+ /**
+ * Creates a new TextEntityExtractionAnnotation instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns TextEntityExtractionAnnotation instance
+ */
+ public static create(properties?: google.cloud.datalabeling.v1beta1.ITextEntityExtractionAnnotation): google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation;
+
+ /**
+ * Encodes the specified TextEntityExtractionAnnotation message. Does not implicitly {@link google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation.verify|verify} messages.
+ * @param message TextEntityExtractionAnnotation message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.datalabeling.v1beta1.ITextEntityExtractionAnnotation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified TextEntityExtractionAnnotation message, length delimited. Does not implicitly {@link google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation.verify|verify} messages.
+ * @param message TextEntityExtractionAnnotation message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.datalabeling.v1beta1.ITextEntityExtractionAnnotation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a TextEntityExtractionAnnotation message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns TextEntityExtractionAnnotation
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation;
+
+ /**
+ * Decodes a TextEntityExtractionAnnotation message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns TextEntityExtractionAnnotation
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation;
+
+ /**
+ * Verifies a TextEntityExtractionAnnotation message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a TextEntityExtractionAnnotation message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns TextEntityExtractionAnnotation
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation;
+
+ /**
+ * Creates a plain object from a TextEntityExtractionAnnotation message. Also converts values to other types if specified.
+ * @param message TextEntityExtractionAnnotation
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this TextEntityExtractionAnnotation to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for TextEntityExtractionAnnotation
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a SequentialSegment. */
+ interface ISequentialSegment {
+
+ /** SequentialSegment start */
+ start?: (number|null);
+
+ /** SequentialSegment end */
+ end?: (number|null);
+ }
+
+ /** Represents a SequentialSegment. */
+ class SequentialSegment implements ISequentialSegment {
+
+ /**
+ * Constructs a new SequentialSegment.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.datalabeling.v1beta1.ISequentialSegment);
+
+ /** SequentialSegment start. */
+ public start: number;
+
+ /** SequentialSegment end. */
+ public end: number;
+
+ /**
+ * Creates a new SequentialSegment instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns SequentialSegment instance
+ */
+ public static create(properties?: google.cloud.datalabeling.v1beta1.ISequentialSegment): google.cloud.datalabeling.v1beta1.SequentialSegment;
+
+ /**
+ * Encodes the specified SequentialSegment message. Does not implicitly {@link google.cloud.datalabeling.v1beta1.SequentialSegment.verify|verify} messages.
+ * @param message SequentialSegment message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.datalabeling.v1beta1.ISequentialSegment, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified SequentialSegment message, length delimited. Does not implicitly {@link google.cloud.datalabeling.v1beta1.SequentialSegment.verify|verify} messages.
+ * @param message SequentialSegment message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.datalabeling.v1beta1.ISequentialSegment, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a SequentialSegment message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns SequentialSegment
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.datalabeling.v1beta1.SequentialSegment;
+
+ /**
+ * Decodes a SequentialSegment message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns SequentialSegment
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.datalabeling.v1beta1.SequentialSegment;
+
+ /**
+ * Verifies a SequentialSegment message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a SequentialSegment message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns SequentialSegment
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.datalabeling.v1beta1.SequentialSegment;
+
+ /**
+ * Creates a plain object from a SequentialSegment message. Also converts values to other types if specified.
+ * @param message SequentialSegment
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.datalabeling.v1beta1.SequentialSegment, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this SequentialSegment to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for SequentialSegment
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a TimeSegment. */
+ interface ITimeSegment {
+
+ /** TimeSegment startTimeOffset */
+ startTimeOffset?: (google.protobuf.IDuration|null);
+
+ /** TimeSegment endTimeOffset */
+ endTimeOffset?: (google.protobuf.IDuration|null);
+ }
+
+ /** Represents a TimeSegment. */
+ class TimeSegment implements ITimeSegment {
+
+ /**
+ * Constructs a new TimeSegment.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.datalabeling.v1beta1.ITimeSegment);
+
+ /** TimeSegment startTimeOffset. */
+ public startTimeOffset?: (google.protobuf.IDuration|null);
+
+ /** TimeSegment endTimeOffset. */
+ public endTimeOffset?: (google.protobuf.IDuration|null);
+
+ /**
+ * Creates a new TimeSegment instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns TimeSegment instance
+ */
+ public static create(properties?: google.cloud.datalabeling.v1beta1.ITimeSegment): google.cloud.datalabeling.v1beta1.TimeSegment;
+
+ /**
+ * Encodes the specified TimeSegment message. Does not implicitly {@link google.cloud.datalabeling.v1beta1.TimeSegment.verify|verify} messages.
+ * @param message TimeSegment message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.datalabeling.v1beta1.ITimeSegment, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified TimeSegment message, length delimited. Does not implicitly {@link google.cloud.datalabeling.v1beta1.TimeSegment.verify|verify} messages.
+ * @param message TimeSegment message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.datalabeling.v1beta1.ITimeSegment, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a TimeSegment message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns TimeSegment
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.datalabeling.v1beta1.TimeSegment;
+
+ /**
+ * Decodes a TimeSegment message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns TimeSegment
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.datalabeling.v1beta1.TimeSegment;
+
+ /**
+ * Verifies a TimeSegment message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a TimeSegment message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns TimeSegment
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.datalabeling.v1beta1.TimeSegment;
+
+ /**
+ * Creates a plain object from a TimeSegment message. Also converts values to other types if specified.
+ * @param message TimeSegment
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.datalabeling.v1beta1.TimeSegment, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this TimeSegment to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for TimeSegment
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a VideoClassificationAnnotation. */
+ interface IVideoClassificationAnnotation {
+
+ /** VideoClassificationAnnotation timeSegment */
+ timeSegment?: (google.cloud.datalabeling.v1beta1.ITimeSegment|null);
+
+ /** VideoClassificationAnnotation annotationSpec */
+ annotationSpec?: (google.cloud.datalabeling.v1beta1.IAnnotationSpec|null);
+ }
+
+ /** Represents a VideoClassificationAnnotation. */
+ class VideoClassificationAnnotation implements IVideoClassificationAnnotation {
+
+ /**
+ * Constructs a new VideoClassificationAnnotation.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.datalabeling.v1beta1.IVideoClassificationAnnotation);
+
+ /** VideoClassificationAnnotation timeSegment. */
+ public timeSegment?: (google.cloud.datalabeling.v1beta1.ITimeSegment|null);
+
+ /** VideoClassificationAnnotation annotationSpec. */
+ public annotationSpec?: (google.cloud.datalabeling.v1beta1.IAnnotationSpec|null);
+
+ /**
+ * Creates a new VideoClassificationAnnotation instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns VideoClassificationAnnotation instance
+ */
+ public static create(properties?: google.cloud.datalabeling.v1beta1.IVideoClassificationAnnotation): google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation;
+
+ /**
+ * Encodes the specified VideoClassificationAnnotation message. Does not implicitly {@link google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation.verify|verify} messages.
+ * @param message VideoClassificationAnnotation message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.datalabeling.v1beta1.IVideoClassificationAnnotation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified VideoClassificationAnnotation message, length delimited. Does not implicitly {@link google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation.verify|verify} messages.
+ * @param message VideoClassificationAnnotation message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.datalabeling.v1beta1.IVideoClassificationAnnotation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a VideoClassificationAnnotation message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns VideoClassificationAnnotation
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation;
+
+ /**
+ * Decodes a VideoClassificationAnnotation message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns VideoClassificationAnnotation
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation;
+
+ /**
+ * Verifies a VideoClassificationAnnotation message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a VideoClassificationAnnotation message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns VideoClassificationAnnotation
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation;
+
+ /**
+ * Creates a plain object from a VideoClassificationAnnotation message. Also converts values to other types if specified.
+ * @param message VideoClassificationAnnotation
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this VideoClassificationAnnotation to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for VideoClassificationAnnotation
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an ObjectTrackingFrame. */
+ interface IObjectTrackingFrame {
+
+ /** ObjectTrackingFrame boundingPoly */
+ boundingPoly?: (google.cloud.datalabeling.v1beta1.IBoundingPoly|null);
+
+ /** ObjectTrackingFrame normalizedBoundingPoly */
+ normalizedBoundingPoly?: (google.cloud.datalabeling.v1beta1.INormalizedBoundingPoly|null);
+
+ /** ObjectTrackingFrame timeOffset */
+ timeOffset?: (google.protobuf.IDuration|null);
+ }
+
+ /** Represents an ObjectTrackingFrame. */
+ class ObjectTrackingFrame implements IObjectTrackingFrame {
+
+ /**
+ * Constructs a new ObjectTrackingFrame.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.datalabeling.v1beta1.IObjectTrackingFrame);
+
+ /** ObjectTrackingFrame boundingPoly. */
+ public boundingPoly?: (google.cloud.datalabeling.v1beta1.IBoundingPoly|null);
+
+ /** ObjectTrackingFrame normalizedBoundingPoly. */
+ public normalizedBoundingPoly?: (google.cloud.datalabeling.v1beta1.INormalizedBoundingPoly|null);
+
+ /** ObjectTrackingFrame timeOffset. */
+ public timeOffset?: (google.protobuf.IDuration|null);
+
+ /** ObjectTrackingFrame boundedArea. */
+ public boundedArea?: ("boundingPoly"|"normalizedBoundingPoly");
+
+ /**
+ * Creates a new ObjectTrackingFrame instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ObjectTrackingFrame instance
+ */
+ public static create(properties?: google.cloud.datalabeling.v1beta1.IObjectTrackingFrame): google.cloud.datalabeling.v1beta1.ObjectTrackingFrame;
+
+ /**
+ * Encodes the specified ObjectTrackingFrame message. Does not implicitly {@link google.cloud.datalabeling.v1beta1.ObjectTrackingFrame.verify|verify} messages.
+ * @param message ObjectTrackingFrame message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.datalabeling.v1beta1.IObjectTrackingFrame, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ObjectTrackingFrame message, length delimited. Does not implicitly {@link google.cloud.datalabeling.v1beta1.ObjectTrackingFrame.verify|verify} messages.
+ * @param message ObjectTrackingFrame message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.datalabeling.v1beta1.IObjectTrackingFrame, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an ObjectTrackingFrame message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ObjectTrackingFrame
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.datalabeling.v1beta1.ObjectTrackingFrame;
+
+ /**
+ * Decodes an ObjectTrackingFrame message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ObjectTrackingFrame
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.datalabeling.v1beta1.ObjectTrackingFrame;
+
+ /**
+ * Verifies an ObjectTrackingFrame message.
+ * @param message Plain 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 ObjectTrackingFrame message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ObjectTrackingFrame
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.datalabeling.v1beta1.ObjectTrackingFrame;
+
+ /**
+ * Creates a plain object from an ObjectTrackingFrame message. Also converts values to other types if specified.
+ * @param message ObjectTrackingFrame
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.datalabeling.v1beta1.ObjectTrackingFrame, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ObjectTrackingFrame to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ObjectTrackingFrame
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a VideoObjectTrackingAnnotation. */
+ interface IVideoObjectTrackingAnnotation {
+
+ /** VideoObjectTrackingAnnotation annotationSpec */
+ annotationSpec?: (google.cloud.datalabeling.v1beta1.IAnnotationSpec|null);
+
+ /** VideoObjectTrackingAnnotation timeSegment */
+ timeSegment?: (google.cloud.datalabeling.v1beta1.ITimeSegment|null);
+
+ /** VideoObjectTrackingAnnotation objectTrackingFrames */
+ objectTrackingFrames?: (google.cloud.datalabeling.v1beta1.IObjectTrackingFrame[]|null);
+ }
+
+ /** Represents a VideoObjectTrackingAnnotation. */
+ class VideoObjectTrackingAnnotation implements IVideoObjectTrackingAnnotation {
+
+ /**
+ * Constructs a new VideoObjectTrackingAnnotation.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.datalabeling.v1beta1.IVideoObjectTrackingAnnotation);
+
+ /** VideoObjectTrackingAnnotation annotationSpec. */
+ public annotationSpec?: (google.cloud.datalabeling.v1beta1.IAnnotationSpec|null);
+
+ /** VideoObjectTrackingAnnotation timeSegment. */
+ public timeSegment?: (google.cloud.datalabeling.v1beta1.ITimeSegment|null);
+
+ /** VideoObjectTrackingAnnotation objectTrackingFrames. */
+ public objectTrackingFrames: google.cloud.datalabeling.v1beta1.IObjectTrackingFrame[];
+
+ /**
+ * Creates a new VideoObjectTrackingAnnotation instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns VideoObjectTrackingAnnotation instance
+ */
+ public static create(properties?: google.cloud.datalabeling.v1beta1.IVideoObjectTrackingAnnotation): google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation;
+
+ /**
+ * Encodes the specified VideoObjectTrackingAnnotation message. Does not implicitly {@link google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation.verify|verify} messages.
+ * @param message VideoObjectTrackingAnnotation message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.datalabeling.v1beta1.IVideoObjectTrackingAnnotation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified VideoObjectTrackingAnnotation message, length delimited. Does not implicitly {@link google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation.verify|verify} messages.
+ * @param message VideoObjectTrackingAnnotation message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.datalabeling.v1beta1.IVideoObjectTrackingAnnotation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a VideoObjectTrackingAnnotation message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns VideoObjectTrackingAnnotation
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation;
+
+ /**
+ * Decodes a VideoObjectTrackingAnnotation message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns VideoObjectTrackingAnnotation
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation;
+
+ /**
+ * Verifies a VideoObjectTrackingAnnotation message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a VideoObjectTrackingAnnotation message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns VideoObjectTrackingAnnotation
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation;
+
+ /**
+ * Creates a plain object from a VideoObjectTrackingAnnotation message. Also converts values to other types if specified.
+ * @param message VideoObjectTrackingAnnotation
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this VideoObjectTrackingAnnotation to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for VideoObjectTrackingAnnotation
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a VideoEventAnnotation. */
+ interface IVideoEventAnnotation {
+
+ /** VideoEventAnnotation annotationSpec */
+ annotationSpec?: (google.cloud.datalabeling.v1beta1.IAnnotationSpec|null);
+
+ /** VideoEventAnnotation timeSegment */
+ timeSegment?: (google.cloud.datalabeling.v1beta1.ITimeSegment|null);
+ }
+
+ /** Represents a VideoEventAnnotation. */
+ class VideoEventAnnotation implements IVideoEventAnnotation {
+
+ /**
+ * Constructs a new VideoEventAnnotation.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.datalabeling.v1beta1.IVideoEventAnnotation);
+
+ /** VideoEventAnnotation annotationSpec. */
+ public annotationSpec?: (google.cloud.datalabeling.v1beta1.IAnnotationSpec|null);
+
+ /** VideoEventAnnotation timeSegment. */
+ public timeSegment?: (google.cloud.datalabeling.v1beta1.ITimeSegment|null);
+
+ /**
+ * Creates a new VideoEventAnnotation instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns VideoEventAnnotation instance
+ */
+ public static create(properties?: google.cloud.datalabeling.v1beta1.IVideoEventAnnotation): google.cloud.datalabeling.v1beta1.VideoEventAnnotation;
+
+ /**
+ * Encodes the specified VideoEventAnnotation message. Does not implicitly {@link google.cloud.datalabeling.v1beta1.VideoEventAnnotation.verify|verify} messages.
+ * @param message VideoEventAnnotation message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.datalabeling.v1beta1.IVideoEventAnnotation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified VideoEventAnnotation message, length delimited. Does not implicitly {@link google.cloud.datalabeling.v1beta1.VideoEventAnnotation.verify|verify} messages.
+ * @param message VideoEventAnnotation message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.datalabeling.v1beta1.IVideoEventAnnotation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a VideoEventAnnotation message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns VideoEventAnnotation
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.datalabeling.v1beta1.VideoEventAnnotation;
+
+ /**
+ * Decodes a VideoEventAnnotation message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns VideoEventAnnotation
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.datalabeling.v1beta1.VideoEventAnnotation;
+
+ /**
+ * Verifies a VideoEventAnnotation message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a VideoEventAnnotation message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns VideoEventAnnotation
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.datalabeling.v1beta1.VideoEventAnnotation;
+
+ /**
+ * Creates a plain object from a VideoEventAnnotation message. Also converts values to other types if specified.
+ * @param message VideoEventAnnotation
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.datalabeling.v1beta1.VideoEventAnnotation, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this VideoEventAnnotation to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for VideoEventAnnotation
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an AnnotationMetadata. */
+ interface IAnnotationMetadata {
+
+ /** AnnotationMetadata operatorMetadata */
+ operatorMetadata?: (google.cloud.datalabeling.v1beta1.IOperatorMetadata|null);
+ }
+
+ /** Represents an AnnotationMetadata. */
+ class AnnotationMetadata implements IAnnotationMetadata {
+
+ /**
+ * Constructs a new AnnotationMetadata.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.datalabeling.v1beta1.IAnnotationMetadata);
+
+ /** AnnotationMetadata operatorMetadata. */
+ public operatorMetadata?: (google.cloud.datalabeling.v1beta1.IOperatorMetadata|null);
+
+ /**
+ * Creates a new AnnotationMetadata instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns AnnotationMetadata instance
+ */
+ public static create(properties?: google.cloud.datalabeling.v1beta1.IAnnotationMetadata): google.cloud.datalabeling.v1beta1.AnnotationMetadata;
+
+ /**
+ * Encodes the specified AnnotationMetadata message. Does not implicitly {@link google.cloud.datalabeling.v1beta1.AnnotationMetadata.verify|verify} messages.
+ * @param message AnnotationMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.datalabeling.v1beta1.IAnnotationMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified AnnotationMetadata message, length delimited. Does not implicitly {@link google.cloud.datalabeling.v1beta1.AnnotationMetadata.verify|verify} messages.
+ * @param message AnnotationMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.datalabeling.v1beta1.IAnnotationMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an AnnotationMetadata message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns AnnotationMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.datalabeling.v1beta1.AnnotationMetadata;
+
+ /**
+ * Decodes an AnnotationMetadata message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns AnnotationMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.datalabeling.v1beta1.AnnotationMetadata;
+
+ /**
+ * Verifies an AnnotationMetadata message.
+ * @param message Plain 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 AnnotationMetadata message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns AnnotationMetadata
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.datalabeling.v1beta1.AnnotationMetadata;
+
+ /**
+ * Creates a plain object from an AnnotationMetadata message. Also converts values to other types if specified.
+ * @param message AnnotationMetadata
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.datalabeling.v1beta1.AnnotationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this AnnotationMetadata to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for AnnotationMetadata
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an OperatorMetadata. */
+ interface IOperatorMetadata {
+
+ /** OperatorMetadata score */
+ score?: (number|null);
+
+ /** OperatorMetadata totalVotes */
+ totalVotes?: (number|null);
+
+ /** OperatorMetadata labelVotes */
+ labelVotes?: (number|null);
+
+ /** OperatorMetadata comments */
+ comments?: (string[]|null);
+ }
+
+ /** Represents an OperatorMetadata. */
+ class OperatorMetadata implements IOperatorMetadata {
+
+ /**
+ * Constructs a new OperatorMetadata.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.datalabeling.v1beta1.IOperatorMetadata);
+
+ /** OperatorMetadata score. */
+ public score: number;
+
+ /** OperatorMetadata totalVotes. */
+ public totalVotes: number;
+
+ /** OperatorMetadata labelVotes. */
+ public labelVotes: number;
+
+ /** OperatorMetadata comments. */
+ public comments: string[];
+
+ /**
+ * Creates a new OperatorMetadata instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns OperatorMetadata instance
+ */
+ public static create(properties?: google.cloud.datalabeling.v1beta1.IOperatorMetadata): google.cloud.datalabeling.v1beta1.OperatorMetadata;
+
+ /**
+ * Encodes the specified OperatorMetadata message. Does not implicitly {@link google.cloud.datalabeling.v1beta1.OperatorMetadata.verify|verify} messages.
+ * @param message OperatorMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.datalabeling.v1beta1.IOperatorMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified OperatorMetadata message, length delimited. Does not implicitly {@link google.cloud.datalabeling.v1beta1.OperatorMetadata.verify|verify} messages.
+ * @param message OperatorMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.datalabeling.v1beta1.IOperatorMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an OperatorMetadata message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns OperatorMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.datalabeling.v1beta1.OperatorMetadata;
+
+ /**
+ * Decodes an OperatorMetadata message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns OperatorMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.datalabeling.v1beta1.OperatorMetadata;
+
+ /**
+ * Verifies an OperatorMetadata message.
+ * @param message Plain 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 OperatorMetadata message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns OperatorMetadata
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.datalabeling.v1beta1.OperatorMetadata;
+
+ /**
+ * Creates a plain object from an OperatorMetadata message. Also converts values to other types if specified.
+ * @param message OperatorMetadata
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.datalabeling.v1beta1.OperatorMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this OperatorMetadata to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for OperatorMetadata
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an AnnotationSpecSet. */
+ interface IAnnotationSpecSet {
+
+ /** AnnotationSpecSet name */
+ name?: (string|null);
+
+ /** AnnotationSpecSet displayName */
+ displayName?: (string|null);
+
+ /** AnnotationSpecSet description */
+ description?: (string|null);
+
+ /** AnnotationSpecSet annotationSpecs */
+ annotationSpecs?: (google.cloud.datalabeling.v1beta1.IAnnotationSpec[]|null);
+
+ /** AnnotationSpecSet blockingResources */
+ blockingResources?: (string[]|null);
+ }
+
+ /** Represents an AnnotationSpecSet. */
+ class AnnotationSpecSet implements IAnnotationSpecSet {
+
+ /**
+ * Constructs a new AnnotationSpecSet.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.datalabeling.v1beta1.IAnnotationSpecSet);
+
+ /** AnnotationSpecSet name. */
+ public name: string;
+
+ /** AnnotationSpecSet displayName. */
+ public displayName: string;
+
+ /** AnnotationSpecSet description. */
+ public description: string;
+
+ /** AnnotationSpecSet annotationSpecs. */
+ public annotationSpecs: google.cloud.datalabeling.v1beta1.IAnnotationSpec[];
+
+ /** AnnotationSpecSet blockingResources. */
+ public blockingResources: string[];
+
+ /**
+ * Creates a new AnnotationSpecSet instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns AnnotationSpecSet instance
+ */
+ public static create(properties?: google.cloud.datalabeling.v1beta1.IAnnotationSpecSet): google.cloud.datalabeling.v1beta1.AnnotationSpecSet;
+
+ /**
+ * Encodes the specified AnnotationSpecSet message. Does not implicitly {@link google.cloud.datalabeling.v1beta1.AnnotationSpecSet.verify|verify} messages.
+ * @param message AnnotationSpecSet message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.datalabeling.v1beta1.IAnnotationSpecSet, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified AnnotationSpecSet message, length delimited. Does not implicitly {@link google.cloud.datalabeling.v1beta1.AnnotationSpecSet.verify|verify} messages.
+ * @param message AnnotationSpecSet message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.datalabeling.v1beta1.IAnnotationSpecSet, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an AnnotationSpecSet message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns AnnotationSpecSet
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.datalabeling.v1beta1.AnnotationSpecSet;
+
+ /**
+ * Decodes an AnnotationSpecSet message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns AnnotationSpecSet
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.datalabeling.v1beta1.AnnotationSpecSet;
+
+ /**
+ * Verifies an AnnotationSpecSet message.
+ * @param message Plain 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 AnnotationSpecSet message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns AnnotationSpecSet
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.datalabeling.v1beta1.AnnotationSpecSet;
+
+ /**
+ * Creates a plain object from an AnnotationSpecSet message. Also converts values to other types if specified.
+ * @param message AnnotationSpecSet
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.datalabeling.v1beta1.AnnotationSpecSet, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this AnnotationSpecSet to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for AnnotationSpecSet
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an AnnotationSpec. */
+ interface IAnnotationSpec {
+
+ /** AnnotationSpec displayName */
+ displayName?: (string|null);
+
+ /** AnnotationSpec description */
+ description?: (string|null);
+ }
+
+ /** Represents an AnnotationSpec. */
+ class AnnotationSpec implements IAnnotationSpec {
+
+ /**
+ * Constructs a new AnnotationSpec.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.datalabeling.v1beta1.IAnnotationSpec);
+
+ /** AnnotationSpec displayName. */
+ public displayName: string;
+
+ /** AnnotationSpec description. */
+ public description: string;
+
+ /**
+ * Creates a new AnnotationSpec instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns AnnotationSpec instance
+ */
+ public static create(properties?: google.cloud.datalabeling.v1beta1.IAnnotationSpec): google.cloud.datalabeling.v1beta1.AnnotationSpec;
+
+ /**
+ * Encodes the specified AnnotationSpec message. Does not implicitly {@link google.cloud.datalabeling.v1beta1.AnnotationSpec.verify|verify} messages.
+ * @param message AnnotationSpec message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.datalabeling.v1beta1.IAnnotationSpec, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified AnnotationSpec message, length delimited. Does not implicitly {@link google.cloud.datalabeling.v1beta1.AnnotationSpec.verify|verify} messages.
+ * @param message AnnotationSpec message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.datalabeling.v1beta1.IAnnotationSpec, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an AnnotationSpec message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns AnnotationSpec
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.datalabeling.v1beta1.AnnotationSpec;
+
+ /**
+ * Decodes an AnnotationSpec message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns AnnotationSpec
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.datalabeling.v1beta1.AnnotationSpec;
+
+ /**
+ * Verifies an AnnotationSpec message.
+ * @param message Plain 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 AnnotationSpec message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns AnnotationSpec
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.datalabeling.v1beta1.AnnotationSpec;
+
+ /**
+ * Creates a plain object from an AnnotationSpec message. Also converts values to other types if specified.
+ * @param message AnnotationSpec
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.datalabeling.v1beta1.AnnotationSpec, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this AnnotationSpec to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for AnnotationSpec
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Represents a DataLabelingService */
+ class DataLabelingService extends $protobuf.rpc.Service {
+
+ /**
+ * Constructs a new DataLabelingService 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 DataLabelingService 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): DataLabelingService;
+
+ /**
+ * Calls CreateDataset.
+ * @param request CreateDatasetRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Dataset
+ */
+ public createDataset(request: google.cloud.datalabeling.v1beta1.ICreateDatasetRequest, callback: google.cloud.datalabeling.v1beta1.DataLabelingService.CreateDatasetCallback): void;
+
+ /**
+ * Calls CreateDataset.
+ * @param request CreateDatasetRequest message or plain object
+ * @returns Promise
+ */
+ public createDataset(request: google.cloud.datalabeling.v1beta1.ICreateDatasetRequest): Promise;
+
+ /**
+ * Calls GetDataset.
+ * @param request GetDatasetRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Dataset
+ */
+ public getDataset(request: google.cloud.datalabeling.v1beta1.IGetDatasetRequest, callback: google.cloud.datalabeling.v1beta1.DataLabelingService.GetDatasetCallback): void;
+
+ /**
+ * Calls GetDataset.
+ * @param request GetDatasetRequest message or plain object
+ * @returns Promise
+ */
+ public getDataset(request: google.cloud.datalabeling.v1beta1.IGetDatasetRequest): Promise;
+
+ /**
+ * Calls ListDatasets.
+ * @param request ListDatasetsRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListDatasetsResponse
+ */
+ public listDatasets(request: google.cloud.datalabeling.v1beta1.IListDatasetsRequest, callback: google.cloud.datalabeling.v1beta1.DataLabelingService.ListDatasetsCallback): void;
+
+ /**
+ * Calls ListDatasets.
+ * @param request ListDatasetsRequest message or plain object
+ * @returns Promise
+ */
+ public listDatasets(request: google.cloud.datalabeling.v1beta1.IListDatasetsRequest): Promise;
+
+ /**
+ * Calls DeleteDataset.
+ * @param request DeleteDatasetRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Empty
+ */
+ public deleteDataset(request: google.cloud.datalabeling.v1beta1.IDeleteDatasetRequest, callback: google.cloud.datalabeling.v1beta1.DataLabelingService.DeleteDatasetCallback): void;
+
+ /**
+ * Calls DeleteDataset.
+ * @param request DeleteDatasetRequest message or plain object
+ * @returns Promise
+ */
+ public deleteDataset(request: google.cloud.datalabeling.v1beta1.IDeleteDatasetRequest): Promise;
+
+ /**
+ * Calls ImportData.
+ * @param request ImportDataRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public importData(request: google.cloud.datalabeling.v1beta1.IImportDataRequest, callback: google.cloud.datalabeling.v1beta1.DataLabelingService.ImportDataCallback): void;
+
+ /**
+ * Calls ImportData.
+ * @param request ImportDataRequest message or plain object
+ * @returns Promise
+ */
+ public importData(request: google.cloud.datalabeling.v1beta1.IImportDataRequest): Promise;
+
+ /**
+ * Calls ExportData.
+ * @param request ExportDataRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public exportData(request: google.cloud.datalabeling.v1beta1.IExportDataRequest, callback: google.cloud.datalabeling.v1beta1.DataLabelingService.ExportDataCallback): void;
+
+ /**
+ * Calls ExportData.
+ * @param request ExportDataRequest message or plain object
+ * @returns Promise
+ */
+ public exportData(request: google.cloud.datalabeling.v1beta1.IExportDataRequest): Promise;
+
+ /**
+ * Calls GetDataItem.
+ * @param request GetDataItemRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and DataItem
+ */
+ public getDataItem(request: google.cloud.datalabeling.v1beta1.IGetDataItemRequest, callback: google.cloud.datalabeling.v1beta1.DataLabelingService.GetDataItemCallback): void;
+
+ /**
+ * Calls GetDataItem.
+ * @param request GetDataItemRequest message or plain object
+ * @returns Promise
+ */
+ public getDataItem(request: google.cloud.datalabeling.v1beta1.IGetDataItemRequest): Promise;
+
+ /**
+ * Calls ListDataItems.
+ * @param request ListDataItemsRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListDataItemsResponse
+ */
+ public listDataItems(request: google.cloud.datalabeling.v1beta1.IListDataItemsRequest, callback: google.cloud.datalabeling.v1beta1.DataLabelingService.ListDataItemsCallback): void;
+
+ /**
+ * Calls ListDataItems.
+ * @param request ListDataItemsRequest message or plain object
+ * @returns Promise
+ */
+ public listDataItems(request: google.cloud.datalabeling.v1beta1.IListDataItemsRequest): Promise;
+
+ /**
+ * Calls GetAnnotatedDataset.
+ * @param request GetAnnotatedDatasetRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and AnnotatedDataset
+ */
+ public getAnnotatedDataset(request: google.cloud.datalabeling.v1beta1.IGetAnnotatedDatasetRequest, callback: google.cloud.datalabeling.v1beta1.DataLabelingService.GetAnnotatedDatasetCallback): void;
+
+ /**
+ * Calls GetAnnotatedDataset.
+ * @param request GetAnnotatedDatasetRequest message or plain object
+ * @returns Promise
+ */
+ public getAnnotatedDataset(request: google.cloud.datalabeling.v1beta1.IGetAnnotatedDatasetRequest): Promise;
+
+ /**
+ * Calls ListAnnotatedDatasets.
+ * @param request ListAnnotatedDatasetsRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListAnnotatedDatasetsResponse
+ */
+ public listAnnotatedDatasets(request: google.cloud.datalabeling.v1beta1.IListAnnotatedDatasetsRequest, callback: google.cloud.datalabeling.v1beta1.DataLabelingService.ListAnnotatedDatasetsCallback): void;
+
+ /**
+ * Calls ListAnnotatedDatasets.
+ * @param request ListAnnotatedDatasetsRequest message or plain object
+ * @returns Promise
+ */
+ public listAnnotatedDatasets(request: google.cloud.datalabeling.v1beta1.IListAnnotatedDatasetsRequest): Promise;
+
+ /**
+ * Calls DeleteAnnotatedDataset.
+ * @param request DeleteAnnotatedDatasetRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Empty
+ */
+ public deleteAnnotatedDataset(request: google.cloud.datalabeling.v1beta1.IDeleteAnnotatedDatasetRequest, callback: google.cloud.datalabeling.v1beta1.DataLabelingService.DeleteAnnotatedDatasetCallback): void;
+
+ /**
+ * Calls DeleteAnnotatedDataset.
+ * @param request DeleteAnnotatedDatasetRequest message or plain object
+ * @returns Promise
+ */
+ public deleteAnnotatedDataset(request: google.cloud.datalabeling.v1beta1.IDeleteAnnotatedDatasetRequest): Promise;
+
+ /**
+ * Calls LabelImage.
+ * @param request LabelImageRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public labelImage(request: google.cloud.datalabeling.v1beta1.ILabelImageRequest, callback: google.cloud.datalabeling.v1beta1.DataLabelingService.LabelImageCallback): void;
+
+ /**
+ * Calls LabelImage.
+ * @param request LabelImageRequest message or plain object
+ * @returns Promise
+ */
+ public labelImage(request: google.cloud.datalabeling.v1beta1.ILabelImageRequest): Promise;
+
+ /**
+ * Calls LabelVideo.
+ * @param request LabelVideoRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public labelVideo(request: google.cloud.datalabeling.v1beta1.ILabelVideoRequest, callback: google.cloud.datalabeling.v1beta1.DataLabelingService.LabelVideoCallback): void;
+
+ /**
+ * Calls LabelVideo.
+ * @param request LabelVideoRequest message or plain object
+ * @returns Promise
+ */
+ public labelVideo(request: google.cloud.datalabeling.v1beta1.ILabelVideoRequest): Promise;
+
+ /**
+ * Calls LabelText.
+ * @param request LabelTextRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public labelText(request: google.cloud.datalabeling.v1beta1.ILabelTextRequest, callback: google.cloud.datalabeling.v1beta1.DataLabelingService.LabelTextCallback): void;
+
+ /**
+ * Calls LabelText.
+ * @param request LabelTextRequest message or plain object
+ * @returns Promise
+ */
+ public labelText(request: google.cloud.datalabeling.v1beta1.ILabelTextRequest): Promise;
+
+ /**
+ * Calls GetExample.
+ * @param request GetExampleRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Example
+ */
+ public getExample(request: google.cloud.datalabeling.v1beta1.IGetExampleRequest, callback: google.cloud.datalabeling.v1beta1.DataLabelingService.GetExampleCallback): void;
+
+ /**
+ * Calls GetExample.
+ * @param request GetExampleRequest message or plain object
+ * @returns Promise
+ */
+ public getExample(request: google.cloud.datalabeling.v1beta1.IGetExampleRequest): Promise;
+
+ /**
+ * Calls ListExamples.
+ * @param request ListExamplesRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListExamplesResponse
+ */
+ public listExamples(request: google.cloud.datalabeling.v1beta1.IListExamplesRequest, callback: google.cloud.datalabeling.v1beta1.DataLabelingService.ListExamplesCallback): void;
+
+ /**
+ * Calls ListExamples.
+ * @param request ListExamplesRequest message or plain object
+ * @returns Promise
+ */
+ public listExamples(request: google.cloud.datalabeling.v1beta1.IListExamplesRequest): Promise;
+
+ /**
+ * Calls CreateAnnotationSpecSet.
+ * @param request CreateAnnotationSpecSetRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and AnnotationSpecSet
+ */
+ public createAnnotationSpecSet(request: google.cloud.datalabeling.v1beta1.ICreateAnnotationSpecSetRequest, callback: google.cloud.datalabeling.v1beta1.DataLabelingService.CreateAnnotationSpecSetCallback): void;
+
+ /**
+ * Calls CreateAnnotationSpecSet.
+ * @param request CreateAnnotationSpecSetRequest message or plain object
+ * @returns Promise
+ */
+ public createAnnotationSpecSet(request: google.cloud.datalabeling.v1beta1.ICreateAnnotationSpecSetRequest): Promise;
+
+ /**
+ * Calls GetAnnotationSpecSet.
+ * @param request GetAnnotationSpecSetRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and AnnotationSpecSet
+ */
+ public getAnnotationSpecSet(request: google.cloud.datalabeling.v1beta1.IGetAnnotationSpecSetRequest, callback: google.cloud.datalabeling.v1beta1.DataLabelingService.GetAnnotationSpecSetCallback): void;
+
+ /**
+ * Calls GetAnnotationSpecSet.
+ * @param request GetAnnotationSpecSetRequest message or plain object
+ * @returns Promise
+ */
+ public getAnnotationSpecSet(request: google.cloud.datalabeling.v1beta1.IGetAnnotationSpecSetRequest): Promise;
+
+ /**
+ * Calls ListAnnotationSpecSets.
+ * @param request ListAnnotationSpecSetsRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListAnnotationSpecSetsResponse
+ */
+ public listAnnotationSpecSets(request: google.cloud.datalabeling.v1beta1.IListAnnotationSpecSetsRequest, callback: google.cloud.datalabeling.v1beta1.DataLabelingService.ListAnnotationSpecSetsCallback): void;
+
+ /**
+ * Calls ListAnnotationSpecSets.
+ * @param request ListAnnotationSpecSetsRequest message or plain object
+ * @returns Promise
+ */
+ public listAnnotationSpecSets(request: google.cloud.datalabeling.v1beta1.IListAnnotationSpecSetsRequest): Promise;
+
+ /**
+ * Calls DeleteAnnotationSpecSet.
+ * @param request DeleteAnnotationSpecSetRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Empty
+ */
+ public deleteAnnotationSpecSet(request: google.cloud.datalabeling.v1beta1.IDeleteAnnotationSpecSetRequest, callback: google.cloud.datalabeling.v1beta1.DataLabelingService.DeleteAnnotationSpecSetCallback): void;
+
+ /**
+ * Calls DeleteAnnotationSpecSet.
+ * @param request DeleteAnnotationSpecSetRequest message or plain object
+ * @returns Promise
+ */
+ public deleteAnnotationSpecSet(request: google.cloud.datalabeling.v1beta1.IDeleteAnnotationSpecSetRequest): Promise;
+
+ /**
+ * Calls CreateInstruction.
+ * @param request CreateInstructionRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public createInstruction(request: google.cloud.datalabeling.v1beta1.ICreateInstructionRequest, callback: google.cloud.datalabeling.v1beta1.DataLabelingService.CreateInstructionCallback): void;
+
+ /**
+ * Calls CreateInstruction.
+ * @param request CreateInstructionRequest message or plain object
+ * @returns Promise
+ */
+ public createInstruction(request: google.cloud.datalabeling.v1beta1.ICreateInstructionRequest): Promise;
+
+ /**
+ * Calls GetInstruction.
+ * @param request GetInstructionRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Instruction
+ */
+ public getInstruction(request: google.cloud.datalabeling.v1beta1.IGetInstructionRequest, callback: google.cloud.datalabeling.v1beta1.DataLabelingService.GetInstructionCallback): void;
+
+ /**
+ * Calls GetInstruction.
+ * @param request GetInstructionRequest message or plain object
+ * @returns Promise
+ */
+ public getInstruction(request: google.cloud.datalabeling.v1beta1.IGetInstructionRequest): Promise;
+
+ /**
+ * Calls ListInstructions.
+ * @param request ListInstructionsRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListInstructionsResponse
+ */
+ public listInstructions(request: google.cloud.datalabeling.v1beta1.IListInstructionsRequest, callback: google.cloud.datalabeling.v1beta1.DataLabelingService.ListInstructionsCallback): void;
+
+ /**
+ * Calls ListInstructions.
+ * @param request ListInstructionsRequest message or plain object
+ * @returns Promise
+ */
+ public listInstructions(request: google.cloud.datalabeling.v1beta1.IListInstructionsRequest): Promise;
+
+ /**
+ * Calls DeleteInstruction.
+ * @param request DeleteInstructionRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Empty
+ */
+ public deleteInstruction(request: google.cloud.datalabeling.v1beta1.IDeleteInstructionRequest, callback: google.cloud.datalabeling.v1beta1.DataLabelingService.DeleteInstructionCallback): void;
+
+ /**
+ * Calls DeleteInstruction.
+ * @param request DeleteInstructionRequest message or plain object
+ * @returns Promise
+ */
+ public deleteInstruction(request: google.cloud.datalabeling.v1beta1.IDeleteInstructionRequest): Promise;
+
+ /**
+ * Calls GetEvaluation.
+ * @param request GetEvaluationRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Evaluation
+ */
+ public getEvaluation(request: google.cloud.datalabeling.v1beta1.IGetEvaluationRequest, callback: google.cloud.datalabeling.v1beta1.DataLabelingService.GetEvaluationCallback): void;
+
+ /**
+ * Calls GetEvaluation.
+ * @param request GetEvaluationRequest message or plain object
+ * @returns Promise
+ */
+ public getEvaluation(request: google.cloud.datalabeling.v1beta1.IGetEvaluationRequest): Promise;
+
+ /**
+ * Calls SearchEvaluations.
+ * @param request SearchEvaluationsRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and SearchEvaluationsResponse
+ */
+ public searchEvaluations(request: google.cloud.datalabeling.v1beta1.ISearchEvaluationsRequest, callback: google.cloud.datalabeling.v1beta1.DataLabelingService.SearchEvaluationsCallback): void;
+
+ /**
+ * Calls SearchEvaluations.
+ * @param request SearchEvaluationsRequest message or plain object
+ * @returns Promise
+ */
+ public searchEvaluations(request: google.cloud.datalabeling.v1beta1.ISearchEvaluationsRequest): Promise;
+
+ /**
+ * Calls SearchExampleComparisons.
+ * @param request SearchExampleComparisonsRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and SearchExampleComparisonsResponse
+ */
+ public searchExampleComparisons(request: google.cloud.datalabeling.v1beta1.ISearchExampleComparisonsRequest, callback: google.cloud.datalabeling.v1beta1.DataLabelingService.SearchExampleComparisonsCallback): void;
+
+ /**
+ * Calls SearchExampleComparisons.
+ * @param request SearchExampleComparisonsRequest message or plain object
+ * @returns Promise
+ */
+ public searchExampleComparisons(request: google.cloud.datalabeling.v1beta1.ISearchExampleComparisonsRequest): Promise;
+
+ /**
+ * Calls CreateEvaluationJob.
+ * @param request CreateEvaluationJobRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and EvaluationJob
+ */
+ public createEvaluationJob(request: google.cloud.datalabeling.v1beta1.ICreateEvaluationJobRequest, callback: google.cloud.datalabeling.v1beta1.DataLabelingService.CreateEvaluationJobCallback): void;
+
+ /**
+ * Calls CreateEvaluationJob.
+ * @param request CreateEvaluationJobRequest message or plain object
+ * @returns Promise
+ */
+ public createEvaluationJob(request: google.cloud.datalabeling.v1beta1.ICreateEvaluationJobRequest): Promise;
+
+ /**
+ * Calls UpdateEvaluationJob.
+ * @param request UpdateEvaluationJobRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and EvaluationJob
+ */
+ public updateEvaluationJob(request: google.cloud.datalabeling.v1beta1.IUpdateEvaluationJobRequest, callback: google.cloud.datalabeling.v1beta1.DataLabelingService.UpdateEvaluationJobCallback): void;
+
+ /**
+ * Calls UpdateEvaluationJob.
+ * @param request UpdateEvaluationJobRequest message or plain object
+ * @returns Promise
+ */
+ public updateEvaluationJob(request: google.cloud.datalabeling.v1beta1.IUpdateEvaluationJobRequest): Promise;
+
+ /**
+ * Calls GetEvaluationJob.
+ * @param request GetEvaluationJobRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and EvaluationJob
+ */
+ public getEvaluationJob(request: google.cloud.datalabeling.v1beta1.IGetEvaluationJobRequest, callback: google.cloud.datalabeling.v1beta1.DataLabelingService.GetEvaluationJobCallback): void;
+
+ /**
+ * Calls GetEvaluationJob.
+ * @param request GetEvaluationJobRequest message or plain object
+ * @returns Promise
+ */
+ public getEvaluationJob(request: google.cloud.datalabeling.v1beta1.IGetEvaluationJobRequest): Promise;
+
+ /**
+ * Calls PauseEvaluationJob.
+ * @param request PauseEvaluationJobRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Empty
+ */
+ public pauseEvaluationJob(request: google.cloud.datalabeling.v1beta1.IPauseEvaluationJobRequest, callback: google.cloud.datalabeling.v1beta1.DataLabelingService.PauseEvaluationJobCallback): void;
+
+ /**
+ * Calls PauseEvaluationJob.
+ * @param request PauseEvaluationJobRequest message or plain object
+ * @returns Promise
+ */
+ public pauseEvaluationJob(request: google.cloud.datalabeling.v1beta1.IPauseEvaluationJobRequest): Promise;
+
+ /**
+ * Calls ResumeEvaluationJob.
+ * @param request ResumeEvaluationJobRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Empty
+ */
+ public resumeEvaluationJob(request: google.cloud.datalabeling.v1beta1.IResumeEvaluationJobRequest, callback: google.cloud.datalabeling.v1beta1.DataLabelingService.ResumeEvaluationJobCallback): void;
+
+ /**
+ * Calls ResumeEvaluationJob.
+ * @param request ResumeEvaluationJobRequest message or plain object
+ * @returns Promise
+ */
+ public resumeEvaluationJob(request: google.cloud.datalabeling.v1beta1.IResumeEvaluationJobRequest): Promise;
+
+ /**
+ * Calls DeleteEvaluationJob.
+ * @param request DeleteEvaluationJobRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Empty
+ */
+ public deleteEvaluationJob(request: google.cloud.datalabeling.v1beta1.IDeleteEvaluationJobRequest, callback: google.cloud.datalabeling.v1beta1.DataLabelingService.DeleteEvaluationJobCallback): void;
+
+ /**
+ * Calls DeleteEvaluationJob.
+ * @param request DeleteEvaluationJobRequest message or plain object
+ * @returns Promise
+ */
+ public deleteEvaluationJob(request: google.cloud.datalabeling.v1beta1.IDeleteEvaluationJobRequest): Promise;
+
+ /**
+ * Calls ListEvaluationJobs.
+ * @param request ListEvaluationJobsRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListEvaluationJobsResponse
+ */
+ public listEvaluationJobs(request: google.cloud.datalabeling.v1beta1.IListEvaluationJobsRequest, callback: google.cloud.datalabeling.v1beta1.DataLabelingService.ListEvaluationJobsCallback): void;
+
+ /**
+ * Calls ListEvaluationJobs.
+ * @param request ListEvaluationJobsRequest message or plain object
+ * @returns Promise
+ */
+ public listEvaluationJobs(request: google.cloud.datalabeling.v1beta1.IListEvaluationJobsRequest): Promise;
+ }
+
+ namespace DataLabelingService {
+
+ /**
+ * Callback as used by {@link google.cloud.datalabeling.v1beta1.DataLabelingService|createDataset}.
+ * @param error Error, if any
+ * @param [response] Dataset
+ */
+ type CreateDatasetCallback = (error: (Error|null), response?: google.cloud.datalabeling.v1beta1.Dataset) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.datalabeling.v1beta1.DataLabelingService|getDataset}.
+ * @param error Error, if any
+ * @param [response] Dataset
+ */
+ type GetDatasetCallback = (error: (Error|null), response?: google.cloud.datalabeling.v1beta1.Dataset) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.datalabeling.v1beta1.DataLabelingService|listDatasets}.
+ * @param error Error, if any
+ * @param [response] ListDatasetsResponse
+ */
+ type ListDatasetsCallback = (error: (Error|null), response?: google.cloud.datalabeling.v1beta1.ListDatasetsResponse) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.datalabeling.v1beta1.DataLabelingService|deleteDataset}.
+ * @param error Error, if any
+ * @param [response] Empty
+ */
+ type DeleteDatasetCallback = (error: (Error|null), response?: google.protobuf.Empty) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.datalabeling.v1beta1.DataLabelingService|importData}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type ImportDataCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.datalabeling.v1beta1.DataLabelingService|exportData}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type ExportDataCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.datalabeling.v1beta1.DataLabelingService|getDataItem}.
+ * @param error Error, if any
+ * @param [response] DataItem
+ */
+ type GetDataItemCallback = (error: (Error|null), response?: google.cloud.datalabeling.v1beta1.DataItem) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.datalabeling.v1beta1.DataLabelingService|listDataItems}.
+ * @param error Error, if any
+ * @param [response] ListDataItemsResponse
+ */
+ type ListDataItemsCallback = (error: (Error|null), response?: google.cloud.datalabeling.v1beta1.ListDataItemsResponse) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.datalabeling.v1beta1.DataLabelingService|getAnnotatedDataset}.
+ * @param error Error, if any
+ * @param [response] AnnotatedDataset
+ */
+ type GetAnnotatedDatasetCallback = (error: (Error|null), response?: google.cloud.datalabeling.v1beta1.AnnotatedDataset) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.datalabeling.v1beta1.DataLabelingService|listAnnotatedDatasets}.
+ * @param error Error, if any
+ * @param [response] ListAnnotatedDatasetsResponse
+ */
+ type ListAnnotatedDatasetsCallback = (error: (Error|null), response?: google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.datalabeling.v1beta1.DataLabelingService|deleteAnnotatedDataset}.
+ * @param error Error, if any
+ * @param [response] Empty
+ */
+ type DeleteAnnotatedDatasetCallback = (error: (Error|null), response?: google.protobuf.Empty) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.datalabeling.v1beta1.DataLabelingService|labelImage}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type LabelImageCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.datalabeling.v1beta1.DataLabelingService|labelVideo}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type LabelVideoCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.datalabeling.v1beta1.DataLabelingService|labelText}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type LabelTextCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.datalabeling.v1beta1.DataLabelingService|getExample}.
+ * @param error Error, if any
+ * @param [response] Example
+ */
+ type GetExampleCallback = (error: (Error|null), response?: google.cloud.datalabeling.v1beta1.Example) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.datalabeling.v1beta1.DataLabelingService|listExamples}.
+ * @param error Error, if any
+ * @param [response] ListExamplesResponse
+ */
+ type ListExamplesCallback = (error: (Error|null), response?: google.cloud.datalabeling.v1beta1.ListExamplesResponse) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.datalabeling.v1beta1.DataLabelingService|createAnnotationSpecSet}.
+ * @param error Error, if any
+ * @param [response] AnnotationSpecSet
+ */
+ type CreateAnnotationSpecSetCallback = (error: (Error|null), response?: google.cloud.datalabeling.v1beta1.AnnotationSpecSet) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.datalabeling.v1beta1.DataLabelingService|getAnnotationSpecSet}.
+ * @param error Error, if any
+ * @param [response] AnnotationSpecSet
+ */
+ type GetAnnotationSpecSetCallback = (error: (Error|null), response?: google.cloud.datalabeling.v1beta1.AnnotationSpecSet) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.datalabeling.v1beta1.DataLabelingService|listAnnotationSpecSets}.
+ * @param error Error, if any
+ * @param [response] ListAnnotationSpecSetsResponse
+ */
+ type ListAnnotationSpecSetsCallback = (error: (Error|null), response?: google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.datalabeling.v1beta1.DataLabelingService|deleteAnnotationSpecSet}.
+ * @param error Error, if any
+ * @param [response] Empty
+ */
+ type DeleteAnnotationSpecSetCallback = (error: (Error|null), response?: google.protobuf.Empty) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.datalabeling.v1beta1.DataLabelingService|createInstruction}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type CreateInstructionCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.datalabeling.v1beta1.DataLabelingService|getInstruction}.
+ * @param error Error, if any
+ * @param [response] Instruction
+ */
+ type GetInstructionCallback = (error: (Error|null), response?: google.cloud.datalabeling.v1beta1.Instruction) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.datalabeling.v1beta1.DataLabelingService|listInstructions}.
+ * @param error Error, if any
+ * @param [response] ListInstructionsResponse
+ */
+ type ListInstructionsCallback = (error: (Error|null), response?: google.cloud.datalabeling.v1beta1.ListInstructionsResponse) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.datalabeling.v1beta1.DataLabelingService|deleteInstruction}.
+ * @param error Error, if any
+ * @param [response] Empty
+ */
+ type DeleteInstructionCallback = (error: (Error|null), response?: google.protobuf.Empty) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.datalabeling.v1beta1.DataLabelingService|getEvaluation}.
+ * @param error Error, if any
+ * @param [response] Evaluation
+ */
+ type GetEvaluationCallback = (error: (Error|null), response?: google.cloud.datalabeling.v1beta1.Evaluation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.datalabeling.v1beta1.DataLabelingService|searchEvaluations}.
+ * @param error Error, if any
+ * @param [response] SearchEvaluationsResponse
+ */
+ type SearchEvaluationsCallback = (error: (Error|null), response?: google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.datalabeling.v1beta1.DataLabelingService|searchExampleComparisons}.
+ * @param error Error, if any
+ * @param [response] SearchExampleComparisonsResponse
+ */
+ type SearchExampleComparisonsCallback = (error: (Error|null), response?: google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.datalabeling.v1beta1.DataLabelingService|createEvaluationJob}.
+ * @param error Error, if any
+ * @param [response] EvaluationJob
+ */
+ type CreateEvaluationJobCallback = (error: (Error|null), response?: google.cloud.datalabeling.v1beta1.EvaluationJob) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.datalabeling.v1beta1.DataLabelingService|updateEvaluationJob}.
+ * @param error Error, if any
+ * @param [response] EvaluationJob
+ */
+ type UpdateEvaluationJobCallback = (error: (Error|null), response?: google.cloud.datalabeling.v1beta1.EvaluationJob) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.datalabeling.v1beta1.DataLabelingService|getEvaluationJob}.
+ * @param error Error, if any
+ * @param [response] EvaluationJob
+ */
+ type GetEvaluationJobCallback = (error: (Error|null), response?: google.cloud.datalabeling.v1beta1.EvaluationJob) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.datalabeling.v1beta1.DataLabelingService|pauseEvaluationJob}.
+ * @param error Error, if any
+ * @param [response] Empty
+ */
+ type PauseEvaluationJobCallback = (error: (Error|null), response?: google.protobuf.Empty) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.datalabeling.v1beta1.DataLabelingService|resumeEvaluationJob}.
+ * @param error Error, if any
+ * @param [response] Empty
+ */
+ type ResumeEvaluationJobCallback = (error: (Error|null), response?: google.protobuf.Empty) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.datalabeling.v1beta1.DataLabelingService|deleteEvaluationJob}.
+ * @param error Error, if any
+ * @param [response] Empty
+ */
+ type DeleteEvaluationJobCallback = (error: (Error|null), response?: google.protobuf.Empty) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.datalabeling.v1beta1.DataLabelingService|listEvaluationJobs}.
+ * @param error Error, if any
+ * @param [response] ListEvaluationJobsResponse
+ */
+ type ListEvaluationJobsCallback = (error: (Error|null), response?: google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse) => void;
+ }
+
+ /** Properties of a CreateDatasetRequest. */
+ interface ICreateDatasetRequest {
+
+ /** CreateDatasetRequest parent */
+ parent?: (string|null);
+
+ /** CreateDatasetRequest dataset */
+ dataset?: (google.cloud.datalabeling.v1beta1.IDataset|null);
+ }
+
+ /** Represents a CreateDatasetRequest. */
+ class CreateDatasetRequest implements ICreateDatasetRequest {
+
+ /**
+ * Constructs a new CreateDatasetRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.datalabeling.v1beta1.ICreateDatasetRequest);
+
+ /** CreateDatasetRequest parent. */
+ public parent: string;
+
+ /** CreateDatasetRequest dataset. */
+ public dataset?: (google.cloud.datalabeling.v1beta1.IDataset|null);
+
+ /**
+ * Creates a new CreateDatasetRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CreateDatasetRequest instance
+ */
+ public static create(properties?: google.cloud.datalabeling.v1beta1.ICreateDatasetRequest): google.cloud.datalabeling.v1beta1.CreateDatasetRequest;
+
+ /**
+ * Encodes the specified CreateDatasetRequest message. Does not implicitly {@link google.cloud.datalabeling.v1beta1.CreateDatasetRequest.verify|verify} messages.
+ * @param message CreateDatasetRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.datalabeling.v1beta1.ICreateDatasetRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CreateDatasetRequest message, length delimited. Does not implicitly {@link google.cloud.datalabeling.v1beta1.CreateDatasetRequest.verify|verify} messages.
+ * @param message CreateDatasetRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.datalabeling.v1beta1.ICreateDatasetRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CreateDatasetRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CreateDatasetRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.datalabeling.v1beta1.CreateDatasetRequest;
+
+ /**
+ * Decodes a CreateDatasetRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CreateDatasetRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.datalabeling.v1beta1.CreateDatasetRequest;
+
+ /**
+ * Verifies a CreateDatasetRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a CreateDatasetRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CreateDatasetRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.datalabeling.v1beta1.CreateDatasetRequest;
+
+ /**
+ * Creates a plain object from a CreateDatasetRequest message. Also converts values to other types if specified.
+ * @param message CreateDatasetRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.datalabeling.v1beta1.CreateDatasetRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CreateDatasetRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CreateDatasetRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GetDatasetRequest. */
+ interface IGetDatasetRequest {
+
+ /** GetDatasetRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a GetDatasetRequest. */
+ class GetDatasetRequest implements IGetDatasetRequest {
+
+ /**
+ * Constructs a new GetDatasetRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.datalabeling.v1beta1.IGetDatasetRequest);
+
+ /** GetDatasetRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new GetDatasetRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetDatasetRequest instance
+ */
+ public static create(properties?: google.cloud.datalabeling.v1beta1.IGetDatasetRequest): google.cloud.datalabeling.v1beta1.GetDatasetRequest;
+
+ /**
+ * Encodes the specified GetDatasetRequest message. Does not implicitly {@link google.cloud.datalabeling.v1beta1.GetDatasetRequest.verify|verify} messages.
+ * @param message GetDatasetRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.datalabeling.v1beta1.IGetDatasetRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetDatasetRequest message, length delimited. Does not implicitly {@link google.cloud.datalabeling.v1beta1.GetDatasetRequest.verify|verify} messages.
+ * @param message GetDatasetRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.datalabeling.v1beta1.IGetDatasetRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetDatasetRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetDatasetRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.datalabeling.v1beta1.GetDatasetRequest;
+
+ /**
+ * Decodes a GetDatasetRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetDatasetRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.datalabeling.v1beta1.GetDatasetRequest;
+
+ /**
+ * Verifies a GetDatasetRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GetDatasetRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetDatasetRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.datalabeling.v1beta1.GetDatasetRequest;
+
+ /**
+ * Creates a plain object from a GetDatasetRequest message. Also converts values to other types if specified.
+ * @param message GetDatasetRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.datalabeling.v1beta1.GetDatasetRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetDatasetRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetDatasetRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListDatasetsRequest. */
+ interface IListDatasetsRequest {
+
+ /** ListDatasetsRequest parent */
+ parent?: (string|null);
+
+ /** ListDatasetsRequest filter */
+ filter?: (string|null);
+
+ /** ListDatasetsRequest pageSize */
+ pageSize?: (number|null);
+
+ /** ListDatasetsRequest pageToken */
+ pageToken?: (string|null);
+ }
+
+ /** Represents a ListDatasetsRequest. */
+ class ListDatasetsRequest implements IListDatasetsRequest {
+
+ /**
+ * Constructs a new ListDatasetsRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.datalabeling.v1beta1.IListDatasetsRequest);
+
+ /** ListDatasetsRequest parent. */
+ public parent: string;
+
+ /** ListDatasetsRequest filter. */
+ public filter: string;
+
+ /** ListDatasetsRequest pageSize. */
+ public pageSize: number;
+
+ /** ListDatasetsRequest pageToken. */
+ public pageToken: string;
+
+ /**
+ * Creates a new ListDatasetsRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListDatasetsRequest instance
+ */
+ public static create(properties?: google.cloud.datalabeling.v1beta1.IListDatasetsRequest): google.cloud.datalabeling.v1beta1.ListDatasetsRequest;
+
+ /**
+ * Encodes the specified ListDatasetsRequest message. Does not implicitly {@link google.cloud.datalabeling.v1beta1.ListDatasetsRequest.verify|verify} messages.
+ * @param message ListDatasetsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.datalabeling.v1beta1.IListDatasetsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListDatasetsRequest message, length delimited. Does not implicitly {@link google.cloud.datalabeling.v1beta1.ListDatasetsRequest.verify|verify} messages.
+ * @param message ListDatasetsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.datalabeling.v1beta1.IListDatasetsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListDatasetsRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListDatasetsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.datalabeling.v1beta1.ListDatasetsRequest;
+
+ /**
+ * Decodes a ListDatasetsRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListDatasetsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.datalabeling.v1beta1.ListDatasetsRequest;
+
+ /**
+ * Verifies a ListDatasetsRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListDatasetsRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListDatasetsRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.datalabeling.v1beta1.ListDatasetsRequest;
+
+ /**
+ * Creates a plain object from a ListDatasetsRequest message. Also converts values to other types if specified.
+ * @param message ListDatasetsRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.datalabeling.v1beta1.ListDatasetsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListDatasetsRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListDatasetsRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListDatasetsResponse. */
+ interface IListDatasetsResponse {
+
+ /** ListDatasetsResponse datasets */
+ datasets?: (google.cloud.datalabeling.v1beta1.IDataset[]|null);
+
+ /** ListDatasetsResponse nextPageToken */
+ nextPageToken?: (string|null);
+ }
+
+ /** Represents a ListDatasetsResponse. */
+ class ListDatasetsResponse implements IListDatasetsResponse {
+
+ /**
+ * Constructs a new ListDatasetsResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.datalabeling.v1beta1.IListDatasetsResponse);
+
+ /** ListDatasetsResponse datasets. */
+ public datasets: google.cloud.datalabeling.v1beta1.IDataset[];
+
+ /** ListDatasetsResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /**
+ * Creates a new ListDatasetsResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListDatasetsResponse instance
+ */
+ public static create(properties?: google.cloud.datalabeling.v1beta1.IListDatasetsResponse): google.cloud.datalabeling.v1beta1.ListDatasetsResponse;
+
+ /**
+ * Encodes the specified ListDatasetsResponse message. Does not implicitly {@link google.cloud.datalabeling.v1beta1.ListDatasetsResponse.verify|verify} messages.
+ * @param message ListDatasetsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.datalabeling.v1beta1.IListDatasetsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListDatasetsResponse message, length delimited. Does not implicitly {@link google.cloud.datalabeling.v1beta1.ListDatasetsResponse.verify|verify} messages.
+ * @param message ListDatasetsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.datalabeling.v1beta1.IListDatasetsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListDatasetsResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListDatasetsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.datalabeling.v1beta1.ListDatasetsResponse;
+
+ /**
+ * Decodes a ListDatasetsResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListDatasetsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.datalabeling.v1beta1.ListDatasetsResponse;
+
+ /**
+ * Verifies a ListDatasetsResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListDatasetsResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListDatasetsResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.datalabeling.v1beta1.ListDatasetsResponse;
+
+ /**
+ * Creates a plain object from a ListDatasetsResponse message. Also converts values to other types if specified.
+ * @param message ListDatasetsResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.datalabeling.v1beta1.ListDatasetsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListDatasetsResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListDatasetsResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DeleteDatasetRequest. */
+ interface IDeleteDatasetRequest {
+
+ /** DeleteDatasetRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a DeleteDatasetRequest. */
+ class DeleteDatasetRequest implements IDeleteDatasetRequest {
+
+ /**
+ * Constructs a new DeleteDatasetRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.datalabeling.v1beta1.IDeleteDatasetRequest);
+
+ /** DeleteDatasetRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new DeleteDatasetRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DeleteDatasetRequest instance
+ */
+ public static create(properties?: google.cloud.datalabeling.v1beta1.IDeleteDatasetRequest): google.cloud.datalabeling.v1beta1.DeleteDatasetRequest;
+
+ /**
+ * Encodes the specified DeleteDatasetRequest message. Does not implicitly {@link google.cloud.datalabeling.v1beta1.DeleteDatasetRequest.verify|verify} messages.
+ * @param message DeleteDatasetRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.datalabeling.v1beta1.IDeleteDatasetRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DeleteDatasetRequest message, length delimited. Does not implicitly {@link google.cloud.datalabeling.v1beta1.DeleteDatasetRequest.verify|verify} messages.
+ * @param message DeleteDatasetRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.datalabeling.v1beta1.IDeleteDatasetRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DeleteDatasetRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DeleteDatasetRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.datalabeling.v1beta1.DeleteDatasetRequest;
+
+ /**
+ * Decodes a DeleteDatasetRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DeleteDatasetRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.datalabeling.v1beta1.DeleteDatasetRequest;
+
+ /**
+ * Verifies a DeleteDatasetRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DeleteDatasetRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DeleteDatasetRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.datalabeling.v1beta1.DeleteDatasetRequest;
+
+ /**
+ * Creates a plain object from a DeleteDatasetRequest message. Also converts values to other types if specified.
+ * @param message DeleteDatasetRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.datalabeling.v1beta1.DeleteDatasetRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DeleteDatasetRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DeleteDatasetRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an ImportDataRequest. */
+ interface IImportDataRequest {
+
+ /** ImportDataRequest name */
+ name?: (string|null);
+
+ /** ImportDataRequest inputConfig */
+ inputConfig?: (google.cloud.datalabeling.v1beta1.IInputConfig|null);
+
+ /** ImportDataRequest userEmailAddress */
+ userEmailAddress?: (string|null);
+ }
+
+ /** Represents an ImportDataRequest. */
+ class ImportDataRequest implements IImportDataRequest {
+
+ /**
+ * Constructs a new ImportDataRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.datalabeling.v1beta1.IImportDataRequest);
+
+ /** ImportDataRequest name. */
+ public name: string;
+
+ /** ImportDataRequest inputConfig. */
+ public inputConfig?: (google.cloud.datalabeling.v1beta1.IInputConfig|null);
+
+ /** ImportDataRequest userEmailAddress. */
+ public userEmailAddress: string;
+
+ /**
+ * Creates a new ImportDataRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ImportDataRequest instance
+ */
+ public static create(properties?: google.cloud.datalabeling.v1beta1.IImportDataRequest): google.cloud.datalabeling.v1beta1.ImportDataRequest;
+
+ /**
+ * Encodes the specified ImportDataRequest message. Does not implicitly {@link google.cloud.datalabeling.v1beta1.ImportDataRequest.verify|verify} messages.
+ * @param message ImportDataRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.datalabeling.v1beta1.IImportDataRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ImportDataRequest message, length delimited. Does not implicitly {@link google.cloud.datalabeling.v1beta1.ImportDataRequest.verify|verify} messages.
+ * @param message ImportDataRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.datalabeling.v1beta1.IImportDataRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an ImportDataRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ImportDataRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.datalabeling.v1beta1.ImportDataRequest;
+
+ /**
+ * Decodes an ImportDataRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ImportDataRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.datalabeling.v1beta1.ImportDataRequest;
+
+ /**
+ * Verifies an ImportDataRequest message.
+ * @param message Plain 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 ImportDataRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ImportDataRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.datalabeling.v1beta1.ImportDataRequest;
+
+ /**
+ * Creates a plain object from an ImportDataRequest message. Also converts values to other types if specified.
+ * @param message ImportDataRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.datalabeling.v1beta1.ImportDataRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ImportDataRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ImportDataRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an ExportDataRequest. */
+ interface IExportDataRequest {
+
+ /** ExportDataRequest name */
+ name?: (string|null);
+
+ /** ExportDataRequest annotatedDataset */
+ annotatedDataset?: (string|null);
+
+ /** ExportDataRequest filter */
+ filter?: (string|null);
+
+ /** ExportDataRequest outputConfig */
+ outputConfig?: (google.cloud.datalabeling.v1beta1.IOutputConfig|null);
+
+ /** ExportDataRequest userEmailAddress */
+ userEmailAddress?: (string|null);
+ }
+
+ /** Represents an ExportDataRequest. */
+ class ExportDataRequest implements IExportDataRequest {
+
+ /**
+ * Constructs a new ExportDataRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.datalabeling.v1beta1.IExportDataRequest);
+
+ /** ExportDataRequest name. */
+ public name: string;
+
+ /** ExportDataRequest annotatedDataset. */
+ public annotatedDataset: string;
+
+ /** ExportDataRequest filter. */
+ public filter: string;
+
+ /** ExportDataRequest outputConfig. */
+ public outputConfig?: (google.cloud.datalabeling.v1beta1.IOutputConfig|null);
+
+ /** ExportDataRequest userEmailAddress. */
+ public userEmailAddress: string;
+
+ /**
+ * Creates a new ExportDataRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ExportDataRequest instance
+ */
+ public static create(properties?: google.cloud.datalabeling.v1beta1.IExportDataRequest): google.cloud.datalabeling.v1beta1.ExportDataRequest;
+
+ /**
+ * Encodes the specified ExportDataRequest message. Does not implicitly {@link google.cloud.datalabeling.v1beta1.ExportDataRequest.verify|verify} messages.
+ * @param message ExportDataRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.datalabeling.v1beta1.IExportDataRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ExportDataRequest message, length delimited. Does not implicitly {@link google.cloud.datalabeling.v1beta1.ExportDataRequest.verify|verify} messages.
+ * @param message ExportDataRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.datalabeling.v1beta1.IExportDataRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an ExportDataRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ExportDataRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.datalabeling.v1beta1.ExportDataRequest;
+
+ /**
+ * Decodes an ExportDataRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ExportDataRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.datalabeling.v1beta1.ExportDataRequest;
+
+ /**
+ * Verifies an ExportDataRequest message.
+ * @param message Plain 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 ExportDataRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ExportDataRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.datalabeling.v1beta1.ExportDataRequest;
+
+ /**
+ * Creates a plain object from an ExportDataRequest message. Also converts values to other types if specified.
+ * @param message ExportDataRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.datalabeling.v1beta1.ExportDataRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ExportDataRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ExportDataRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GetDataItemRequest. */
+ interface IGetDataItemRequest {
+
+ /** GetDataItemRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a GetDataItemRequest. */
+ class GetDataItemRequest implements IGetDataItemRequest {
+
+ /**
+ * Constructs a new GetDataItemRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.datalabeling.v1beta1.IGetDataItemRequest);
+
+ /** GetDataItemRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new GetDataItemRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetDataItemRequest instance
+ */
+ public static create(properties?: google.cloud.datalabeling.v1beta1.IGetDataItemRequest): google.cloud.datalabeling.v1beta1.GetDataItemRequest;
+
+ /**
+ * Encodes the specified GetDataItemRequest message. Does not implicitly {@link google.cloud.datalabeling.v1beta1.GetDataItemRequest.verify|verify} messages.
+ * @param message GetDataItemRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.datalabeling.v1beta1.IGetDataItemRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetDataItemRequest message, length delimited. Does not implicitly {@link google.cloud.datalabeling.v1beta1.GetDataItemRequest.verify|verify} messages.
+ * @param message GetDataItemRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.datalabeling.v1beta1.IGetDataItemRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetDataItemRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetDataItemRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.datalabeling.v1beta1.GetDataItemRequest;
+
+ /**
+ * Decodes a GetDataItemRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetDataItemRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.datalabeling.v1beta1.GetDataItemRequest;
+
+ /**
+ * Verifies a GetDataItemRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GetDataItemRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetDataItemRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.datalabeling.v1beta1.GetDataItemRequest;
+
+ /**
+ * Creates a plain object from a GetDataItemRequest message. Also converts values to other types if specified.
+ * @param message GetDataItemRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.datalabeling.v1beta1.GetDataItemRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetDataItemRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetDataItemRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListDataItemsRequest. */
+ interface IListDataItemsRequest {
+
+ /** ListDataItemsRequest parent */
+ parent?: (string|null);
+
+ /** ListDataItemsRequest filter */
+ filter?: (string|null);
+
+ /** ListDataItemsRequest pageSize */
+ pageSize?: (number|null);
+
+ /** ListDataItemsRequest pageToken */
+ pageToken?: (string|null);
+ }
+
+ /** Represents a ListDataItemsRequest. */
+ class ListDataItemsRequest implements IListDataItemsRequest {
+
+ /**
+ * Constructs a new ListDataItemsRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.datalabeling.v1beta1.IListDataItemsRequest);
+
+ /** ListDataItemsRequest parent. */
+ public parent: string;
+
+ /** ListDataItemsRequest filter. */
+ public filter: string;
+
+ /** ListDataItemsRequest pageSize. */
+ public pageSize: number;
+
+ /** ListDataItemsRequest pageToken. */
+ public pageToken: string;
+
+ /**
+ * Creates a new ListDataItemsRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListDataItemsRequest instance
+ */
+ public static create(properties?: google.cloud.datalabeling.v1beta1.IListDataItemsRequest): google.cloud.datalabeling.v1beta1.ListDataItemsRequest;
+
+ /**
+ * Encodes the specified ListDataItemsRequest message. Does not implicitly {@link google.cloud.datalabeling.v1beta1.ListDataItemsRequest.verify|verify} messages.
+ * @param message ListDataItemsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.datalabeling.v1beta1.IListDataItemsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListDataItemsRequest message, length delimited. Does not implicitly {@link google.cloud.datalabeling.v1beta1.ListDataItemsRequest.verify|verify} messages.
+ * @param message ListDataItemsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.datalabeling.v1beta1.IListDataItemsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListDataItemsRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListDataItemsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.datalabeling.v1beta1.ListDataItemsRequest;
+
+ /**
+ * Decodes a ListDataItemsRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListDataItemsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.datalabeling.v1beta1.ListDataItemsRequest;
+
+ /**
+ * Verifies a ListDataItemsRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListDataItemsRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListDataItemsRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.datalabeling.v1beta1.ListDataItemsRequest;
+
+ /**
+ * Creates a plain object from a ListDataItemsRequest message. Also converts values to other types if specified.
+ * @param message ListDataItemsRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.datalabeling.v1beta1.ListDataItemsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListDataItemsRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListDataItemsRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListDataItemsResponse. */
+ interface IListDataItemsResponse {
+
+ /** ListDataItemsResponse dataItems */
+ dataItems?: (google.cloud.datalabeling.v1beta1.IDataItem[]|null);
+
+ /** ListDataItemsResponse nextPageToken */
+ nextPageToken?: (string|null);
+ }
+
+ /** Represents a ListDataItemsResponse. */
+ class ListDataItemsResponse implements IListDataItemsResponse {
+
+ /**
+ * Constructs a new ListDataItemsResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.datalabeling.v1beta1.IListDataItemsResponse);
+
+ /** ListDataItemsResponse dataItems. */
+ public dataItems: google.cloud.datalabeling.v1beta1.IDataItem[];
+
+ /** ListDataItemsResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /**
+ * Creates a new ListDataItemsResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListDataItemsResponse instance
+ */
+ public static create(properties?: google.cloud.datalabeling.v1beta1.IListDataItemsResponse): google.cloud.datalabeling.v1beta1.ListDataItemsResponse;
+
+ /**
+ * Encodes the specified ListDataItemsResponse message. Does not implicitly {@link google.cloud.datalabeling.v1beta1.ListDataItemsResponse.verify|verify} messages.
+ * @param message ListDataItemsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.datalabeling.v1beta1.IListDataItemsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListDataItemsResponse message, length delimited. Does not implicitly {@link google.cloud.datalabeling.v1beta1.ListDataItemsResponse.verify|verify} messages.
+ * @param message ListDataItemsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.datalabeling.v1beta1.IListDataItemsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListDataItemsResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListDataItemsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.datalabeling.v1beta1.ListDataItemsResponse;
+
+ /**
+ * Decodes a ListDataItemsResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListDataItemsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.datalabeling.v1beta1.ListDataItemsResponse;
+
+ /**
+ * Verifies a ListDataItemsResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListDataItemsResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListDataItemsResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.datalabeling.v1beta1.ListDataItemsResponse;
+
+ /**
+ * Creates a plain object from a ListDataItemsResponse message. Also converts values to other types if specified.
+ * @param message ListDataItemsResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.datalabeling.v1beta1.ListDataItemsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListDataItemsResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListDataItemsResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GetAnnotatedDatasetRequest. */
+ interface IGetAnnotatedDatasetRequest {
+
+ /** GetAnnotatedDatasetRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a GetAnnotatedDatasetRequest. */
+ class GetAnnotatedDatasetRequest implements IGetAnnotatedDatasetRequest {
+
+ /**
+ * Constructs a new GetAnnotatedDatasetRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.datalabeling.v1beta1.IGetAnnotatedDatasetRequest);
+
+ /** GetAnnotatedDatasetRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new GetAnnotatedDatasetRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetAnnotatedDatasetRequest instance
+ */
+ public static create(properties?: google.cloud.datalabeling.v1beta1.IGetAnnotatedDatasetRequest): google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest;
+
+ /**
+ * Encodes the specified GetAnnotatedDatasetRequest message. Does not implicitly {@link google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest.verify|verify} messages.
+ * @param message GetAnnotatedDatasetRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.datalabeling.v1beta1.IGetAnnotatedDatasetRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetAnnotatedDatasetRequest message, length delimited. Does not implicitly {@link google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest.verify|verify} messages.
+ * @param message GetAnnotatedDatasetRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.datalabeling.v1beta1.IGetAnnotatedDatasetRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetAnnotatedDatasetRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetAnnotatedDatasetRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest;
+
+ /**
+ * Decodes a GetAnnotatedDatasetRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetAnnotatedDatasetRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest;
+
+ /**
+ * Verifies a GetAnnotatedDatasetRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GetAnnotatedDatasetRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetAnnotatedDatasetRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest;
+
+ /**
+ * Creates a plain object from a GetAnnotatedDatasetRequest message. Also converts values to other types if specified.
+ * @param message GetAnnotatedDatasetRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetAnnotatedDatasetRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetAnnotatedDatasetRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListAnnotatedDatasetsRequest. */
+ interface IListAnnotatedDatasetsRequest {
+
+ /** ListAnnotatedDatasetsRequest parent */
+ parent?: (string|null);
+
+ /** ListAnnotatedDatasetsRequest filter */
+ filter?: (string|null);
+
+ /** ListAnnotatedDatasetsRequest pageSize */
+ pageSize?: (number|null);
+
+ /** ListAnnotatedDatasetsRequest pageToken */
+ pageToken?: (string|null);
+ }
+
+ /** Represents a ListAnnotatedDatasetsRequest. */
+ class ListAnnotatedDatasetsRequest implements IListAnnotatedDatasetsRequest {
+
+ /**
+ * Constructs a new ListAnnotatedDatasetsRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.datalabeling.v1beta1.IListAnnotatedDatasetsRequest);
+
+ /** ListAnnotatedDatasetsRequest parent. */
+ public parent: string;
+
+ /** ListAnnotatedDatasetsRequest filter. */
+ public filter: string;
+
+ /** ListAnnotatedDatasetsRequest pageSize. */
+ public pageSize: number;
+
+ /** ListAnnotatedDatasetsRequest pageToken. */
+ public pageToken: string;
+
+ /**
+ * Creates a new ListAnnotatedDatasetsRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListAnnotatedDatasetsRequest instance
+ */
+ public static create(properties?: google.cloud.datalabeling.v1beta1.IListAnnotatedDatasetsRequest): google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest;
+
+ /**
+ * Encodes the specified ListAnnotatedDatasetsRequest message. Does not implicitly {@link google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest.verify|verify} messages.
+ * @param message ListAnnotatedDatasetsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.datalabeling.v1beta1.IListAnnotatedDatasetsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListAnnotatedDatasetsRequest message, length delimited. Does not implicitly {@link google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest.verify|verify} messages.
+ * @param message ListAnnotatedDatasetsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.datalabeling.v1beta1.IListAnnotatedDatasetsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListAnnotatedDatasetsRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListAnnotatedDatasetsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest;
+
+ /**
+ * Decodes a ListAnnotatedDatasetsRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListAnnotatedDatasetsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest;
+
+ /**
+ * Verifies a ListAnnotatedDatasetsRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListAnnotatedDatasetsRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListAnnotatedDatasetsRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest;
+
+ /**
+ * Creates a plain object from a ListAnnotatedDatasetsRequest message. Also converts values to other types if specified.
+ * @param message ListAnnotatedDatasetsRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListAnnotatedDatasetsRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListAnnotatedDatasetsRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListAnnotatedDatasetsResponse. */
+ interface IListAnnotatedDatasetsResponse {
+
+ /** ListAnnotatedDatasetsResponse annotatedDatasets */
+ annotatedDatasets?: (google.cloud.datalabeling.v1beta1.IAnnotatedDataset[]|null);
+
+ /** ListAnnotatedDatasetsResponse nextPageToken */
+ nextPageToken?: (string|null);
+ }
+
+ /** Represents a ListAnnotatedDatasetsResponse. */
+ class ListAnnotatedDatasetsResponse implements IListAnnotatedDatasetsResponse {
+
+ /**
+ * Constructs a new ListAnnotatedDatasetsResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.datalabeling.v1beta1.IListAnnotatedDatasetsResponse);
+
+ /** ListAnnotatedDatasetsResponse annotatedDatasets. */
+ public annotatedDatasets: google.cloud.datalabeling.v1beta1.IAnnotatedDataset[];
+
+ /** ListAnnotatedDatasetsResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /**
+ * Creates a new ListAnnotatedDatasetsResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListAnnotatedDatasetsResponse instance
+ */
+ public static create(properties?: google.cloud.datalabeling.v1beta1.IListAnnotatedDatasetsResponse): google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse;
+
+ /**
+ * Encodes the specified ListAnnotatedDatasetsResponse message. Does not implicitly {@link google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse.verify|verify} messages.
+ * @param message ListAnnotatedDatasetsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.datalabeling.v1beta1.IListAnnotatedDatasetsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListAnnotatedDatasetsResponse message, length delimited. Does not implicitly {@link google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse.verify|verify} messages.
+ * @param message ListAnnotatedDatasetsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.datalabeling.v1beta1.IListAnnotatedDatasetsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListAnnotatedDatasetsResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListAnnotatedDatasetsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse;
+
+ /**
+ * Decodes a ListAnnotatedDatasetsResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListAnnotatedDatasetsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse;
+
+ /**
+ * Verifies a ListAnnotatedDatasetsResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListAnnotatedDatasetsResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListAnnotatedDatasetsResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse;
+
+ /**
+ * Creates a plain object from a ListAnnotatedDatasetsResponse message. Also converts values to other types if specified.
+ * @param message ListAnnotatedDatasetsResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListAnnotatedDatasetsResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListAnnotatedDatasetsResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DeleteAnnotatedDatasetRequest. */
+ interface IDeleteAnnotatedDatasetRequest {
+
+ /** DeleteAnnotatedDatasetRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a DeleteAnnotatedDatasetRequest. */
+ class DeleteAnnotatedDatasetRequest implements IDeleteAnnotatedDatasetRequest {
+
+ /**
+ * Constructs a new DeleteAnnotatedDatasetRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.datalabeling.v1beta1.IDeleteAnnotatedDatasetRequest);
+
+ /** DeleteAnnotatedDatasetRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new DeleteAnnotatedDatasetRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DeleteAnnotatedDatasetRequest instance
+ */
+ public static create(properties?: google.cloud.datalabeling.v1beta1.IDeleteAnnotatedDatasetRequest): google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest;
+
+ /**
+ * Encodes the specified DeleteAnnotatedDatasetRequest message. Does not implicitly {@link google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest.verify|verify} messages.
+ * @param message DeleteAnnotatedDatasetRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.datalabeling.v1beta1.IDeleteAnnotatedDatasetRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DeleteAnnotatedDatasetRequest message, length delimited. Does not implicitly {@link google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest.verify|verify} messages.
+ * @param message DeleteAnnotatedDatasetRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.datalabeling.v1beta1.IDeleteAnnotatedDatasetRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DeleteAnnotatedDatasetRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DeleteAnnotatedDatasetRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest;
+
+ /**
+ * Decodes a DeleteAnnotatedDatasetRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DeleteAnnotatedDatasetRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest;
+
+ /**
+ * Verifies a DeleteAnnotatedDatasetRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DeleteAnnotatedDatasetRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DeleteAnnotatedDatasetRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest;
+
+ /**
+ * Creates a plain object from a DeleteAnnotatedDatasetRequest message. Also converts values to other types if specified.
+ * @param message DeleteAnnotatedDatasetRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DeleteAnnotatedDatasetRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DeleteAnnotatedDatasetRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a LabelImageRequest. */
+ interface ILabelImageRequest {
+
+ /** LabelImageRequest imageClassificationConfig */
+ imageClassificationConfig?: (google.cloud.datalabeling.v1beta1.IImageClassificationConfig|null);
+
+ /** LabelImageRequest boundingPolyConfig */
+ boundingPolyConfig?: (google.cloud.datalabeling.v1beta1.IBoundingPolyConfig|null);
+
+ /** LabelImageRequest polylineConfig */
+ polylineConfig?: (google.cloud.datalabeling.v1beta1.IPolylineConfig|null);
+
+ /** LabelImageRequest segmentationConfig */
+ segmentationConfig?: (google.cloud.datalabeling.v1beta1.ISegmentationConfig|null);
+
+ /** LabelImageRequest parent */
+ parent?: (string|null);
+
+ /** LabelImageRequest basicConfig */
+ basicConfig?: (google.cloud.datalabeling.v1beta1.IHumanAnnotationConfig|null);
+
+ /** LabelImageRequest feature */
+ feature?: (google.cloud.datalabeling.v1beta1.LabelImageRequest.Feature|keyof typeof google.cloud.datalabeling.v1beta1.LabelImageRequest.Feature|null);
+ }
+
+ /** Represents a LabelImageRequest. */
+ class LabelImageRequest implements ILabelImageRequest {
+
+ /**
+ * Constructs a new LabelImageRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.datalabeling.v1beta1.ILabelImageRequest);
+
+ /** LabelImageRequest imageClassificationConfig. */
+ public imageClassificationConfig?: (google.cloud.datalabeling.v1beta1.IImageClassificationConfig|null);
+
+ /** LabelImageRequest boundingPolyConfig. */
+ public boundingPolyConfig?: (google.cloud.datalabeling.v1beta1.IBoundingPolyConfig|null);
+
+ /** LabelImageRequest polylineConfig. */
+ public polylineConfig?: (google.cloud.datalabeling.v1beta1.IPolylineConfig|null);
+
+ /** LabelImageRequest segmentationConfig. */
+ public segmentationConfig?: (google.cloud.datalabeling.v1beta1.ISegmentationConfig|null);
+
+ /** LabelImageRequest parent. */
+ public parent: string;
+
+ /** LabelImageRequest basicConfig. */
+ public basicConfig?: (google.cloud.datalabeling.v1beta1.IHumanAnnotationConfig|null);
+
+ /** LabelImageRequest feature. */
+ public feature: (google.cloud.datalabeling.v1beta1.LabelImageRequest.Feature|keyof typeof google.cloud.datalabeling.v1beta1.LabelImageRequest.Feature);
+
+ /** LabelImageRequest requestConfig. */
+ public requestConfig?: ("imageClassificationConfig"|"boundingPolyConfig"|"polylineConfig"|"segmentationConfig");
+
+ /**
+ * Creates a new LabelImageRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns LabelImageRequest instance
+ */
+ public static create(properties?: google.cloud.datalabeling.v1beta1.ILabelImageRequest): google.cloud.datalabeling.v1beta1.LabelImageRequest;
+
+ /**
+ * Encodes the specified LabelImageRequest message. Does not implicitly {@link google.cloud.datalabeling.v1beta1.LabelImageRequest.verify|verify} messages.
+ * @param message LabelImageRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.datalabeling.v1beta1.ILabelImageRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified LabelImageRequest message, length delimited. Does not implicitly {@link google.cloud.datalabeling.v1beta1.LabelImageRequest.verify|verify} messages.
+ * @param message LabelImageRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.datalabeling.v1beta1.ILabelImageRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a LabelImageRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns LabelImageRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.datalabeling.v1beta1.LabelImageRequest;
+
+ /**
+ * Decodes a LabelImageRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns LabelImageRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.datalabeling.v1beta1.LabelImageRequest;
+
+ /**
+ * Verifies a LabelImageRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a LabelImageRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns LabelImageRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.datalabeling.v1beta1.LabelImageRequest;
+
+ /**
+ * Creates a plain object from a LabelImageRequest message. Also converts values to other types if specified.
+ * @param message LabelImageRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.datalabeling.v1beta1.LabelImageRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this LabelImageRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for LabelImageRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace LabelImageRequest {
+
+ /** Feature enum. */
+ enum Feature {
+ FEATURE_UNSPECIFIED = 0,
+ CLASSIFICATION = 1,
+ BOUNDING_BOX = 2,
+ ORIENTED_BOUNDING_BOX = 6,
+ BOUNDING_POLY = 3,
+ POLYLINE = 4,
+ SEGMENTATION = 5
+ }
+ }
+
+ /** Properties of a LabelVideoRequest. */
+ interface ILabelVideoRequest {
+
+ /** LabelVideoRequest videoClassificationConfig */
+ videoClassificationConfig?: (google.cloud.datalabeling.v1beta1.IVideoClassificationConfig|null);
+
+ /** LabelVideoRequest objectDetectionConfig */
+ objectDetectionConfig?: (google.cloud.datalabeling.v1beta1.IObjectDetectionConfig|null);
+
+ /** LabelVideoRequest objectTrackingConfig */
+ objectTrackingConfig?: (google.cloud.datalabeling.v1beta1.IObjectTrackingConfig|null);
+
+ /** LabelVideoRequest eventConfig */
+ eventConfig?: (google.cloud.datalabeling.v1beta1.IEventConfig|null);
+
+ /** LabelVideoRequest parent */
+ parent?: (string|null);
+
+ /** LabelVideoRequest basicConfig */
+ basicConfig?: (google.cloud.datalabeling.v1beta1.IHumanAnnotationConfig|null);
+
+ /** LabelVideoRequest feature */
+ feature?: (google.cloud.datalabeling.v1beta1.LabelVideoRequest.Feature|keyof typeof google.cloud.datalabeling.v1beta1.LabelVideoRequest.Feature|null);
+ }
+
+ /** Represents a LabelVideoRequest. */
+ class LabelVideoRequest implements ILabelVideoRequest {
+
+ /**
+ * Constructs a new LabelVideoRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.datalabeling.v1beta1.ILabelVideoRequest);
+
+ /** LabelVideoRequest videoClassificationConfig. */
+ public videoClassificationConfig?: (google.cloud.datalabeling.v1beta1.IVideoClassificationConfig|null);
+
+ /** LabelVideoRequest objectDetectionConfig. */
+ public objectDetectionConfig?: (google.cloud.datalabeling.v1beta1.IObjectDetectionConfig|null);
+
+ /** LabelVideoRequest objectTrackingConfig. */
+ public objectTrackingConfig?: (google.cloud.datalabeling.v1beta1.IObjectTrackingConfig|null);
+
+ /** LabelVideoRequest eventConfig. */
+ public eventConfig?: (google.cloud.datalabeling.v1beta1.IEventConfig|null);
+
+ /** LabelVideoRequest parent. */
+ public parent: string;
+
+ /** LabelVideoRequest basicConfig. */
+ public basicConfig?: (google.cloud.datalabeling.v1beta1.IHumanAnnotationConfig|null);
+
+ /** LabelVideoRequest feature. */
+ public feature: (google.cloud.datalabeling.v1beta1.LabelVideoRequest.Feature|keyof typeof google.cloud.datalabeling.v1beta1.LabelVideoRequest.Feature);
+
+ /** LabelVideoRequest requestConfig. */
+ public requestConfig?: ("videoClassificationConfig"|"objectDetectionConfig"|"objectTrackingConfig"|"eventConfig");
+
+ /**
+ * Creates a new LabelVideoRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns LabelVideoRequest instance
+ */
+ public static create(properties?: google.cloud.datalabeling.v1beta1.ILabelVideoRequest): google.cloud.datalabeling.v1beta1.LabelVideoRequest;
+
+ /**
+ * Encodes the specified LabelVideoRequest message. Does not implicitly {@link google.cloud.datalabeling.v1beta1.LabelVideoRequest.verify|verify} messages.
+ * @param message LabelVideoRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.datalabeling.v1beta1.ILabelVideoRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified LabelVideoRequest message, length delimited. Does not implicitly {@link google.cloud.datalabeling.v1beta1.LabelVideoRequest.verify|verify} messages.
+ * @param message LabelVideoRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.datalabeling.v1beta1.ILabelVideoRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a LabelVideoRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns LabelVideoRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.datalabeling.v1beta1.LabelVideoRequest;
+
+ /**
+ * Decodes a LabelVideoRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns LabelVideoRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.datalabeling.v1beta1.LabelVideoRequest;
+
+ /**
+ * Verifies a LabelVideoRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a LabelVideoRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns LabelVideoRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.datalabeling.v1beta1.LabelVideoRequest;
+
+ /**
+ * Creates a plain object from a LabelVideoRequest message. Also converts values to other types if specified.
+ * @param message LabelVideoRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.datalabeling.v1beta1.LabelVideoRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this LabelVideoRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for LabelVideoRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace LabelVideoRequest {
+
+ /** Feature enum. */
+ enum Feature {
+ FEATURE_UNSPECIFIED = 0,
+ CLASSIFICATION = 1,
+ OBJECT_DETECTION = 2,
+ OBJECT_TRACKING = 3,
+ EVENT = 4
+ }
+ }
+
+ /** Properties of a LabelTextRequest. */
+ interface ILabelTextRequest {
+
+ /** LabelTextRequest textClassificationConfig */
+ textClassificationConfig?: (google.cloud.datalabeling.v1beta1.ITextClassificationConfig|null);
+
+ /** LabelTextRequest textEntityExtractionConfig */
+ textEntityExtractionConfig?: (google.cloud.datalabeling.v1beta1.ITextEntityExtractionConfig|null);
+
+ /** LabelTextRequest parent */
+ parent?: (string|null);
+
+ /** LabelTextRequest basicConfig */
+ basicConfig?: (google.cloud.datalabeling.v1beta1.IHumanAnnotationConfig|null);
+
+ /** LabelTextRequest feature */
+ feature?: (google.cloud.datalabeling.v1beta1.LabelTextRequest.Feature|keyof typeof google.cloud.datalabeling.v1beta1.LabelTextRequest.Feature|null);
+ }
+
+ /** Represents a LabelTextRequest. */
+ class LabelTextRequest implements ILabelTextRequest {
+
+ /**
+ * Constructs a new LabelTextRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.datalabeling.v1beta1.ILabelTextRequest);
+
+ /** LabelTextRequest textClassificationConfig. */
+ public textClassificationConfig?: (google.cloud.datalabeling.v1beta1.ITextClassificationConfig|null);
+
+ /** LabelTextRequest textEntityExtractionConfig. */
+ public textEntityExtractionConfig?: (google.cloud.datalabeling.v1beta1.ITextEntityExtractionConfig|null);
+
+ /** LabelTextRequest parent. */
+ public parent: string;
+
+ /** LabelTextRequest basicConfig. */
+ public basicConfig?: (google.cloud.datalabeling.v1beta1.IHumanAnnotationConfig|null);
+
+ /** LabelTextRequest feature. */
+ public feature: (google.cloud.datalabeling.v1beta1.LabelTextRequest.Feature|keyof typeof google.cloud.datalabeling.v1beta1.LabelTextRequest.Feature);
+
+ /** LabelTextRequest requestConfig. */
+ public requestConfig?: ("textClassificationConfig"|"textEntityExtractionConfig");
+
+ /**
+ * Creates a new LabelTextRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns LabelTextRequest instance
+ */
+ public static create(properties?: google.cloud.datalabeling.v1beta1.ILabelTextRequest): google.cloud.datalabeling.v1beta1.LabelTextRequest;
+
+ /**
+ * Encodes the specified LabelTextRequest message. Does not implicitly {@link google.cloud.datalabeling.v1beta1.LabelTextRequest.verify|verify} messages.
+ * @param message LabelTextRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.datalabeling.v1beta1.ILabelTextRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified LabelTextRequest message, length delimited. Does not implicitly {@link google.cloud.datalabeling.v1beta1.LabelTextRequest.verify|verify} messages.
+ * @param message LabelTextRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.datalabeling.v1beta1.ILabelTextRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a LabelTextRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns LabelTextRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.datalabeling.v1beta1.LabelTextRequest;
+
+ /**
+ * Decodes a LabelTextRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns LabelTextRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.datalabeling.v1beta1.LabelTextRequest;
+
+ /**
+ * Verifies a LabelTextRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a LabelTextRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns LabelTextRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.datalabeling.v1beta1.LabelTextRequest;
+
+ /**
+ * Creates a plain object from a LabelTextRequest message. Also converts values to other types if specified.
+ * @param message LabelTextRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.datalabeling.v1beta1.LabelTextRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this LabelTextRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for LabelTextRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace LabelTextRequest {
+
+ /** Feature enum. */
+ enum Feature {
+ FEATURE_UNSPECIFIED = 0,
+ TEXT_CLASSIFICATION = 1,
+ TEXT_ENTITY_EXTRACTION = 2
+ }
+ }
+
+ /** Properties of a GetExampleRequest. */
+ interface IGetExampleRequest {
+
+ /** GetExampleRequest name */
+ name?: (string|null);
+
+ /** GetExampleRequest filter */
+ filter?: (string|null);
+ }
+
+ /** Represents a GetExampleRequest. */
+ class GetExampleRequest implements IGetExampleRequest {
+
+ /**
+ * Constructs a new GetExampleRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.datalabeling.v1beta1.IGetExampleRequest);
+
+ /** GetExampleRequest name. */
+ public name: string;
+
+ /** GetExampleRequest filter. */
+ public filter: string;
+
+ /**
+ * Creates a new GetExampleRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetExampleRequest instance
+ */
+ public static create(properties?: google.cloud.datalabeling.v1beta1.IGetExampleRequest): google.cloud.datalabeling.v1beta1.GetExampleRequest;
+
+ /**
+ * Encodes the specified GetExampleRequest message. Does not implicitly {@link google.cloud.datalabeling.v1beta1.GetExampleRequest.verify|verify} messages.
+ * @param message GetExampleRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.datalabeling.v1beta1.IGetExampleRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetExampleRequest message, length delimited. Does not implicitly {@link google.cloud.datalabeling.v1beta1.GetExampleRequest.verify|verify} messages.
+ * @param message GetExampleRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.datalabeling.v1beta1.IGetExampleRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetExampleRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetExampleRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.datalabeling.v1beta1.GetExampleRequest;
+
+ /**
+ * Decodes a GetExampleRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetExampleRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.datalabeling.v1beta1.GetExampleRequest;
+
+ /**
+ * Verifies a GetExampleRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GetExampleRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetExampleRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.datalabeling.v1beta1.GetExampleRequest;
+
+ /**
+ * Creates a plain object from a GetExampleRequest message. Also converts values to other types if specified.
+ * @param message GetExampleRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.datalabeling.v1beta1.GetExampleRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetExampleRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetExampleRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListExamplesRequest. */
+ interface IListExamplesRequest {
+
+ /** ListExamplesRequest parent */
+ parent?: (string|null);
+
+ /** ListExamplesRequest filter */
+ filter?: (string|null);
+
+ /** ListExamplesRequest pageSize */
+ pageSize?: (number|null);
+
+ /** ListExamplesRequest pageToken */
+ pageToken?: (string|null);
+ }
+
+ /** Represents a ListExamplesRequest. */
+ class ListExamplesRequest implements IListExamplesRequest {
+
+ /**
+ * Constructs a new ListExamplesRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.datalabeling.v1beta1.IListExamplesRequest);
+
+ /** ListExamplesRequest parent. */
+ public parent: string;
+
+ /** ListExamplesRequest filter. */
+ public filter: string;
+
+ /** ListExamplesRequest pageSize. */
+ public pageSize: number;
+
+ /** ListExamplesRequest pageToken. */
+ public pageToken: string;
+
+ /**
+ * Creates a new ListExamplesRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListExamplesRequest instance
+ */
+ public static create(properties?: google.cloud.datalabeling.v1beta1.IListExamplesRequest): google.cloud.datalabeling.v1beta1.ListExamplesRequest;
+
+ /**
+ * Encodes the specified ListExamplesRequest message. Does not implicitly {@link google.cloud.datalabeling.v1beta1.ListExamplesRequest.verify|verify} messages.
+ * @param message ListExamplesRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.datalabeling.v1beta1.IListExamplesRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListExamplesRequest message, length delimited. Does not implicitly {@link google.cloud.datalabeling.v1beta1.ListExamplesRequest.verify|verify} messages.
+ * @param message ListExamplesRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.datalabeling.v1beta1.IListExamplesRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListExamplesRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListExamplesRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.datalabeling.v1beta1.ListExamplesRequest;
+
+ /**
+ * Decodes a ListExamplesRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListExamplesRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.datalabeling.v1beta1.ListExamplesRequest;
+
+ /**
+ * Verifies a ListExamplesRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListExamplesRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListExamplesRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.datalabeling.v1beta1.ListExamplesRequest;
+
+ /**
+ * Creates a plain object from a ListExamplesRequest message. Also converts values to other types if specified.
+ * @param message ListExamplesRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.datalabeling.v1beta1.ListExamplesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListExamplesRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListExamplesRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListExamplesResponse. */
+ interface IListExamplesResponse {
+
+ /** ListExamplesResponse examples */
+ examples?: (google.cloud.datalabeling.v1beta1.IExample[]|null);
+
+ /** ListExamplesResponse nextPageToken */
+ nextPageToken?: (string|null);
+ }
+
+ /** Represents a ListExamplesResponse. */
+ class ListExamplesResponse implements IListExamplesResponse {
+
+ /**
+ * Constructs a new ListExamplesResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.datalabeling.v1beta1.IListExamplesResponse);
+
+ /** ListExamplesResponse examples. */
+ public examples: google.cloud.datalabeling.v1beta1.IExample[];
+
+ /** ListExamplesResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /**
+ * Creates a new ListExamplesResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListExamplesResponse instance
+ */
+ public static create(properties?: google.cloud.datalabeling.v1beta1.IListExamplesResponse): google.cloud.datalabeling.v1beta1.ListExamplesResponse;
+
+ /**
+ * Encodes the specified ListExamplesResponse message. Does not implicitly {@link google.cloud.datalabeling.v1beta1.ListExamplesResponse.verify|verify} messages.
+ * @param message ListExamplesResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.datalabeling.v1beta1.IListExamplesResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListExamplesResponse message, length delimited. Does not implicitly {@link google.cloud.datalabeling.v1beta1.ListExamplesResponse.verify|verify} messages.
+ * @param message ListExamplesResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.datalabeling.v1beta1.IListExamplesResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListExamplesResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListExamplesResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.datalabeling.v1beta1.ListExamplesResponse;
+
+ /**
+ * Decodes a ListExamplesResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListExamplesResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.datalabeling.v1beta1.ListExamplesResponse;
+
+ /**
+ * Verifies a ListExamplesResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListExamplesResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListExamplesResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.datalabeling.v1beta1.ListExamplesResponse;
+
+ /**
+ * Creates a plain object from a ListExamplesResponse message. Also converts values to other types if specified.
+ * @param message ListExamplesResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.datalabeling.v1beta1.ListExamplesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListExamplesResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListExamplesResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CreateAnnotationSpecSetRequest. */
+ interface ICreateAnnotationSpecSetRequest {
+
+ /** CreateAnnotationSpecSetRequest parent */
+ parent?: (string|null);
+
+ /** CreateAnnotationSpecSetRequest annotationSpecSet */
+ annotationSpecSet?: (google.cloud.datalabeling.v1beta1.IAnnotationSpecSet|null);
+ }
+
+ /** Represents a CreateAnnotationSpecSetRequest. */
+ class CreateAnnotationSpecSetRequest implements ICreateAnnotationSpecSetRequest {
+
+ /**
+ * Constructs a new CreateAnnotationSpecSetRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.datalabeling.v1beta1.ICreateAnnotationSpecSetRequest);
+
+ /** CreateAnnotationSpecSetRequest parent. */
+ public parent: string;
+
+ /** CreateAnnotationSpecSetRequest annotationSpecSet. */
+ public annotationSpecSet?: (google.cloud.datalabeling.v1beta1.IAnnotationSpecSet|null);
+
+ /**
+ * Creates a new CreateAnnotationSpecSetRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CreateAnnotationSpecSetRequest instance
+ */
+ public static create(properties?: google.cloud.datalabeling.v1beta1.ICreateAnnotationSpecSetRequest): google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest;
+
+ /**
+ * Encodes the specified CreateAnnotationSpecSetRequest message. Does not implicitly {@link google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest.verify|verify} messages.
+ * @param message CreateAnnotationSpecSetRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.datalabeling.v1beta1.ICreateAnnotationSpecSetRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CreateAnnotationSpecSetRequest message, length delimited. Does not implicitly {@link google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest.verify|verify} messages.
+ * @param message CreateAnnotationSpecSetRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.datalabeling.v1beta1.ICreateAnnotationSpecSetRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CreateAnnotationSpecSetRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CreateAnnotationSpecSetRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest;
+
+ /**
+ * Decodes a CreateAnnotationSpecSetRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CreateAnnotationSpecSetRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest;
+
+ /**
+ * Verifies a CreateAnnotationSpecSetRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a CreateAnnotationSpecSetRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CreateAnnotationSpecSetRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest;
+
+ /**
+ * Creates a plain object from a CreateAnnotationSpecSetRequest message. Also converts values to other types if specified.
+ * @param message CreateAnnotationSpecSetRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CreateAnnotationSpecSetRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CreateAnnotationSpecSetRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GetAnnotationSpecSetRequest. */
+ interface IGetAnnotationSpecSetRequest {
+
+ /** GetAnnotationSpecSetRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a GetAnnotationSpecSetRequest. */
+ class GetAnnotationSpecSetRequest implements IGetAnnotationSpecSetRequest {
+
+ /**
+ * Constructs a new GetAnnotationSpecSetRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.datalabeling.v1beta1.IGetAnnotationSpecSetRequest);
+
+ /** GetAnnotationSpecSetRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new GetAnnotationSpecSetRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetAnnotationSpecSetRequest instance
+ */
+ public static create(properties?: google.cloud.datalabeling.v1beta1.IGetAnnotationSpecSetRequest): google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest;
+
+ /**
+ * Encodes the specified GetAnnotationSpecSetRequest message. Does not implicitly {@link google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest.verify|verify} messages.
+ * @param message GetAnnotationSpecSetRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.datalabeling.v1beta1.IGetAnnotationSpecSetRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetAnnotationSpecSetRequest message, length delimited. Does not implicitly {@link google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest.verify|verify} messages.
+ * @param message GetAnnotationSpecSetRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.datalabeling.v1beta1.IGetAnnotationSpecSetRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetAnnotationSpecSetRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetAnnotationSpecSetRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest;
+
+ /**
+ * Decodes a GetAnnotationSpecSetRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetAnnotationSpecSetRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest;
+
+ /**
+ * Verifies a GetAnnotationSpecSetRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GetAnnotationSpecSetRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetAnnotationSpecSetRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest;
+
+ /**
+ * Creates a plain object from a GetAnnotationSpecSetRequest message. Also converts values to other types if specified.
+ * @param message GetAnnotationSpecSetRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetAnnotationSpecSetRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetAnnotationSpecSetRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListAnnotationSpecSetsRequest. */
+ interface IListAnnotationSpecSetsRequest {
+
+ /** ListAnnotationSpecSetsRequest parent */
+ parent?: (string|null);
+
+ /** ListAnnotationSpecSetsRequest filter */
+ filter?: (string|null);
+
+ /** ListAnnotationSpecSetsRequest pageSize */
+ pageSize?: (number|null);
+
+ /** ListAnnotationSpecSetsRequest pageToken */
+ pageToken?: (string|null);
+ }
+
+ /** Represents a ListAnnotationSpecSetsRequest. */
+ class ListAnnotationSpecSetsRequest implements IListAnnotationSpecSetsRequest {
+
+ /**
+ * Constructs a new ListAnnotationSpecSetsRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.datalabeling.v1beta1.IListAnnotationSpecSetsRequest);
+
+ /** ListAnnotationSpecSetsRequest parent. */
+ public parent: string;
+
+ /** ListAnnotationSpecSetsRequest filter. */
+ public filter: string;
+
+ /** ListAnnotationSpecSetsRequest pageSize. */
+ public pageSize: number;
+
+ /** ListAnnotationSpecSetsRequest pageToken. */
+ public pageToken: string;
+
+ /**
+ * Creates a new ListAnnotationSpecSetsRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListAnnotationSpecSetsRequest instance
+ */
+ public static create(properties?: google.cloud.datalabeling.v1beta1.IListAnnotationSpecSetsRequest): google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest;
+
+ /**
+ * Encodes the specified ListAnnotationSpecSetsRequest message. Does not implicitly {@link google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest.verify|verify} messages.
+ * @param message ListAnnotationSpecSetsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.datalabeling.v1beta1.IListAnnotationSpecSetsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListAnnotationSpecSetsRequest message, length delimited. Does not implicitly {@link google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest.verify|verify} messages.
+ * @param message ListAnnotationSpecSetsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.datalabeling.v1beta1.IListAnnotationSpecSetsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListAnnotationSpecSetsRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListAnnotationSpecSetsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest;
+
+ /**
+ * Decodes a ListAnnotationSpecSetsRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListAnnotationSpecSetsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest;
+
+ /**
+ * Verifies a ListAnnotationSpecSetsRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListAnnotationSpecSetsRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListAnnotationSpecSetsRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest;
+
+ /**
+ * Creates a plain object from a ListAnnotationSpecSetsRequest message. Also converts values to other types if specified.
+ * @param message ListAnnotationSpecSetsRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListAnnotationSpecSetsRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListAnnotationSpecSetsRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListAnnotationSpecSetsResponse. */
+ interface IListAnnotationSpecSetsResponse {
+
+ /** ListAnnotationSpecSetsResponse annotationSpecSets */
+ annotationSpecSets?: (google.cloud.datalabeling.v1beta1.IAnnotationSpecSet[]|null);
+
+ /** ListAnnotationSpecSetsResponse nextPageToken */
+ nextPageToken?: (string|null);
+ }
+
+ /** Represents a ListAnnotationSpecSetsResponse. */
+ class ListAnnotationSpecSetsResponse implements IListAnnotationSpecSetsResponse {
+
+ /**
+ * Constructs a new ListAnnotationSpecSetsResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.datalabeling.v1beta1.IListAnnotationSpecSetsResponse);
+
+ /** ListAnnotationSpecSetsResponse annotationSpecSets. */
+ public annotationSpecSets: google.cloud.datalabeling.v1beta1.IAnnotationSpecSet[];
+
+ /** ListAnnotationSpecSetsResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /**
+ * Creates a new ListAnnotationSpecSetsResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListAnnotationSpecSetsResponse instance
+ */
+ public static create(properties?: google.cloud.datalabeling.v1beta1.IListAnnotationSpecSetsResponse): google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse;
+
+ /**
+ * Encodes the specified ListAnnotationSpecSetsResponse message. Does not implicitly {@link google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse.verify|verify} messages.
+ * @param message ListAnnotationSpecSetsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.datalabeling.v1beta1.IListAnnotationSpecSetsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListAnnotationSpecSetsResponse message, length delimited. Does not implicitly {@link google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse.verify|verify} messages.
+ * @param message ListAnnotationSpecSetsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.datalabeling.v1beta1.IListAnnotationSpecSetsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListAnnotationSpecSetsResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListAnnotationSpecSetsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse;
+
+ /**
+ * Decodes a ListAnnotationSpecSetsResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListAnnotationSpecSetsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse;
+
+ /**
+ * Verifies a ListAnnotationSpecSetsResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListAnnotationSpecSetsResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListAnnotationSpecSetsResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse;
+
+ /**
+ * Creates a plain object from a ListAnnotationSpecSetsResponse message. Also converts values to other types if specified.
+ * @param message ListAnnotationSpecSetsResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListAnnotationSpecSetsResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListAnnotationSpecSetsResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DeleteAnnotationSpecSetRequest. */
+ interface IDeleteAnnotationSpecSetRequest {
+
+ /** DeleteAnnotationSpecSetRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a DeleteAnnotationSpecSetRequest. */
+ class DeleteAnnotationSpecSetRequest implements IDeleteAnnotationSpecSetRequest {
+
+ /**
+ * Constructs a new DeleteAnnotationSpecSetRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.datalabeling.v1beta1.IDeleteAnnotationSpecSetRequest);
+
+ /** DeleteAnnotationSpecSetRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new DeleteAnnotationSpecSetRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DeleteAnnotationSpecSetRequest instance
+ */
+ public static create(properties?: google.cloud.datalabeling.v1beta1.IDeleteAnnotationSpecSetRequest): google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest;
+
+ /**
+ * Encodes the specified DeleteAnnotationSpecSetRequest message. Does not implicitly {@link google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest.verify|verify} messages.
+ * @param message DeleteAnnotationSpecSetRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.datalabeling.v1beta1.IDeleteAnnotationSpecSetRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DeleteAnnotationSpecSetRequest message, length delimited. Does not implicitly {@link google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest.verify|verify} messages.
+ * @param message DeleteAnnotationSpecSetRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.datalabeling.v1beta1.IDeleteAnnotationSpecSetRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DeleteAnnotationSpecSetRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DeleteAnnotationSpecSetRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest;
+
+ /**
+ * Decodes a DeleteAnnotationSpecSetRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DeleteAnnotationSpecSetRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest;
+
+ /**
+ * Verifies a DeleteAnnotationSpecSetRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DeleteAnnotationSpecSetRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DeleteAnnotationSpecSetRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest;
+
+ /**
+ * Creates a plain object from a DeleteAnnotationSpecSetRequest message. Also converts values to other types if specified.
+ * @param message DeleteAnnotationSpecSetRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DeleteAnnotationSpecSetRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DeleteAnnotationSpecSetRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CreateInstructionRequest. */
+ interface ICreateInstructionRequest {
+
+ /** CreateInstructionRequest parent */
+ parent?: (string|null);
+
+ /** CreateInstructionRequest instruction */
+ instruction?: (google.cloud.datalabeling.v1beta1.IInstruction|null);
+ }
+
+ /** Represents a CreateInstructionRequest. */
+ class CreateInstructionRequest implements ICreateInstructionRequest {
+
+ /**
+ * Constructs a new CreateInstructionRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.datalabeling.v1beta1.ICreateInstructionRequest);
+
+ /** CreateInstructionRequest parent. */
+ public parent: string;
+
+ /** CreateInstructionRequest instruction. */
+ public instruction?: (google.cloud.datalabeling.v1beta1.IInstruction|null);
+
+ /**
+ * Creates a new CreateInstructionRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CreateInstructionRequest instance
+ */
+ public static create(properties?: google.cloud.datalabeling.v1beta1.ICreateInstructionRequest): google.cloud.datalabeling.v1beta1.CreateInstructionRequest;
+
+ /**
+ * Encodes the specified CreateInstructionRequest message. Does not implicitly {@link google.cloud.datalabeling.v1beta1.CreateInstructionRequest.verify|verify} messages.
+ * @param message CreateInstructionRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.datalabeling.v1beta1.ICreateInstructionRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CreateInstructionRequest message, length delimited. Does not implicitly {@link google.cloud.datalabeling.v1beta1.CreateInstructionRequest.verify|verify} messages.
+ * @param message CreateInstructionRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.datalabeling.v1beta1.ICreateInstructionRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CreateInstructionRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CreateInstructionRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.datalabeling.v1beta1.CreateInstructionRequest;
+
+ /**
+ * Decodes a CreateInstructionRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CreateInstructionRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.datalabeling.v1beta1.CreateInstructionRequest;
+
+ /**
+ * Verifies a CreateInstructionRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a CreateInstructionRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CreateInstructionRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.datalabeling.v1beta1.CreateInstructionRequest;
+
+ /**
+ * Creates a plain object from a CreateInstructionRequest message. Also converts values to other types if specified.
+ * @param message CreateInstructionRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.datalabeling.v1beta1.CreateInstructionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CreateInstructionRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CreateInstructionRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GetInstructionRequest. */
+ interface IGetInstructionRequest {
+
+ /** GetInstructionRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a GetInstructionRequest. */
+ class GetInstructionRequest implements IGetInstructionRequest {
+
+ /**
+ * Constructs a new GetInstructionRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.datalabeling.v1beta1.IGetInstructionRequest);
+
+ /** GetInstructionRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new GetInstructionRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetInstructionRequest instance
+ */
+ public static create(properties?: google.cloud.datalabeling.v1beta1.IGetInstructionRequest): google.cloud.datalabeling.v1beta1.GetInstructionRequest;
+
+ /**
+ * Encodes the specified GetInstructionRequest message. Does not implicitly {@link google.cloud.datalabeling.v1beta1.GetInstructionRequest.verify|verify} messages.
+ * @param message GetInstructionRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.datalabeling.v1beta1.IGetInstructionRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetInstructionRequest message, length delimited. Does not implicitly {@link google.cloud.datalabeling.v1beta1.GetInstructionRequest.verify|verify} messages.
+ * @param message GetInstructionRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.datalabeling.v1beta1.IGetInstructionRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetInstructionRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetInstructionRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.datalabeling.v1beta1.GetInstructionRequest;
+
+ /**
+ * Decodes a GetInstructionRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetInstructionRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.datalabeling.v1beta1.GetInstructionRequest;
+
+ /**
+ * Verifies a GetInstructionRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GetInstructionRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetInstructionRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.datalabeling.v1beta1.GetInstructionRequest;
+
+ /**
+ * Creates a plain object from a GetInstructionRequest message. Also converts values to other types if specified.
+ * @param message GetInstructionRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.datalabeling.v1beta1.GetInstructionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetInstructionRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetInstructionRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DeleteInstructionRequest. */
+ interface IDeleteInstructionRequest {
+
+ /** DeleteInstructionRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a DeleteInstructionRequest. */
+ class DeleteInstructionRequest implements IDeleteInstructionRequest {
+
+ /**
+ * Constructs a new DeleteInstructionRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.datalabeling.v1beta1.IDeleteInstructionRequest);
+
+ /** DeleteInstructionRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new DeleteInstructionRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DeleteInstructionRequest instance
+ */
+ public static create(properties?: google.cloud.datalabeling.v1beta1.IDeleteInstructionRequest): google.cloud.datalabeling.v1beta1.DeleteInstructionRequest;
+
+ /**
+ * Encodes the specified DeleteInstructionRequest message. Does not implicitly {@link google.cloud.datalabeling.v1beta1.DeleteInstructionRequest.verify|verify} messages.
+ * @param message DeleteInstructionRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.datalabeling.v1beta1.IDeleteInstructionRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DeleteInstructionRequest message, length delimited. Does not implicitly {@link google.cloud.datalabeling.v1beta1.DeleteInstructionRequest.verify|verify} messages.
+ * @param message DeleteInstructionRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.datalabeling.v1beta1.IDeleteInstructionRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DeleteInstructionRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DeleteInstructionRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.datalabeling.v1beta1.DeleteInstructionRequest;
+
+ /**
+ * Decodes a DeleteInstructionRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DeleteInstructionRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.datalabeling.v1beta1.DeleteInstructionRequest;
+
+ /**
+ * Verifies a DeleteInstructionRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DeleteInstructionRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DeleteInstructionRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.datalabeling.v1beta1.DeleteInstructionRequest;
+
+ /**
+ * Creates a plain object from a DeleteInstructionRequest message. Also converts values to other types if specified.
+ * @param message DeleteInstructionRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.datalabeling.v1beta1.DeleteInstructionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DeleteInstructionRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DeleteInstructionRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListInstructionsRequest. */
+ interface IListInstructionsRequest {
+
+ /** ListInstructionsRequest parent */
+ parent?: (string|null);
+
+ /** ListInstructionsRequest filter */
+ filter?: (string|null);
+
+ /** ListInstructionsRequest pageSize */
+ pageSize?: (number|null);
+
+ /** ListInstructionsRequest pageToken */
+ pageToken?: (string|null);
+ }
+
+ /** Represents a ListInstructionsRequest. */
+ class ListInstructionsRequest implements IListInstructionsRequest {
+
+ /**
+ * Constructs a new ListInstructionsRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.datalabeling.v1beta1.IListInstructionsRequest);
+
+ /** ListInstructionsRequest parent. */
+ public parent: string;
+
+ /** ListInstructionsRequest filter. */
+ public filter: string;
+
+ /** ListInstructionsRequest pageSize. */
+ public pageSize: number;
+
+ /** ListInstructionsRequest pageToken. */
+ public pageToken: string;
+
+ /**
+ * Creates a new ListInstructionsRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListInstructionsRequest instance
+ */
+ public static create(properties?: google.cloud.datalabeling.v1beta1.IListInstructionsRequest): google.cloud.datalabeling.v1beta1.ListInstructionsRequest;
+
+ /**
+ * Encodes the specified ListInstructionsRequest message. Does not implicitly {@link google.cloud.datalabeling.v1beta1.ListInstructionsRequest.verify|verify} messages.
+ * @param message ListInstructionsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.datalabeling.v1beta1.IListInstructionsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListInstructionsRequest message, length delimited. Does not implicitly {@link google.cloud.datalabeling.v1beta1.ListInstructionsRequest.verify|verify} messages.
+ * @param message ListInstructionsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.datalabeling.v1beta1.IListInstructionsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListInstructionsRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListInstructionsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.datalabeling.v1beta1.ListInstructionsRequest;
+
+ /**
+ * Decodes a ListInstructionsRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListInstructionsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.datalabeling.v1beta1.ListInstructionsRequest;
+
+ /**
+ * Verifies a ListInstructionsRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListInstructionsRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListInstructionsRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.datalabeling.v1beta1.ListInstructionsRequest;
+
+ /**
+ * Creates a plain object from a ListInstructionsRequest message. Also converts values to other types if specified.
+ * @param message ListInstructionsRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.datalabeling.v1beta1.ListInstructionsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListInstructionsRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListInstructionsRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListInstructionsResponse. */
+ interface IListInstructionsResponse {
+
+ /** ListInstructionsResponse instructions */
+ instructions?: (google.cloud.datalabeling.v1beta1.IInstruction[]|null);
+
+ /** ListInstructionsResponse nextPageToken */
+ nextPageToken?: (string|null);
+ }
+
+ /** Represents a ListInstructionsResponse. */
+ class ListInstructionsResponse implements IListInstructionsResponse {
+
+ /**
+ * Constructs a new ListInstructionsResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.datalabeling.v1beta1.IListInstructionsResponse);
+
+ /** ListInstructionsResponse instructions. */
+ public instructions: google.cloud.datalabeling.v1beta1.IInstruction[];
+
+ /** ListInstructionsResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /**
+ * Creates a new ListInstructionsResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListInstructionsResponse instance
+ */
+ public static create(properties?: google.cloud.datalabeling.v1beta1.IListInstructionsResponse): google.cloud.datalabeling.v1beta1.ListInstructionsResponse;
+
+ /**
+ * Encodes the specified ListInstructionsResponse message. Does not implicitly {@link google.cloud.datalabeling.v1beta1.ListInstructionsResponse.verify|verify} messages.
+ * @param message ListInstructionsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.datalabeling.v1beta1.IListInstructionsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListInstructionsResponse message, length delimited. Does not implicitly {@link google.cloud.datalabeling.v1beta1.ListInstructionsResponse.verify|verify} messages.
+ * @param message ListInstructionsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.datalabeling.v1beta1.IListInstructionsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListInstructionsResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListInstructionsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.datalabeling.v1beta1.ListInstructionsResponse;
+
+ /**
+ * Decodes a ListInstructionsResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListInstructionsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.datalabeling.v1beta1.ListInstructionsResponse;
+
+ /**
+ * Verifies a ListInstructionsResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListInstructionsResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListInstructionsResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.datalabeling.v1beta1.ListInstructionsResponse;
+
+ /**
+ * Creates a plain object from a ListInstructionsResponse message. Also converts values to other types if specified.
+ * @param message ListInstructionsResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.datalabeling.v1beta1.ListInstructionsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListInstructionsResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListInstructionsResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GetEvaluationRequest. */
+ interface IGetEvaluationRequest {
+
+ /** GetEvaluationRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a GetEvaluationRequest. */
+ class GetEvaluationRequest implements IGetEvaluationRequest {
+
+ /**
+ * Constructs a new GetEvaluationRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.datalabeling.v1beta1.IGetEvaluationRequest);
+
+ /** GetEvaluationRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new GetEvaluationRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetEvaluationRequest instance
+ */
+ public static create(properties?: google.cloud.datalabeling.v1beta1.IGetEvaluationRequest): google.cloud.datalabeling.v1beta1.GetEvaluationRequest;
+
+ /**
+ * Encodes the specified GetEvaluationRequest message. Does not implicitly {@link google.cloud.datalabeling.v1beta1.GetEvaluationRequest.verify|verify} messages.
+ * @param message GetEvaluationRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.datalabeling.v1beta1.IGetEvaluationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetEvaluationRequest message, length delimited. Does not implicitly {@link google.cloud.datalabeling.v1beta1.GetEvaluationRequest.verify|verify} messages.
+ * @param message GetEvaluationRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.datalabeling.v1beta1.IGetEvaluationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetEvaluationRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetEvaluationRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.datalabeling.v1beta1.GetEvaluationRequest;
+
+ /**
+ * Decodes a GetEvaluationRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetEvaluationRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.datalabeling.v1beta1.GetEvaluationRequest;
+
+ /**
+ * Verifies a GetEvaluationRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GetEvaluationRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetEvaluationRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.datalabeling.v1beta1.GetEvaluationRequest;
+
+ /**
+ * Creates a plain object from a GetEvaluationRequest message. Also converts values to other types if specified.
+ * @param message GetEvaluationRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.datalabeling.v1beta1.GetEvaluationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetEvaluationRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetEvaluationRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a SearchEvaluationsRequest. */
+ interface ISearchEvaluationsRequest {
+
+ /** SearchEvaluationsRequest parent */
+ parent?: (string|null);
+
+ /** SearchEvaluationsRequest filter */
+ filter?: (string|null);
+
+ /** SearchEvaluationsRequest pageSize */
+ pageSize?: (number|null);
+
+ /** SearchEvaluationsRequest pageToken */
+ pageToken?: (string|null);
+ }
+
+ /** Represents a SearchEvaluationsRequest. */
+ class SearchEvaluationsRequest implements ISearchEvaluationsRequest {
+
+ /**
+ * Constructs a new SearchEvaluationsRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.datalabeling.v1beta1.ISearchEvaluationsRequest);
+
+ /** SearchEvaluationsRequest parent. */
+ public parent: string;
+
+ /** SearchEvaluationsRequest filter. */
+ public filter: string;
+
+ /** SearchEvaluationsRequest pageSize. */
+ public pageSize: number;
+
+ /** SearchEvaluationsRequest pageToken. */
+ public pageToken: string;
+
+ /**
+ * Creates a new SearchEvaluationsRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns SearchEvaluationsRequest instance
+ */
+ public static create(properties?: google.cloud.datalabeling.v1beta1.ISearchEvaluationsRequest): google.cloud.datalabeling.v1beta1.SearchEvaluationsRequest;
+
+ /**
+ * Encodes the specified SearchEvaluationsRequest message. Does not implicitly {@link google.cloud.datalabeling.v1beta1.SearchEvaluationsRequest.verify|verify} messages.
+ * @param message SearchEvaluationsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.datalabeling.v1beta1.ISearchEvaluationsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified SearchEvaluationsRequest message, length delimited. Does not implicitly {@link google.cloud.datalabeling.v1beta1.SearchEvaluationsRequest.verify|verify} messages.
+ * @param message SearchEvaluationsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.datalabeling.v1beta1.ISearchEvaluationsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a SearchEvaluationsRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns SearchEvaluationsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.datalabeling.v1beta1.SearchEvaluationsRequest;
+
+ /**
+ * Decodes a SearchEvaluationsRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns SearchEvaluationsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.datalabeling.v1beta1.SearchEvaluationsRequest;
+
+ /**
+ * Verifies a SearchEvaluationsRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a SearchEvaluationsRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns SearchEvaluationsRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.datalabeling.v1beta1.SearchEvaluationsRequest;
+
+ /**
+ * Creates a plain object from a SearchEvaluationsRequest message. Also converts values to other types if specified.
+ * @param message SearchEvaluationsRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.datalabeling.v1beta1.SearchEvaluationsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this SearchEvaluationsRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for SearchEvaluationsRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a SearchEvaluationsResponse. */
+ interface ISearchEvaluationsResponse {
+
+ /** SearchEvaluationsResponse evaluations */
+ evaluations?: (google.cloud.datalabeling.v1beta1.IEvaluation[]|null);
+
+ /** SearchEvaluationsResponse nextPageToken */
+ nextPageToken?: (string|null);
+ }
+
+ /** Represents a SearchEvaluationsResponse. */
+ class SearchEvaluationsResponse implements ISearchEvaluationsResponse {
+
+ /**
+ * Constructs a new SearchEvaluationsResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.datalabeling.v1beta1.ISearchEvaluationsResponse);
+
+ /** SearchEvaluationsResponse evaluations. */
+ public evaluations: google.cloud.datalabeling.v1beta1.IEvaluation[];
+
+ /** SearchEvaluationsResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /**
+ * Creates a new SearchEvaluationsResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns SearchEvaluationsResponse instance
+ */
+ public static create(properties?: google.cloud.datalabeling.v1beta1.ISearchEvaluationsResponse): google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse;
+
+ /**
+ * Encodes the specified SearchEvaluationsResponse message. Does not implicitly {@link google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse.verify|verify} messages.
+ * @param message SearchEvaluationsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.datalabeling.v1beta1.ISearchEvaluationsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified SearchEvaluationsResponse message, length delimited. Does not implicitly {@link google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse.verify|verify} messages.
+ * @param message SearchEvaluationsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.datalabeling.v1beta1.ISearchEvaluationsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a SearchEvaluationsResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns SearchEvaluationsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse;
+
+ /**
+ * Decodes a SearchEvaluationsResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns SearchEvaluationsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse;
+
+ /**
+ * Verifies a SearchEvaluationsResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a SearchEvaluationsResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns SearchEvaluationsResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse;
+
+ /**
+ * Creates a plain object from a SearchEvaluationsResponse message. Also converts values to other types if specified.
+ * @param message SearchEvaluationsResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this SearchEvaluationsResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for SearchEvaluationsResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a SearchExampleComparisonsRequest. */
+ interface ISearchExampleComparisonsRequest {
+
+ /** SearchExampleComparisonsRequest parent */
+ parent?: (string|null);
+
+ /** SearchExampleComparisonsRequest pageSize */
+ pageSize?: (number|null);
+
+ /** SearchExampleComparisonsRequest pageToken */
+ pageToken?: (string|null);
+ }
+
+ /** Represents a SearchExampleComparisonsRequest. */
+ class SearchExampleComparisonsRequest implements ISearchExampleComparisonsRequest {
+
+ /**
+ * Constructs a new SearchExampleComparisonsRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.datalabeling.v1beta1.ISearchExampleComparisonsRequest);
+
+ /** SearchExampleComparisonsRequest parent. */
+ public parent: string;
+
+ /** SearchExampleComparisonsRequest pageSize. */
+ public pageSize: number;
+
+ /** SearchExampleComparisonsRequest pageToken. */
+ public pageToken: string;
+
+ /**
+ * Creates a new SearchExampleComparisonsRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns SearchExampleComparisonsRequest instance
+ */
+ public static create(properties?: google.cloud.datalabeling.v1beta1.ISearchExampleComparisonsRequest): google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest;
+
+ /**
+ * Encodes the specified SearchExampleComparisonsRequest message. Does not implicitly {@link google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest.verify|verify} messages.
+ * @param message SearchExampleComparisonsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.datalabeling.v1beta1.ISearchExampleComparisonsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified SearchExampleComparisonsRequest message, length delimited. Does not implicitly {@link google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest.verify|verify} messages.
+ * @param message SearchExampleComparisonsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.datalabeling.v1beta1.ISearchExampleComparisonsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a SearchExampleComparisonsRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns SearchExampleComparisonsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest;
+
+ /**
+ * Decodes a SearchExampleComparisonsRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns SearchExampleComparisonsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest;
+
+ /**
+ * Verifies a SearchExampleComparisonsRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a SearchExampleComparisonsRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns SearchExampleComparisonsRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest;
+
+ /**
+ * Creates a plain object from a SearchExampleComparisonsRequest message. Also converts values to other types if specified.
+ * @param message SearchExampleComparisonsRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this SearchExampleComparisonsRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for SearchExampleComparisonsRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a SearchExampleComparisonsResponse. */
+ interface ISearchExampleComparisonsResponse {
+
+ /** SearchExampleComparisonsResponse exampleComparisons */
+ exampleComparisons?: (google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.IExampleComparison[]|null);
+
+ /** SearchExampleComparisonsResponse nextPageToken */
+ nextPageToken?: (string|null);
+ }
+
+ /** Represents a SearchExampleComparisonsResponse. */
+ class SearchExampleComparisonsResponse implements ISearchExampleComparisonsResponse {
+
+ /**
+ * Constructs a new SearchExampleComparisonsResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.datalabeling.v1beta1.ISearchExampleComparisonsResponse);
+
+ /** SearchExampleComparisonsResponse exampleComparisons. */
+ public exampleComparisons: google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.IExampleComparison[];
+
+ /** SearchExampleComparisonsResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /**
+ * Creates a new SearchExampleComparisonsResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns SearchExampleComparisonsResponse instance
+ */
+ public static create(properties?: google.cloud.datalabeling.v1beta1.ISearchExampleComparisonsResponse): google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse;
+
+ /**
+ * Encodes the specified SearchExampleComparisonsResponse message. Does not implicitly {@link google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.verify|verify} messages.
+ * @param message SearchExampleComparisonsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.datalabeling.v1beta1.ISearchExampleComparisonsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified SearchExampleComparisonsResponse message, length delimited. Does not implicitly {@link google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.verify|verify} messages.
+ * @param message SearchExampleComparisonsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.datalabeling.v1beta1.ISearchExampleComparisonsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a SearchExampleComparisonsResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns SearchExampleComparisonsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse;
+
+ /**
+ * Decodes a SearchExampleComparisonsResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns SearchExampleComparisonsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse;
+
+ /**
+ * Verifies a SearchExampleComparisonsResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a SearchExampleComparisonsResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns SearchExampleComparisonsResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse;
+
+ /**
+ * Creates a plain object from a SearchExampleComparisonsResponse message. Also converts values to other types if specified.
+ * @param message SearchExampleComparisonsResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this SearchExampleComparisonsResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for SearchExampleComparisonsResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace SearchExampleComparisonsResponse {
+
+ /** Properties of an ExampleComparison. */
+ interface IExampleComparison {
+
+ /** ExampleComparison groundTruthExample */
+ groundTruthExample?: (google.cloud.datalabeling.v1beta1.IExample|null);
+
+ /** ExampleComparison modelCreatedExamples */
+ modelCreatedExamples?: (google.cloud.datalabeling.v1beta1.IExample[]|null);
+ }
+
+ /** Represents an ExampleComparison. */
+ class ExampleComparison implements IExampleComparison {
+
+ /**
+ * Constructs a new ExampleComparison.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.IExampleComparison);
+
+ /** ExampleComparison groundTruthExample. */
+ public groundTruthExample?: (google.cloud.datalabeling.v1beta1.IExample|null);
+
+ /** ExampleComparison modelCreatedExamples. */
+ public modelCreatedExamples: google.cloud.datalabeling.v1beta1.IExample[];
+
+ /**
+ * Creates a new ExampleComparison instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ExampleComparison instance
+ */
+ public static create(properties?: google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.IExampleComparison): google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison;
+
+ /**
+ * Encodes the specified ExampleComparison message. Does not implicitly {@link google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison.verify|verify} messages.
+ * @param message ExampleComparison message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.IExampleComparison, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ExampleComparison message, length delimited. Does not implicitly {@link google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison.verify|verify} messages.
+ * @param message ExampleComparison message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.IExampleComparison, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an ExampleComparison message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ExampleComparison
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison;
+
+ /**
+ * Decodes an ExampleComparison message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ExampleComparison
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison;
+
+ /**
+ * Verifies an ExampleComparison message.
+ * @param message Plain 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 ExampleComparison message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ExampleComparison
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison;
+
+ /**
+ * Creates a plain object from an ExampleComparison message. Also converts values to other types if specified.
+ * @param message ExampleComparison
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ExampleComparison to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ExampleComparison
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of a CreateEvaluationJobRequest. */
+ interface ICreateEvaluationJobRequest {
+
+ /** CreateEvaluationJobRequest parent */
+ parent?: (string|null);
+
+ /** CreateEvaluationJobRequest job */
+ job?: (google.cloud.datalabeling.v1beta1.IEvaluationJob|null);
+ }
+
+ /** Represents a CreateEvaluationJobRequest. */
+ class CreateEvaluationJobRequest implements ICreateEvaluationJobRequest {
+
+ /**
+ * Constructs a new CreateEvaluationJobRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.datalabeling.v1beta1.ICreateEvaluationJobRequest);
+
+ /** CreateEvaluationJobRequest parent. */
+ public parent: string;
+
+ /** CreateEvaluationJobRequest job. */
+ public job?: (google.cloud.datalabeling.v1beta1.IEvaluationJob|null);
+
+ /**
+ * Creates a new CreateEvaluationJobRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CreateEvaluationJobRequest instance
+ */
+ public static create(properties?: google.cloud.datalabeling.v1beta1.ICreateEvaluationJobRequest): google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest;
+
+ /**
+ * Encodes the specified CreateEvaluationJobRequest message. Does not implicitly {@link google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest.verify|verify} messages.
+ * @param message CreateEvaluationJobRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.datalabeling.v1beta1.ICreateEvaluationJobRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CreateEvaluationJobRequest message, length delimited. Does not implicitly {@link google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest.verify|verify} messages.
+ * @param message CreateEvaluationJobRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.datalabeling.v1beta1.ICreateEvaluationJobRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CreateEvaluationJobRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CreateEvaluationJobRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest;
+
+ /**
+ * Decodes a CreateEvaluationJobRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CreateEvaluationJobRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest;
+
+ /**
+ * Verifies a CreateEvaluationJobRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a CreateEvaluationJobRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CreateEvaluationJobRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest;
+
+ /**
+ * Creates a plain object from a CreateEvaluationJobRequest message. Also converts values to other types if specified.
+ * @param message CreateEvaluationJobRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CreateEvaluationJobRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CreateEvaluationJobRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an UpdateEvaluationJobRequest. */
+ interface IUpdateEvaluationJobRequest {
+
+ /** UpdateEvaluationJobRequest evaluationJob */
+ evaluationJob?: (google.cloud.datalabeling.v1beta1.IEvaluationJob|null);
+
+ /** UpdateEvaluationJobRequest updateMask */
+ updateMask?: (google.protobuf.IFieldMask|null);
+ }
+
+ /** Represents an UpdateEvaluationJobRequest. */
+ class UpdateEvaluationJobRequest implements IUpdateEvaluationJobRequest {
+
+ /**
+ * Constructs a new UpdateEvaluationJobRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.datalabeling.v1beta1.IUpdateEvaluationJobRequest);
+
+ /** UpdateEvaluationJobRequest evaluationJob. */
+ public evaluationJob?: (google.cloud.datalabeling.v1beta1.IEvaluationJob|null);
+
+ /** UpdateEvaluationJobRequest updateMask. */
+ public updateMask?: (google.protobuf.IFieldMask|null);
+
+ /**
+ * Creates a new UpdateEvaluationJobRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns UpdateEvaluationJobRequest instance
+ */
+ public static create(properties?: google.cloud.datalabeling.v1beta1.IUpdateEvaluationJobRequest): google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest;
+
+ /**
+ * Encodes the specified UpdateEvaluationJobRequest message. Does not implicitly {@link google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest.verify|verify} messages.
+ * @param message UpdateEvaluationJobRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.datalabeling.v1beta1.IUpdateEvaluationJobRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified UpdateEvaluationJobRequest message, length delimited. Does not implicitly {@link google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest.verify|verify} messages.
+ * @param message UpdateEvaluationJobRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.datalabeling.v1beta1.IUpdateEvaluationJobRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an UpdateEvaluationJobRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns UpdateEvaluationJobRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest;
+
+ /**
+ * Decodes an UpdateEvaluationJobRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns UpdateEvaluationJobRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest;
+
+ /**
+ * Verifies an UpdateEvaluationJobRequest message.
+ * @param message Plain 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 UpdateEvaluationJobRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns UpdateEvaluationJobRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest;
+
+ /**
+ * Creates a plain object from an UpdateEvaluationJobRequest message. Also converts values to other types if specified.
+ * @param message UpdateEvaluationJobRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this UpdateEvaluationJobRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for UpdateEvaluationJobRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GetEvaluationJobRequest. */
+ interface IGetEvaluationJobRequest {
+
+ /** GetEvaluationJobRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a GetEvaluationJobRequest. */
+ class GetEvaluationJobRequest implements IGetEvaluationJobRequest {
+
+ /**
+ * Constructs a new GetEvaluationJobRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.datalabeling.v1beta1.IGetEvaluationJobRequest);
+
+ /** GetEvaluationJobRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new GetEvaluationJobRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetEvaluationJobRequest instance
+ */
+ public static create(properties?: google.cloud.datalabeling.v1beta1.IGetEvaluationJobRequest): google.cloud.datalabeling.v1beta1.GetEvaluationJobRequest;
+
+ /**
+ * Encodes the specified GetEvaluationJobRequest message. Does not implicitly {@link google.cloud.datalabeling.v1beta1.GetEvaluationJobRequest.verify|verify} messages.
+ * @param message GetEvaluationJobRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.datalabeling.v1beta1.IGetEvaluationJobRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetEvaluationJobRequest message, length delimited. Does not implicitly {@link google.cloud.datalabeling.v1beta1.GetEvaluationJobRequest.verify|verify} messages.
+ * @param message GetEvaluationJobRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.datalabeling.v1beta1.IGetEvaluationJobRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetEvaluationJobRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetEvaluationJobRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.datalabeling.v1beta1.GetEvaluationJobRequest;
+
+ /**
+ * Decodes a GetEvaluationJobRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetEvaluationJobRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.datalabeling.v1beta1.GetEvaluationJobRequest;
+
+ /**
+ * Verifies a GetEvaluationJobRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GetEvaluationJobRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetEvaluationJobRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.datalabeling.v1beta1.GetEvaluationJobRequest;
+
+ /**
+ * Creates a plain object from a GetEvaluationJobRequest message. Also converts values to other types if specified.
+ * @param message GetEvaluationJobRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.datalabeling.v1beta1.GetEvaluationJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetEvaluationJobRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetEvaluationJobRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a PauseEvaluationJobRequest. */
+ interface IPauseEvaluationJobRequest {
+
+ /** PauseEvaluationJobRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a PauseEvaluationJobRequest. */
+ class PauseEvaluationJobRequest implements IPauseEvaluationJobRequest {
+
+ /**
+ * Constructs a new PauseEvaluationJobRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.datalabeling.v1beta1.IPauseEvaluationJobRequest);
+
+ /** PauseEvaluationJobRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new PauseEvaluationJobRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns PauseEvaluationJobRequest instance
+ */
+ public static create(properties?: google.cloud.datalabeling.v1beta1.IPauseEvaluationJobRequest): google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest;
+
+ /**
+ * Encodes the specified PauseEvaluationJobRequest message. Does not implicitly {@link google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest.verify|verify} messages.
+ * @param message PauseEvaluationJobRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.datalabeling.v1beta1.IPauseEvaluationJobRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified PauseEvaluationJobRequest message, length delimited. Does not implicitly {@link google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest.verify|verify} messages.
+ * @param message PauseEvaluationJobRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.datalabeling.v1beta1.IPauseEvaluationJobRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a PauseEvaluationJobRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns PauseEvaluationJobRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest;
+
+ /**
+ * Decodes a PauseEvaluationJobRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns PauseEvaluationJobRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest;
+
+ /**
+ * Verifies a PauseEvaluationJobRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a PauseEvaluationJobRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns PauseEvaluationJobRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest;
+
+ /**
+ * Creates a plain object from a PauseEvaluationJobRequest message. Also converts values to other types if specified.
+ * @param message PauseEvaluationJobRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this PauseEvaluationJobRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for PauseEvaluationJobRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ResumeEvaluationJobRequest. */
+ interface IResumeEvaluationJobRequest {
+
+ /** ResumeEvaluationJobRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a ResumeEvaluationJobRequest. */
+ class ResumeEvaluationJobRequest implements IResumeEvaluationJobRequest {
+
+ /**
+ * Constructs a new ResumeEvaluationJobRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.datalabeling.v1beta1.IResumeEvaluationJobRequest);
+
+ /** ResumeEvaluationJobRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new ResumeEvaluationJobRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ResumeEvaluationJobRequest instance
+ */
+ public static create(properties?: google.cloud.datalabeling.v1beta1.IResumeEvaluationJobRequest): google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest;
+
+ /**
+ * Encodes the specified ResumeEvaluationJobRequest message. Does not implicitly {@link google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest.verify|verify} messages.
+ * @param message ResumeEvaluationJobRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.datalabeling.v1beta1.IResumeEvaluationJobRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ResumeEvaluationJobRequest message, length delimited. Does not implicitly {@link google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest.verify|verify} messages.
+ * @param message ResumeEvaluationJobRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.datalabeling.v1beta1.IResumeEvaluationJobRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ResumeEvaluationJobRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ResumeEvaluationJobRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest;
+
+ /**
+ * Decodes a ResumeEvaluationJobRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ResumeEvaluationJobRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest;
+
+ /**
+ * Verifies a ResumeEvaluationJobRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ResumeEvaluationJobRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ResumeEvaluationJobRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest;
+
+ /**
+ * Creates a plain object from a ResumeEvaluationJobRequest message. Also converts values to other types if specified.
+ * @param message ResumeEvaluationJobRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ResumeEvaluationJobRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ResumeEvaluationJobRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DeleteEvaluationJobRequest. */
+ interface IDeleteEvaluationJobRequest {
+
+ /** DeleteEvaluationJobRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a DeleteEvaluationJobRequest. */
+ class DeleteEvaluationJobRequest implements IDeleteEvaluationJobRequest {
+
+ /**
+ * Constructs a new DeleteEvaluationJobRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.datalabeling.v1beta1.IDeleteEvaluationJobRequest);
+
+ /** DeleteEvaluationJobRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new DeleteEvaluationJobRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DeleteEvaluationJobRequest instance
+ */
+ public static create(properties?: google.cloud.datalabeling.v1beta1.IDeleteEvaluationJobRequest): google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest;
+
+ /**
+ * Encodes the specified DeleteEvaluationJobRequest message. Does not implicitly {@link google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest.verify|verify} messages.
+ * @param message DeleteEvaluationJobRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.datalabeling.v1beta1.IDeleteEvaluationJobRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DeleteEvaluationJobRequest message, length delimited. Does not implicitly {@link google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest.verify|verify} messages.
+ * @param message DeleteEvaluationJobRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.datalabeling.v1beta1.IDeleteEvaluationJobRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DeleteEvaluationJobRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DeleteEvaluationJobRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest;
+
+ /**
+ * Decodes a DeleteEvaluationJobRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DeleteEvaluationJobRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest;
+
+ /**
+ * Verifies a DeleteEvaluationJobRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DeleteEvaluationJobRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DeleteEvaluationJobRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest;
+
+ /**
+ * Creates a plain object from a DeleteEvaluationJobRequest message. Also converts values to other types if specified.
+ * @param message DeleteEvaluationJobRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DeleteEvaluationJobRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DeleteEvaluationJobRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListEvaluationJobsRequest. */
+ interface IListEvaluationJobsRequest {
+
+ /** ListEvaluationJobsRequest parent */
+ parent?: (string|null);
+
+ /** ListEvaluationJobsRequest filter */
+ filter?: (string|null);
+
+ /** ListEvaluationJobsRequest pageSize */
+ pageSize?: (number|null);
+
+ /** ListEvaluationJobsRequest pageToken */
+ pageToken?: (string|null);
+ }
+
+ /** Represents a ListEvaluationJobsRequest. */
+ class ListEvaluationJobsRequest implements IListEvaluationJobsRequest {
+
+ /**
+ * Constructs a new ListEvaluationJobsRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.datalabeling.v1beta1.IListEvaluationJobsRequest);
+
+ /** ListEvaluationJobsRequest parent. */
+ public parent: string;
+
+ /** ListEvaluationJobsRequest filter. */
+ public filter: string;
+
+ /** ListEvaluationJobsRequest pageSize. */
+ public pageSize: number;
+
+ /** ListEvaluationJobsRequest pageToken. */
+ public pageToken: string;
+
+ /**
+ * Creates a new ListEvaluationJobsRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListEvaluationJobsRequest instance
+ */
+ public static create(properties?: google.cloud.datalabeling.v1beta1.IListEvaluationJobsRequest): google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequest;
+
+ /**
+ * Encodes the specified ListEvaluationJobsRequest message. Does not implicitly {@link google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequest.verify|verify} messages.
+ * @param message ListEvaluationJobsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.datalabeling.v1beta1.IListEvaluationJobsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListEvaluationJobsRequest message, length delimited. Does not implicitly {@link google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequest.verify|verify} messages.
+ * @param message ListEvaluationJobsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.datalabeling.v1beta1.IListEvaluationJobsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListEvaluationJobsRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListEvaluationJobsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequest;
+
+ /**
+ * Decodes a ListEvaluationJobsRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListEvaluationJobsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequest;
+
+ /**
+ * Verifies a ListEvaluationJobsRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListEvaluationJobsRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListEvaluationJobsRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequest;
+
+ /**
+ * Creates a plain object from a ListEvaluationJobsRequest message. Also converts values to other types if specified.
+ * @param message ListEvaluationJobsRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListEvaluationJobsRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListEvaluationJobsRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListEvaluationJobsResponse. */
+ interface IListEvaluationJobsResponse {
+
+ /** ListEvaluationJobsResponse evaluationJobs */
+ evaluationJobs?: (google.cloud.datalabeling.v1beta1.IEvaluationJob[]|null);
+
+ /** ListEvaluationJobsResponse nextPageToken */
+ nextPageToken?: (string|null);
+ }
+
+ /** Represents a ListEvaluationJobsResponse. */
+ class ListEvaluationJobsResponse implements IListEvaluationJobsResponse {
+
+ /**
+ * Constructs a new ListEvaluationJobsResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.datalabeling.v1beta1.IListEvaluationJobsResponse);
+
+ /** ListEvaluationJobsResponse evaluationJobs. */
+ public evaluationJobs: google.cloud.datalabeling.v1beta1.IEvaluationJob[];
+
+ /** ListEvaluationJobsResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /**
+ * Creates a new ListEvaluationJobsResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListEvaluationJobsResponse instance
+ */
+ public static create(properties?: google.cloud.datalabeling.v1beta1.IListEvaluationJobsResponse): google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse;
+
+ /**
+ * Encodes the specified ListEvaluationJobsResponse message. Does not implicitly {@link google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse.verify|verify} messages.
+ * @param message ListEvaluationJobsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.datalabeling.v1beta1.IListEvaluationJobsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListEvaluationJobsResponse message, length delimited. Does not implicitly {@link google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse.verify|verify} messages.
+ * @param message ListEvaluationJobsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.datalabeling.v1beta1.IListEvaluationJobsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListEvaluationJobsResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListEvaluationJobsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse;
+
+ /**
+ * Decodes a ListEvaluationJobsResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListEvaluationJobsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse;
+
+ /**
+ * Verifies a ListEvaluationJobsResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListEvaluationJobsResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListEvaluationJobsResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse;
+
+ /**
+ * Creates a plain object from a ListEvaluationJobsResponse message. Also converts values to other types if specified.
+ * @param message ListEvaluationJobsResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListEvaluationJobsResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListEvaluationJobsResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** DataType enum. */
+ enum DataType {
+ DATA_TYPE_UNSPECIFIED = 0,
+ IMAGE = 1,
+ VIDEO = 2,
+ TEXT = 4,
+ GENERAL_DATA = 6
+ }
+
+ /** Properties of a Dataset. */
+ interface IDataset {
+
+ /** Dataset name */
+ name?: (string|null);
+
+ /** Dataset displayName */
+ displayName?: (string|null);
+
+ /** Dataset description */
+ description?: (string|null);
+
+ /** Dataset createTime */
+ createTime?: (google.protobuf.ITimestamp|null);
+
+ /** Dataset inputConfigs */
+ inputConfigs?: (google.cloud.datalabeling.v1beta1.IInputConfig[]|null);
+
+ /** Dataset blockingResources */
+ blockingResources?: (string[]|null);
+
+ /** Dataset dataItemCount */
+ dataItemCount?: (number|Long|string|null);
+ }
+
+ /** Represents a Dataset. */
+ class Dataset implements IDataset {
+
+ /**
+ * Constructs a new Dataset.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.datalabeling.v1beta1.IDataset);
+
+ /** Dataset name. */
+ public name: string;
+
+ /** Dataset displayName. */
+ public displayName: string;
+
+ /** Dataset description. */
+ public description: string;
+
+ /** Dataset createTime. */
+ public createTime?: (google.protobuf.ITimestamp|null);
+
+ /** Dataset inputConfigs. */
+ public inputConfigs: google.cloud.datalabeling.v1beta1.IInputConfig[];
+
+ /** Dataset blockingResources. */
+ public blockingResources: string[];
+
+ /** Dataset dataItemCount. */
+ public dataItemCount: (number|Long|string);
+
+ /**
+ * Creates a new Dataset instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Dataset instance
+ */
+ public static create(properties?: google.cloud.datalabeling.v1beta1.IDataset): google.cloud.datalabeling.v1beta1.Dataset;
+
+ /**
+ * Encodes the specified Dataset message. Does not implicitly {@link google.cloud.datalabeling.v1beta1.Dataset.verify|verify} messages.
+ * @param message Dataset message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.datalabeling.v1beta1.IDataset, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Dataset message, length delimited. Does not implicitly {@link google.cloud.datalabeling.v1beta1.Dataset.verify|verify} messages.
+ * @param message Dataset message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.datalabeling.v1beta1.IDataset, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Dataset message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Dataset
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.datalabeling.v1beta1.Dataset;
+
+ /**
+ * Decodes a Dataset message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Dataset
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.datalabeling.v1beta1.Dataset;
+
+ /**
+ * Verifies a Dataset message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Dataset message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Dataset
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.datalabeling.v1beta1.Dataset;
+
+ /**
+ * Creates a plain object from a Dataset message. Also converts values to other types if specified.
+ * @param message Dataset
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.datalabeling.v1beta1.Dataset, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Dataset to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Dataset
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an InputConfig. */
+ interface IInputConfig {
+
+ /** InputConfig textMetadata */
+ textMetadata?: (google.cloud.datalabeling.v1beta1.ITextMetadata|null);
+
+ /** InputConfig gcsSource */
+ gcsSource?: (google.cloud.datalabeling.v1beta1.IGcsSource|null);
+
+ /** InputConfig bigquerySource */
+ bigquerySource?: (google.cloud.datalabeling.v1beta1.IBigQuerySource|null);
+
+ /** InputConfig dataType */
+ dataType?: (google.cloud.datalabeling.v1beta1.DataType|keyof typeof google.cloud.datalabeling.v1beta1.DataType|null);
+
+ /** InputConfig annotationType */
+ annotationType?: (google.cloud.datalabeling.v1beta1.AnnotationType|keyof typeof google.cloud.datalabeling.v1beta1.AnnotationType|null);
+
+ /** InputConfig classificationMetadata */
+ classificationMetadata?: (google.cloud.datalabeling.v1beta1.IClassificationMetadata|null);
+ }
+
+ /** Represents an InputConfig. */
+ class InputConfig implements IInputConfig {
+
+ /**
+ * Constructs a new InputConfig.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.datalabeling.v1beta1.IInputConfig);
+
+ /** InputConfig textMetadata. */
+ public textMetadata?: (google.cloud.datalabeling.v1beta1.ITextMetadata|null);
+
+ /** InputConfig gcsSource. */
+ public gcsSource?: (google.cloud.datalabeling.v1beta1.IGcsSource|null);
+
+ /** InputConfig bigquerySource. */
+ public bigquerySource?: (google.cloud.datalabeling.v1beta1.IBigQuerySource|null);
+
+ /** InputConfig dataType. */
+ public dataType: (google.cloud.datalabeling.v1beta1.DataType|keyof typeof google.cloud.datalabeling.v1beta1.DataType);
+
+ /** InputConfig annotationType. */
+ public annotationType: (google.cloud.datalabeling.v1beta1.AnnotationType|keyof typeof google.cloud.datalabeling.v1beta1.AnnotationType);
+
+ /** InputConfig classificationMetadata. */
+ public classificationMetadata?: (google.cloud.datalabeling.v1beta1.IClassificationMetadata|null);
+
+ /** InputConfig dataTypeMetadata. */
+ public dataTypeMetadata?: "textMetadata";
+
+ /** InputConfig source. */
+ public source?: ("gcsSource"|"bigquerySource");
+
+ /**
+ * Creates a new InputConfig instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns InputConfig instance
+ */
+ public static create(properties?: google.cloud.datalabeling.v1beta1.IInputConfig): google.cloud.datalabeling.v1beta1.InputConfig;
+
+ /**
+ * Encodes the specified InputConfig message. Does not implicitly {@link google.cloud.datalabeling.v1beta1.InputConfig.verify|verify} messages.
+ * @param message InputConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.datalabeling.v1beta1.IInputConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified InputConfig message, length delimited. Does not implicitly {@link google.cloud.datalabeling.v1beta1.InputConfig.verify|verify} messages.
+ * @param message InputConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.datalabeling.v1beta1.IInputConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an InputConfig message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns InputConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.datalabeling.v1beta1.InputConfig;
+
+ /**
+ * Decodes an InputConfig message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns InputConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.datalabeling.v1beta1.InputConfig;
+
+ /**
+ * Verifies an InputConfig message.
+ * @param message Plain 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 InputConfig message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns InputConfig
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.datalabeling.v1beta1.InputConfig;
+
+ /**
+ * Creates a plain object from an InputConfig message. Also converts values to other types if specified.
+ * @param message InputConfig
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.datalabeling.v1beta1.InputConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this InputConfig to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for InputConfig
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a TextMetadata. */
+ interface ITextMetadata {
+
+ /** TextMetadata languageCode */
+ languageCode?: (string|null);
+ }
+
+ /** Represents a TextMetadata. */
+ class TextMetadata implements ITextMetadata {
+
+ /**
+ * Constructs a new TextMetadata.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.datalabeling.v1beta1.ITextMetadata);
+
+ /** TextMetadata languageCode. */
+ public languageCode: string;
+
+ /**
+ * Creates a new TextMetadata instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns TextMetadata instance
+ */
+ public static create(properties?: google.cloud.datalabeling.v1beta1.ITextMetadata): google.cloud.datalabeling.v1beta1.TextMetadata;
+
+ /**
+ * Encodes the specified TextMetadata message. Does not implicitly {@link google.cloud.datalabeling.v1beta1.TextMetadata.verify|verify} messages.
+ * @param message TextMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.datalabeling.v1beta1.ITextMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified TextMetadata message, length delimited. Does not implicitly {@link google.cloud.datalabeling.v1beta1.TextMetadata.verify|verify} messages.
+ * @param message TextMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.datalabeling.v1beta1.ITextMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a TextMetadata message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns TextMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.datalabeling.v1beta1.TextMetadata;
+
+ /**
+ * Decodes a TextMetadata message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns TextMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.datalabeling.v1beta1.TextMetadata;
+
+ /**
+ * Verifies a TextMetadata message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a TextMetadata message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns TextMetadata
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.datalabeling.v1beta1.TextMetadata;
+
+ /**
+ * Creates a plain object from a TextMetadata message. Also converts values to other types if specified.
+ * @param message TextMetadata
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.datalabeling.v1beta1.TextMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this TextMetadata to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for TextMetadata
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ClassificationMetadata. */
+ interface IClassificationMetadata {
+
+ /** ClassificationMetadata isMultiLabel */
+ isMultiLabel?: (boolean|null);
+ }
+
+ /** Represents a ClassificationMetadata. */
+ class ClassificationMetadata implements IClassificationMetadata {
+
+ /**
+ * Constructs a new ClassificationMetadata.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.datalabeling.v1beta1.IClassificationMetadata);
+
+ /** ClassificationMetadata isMultiLabel. */
+ public isMultiLabel: boolean;
+
+ /**
+ * Creates a new ClassificationMetadata instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ClassificationMetadata instance
+ */
+ public static create(properties?: google.cloud.datalabeling.v1beta1.IClassificationMetadata): google.cloud.datalabeling.v1beta1.ClassificationMetadata;
+
+ /**
+ * Encodes the specified ClassificationMetadata message. Does not implicitly {@link google.cloud.datalabeling.v1beta1.ClassificationMetadata.verify|verify} messages.
+ * @param message ClassificationMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.datalabeling.v1beta1.IClassificationMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ClassificationMetadata message, length delimited. Does not implicitly {@link google.cloud.datalabeling.v1beta1.ClassificationMetadata.verify|verify} messages.
+ * @param message ClassificationMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.datalabeling.v1beta1.IClassificationMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ClassificationMetadata message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ClassificationMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.datalabeling.v1beta1.ClassificationMetadata;
+
+ /**
+ * Decodes a ClassificationMetadata message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ClassificationMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.datalabeling.v1beta1.ClassificationMetadata;
+
+ /**
+ * Verifies a ClassificationMetadata message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ClassificationMetadata message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ClassificationMetadata
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.datalabeling.v1beta1.ClassificationMetadata;
+
+ /**
+ * Creates a plain object from a ClassificationMetadata message. Also converts values to other types if specified.
+ * @param message ClassificationMetadata
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.datalabeling.v1beta1.ClassificationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ClassificationMetadata to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ClassificationMetadata
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GcsSource. */
+ interface IGcsSource {
+
+ /** GcsSource inputUri */
+ inputUri?: (string|null);
+
+ /** GcsSource mimeType */
+ mimeType?: (string|null);
+ }
+
+ /** Represents a GcsSource. */
+ class GcsSource implements IGcsSource {
+
+ /**
+ * Constructs a new GcsSource.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.datalabeling.v1beta1.IGcsSource);
+
+ /** GcsSource inputUri. */
+ public inputUri: string;
+
+ /** GcsSource mimeType. */
+ public mimeType: string;
+
+ /**
+ * Creates a new GcsSource instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GcsSource instance
+ */
+ public static create(properties?: google.cloud.datalabeling.v1beta1.IGcsSource): google.cloud.datalabeling.v1beta1.GcsSource;
+
+ /**
+ * Encodes the specified GcsSource message. Does not implicitly {@link google.cloud.datalabeling.v1beta1.GcsSource.verify|verify} messages.
+ * @param message GcsSource message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.datalabeling.v1beta1.IGcsSource, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GcsSource message, length delimited. Does not implicitly {@link google.cloud.datalabeling.v1beta1.GcsSource.verify|verify} messages.
+ * @param message GcsSource message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.datalabeling.v1beta1.IGcsSource, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GcsSource message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GcsSource
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.datalabeling.v1beta1.GcsSource;
+
+ /**
+ * Decodes a GcsSource message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GcsSource
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.datalabeling.v1beta1.GcsSource;
+
+ /**
+ * Verifies a GcsSource message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GcsSource message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GcsSource
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.datalabeling.v1beta1.GcsSource;
+
+ /**
+ * Creates a plain object from a GcsSource message. Also converts values to other types if specified.
+ * @param message GcsSource
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.datalabeling.v1beta1.GcsSource, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GcsSource to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GcsSource
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a BigQuerySource. */
+ interface IBigQuerySource {
+
+ /** BigQuerySource inputUri */
+ inputUri?: (string|null);
+ }
+
+ /** Represents a BigQuerySource. */
+ class BigQuerySource implements IBigQuerySource {
+
+ /**
+ * Constructs a new BigQuerySource.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.datalabeling.v1beta1.IBigQuerySource);
+
+ /** BigQuerySource inputUri. */
+ public inputUri: string;
+
+ /**
+ * Creates a new BigQuerySource instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns BigQuerySource instance
+ */
+ public static create(properties?: google.cloud.datalabeling.v1beta1.IBigQuerySource): google.cloud.datalabeling.v1beta1.BigQuerySource;
+
+ /**
+ * Encodes the specified BigQuerySource message. Does not implicitly {@link google.cloud.datalabeling.v1beta1.BigQuerySource.verify|verify} messages.
+ * @param message BigQuerySource message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.datalabeling.v1beta1.IBigQuerySource, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified BigQuerySource message, length delimited. Does not implicitly {@link google.cloud.datalabeling.v1beta1.BigQuerySource.verify|verify} messages.
+ * @param message BigQuerySource message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.datalabeling.v1beta1.IBigQuerySource, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a BigQuerySource message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns BigQuerySource
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.datalabeling.v1beta1.BigQuerySource;
+
+ /**
+ * Decodes a BigQuerySource message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns BigQuerySource
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.datalabeling.v1beta1.BigQuerySource;
+
+ /**
+ * Verifies a BigQuerySource message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a BigQuerySource message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns BigQuerySource
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.datalabeling.v1beta1.BigQuerySource;
+
+ /**
+ * Creates a plain object from a BigQuerySource message. Also converts values to other types if specified.
+ * @param message BigQuerySource
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.datalabeling.v1beta1.BigQuerySource, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this BigQuerySource to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for BigQuerySource
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an OutputConfig. */
+ interface IOutputConfig {
+
+ /** OutputConfig gcsDestination */
+ gcsDestination?: (google.cloud.datalabeling.v1beta1.IGcsDestination|null);
+
+ /** OutputConfig gcsFolderDestination */
+ gcsFolderDestination?: (google.cloud.datalabeling.v1beta1.IGcsFolderDestination|null);
+ }
+
+ /** Represents an OutputConfig. */
+ class OutputConfig implements IOutputConfig {
+
+ /**
+ * Constructs a new OutputConfig.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.datalabeling.v1beta1.IOutputConfig);
+
+ /** OutputConfig gcsDestination. */
+ public gcsDestination?: (google.cloud.datalabeling.v1beta1.IGcsDestination|null);
+
+ /** OutputConfig gcsFolderDestination. */
+ public gcsFolderDestination?: (google.cloud.datalabeling.v1beta1.IGcsFolderDestination|null);
+
+ /** OutputConfig destination. */
+ public destination?: ("gcsDestination"|"gcsFolderDestination");
+
+ /**
+ * Creates a new OutputConfig instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns OutputConfig instance
+ */
+ public static create(properties?: google.cloud.datalabeling.v1beta1.IOutputConfig): google.cloud.datalabeling.v1beta1.OutputConfig;
+
+ /**
+ * Encodes the specified OutputConfig message. Does not implicitly {@link google.cloud.datalabeling.v1beta1.OutputConfig.verify|verify} messages.
+ * @param message OutputConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.datalabeling.v1beta1.IOutputConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified OutputConfig message, length delimited. Does not implicitly {@link google.cloud.datalabeling.v1beta1.OutputConfig.verify|verify} messages.
+ * @param message OutputConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.datalabeling.v1beta1.IOutputConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an OutputConfig message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns OutputConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.datalabeling.v1beta1.OutputConfig;
+
+ /**
+ * Decodes an OutputConfig message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns OutputConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.datalabeling.v1beta1.OutputConfig;
+
+ /**
+ * Verifies an OutputConfig message.
+ * @param message Plain 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 OutputConfig message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns OutputConfig
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.datalabeling.v1beta1.OutputConfig;
+
+ /**
+ * Creates a plain object from an OutputConfig message. Also converts values to other types if specified.
+ * @param message OutputConfig
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.datalabeling.v1beta1.OutputConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this OutputConfig to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for OutputConfig
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GcsDestination. */
+ interface IGcsDestination {
+
+ /** GcsDestination outputUri */
+ outputUri?: (string|null);
+
+ /** GcsDestination mimeType */
+ mimeType?: (string|null);
+ }
+
+ /** Represents a GcsDestination. */
+ class GcsDestination implements IGcsDestination {
+
+ /**
+ * Constructs a new GcsDestination.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.datalabeling.v1beta1.IGcsDestination);
+
+ /** GcsDestination outputUri. */
+ public outputUri: string;
+
+ /** GcsDestination mimeType. */
+ public mimeType: string;
+
+ /**
+ * Creates a new GcsDestination instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GcsDestination instance
+ */
+ public static create(properties?: google.cloud.datalabeling.v1beta1.IGcsDestination): google.cloud.datalabeling.v1beta1.GcsDestination;
+
+ /**
+ * Encodes the specified GcsDestination message. Does not implicitly {@link google.cloud.datalabeling.v1beta1.GcsDestination.verify|verify} messages.
+ * @param message GcsDestination message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.datalabeling.v1beta1.IGcsDestination, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GcsDestination message, length delimited. Does not implicitly {@link google.cloud.datalabeling.v1beta1.GcsDestination.verify|verify} messages.
+ * @param message GcsDestination message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.datalabeling.v1beta1.IGcsDestination, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GcsDestination message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GcsDestination
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.datalabeling.v1beta1.GcsDestination;
+
+ /**
+ * Decodes a GcsDestination message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GcsDestination
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.datalabeling.v1beta1.GcsDestination;
+
+ /**
+ * Verifies a GcsDestination message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GcsDestination message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GcsDestination
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.datalabeling.v1beta1.GcsDestination;
+
+ /**
+ * Creates a plain object from a GcsDestination message. Also converts values to other types if specified.
+ * @param message GcsDestination
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.datalabeling.v1beta1.GcsDestination, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GcsDestination to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GcsDestination
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GcsFolderDestination. */
+ interface IGcsFolderDestination {
+
+ /** GcsFolderDestination outputFolderUri */
+ outputFolderUri?: (string|null);
+ }
+
+ /** Represents a GcsFolderDestination. */
+ class GcsFolderDestination implements IGcsFolderDestination {
+
+ /**
+ * Constructs a new GcsFolderDestination.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.datalabeling.v1beta1.IGcsFolderDestination);
+
+ /** GcsFolderDestination outputFolderUri. */
+ public outputFolderUri: string;
+
+ /**
+ * Creates a new GcsFolderDestination instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GcsFolderDestination instance
+ */
+ public static create(properties?: google.cloud.datalabeling.v1beta1.IGcsFolderDestination): google.cloud.datalabeling.v1beta1.GcsFolderDestination;
+
+ /**
+ * Encodes the specified GcsFolderDestination message. Does not implicitly {@link google.cloud.datalabeling.v1beta1.GcsFolderDestination.verify|verify} messages.
+ * @param message GcsFolderDestination message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.datalabeling.v1beta1.IGcsFolderDestination, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GcsFolderDestination message, length delimited. Does not implicitly {@link google.cloud.datalabeling.v1beta1.GcsFolderDestination.verify|verify} messages.
+ * @param message GcsFolderDestination message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.datalabeling.v1beta1.IGcsFolderDestination, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GcsFolderDestination message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GcsFolderDestination
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.datalabeling.v1beta1.GcsFolderDestination;
+
+ /**
+ * Decodes a GcsFolderDestination message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GcsFolderDestination
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.datalabeling.v1beta1.GcsFolderDestination;
+
+ /**
+ * Verifies a GcsFolderDestination message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GcsFolderDestination message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GcsFolderDestination
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.datalabeling.v1beta1.GcsFolderDestination;
+
+ /**
+ * Creates a plain object from a GcsFolderDestination message. Also converts values to other types if specified.
+ * @param message GcsFolderDestination
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.datalabeling.v1beta1.GcsFolderDestination, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GcsFolderDestination to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GcsFolderDestination
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DataItem. */
+ interface IDataItem {
+
+ /** DataItem imagePayload */
+ imagePayload?: (google.cloud.datalabeling.v1beta1.IImagePayload|null);
+
+ /** DataItem textPayload */
+ textPayload?: (google.cloud.datalabeling.v1beta1.ITextPayload|null);
+
+ /** DataItem videoPayload */
+ videoPayload?: (google.cloud.datalabeling.v1beta1.IVideoPayload|null);
+
+ /** DataItem name */
+ name?: (string|null);
+ }
+
+ /** Represents a DataItem. */
+ class DataItem implements IDataItem {
+
+ /**
+ * Constructs a new DataItem.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.datalabeling.v1beta1.IDataItem);
+
+ /** DataItem imagePayload. */
+ public imagePayload?: (google.cloud.datalabeling.v1beta1.IImagePayload|null);
+
+ /** DataItem textPayload. */
+ public textPayload?: (google.cloud.datalabeling.v1beta1.ITextPayload|null);
+
+ /** DataItem videoPayload. */
+ public videoPayload?: (google.cloud.datalabeling.v1beta1.IVideoPayload|null);
+
+ /** DataItem name. */
+ public name: string;
+
+ /** DataItem payload. */
+ public payload?: ("imagePayload"|"textPayload"|"videoPayload");
+
+ /**
+ * Creates a new DataItem instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DataItem instance
+ */
+ public static create(properties?: google.cloud.datalabeling.v1beta1.IDataItem): google.cloud.datalabeling.v1beta1.DataItem;
+
+ /**
+ * Encodes the specified DataItem message. Does not implicitly {@link google.cloud.datalabeling.v1beta1.DataItem.verify|verify} messages.
+ * @param message DataItem message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.datalabeling.v1beta1.IDataItem, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DataItem message, length delimited. Does not implicitly {@link google.cloud.datalabeling.v1beta1.DataItem.verify|verify} messages.
+ * @param message DataItem message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.datalabeling.v1beta1.IDataItem, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DataItem message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DataItem
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.datalabeling.v1beta1.DataItem;
+
+ /**
+ * Decodes a DataItem message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DataItem
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.datalabeling.v1beta1.DataItem;
+
+ /**
+ * Verifies a DataItem message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DataItem message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DataItem
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.datalabeling.v1beta1.DataItem;
+
+ /**
+ * Creates a plain object from a DataItem message. Also converts values to other types if specified.
+ * @param message DataItem
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.datalabeling.v1beta1.DataItem, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DataItem to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DataItem
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an AnnotatedDataset. */
+ interface IAnnotatedDataset {
+
+ /** AnnotatedDataset name */
+ name?: (string|null);
+
+ /** AnnotatedDataset displayName */
+ displayName?: (string|null);
+
+ /** AnnotatedDataset description */
+ description?: (string|null);
+
+ /** AnnotatedDataset annotationSource */
+ annotationSource?: (google.cloud.datalabeling.v1beta1.AnnotationSource|keyof typeof google.cloud.datalabeling.v1beta1.AnnotationSource|null);
+
+ /** AnnotatedDataset annotationType */
+ annotationType?: (google.cloud.datalabeling.v1beta1.AnnotationType|keyof typeof google.cloud.datalabeling.v1beta1.AnnotationType|null);
+
+ /** AnnotatedDataset exampleCount */
+ exampleCount?: (number|Long|string|null);
+
+ /** AnnotatedDataset completedExampleCount */
+ completedExampleCount?: (number|Long|string|null);
+
+ /** AnnotatedDataset labelStats */
+ labelStats?: (google.cloud.datalabeling.v1beta1.ILabelStats|null);
+
+ /** AnnotatedDataset createTime */
+ createTime?: (google.protobuf.ITimestamp|null);
+
+ /** AnnotatedDataset metadata */
+ metadata?: (google.cloud.datalabeling.v1beta1.IAnnotatedDatasetMetadata|null);
+
+ /** AnnotatedDataset blockingResources */
+ blockingResources?: (string[]|null);
+ }
+
+ /** Represents an AnnotatedDataset. */
+ class AnnotatedDataset implements IAnnotatedDataset {
+
+ /**
+ * Constructs a new AnnotatedDataset.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.datalabeling.v1beta1.IAnnotatedDataset);
+
+ /** AnnotatedDataset name. */
+ public name: string;
+
+ /** AnnotatedDataset displayName. */
+ public displayName: string;
+
+ /** AnnotatedDataset description. */
+ public description: string;
+
+ /** AnnotatedDataset annotationSource. */
+ public annotationSource: (google.cloud.datalabeling.v1beta1.AnnotationSource|keyof typeof google.cloud.datalabeling.v1beta1.AnnotationSource);
+
+ /** AnnotatedDataset annotationType. */
+ public annotationType: (google.cloud.datalabeling.v1beta1.AnnotationType|keyof typeof google.cloud.datalabeling.v1beta1.AnnotationType);
+
+ /** AnnotatedDataset exampleCount. */
+ public exampleCount: (number|Long|string);
+
+ /** AnnotatedDataset completedExampleCount. */
+ public completedExampleCount: (number|Long|string);
+
+ /** AnnotatedDataset labelStats. */
+ public labelStats?: (google.cloud.datalabeling.v1beta1.ILabelStats|null);
+
+ /** AnnotatedDataset createTime. */
+ public createTime?: (google.protobuf.ITimestamp|null);
+
+ /** AnnotatedDataset metadata. */
+ public metadata?: (google.cloud.datalabeling.v1beta1.IAnnotatedDatasetMetadata|null);
+
+ /** AnnotatedDataset blockingResources. */
+ public blockingResources: string[];
+
+ /**
+ * Creates a new AnnotatedDataset instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns AnnotatedDataset instance
+ */
+ public static create(properties?: google.cloud.datalabeling.v1beta1.IAnnotatedDataset): google.cloud.datalabeling.v1beta1.AnnotatedDataset;
+
+ /**
+ * Encodes the specified AnnotatedDataset message. Does not implicitly {@link google.cloud.datalabeling.v1beta1.AnnotatedDataset.verify|verify} messages.
+ * @param message AnnotatedDataset message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.datalabeling.v1beta1.IAnnotatedDataset, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified AnnotatedDataset message, length delimited. Does not implicitly {@link google.cloud.datalabeling.v1beta1.AnnotatedDataset.verify|verify} messages.
+ * @param message AnnotatedDataset message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.datalabeling.v1beta1.IAnnotatedDataset, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an AnnotatedDataset message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns AnnotatedDataset
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.datalabeling.v1beta1.AnnotatedDataset;
+
+ /**
+ * Decodes an AnnotatedDataset message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns AnnotatedDataset
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.datalabeling.v1beta1.AnnotatedDataset;
+
+ /**
+ * Verifies an AnnotatedDataset message.
+ * @param message Plain 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 AnnotatedDataset message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns AnnotatedDataset
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.datalabeling.v1beta1.AnnotatedDataset;
+
+ /**
+ * Creates a plain object from an AnnotatedDataset message. Also converts values to other types if specified.
+ * @param message AnnotatedDataset
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.datalabeling.v1beta1.AnnotatedDataset, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this AnnotatedDataset to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for AnnotatedDataset
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a LabelStats. */
+ interface ILabelStats {
+
+ /** LabelStats exampleCount */
+ exampleCount?: ({ [k: string]: (number|Long|string) }|null);
+ }
+
+ /** Represents a LabelStats. */
+ class LabelStats implements ILabelStats {
+
+ /**
+ * Constructs a new LabelStats.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.datalabeling.v1beta1.ILabelStats);
+
+ /** LabelStats exampleCount. */
+ public exampleCount: { [k: string]: (number|Long|string) };
+
+ /**
+ * Creates a new LabelStats instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns LabelStats instance
+ */
+ public static create(properties?: google.cloud.datalabeling.v1beta1.ILabelStats): google.cloud.datalabeling.v1beta1.LabelStats;
+
+ /**
+ * Encodes the specified LabelStats message. Does not implicitly {@link google.cloud.datalabeling.v1beta1.LabelStats.verify|verify} messages.
+ * @param message LabelStats message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.datalabeling.v1beta1.ILabelStats, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified LabelStats message, length delimited. Does not implicitly {@link google.cloud.datalabeling.v1beta1.LabelStats.verify|verify} messages.
+ * @param message LabelStats message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.datalabeling.v1beta1.ILabelStats, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a LabelStats message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns LabelStats
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.datalabeling.v1beta1.LabelStats;
+
+ /**
+ * Decodes a LabelStats message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns LabelStats
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.datalabeling.v1beta1.LabelStats;
+
+ /**
+ * Verifies a LabelStats message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a LabelStats message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns LabelStats
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.datalabeling.v1beta1.LabelStats;
+
+ /**
+ * Creates a plain object from a LabelStats message. Also converts values to other types if specified.
+ * @param message LabelStats
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.datalabeling.v1beta1.LabelStats, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this LabelStats to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for LabelStats
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an AnnotatedDatasetMetadata. */
+ interface IAnnotatedDatasetMetadata {
+
+ /** AnnotatedDatasetMetadata imageClassificationConfig */
+ imageClassificationConfig?: (google.cloud.datalabeling.v1beta1.IImageClassificationConfig|null);
+
+ /** AnnotatedDatasetMetadata boundingPolyConfig */
+ boundingPolyConfig?: (google.cloud.datalabeling.v1beta1.IBoundingPolyConfig|null);
+
+ /** AnnotatedDatasetMetadata polylineConfig */
+ polylineConfig?: (google.cloud.datalabeling.v1beta1.IPolylineConfig|null);
+
+ /** AnnotatedDatasetMetadata segmentationConfig */
+ segmentationConfig?: (google.cloud.datalabeling.v1beta1.ISegmentationConfig|null);
+
+ /** AnnotatedDatasetMetadata videoClassificationConfig */
+ videoClassificationConfig?: (google.cloud.datalabeling.v1beta1.IVideoClassificationConfig|null);
+
+ /** AnnotatedDatasetMetadata objectDetectionConfig */
+ objectDetectionConfig?: (google.cloud.datalabeling.v1beta1.IObjectDetectionConfig|null);
+
+ /** AnnotatedDatasetMetadata objectTrackingConfig */
+ objectTrackingConfig?: (google.cloud.datalabeling.v1beta1.IObjectTrackingConfig|null);
+
+ /** AnnotatedDatasetMetadata eventConfig */
+ eventConfig?: (google.cloud.datalabeling.v1beta1.IEventConfig|null);
+
+ /** AnnotatedDatasetMetadata textClassificationConfig */
+ textClassificationConfig?: (google.cloud.datalabeling.v1beta1.ITextClassificationConfig|null);
+
+ /** AnnotatedDatasetMetadata textEntityExtractionConfig */
+ textEntityExtractionConfig?: (google.cloud.datalabeling.v1beta1.ITextEntityExtractionConfig|null);
+
+ /** AnnotatedDatasetMetadata humanAnnotationConfig */
+ humanAnnotationConfig?: (google.cloud.datalabeling.v1beta1.IHumanAnnotationConfig|null);
+ }
+
+ /** Represents an AnnotatedDatasetMetadata. */
+ class AnnotatedDatasetMetadata implements IAnnotatedDatasetMetadata {
+
+ /**
+ * Constructs a new AnnotatedDatasetMetadata.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.datalabeling.v1beta1.IAnnotatedDatasetMetadata);
+
+ /** AnnotatedDatasetMetadata imageClassificationConfig. */
+ public imageClassificationConfig?: (google.cloud.datalabeling.v1beta1.IImageClassificationConfig|null);
+
+ /** AnnotatedDatasetMetadata boundingPolyConfig. */
+ public boundingPolyConfig?: (google.cloud.datalabeling.v1beta1.IBoundingPolyConfig|null);
+
+ /** AnnotatedDatasetMetadata polylineConfig. */
+ public polylineConfig?: (google.cloud.datalabeling.v1beta1.IPolylineConfig|null);
+
+ /** AnnotatedDatasetMetadata segmentationConfig. */
+ public segmentationConfig?: (google.cloud.datalabeling.v1beta1.ISegmentationConfig|null);
+
+ /** AnnotatedDatasetMetadata videoClassificationConfig. */
+ public videoClassificationConfig?: (google.cloud.datalabeling.v1beta1.IVideoClassificationConfig|null);
+
+ /** AnnotatedDatasetMetadata objectDetectionConfig. */
+ public objectDetectionConfig?: (google.cloud.datalabeling.v1beta1.IObjectDetectionConfig|null);
+
+ /** AnnotatedDatasetMetadata objectTrackingConfig. */
+ public objectTrackingConfig?: (google.cloud.datalabeling.v1beta1.IObjectTrackingConfig|null);
+
+ /** AnnotatedDatasetMetadata eventConfig. */
+ public eventConfig?: (google.cloud.datalabeling.v1beta1.IEventConfig|null);
+
+ /** AnnotatedDatasetMetadata textClassificationConfig. */
+ public textClassificationConfig?: (google.cloud.datalabeling.v1beta1.ITextClassificationConfig|null);
+
+ /** AnnotatedDatasetMetadata textEntityExtractionConfig. */
+ public textEntityExtractionConfig?: (google.cloud.datalabeling.v1beta1.ITextEntityExtractionConfig|null);
+
+ /** AnnotatedDatasetMetadata humanAnnotationConfig. */
+ public humanAnnotationConfig?: (google.cloud.datalabeling.v1beta1.IHumanAnnotationConfig|null);
+
+ /** AnnotatedDatasetMetadata annotationRequestConfig. */
+ public annotationRequestConfig?: ("imageClassificationConfig"|"boundingPolyConfig"|"polylineConfig"|"segmentationConfig"|"videoClassificationConfig"|"objectDetectionConfig"|"objectTrackingConfig"|"eventConfig"|"textClassificationConfig"|"textEntityExtractionConfig");
+
+ /**
+ * Creates a new AnnotatedDatasetMetadata instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns AnnotatedDatasetMetadata instance
+ */
+ public static create(properties?: google.cloud.datalabeling.v1beta1.IAnnotatedDatasetMetadata): google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata;
+
+ /**
+ * Encodes the specified AnnotatedDatasetMetadata message. Does not implicitly {@link google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata.verify|verify} messages.
+ * @param message AnnotatedDatasetMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.datalabeling.v1beta1.IAnnotatedDatasetMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified AnnotatedDatasetMetadata message, length delimited. Does not implicitly {@link google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata.verify|verify} messages.
+ * @param message AnnotatedDatasetMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.datalabeling.v1beta1.IAnnotatedDatasetMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an AnnotatedDatasetMetadata message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns AnnotatedDatasetMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata;
+
+ /**
+ * Decodes an AnnotatedDatasetMetadata message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns AnnotatedDatasetMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata;
+
+ /**
+ * Verifies an AnnotatedDatasetMetadata message.
+ * @param message Plain 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 AnnotatedDatasetMetadata message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns AnnotatedDatasetMetadata
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata;
+
+ /**
+ * Creates a plain object from an AnnotatedDatasetMetadata message. Also converts values to other types if specified.
+ * @param message AnnotatedDatasetMetadata
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this AnnotatedDatasetMetadata to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for AnnotatedDatasetMetadata
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an Example. */
+ interface IExample {
+
+ /** Example imagePayload */
+ imagePayload?: (google.cloud.datalabeling.v1beta1.IImagePayload|null);
+
+ /** Example textPayload */
+ textPayload?: (google.cloud.datalabeling.v1beta1.ITextPayload|null);
+
+ /** Example videoPayload */
+ videoPayload?: (google.cloud.datalabeling.v1beta1.IVideoPayload|null);
+
+ /** Example name */
+ name?: (string|null);
+
+ /** Example annotations */
+ annotations?: (google.cloud.datalabeling.v1beta1.IAnnotation[]|null);
+ }
+
+ /** Represents an Example. */
+ class Example implements IExample {
+
+ /**
+ * Constructs a new Example.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.datalabeling.v1beta1.IExample);
+
+ /** Example imagePayload. */
+ public imagePayload?: (google.cloud.datalabeling.v1beta1.IImagePayload|null);
+
+ /** Example textPayload. */
+ public textPayload?: (google.cloud.datalabeling.v1beta1.ITextPayload|null);
+
+ /** Example videoPayload. */
+ public videoPayload?: (google.cloud.datalabeling.v1beta1.IVideoPayload|null);
+
+ /** Example name. */
+ public name: string;
+
+ /** Example annotations. */
+ public annotations: google.cloud.datalabeling.v1beta1.IAnnotation[];
+
+ /** Example payload. */
+ public payload?: ("imagePayload"|"textPayload"|"videoPayload");
+
+ /**
+ * Creates a new Example instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Example instance
+ */
+ public static create(properties?: google.cloud.datalabeling.v1beta1.IExample): google.cloud.datalabeling.v1beta1.Example;
+
+ /**
+ * Encodes the specified Example message. Does not implicitly {@link google.cloud.datalabeling.v1beta1.Example.verify|verify} messages.
+ * @param message Example message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.datalabeling.v1beta1.IExample, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Example message, length delimited. Does not implicitly {@link google.cloud.datalabeling.v1beta1.Example.verify|verify} messages.
+ * @param message Example message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.datalabeling.v1beta1.IExample, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an Example message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Example
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.datalabeling.v1beta1.Example;
+
+ /**
+ * Decodes an Example message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Example
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.datalabeling.v1beta1.Example;
+
+ /**
+ * Verifies an Example message.
+ * @param message Plain 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 Example message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Example
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.datalabeling.v1beta1.Example;
+
+ /**
+ * Creates a plain object from an Example message. Also converts values to other types if specified.
+ * @param message Example
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.datalabeling.v1beta1.Example, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Example to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Example
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an ImagePayload. */
+ interface IImagePayload {
+
+ /** ImagePayload mimeType */
+ mimeType?: (string|null);
+
+ /** ImagePayload imageThumbnail */
+ imageThumbnail?: (Uint8Array|string|null);
+
+ /** ImagePayload imageUri */
+ imageUri?: (string|null);
+
+ /** ImagePayload signedUri */
+ signedUri?: (string|null);
+ }
+
+ /** Represents an ImagePayload. */
+ class ImagePayload implements IImagePayload {
+
+ /**
+ * Constructs a new ImagePayload.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.datalabeling.v1beta1.IImagePayload);
+
+ /** ImagePayload mimeType. */
+ public mimeType: string;
+
+ /** ImagePayload imageThumbnail. */
+ public imageThumbnail: (Uint8Array|string);
+
+ /** ImagePayload imageUri. */
+ public imageUri: string;
+
+ /** ImagePayload signedUri. */
+ public signedUri: string;
+
+ /**
+ * Creates a new ImagePayload instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ImagePayload instance
+ */
+ public static create(properties?: google.cloud.datalabeling.v1beta1.IImagePayload): google.cloud.datalabeling.v1beta1.ImagePayload;
+
+ /**
+ * Encodes the specified ImagePayload message. Does not implicitly {@link google.cloud.datalabeling.v1beta1.ImagePayload.verify|verify} messages.
+ * @param message ImagePayload message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.datalabeling.v1beta1.IImagePayload, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ImagePayload message, length delimited. Does not implicitly {@link google.cloud.datalabeling.v1beta1.ImagePayload.verify|verify} messages.
+ * @param message ImagePayload message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.datalabeling.v1beta1.IImagePayload, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an ImagePayload message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ImagePayload
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.datalabeling.v1beta1.ImagePayload;
+
+ /**
+ * Decodes an ImagePayload message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ImagePayload
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.datalabeling.v1beta1.ImagePayload;
+
+ /**
+ * Verifies an ImagePayload message.
+ * @param message Plain 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 ImagePayload message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ImagePayload
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.datalabeling.v1beta1.ImagePayload;
+
+ /**
+ * Creates a plain object from an ImagePayload message. Also converts values to other types if specified.
+ * @param message ImagePayload
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.datalabeling.v1beta1.ImagePayload, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ImagePayload to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ImagePayload
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a TextPayload. */
+ interface ITextPayload {
+
+ /** TextPayload textContent */
+ textContent?: (string|null);
+ }
+
+ /** Represents a TextPayload. */
+ class TextPayload implements ITextPayload {
+
+ /**
+ * Constructs a new TextPayload.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.datalabeling.v1beta1.ITextPayload);
+
+ /** TextPayload textContent. */
+ public textContent: string;
+
+ /**
+ * Creates a new TextPayload instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns TextPayload instance
+ */
+ public static create(properties?: google.cloud.datalabeling.v1beta1.ITextPayload): google.cloud.datalabeling.v1beta1.TextPayload;
+
+ /**
+ * Encodes the specified TextPayload message. Does not implicitly {@link google.cloud.datalabeling.v1beta1.TextPayload.verify|verify} messages.
+ * @param message TextPayload message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.datalabeling.v1beta1.ITextPayload, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified TextPayload message, length delimited. Does not implicitly {@link google.cloud.datalabeling.v1beta1.TextPayload.verify|verify} messages.
+ * @param message TextPayload message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.datalabeling.v1beta1.ITextPayload, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a TextPayload message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns TextPayload
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.datalabeling.v1beta1.TextPayload;
+
+ /**
+ * Decodes a TextPayload message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns TextPayload
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.datalabeling.v1beta1.TextPayload;
+
+ /**
+ * Verifies a TextPayload message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a TextPayload message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns TextPayload
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.datalabeling.v1beta1.TextPayload;
+
+ /**
+ * Creates a plain object from a TextPayload message. Also converts values to other types if specified.
+ * @param message TextPayload
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.datalabeling.v1beta1.TextPayload, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this TextPayload to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for TextPayload
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a VideoThumbnail. */
+ interface IVideoThumbnail {
+
+ /** VideoThumbnail thumbnail */
+ thumbnail?: (Uint8Array|string|null);
+
+ /** VideoThumbnail timeOffset */
+ timeOffset?: (google.protobuf.IDuration|null);
+ }
+
+ /** Represents a VideoThumbnail. */
+ class VideoThumbnail implements IVideoThumbnail {
+
+ /**
+ * Constructs a new VideoThumbnail.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.datalabeling.v1beta1.IVideoThumbnail);
+
+ /** VideoThumbnail thumbnail. */
+ public thumbnail: (Uint8Array|string);
+
+ /** VideoThumbnail timeOffset. */
+ public timeOffset?: (google.protobuf.IDuration|null);
+
+ /**
+ * Creates a new VideoThumbnail instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns VideoThumbnail instance
+ */
+ public static create(properties?: google.cloud.datalabeling.v1beta1.IVideoThumbnail): google.cloud.datalabeling.v1beta1.VideoThumbnail;
+
+ /**
+ * Encodes the specified VideoThumbnail message. Does not implicitly {@link google.cloud.datalabeling.v1beta1.VideoThumbnail.verify|verify} messages.
+ * @param message VideoThumbnail message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.datalabeling.v1beta1.IVideoThumbnail, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified VideoThumbnail message, length delimited. Does not implicitly {@link google.cloud.datalabeling.v1beta1.VideoThumbnail.verify|verify} messages.
+ * @param message VideoThumbnail message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.datalabeling.v1beta1.IVideoThumbnail, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a VideoThumbnail message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns VideoThumbnail
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.datalabeling.v1beta1.VideoThumbnail;
+
+ /**
+ * Decodes a VideoThumbnail message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns VideoThumbnail
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.datalabeling.v1beta1.VideoThumbnail;
+
+ /**
+ * Verifies a VideoThumbnail message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a VideoThumbnail message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns VideoThumbnail
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.datalabeling.v1beta1.VideoThumbnail;
+
+ /**
+ * Creates a plain object from a VideoThumbnail message. Also converts values to other types if specified.
+ * @param message VideoThumbnail
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.datalabeling.v1beta1.VideoThumbnail, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this VideoThumbnail to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for VideoThumbnail
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a VideoPayload. */
+ interface IVideoPayload {
+
+ /** VideoPayload mimeType */
+ mimeType?: (string|null);
+
+ /** VideoPayload videoUri */
+ videoUri?: (string|null);
+
+ /** VideoPayload videoThumbnails */
+ videoThumbnails?: (google.cloud.datalabeling.v1beta1.IVideoThumbnail[]|null);
+
+ /** VideoPayload frameRate */
+ frameRate?: (number|null);
+
+ /** VideoPayload signedUri */
+ signedUri?: (string|null);
+ }
+
+ /** Represents a VideoPayload. */
+ class VideoPayload implements IVideoPayload {
+
+ /**
+ * Constructs a new VideoPayload.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.datalabeling.v1beta1.IVideoPayload);
+
+ /** VideoPayload mimeType. */
+ public mimeType: string;
+
+ /** VideoPayload videoUri. */
+ public videoUri: string;
+
+ /** VideoPayload videoThumbnails. */
+ public videoThumbnails: google.cloud.datalabeling.v1beta1.IVideoThumbnail[];
+
+ /** VideoPayload frameRate. */
+ public frameRate: number;
+
+ /** VideoPayload signedUri. */
+ public signedUri: string;
+
+ /**
+ * Creates a new VideoPayload instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns VideoPayload instance
+ */
+ public static create(properties?: google.cloud.datalabeling.v1beta1.IVideoPayload): google.cloud.datalabeling.v1beta1.VideoPayload;
+
+ /**
+ * Encodes the specified VideoPayload message. Does not implicitly {@link google.cloud.datalabeling.v1beta1.VideoPayload.verify|verify} messages.
+ * @param message VideoPayload message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.datalabeling.v1beta1.IVideoPayload, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified VideoPayload message, length delimited. Does not implicitly {@link google.cloud.datalabeling.v1beta1.VideoPayload.verify|verify} messages.
+ * @param message VideoPayload message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.datalabeling.v1beta1.IVideoPayload, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a VideoPayload message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns VideoPayload
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.datalabeling.v1beta1.VideoPayload;
+
+ /**
+ * Decodes a VideoPayload message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns VideoPayload
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.datalabeling.v1beta1.VideoPayload;
+
+ /**
+ * Verifies a VideoPayload message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a VideoPayload message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns VideoPayload
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.datalabeling.v1beta1.VideoPayload;
+
+ /**
+ * Creates a plain object from a VideoPayload message. Also converts values to other types if specified.
+ * @param message VideoPayload
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.datalabeling.v1beta1.VideoPayload, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this VideoPayload to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for VideoPayload
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** StringAggregationType enum. */
+ enum StringAggregationType {
+ STRING_AGGREGATION_TYPE_UNSPECIFIED = 0,
+ MAJORITY_VOTE = 1,
+ UNANIMOUS_VOTE = 2,
+ NO_AGGREGATION = 3
+ }
+
+ /** Properties of a HumanAnnotationConfig. */
+ interface IHumanAnnotationConfig {
+
+ /** HumanAnnotationConfig instruction */
+ instruction?: (string|null);
+
+ /** HumanAnnotationConfig annotatedDatasetDisplayName */
+ annotatedDatasetDisplayName?: (string|null);
+
+ /** HumanAnnotationConfig annotatedDatasetDescription */
+ annotatedDatasetDescription?: (string|null);
+
+ /** HumanAnnotationConfig labelGroup */
+ labelGroup?: (string|null);
+
+ /** HumanAnnotationConfig languageCode */
+ languageCode?: (string|null);
+
+ /** HumanAnnotationConfig replicaCount */
+ replicaCount?: (number|null);
+
+ /** HumanAnnotationConfig questionDuration */
+ questionDuration?: (google.protobuf.IDuration|null);
+
+ /** HumanAnnotationConfig contributorEmails */
+ contributorEmails?: (string[]|null);
+
+ /** HumanAnnotationConfig userEmailAddress */
+ userEmailAddress?: (string|null);
+ }
+
+ /** Represents a HumanAnnotationConfig. */
+ class HumanAnnotationConfig implements IHumanAnnotationConfig {
+
+ /**
+ * Constructs a new HumanAnnotationConfig.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.datalabeling.v1beta1.IHumanAnnotationConfig);
+
+ /** HumanAnnotationConfig instruction. */
+ public instruction: string;
+
+ /** HumanAnnotationConfig annotatedDatasetDisplayName. */
+ public annotatedDatasetDisplayName: string;
+
+ /** HumanAnnotationConfig annotatedDatasetDescription. */
+ public annotatedDatasetDescription: string;
+
+ /** HumanAnnotationConfig labelGroup. */
+ public labelGroup: string;
+
+ /** HumanAnnotationConfig languageCode. */
+ public languageCode: string;
+
+ /** HumanAnnotationConfig replicaCount. */
+ public replicaCount: number;
+
+ /** HumanAnnotationConfig questionDuration. */
+ public questionDuration?: (google.protobuf.IDuration|null);
+
+ /** HumanAnnotationConfig contributorEmails. */
+ public contributorEmails: string[];
+
+ /** HumanAnnotationConfig userEmailAddress. */
+ public userEmailAddress: string;
+
+ /**
+ * Creates a new HumanAnnotationConfig instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns HumanAnnotationConfig instance
+ */
+ public static create(properties?: google.cloud.datalabeling.v1beta1.IHumanAnnotationConfig): google.cloud.datalabeling.v1beta1.HumanAnnotationConfig;
+
+ /**
+ * Encodes the specified HumanAnnotationConfig message. Does not implicitly {@link google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.verify|verify} messages.
+ * @param message HumanAnnotationConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.datalabeling.v1beta1.IHumanAnnotationConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified HumanAnnotationConfig message, length delimited. Does not implicitly {@link google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.verify|verify} messages.
+ * @param message HumanAnnotationConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.datalabeling.v1beta1.IHumanAnnotationConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a HumanAnnotationConfig message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns HumanAnnotationConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.datalabeling.v1beta1.HumanAnnotationConfig;
+
+ /**
+ * Decodes a HumanAnnotationConfig message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns HumanAnnotationConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.datalabeling.v1beta1.HumanAnnotationConfig;
+
+ /**
+ * Verifies a HumanAnnotationConfig message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a HumanAnnotationConfig message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns HumanAnnotationConfig
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.datalabeling.v1beta1.HumanAnnotationConfig;
+
+ /**
+ * Creates a plain object from a HumanAnnotationConfig message. Also converts values to other types if specified.
+ * @param message HumanAnnotationConfig
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this HumanAnnotationConfig to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for HumanAnnotationConfig
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an ImageClassificationConfig. */
+ interface IImageClassificationConfig {
+
+ /** ImageClassificationConfig annotationSpecSet */
+ annotationSpecSet?: (string|null);
+
+ /** ImageClassificationConfig allowMultiLabel */
+ allowMultiLabel?: (boolean|null);
+
+ /** ImageClassificationConfig answerAggregationType */
+ answerAggregationType?: (google.cloud.datalabeling.v1beta1.StringAggregationType|keyof typeof google.cloud.datalabeling.v1beta1.StringAggregationType|null);
+ }
+
+ /** Represents an ImageClassificationConfig. */
+ class ImageClassificationConfig implements IImageClassificationConfig {
+
+ /**
+ * Constructs a new ImageClassificationConfig.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.datalabeling.v1beta1.IImageClassificationConfig);
+
+ /** ImageClassificationConfig annotationSpecSet. */
+ public annotationSpecSet: string;
+
+ /** ImageClassificationConfig allowMultiLabel. */
+ public allowMultiLabel: boolean;
+
+ /** ImageClassificationConfig answerAggregationType. */
+ public answerAggregationType: (google.cloud.datalabeling.v1beta1.StringAggregationType|keyof typeof google.cloud.datalabeling.v1beta1.StringAggregationType);
+
+ /**
+ * Creates a new ImageClassificationConfig instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ImageClassificationConfig instance
+ */
+ public static create(properties?: google.cloud.datalabeling.v1beta1.IImageClassificationConfig): google.cloud.datalabeling.v1beta1.ImageClassificationConfig;
+
+ /**
+ * Encodes the specified ImageClassificationConfig message. Does not implicitly {@link google.cloud.datalabeling.v1beta1.ImageClassificationConfig.verify|verify} messages.
+ * @param message ImageClassificationConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.datalabeling.v1beta1.IImageClassificationConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ImageClassificationConfig message, length delimited. Does not implicitly {@link google.cloud.datalabeling.v1beta1.ImageClassificationConfig.verify|verify} messages.
+ * @param message ImageClassificationConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.datalabeling.v1beta1.IImageClassificationConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an ImageClassificationConfig message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ImageClassificationConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.datalabeling.v1beta1.ImageClassificationConfig;
+
+ /**
+ * Decodes an ImageClassificationConfig message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ImageClassificationConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.datalabeling.v1beta1.ImageClassificationConfig;
+
+ /**
+ * Verifies an ImageClassificationConfig message.
+ * @param message Plain 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 ImageClassificationConfig message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ImageClassificationConfig
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.datalabeling.v1beta1.ImageClassificationConfig;
+
+ /**
+ * Creates a plain object from an ImageClassificationConfig message. Also converts values to other types if specified.
+ * @param message ImageClassificationConfig
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.datalabeling.v1beta1.ImageClassificationConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ImageClassificationConfig to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ImageClassificationConfig
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a BoundingPolyConfig. */
+ interface IBoundingPolyConfig {
+
+ /** BoundingPolyConfig annotationSpecSet */
+ annotationSpecSet?: (string|null);
+
+ /** BoundingPolyConfig instructionMessage */
+ instructionMessage?: (string|null);
+ }
+
+ /** Represents a BoundingPolyConfig. */
+ class BoundingPolyConfig implements IBoundingPolyConfig {
+
+ /**
+ * Constructs a new BoundingPolyConfig.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.datalabeling.v1beta1.IBoundingPolyConfig);
+
+ /** BoundingPolyConfig annotationSpecSet. */
+ public annotationSpecSet: string;
+
+ /** BoundingPolyConfig instructionMessage. */
+ public instructionMessage: string;
+
+ /**
+ * Creates a new BoundingPolyConfig instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns BoundingPolyConfig instance
+ */
+ public static create(properties?: google.cloud.datalabeling.v1beta1.IBoundingPolyConfig): google.cloud.datalabeling.v1beta1.BoundingPolyConfig;
+
+ /**
+ * Encodes the specified BoundingPolyConfig message. Does not implicitly {@link google.cloud.datalabeling.v1beta1.BoundingPolyConfig.verify|verify} messages.
+ * @param message BoundingPolyConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.datalabeling.v1beta1.IBoundingPolyConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified BoundingPolyConfig message, length delimited. Does not implicitly {@link google.cloud.datalabeling.v1beta1.BoundingPolyConfig.verify|verify} messages.
+ * @param message BoundingPolyConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.datalabeling.v1beta1.IBoundingPolyConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a BoundingPolyConfig message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns BoundingPolyConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.datalabeling.v1beta1.BoundingPolyConfig;
+
+ /**
+ * Decodes a BoundingPolyConfig message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns BoundingPolyConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.datalabeling.v1beta1.BoundingPolyConfig;
+
+ /**
+ * Verifies a BoundingPolyConfig message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a BoundingPolyConfig message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns BoundingPolyConfig
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.datalabeling.v1beta1.BoundingPolyConfig;
+
+ /**
+ * Creates a plain object from a BoundingPolyConfig message. Also converts values to other types if specified.
+ * @param message BoundingPolyConfig
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.datalabeling.v1beta1.BoundingPolyConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this BoundingPolyConfig to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for BoundingPolyConfig
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a PolylineConfig. */
+ interface IPolylineConfig {
+
+ /** PolylineConfig annotationSpecSet */
+ annotationSpecSet?: (string|null);
+
+ /** PolylineConfig instructionMessage */
+ instructionMessage?: (string|null);
+ }
+
+ /** Represents a PolylineConfig. */
+ class PolylineConfig implements IPolylineConfig {
+
+ /**
+ * Constructs a new PolylineConfig.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.datalabeling.v1beta1.IPolylineConfig);
+
+ /** PolylineConfig annotationSpecSet. */
+ public annotationSpecSet: string;
+
+ /** PolylineConfig instructionMessage. */
+ public instructionMessage: string;
+
+ /**
+ * Creates a new PolylineConfig instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns PolylineConfig instance
+ */
+ public static create(properties?: google.cloud.datalabeling.v1beta1.IPolylineConfig): google.cloud.datalabeling.v1beta1.PolylineConfig;
+
+ /**
+ * Encodes the specified PolylineConfig message. Does not implicitly {@link google.cloud.datalabeling.v1beta1.PolylineConfig.verify|verify} messages.
+ * @param message PolylineConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.datalabeling.v1beta1.IPolylineConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified PolylineConfig message, length delimited. Does not implicitly {@link google.cloud.datalabeling.v1beta1.PolylineConfig.verify|verify} messages.
+ * @param message PolylineConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.datalabeling.v1beta1.IPolylineConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a PolylineConfig message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns PolylineConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.datalabeling.v1beta1.PolylineConfig;
+
+ /**
+ * Decodes a PolylineConfig message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns PolylineConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.datalabeling.v1beta1.PolylineConfig;
+
+ /**
+ * Verifies a PolylineConfig message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a PolylineConfig message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns PolylineConfig
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.datalabeling.v1beta1.PolylineConfig;
+
+ /**
+ * Creates a plain object from a PolylineConfig message. Also converts values to other types if specified.
+ * @param message PolylineConfig
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.datalabeling.v1beta1.PolylineConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this PolylineConfig to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for PolylineConfig
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a SegmentationConfig. */
+ interface ISegmentationConfig {
+
+ /** SegmentationConfig annotationSpecSet */
+ annotationSpecSet?: (string|null);
+
+ /** SegmentationConfig instructionMessage */
+ instructionMessage?: (string|null);
+ }
+
+ /** Represents a SegmentationConfig. */
+ class SegmentationConfig implements ISegmentationConfig {
+
+ /**
+ * Constructs a new SegmentationConfig.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.datalabeling.v1beta1.ISegmentationConfig);
+
+ /** SegmentationConfig annotationSpecSet. */
+ public annotationSpecSet: string;
+
+ /** SegmentationConfig instructionMessage. */
+ public instructionMessage: string;
+
+ /**
+ * Creates a new SegmentationConfig instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns SegmentationConfig instance
+ */
+ public static create(properties?: google.cloud.datalabeling.v1beta1.ISegmentationConfig): google.cloud.datalabeling.v1beta1.SegmentationConfig;
+
+ /**
+ * Encodes the specified SegmentationConfig message. Does not implicitly {@link google.cloud.datalabeling.v1beta1.SegmentationConfig.verify|verify} messages.
+ * @param message SegmentationConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.datalabeling.v1beta1.ISegmentationConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified SegmentationConfig message, length delimited. Does not implicitly {@link google.cloud.datalabeling.v1beta1.SegmentationConfig.verify|verify} messages.
+ * @param message SegmentationConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.datalabeling.v1beta1.ISegmentationConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a SegmentationConfig message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns SegmentationConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.datalabeling.v1beta1.SegmentationConfig;
+
+ /**
+ * Decodes a SegmentationConfig message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns SegmentationConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.datalabeling.v1beta1.SegmentationConfig;
+
+ /**
+ * Verifies a SegmentationConfig message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a SegmentationConfig message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns SegmentationConfig
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.datalabeling.v1beta1.SegmentationConfig;
+
+ /**
+ * Creates a plain object from a SegmentationConfig message. Also converts values to other types if specified.
+ * @param message SegmentationConfig
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.datalabeling.v1beta1.SegmentationConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this SegmentationConfig to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for SegmentationConfig
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a VideoClassificationConfig. */
+ interface IVideoClassificationConfig {
+
+ /** VideoClassificationConfig annotationSpecSetConfigs */
+ annotationSpecSetConfigs?: (google.cloud.datalabeling.v1beta1.VideoClassificationConfig.IAnnotationSpecSetConfig[]|null);
+
+ /** VideoClassificationConfig applyShotDetection */
+ applyShotDetection?: (boolean|null);
+ }
+
+ /** Represents a VideoClassificationConfig. */
+ class VideoClassificationConfig implements IVideoClassificationConfig {
+
+ /**
+ * Constructs a new VideoClassificationConfig.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.datalabeling.v1beta1.IVideoClassificationConfig);
+
+ /** VideoClassificationConfig annotationSpecSetConfigs. */
+ public annotationSpecSetConfigs: google.cloud.datalabeling.v1beta1.VideoClassificationConfig.IAnnotationSpecSetConfig[];
+
+ /** VideoClassificationConfig applyShotDetection. */
+ public applyShotDetection: boolean;
+
+ /**
+ * Creates a new VideoClassificationConfig instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns VideoClassificationConfig instance
+ */
+ public static create(properties?: google.cloud.datalabeling.v1beta1.IVideoClassificationConfig): google.cloud.datalabeling.v1beta1.VideoClassificationConfig;
+
+ /**
+ * Encodes the specified VideoClassificationConfig message. Does not implicitly {@link google.cloud.datalabeling.v1beta1.VideoClassificationConfig.verify|verify} messages.
+ * @param message VideoClassificationConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.datalabeling.v1beta1.IVideoClassificationConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified VideoClassificationConfig message, length delimited. Does not implicitly {@link google.cloud.datalabeling.v1beta1.VideoClassificationConfig.verify|verify} messages.
+ * @param message VideoClassificationConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.datalabeling.v1beta1.IVideoClassificationConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a VideoClassificationConfig message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns VideoClassificationConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.datalabeling.v1beta1.VideoClassificationConfig;
+
+ /**
+ * Decodes a VideoClassificationConfig message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns VideoClassificationConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.datalabeling.v1beta1.VideoClassificationConfig;
+
+ /**
+ * Verifies a VideoClassificationConfig message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a VideoClassificationConfig message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns VideoClassificationConfig
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.datalabeling.v1beta1.VideoClassificationConfig;
+
+ /**
+ * Creates a plain object from a VideoClassificationConfig message. Also converts values to other types if specified.
+ * @param message VideoClassificationConfig
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.datalabeling.v1beta1.VideoClassificationConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this VideoClassificationConfig to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for VideoClassificationConfig
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace VideoClassificationConfig {
+
+ /** Properties of an AnnotationSpecSetConfig. */
+ interface IAnnotationSpecSetConfig {
+
+ /** AnnotationSpecSetConfig annotationSpecSet */
+ annotationSpecSet?: (string|null);
+
+ /** AnnotationSpecSetConfig allowMultiLabel */
+ allowMultiLabel?: (boolean|null);
+ }
+
+ /** Represents an AnnotationSpecSetConfig. */
+ class AnnotationSpecSetConfig implements IAnnotationSpecSetConfig {
+
+ /**
+ * Constructs a new AnnotationSpecSetConfig.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.datalabeling.v1beta1.VideoClassificationConfig.IAnnotationSpecSetConfig);
+
+ /** AnnotationSpecSetConfig annotationSpecSet. */
+ public annotationSpecSet: string;
+
+ /** AnnotationSpecSetConfig allowMultiLabel. */
+ public allowMultiLabel: boolean;
+
+ /**
+ * Creates a new AnnotationSpecSetConfig instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns AnnotationSpecSetConfig instance
+ */
+ public static create(properties?: google.cloud.datalabeling.v1beta1.VideoClassificationConfig.IAnnotationSpecSetConfig): google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig;
+
+ /**
+ * Encodes the specified AnnotationSpecSetConfig message. Does not implicitly {@link google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig.verify|verify} messages.
+ * @param message AnnotationSpecSetConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.datalabeling.v1beta1.VideoClassificationConfig.IAnnotationSpecSetConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified AnnotationSpecSetConfig message, length delimited. Does not implicitly {@link google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig.verify|verify} messages.
+ * @param message AnnotationSpecSetConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.datalabeling.v1beta1.VideoClassificationConfig.IAnnotationSpecSetConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an AnnotationSpecSetConfig message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns AnnotationSpecSetConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig;
+
+ /**
+ * Decodes an AnnotationSpecSetConfig message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns AnnotationSpecSetConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig;
+
+ /**
+ * Verifies an AnnotationSpecSetConfig message.
+ * @param message Plain 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 AnnotationSpecSetConfig message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns AnnotationSpecSetConfig
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig;
+
+ /**
+ * Creates a plain object from an AnnotationSpecSetConfig message. Also converts values to other types if specified.
+ * @param message AnnotationSpecSetConfig
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this AnnotationSpecSetConfig to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for AnnotationSpecSetConfig
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of an ObjectDetectionConfig. */
+ interface IObjectDetectionConfig {
+
+ /** ObjectDetectionConfig annotationSpecSet */
+ annotationSpecSet?: (string|null);
+
+ /** ObjectDetectionConfig extractionFrameRate */
+ extractionFrameRate?: (number|null);
+ }
+
+ /** Represents an ObjectDetectionConfig. */
+ class ObjectDetectionConfig implements IObjectDetectionConfig {
+
+ /**
+ * Constructs a new ObjectDetectionConfig.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.datalabeling.v1beta1.IObjectDetectionConfig);
+
+ /** ObjectDetectionConfig annotationSpecSet. */
+ public annotationSpecSet: string;
+
+ /** ObjectDetectionConfig extractionFrameRate. */
+ public extractionFrameRate: number;
+
+ /**
+ * Creates a new ObjectDetectionConfig instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ObjectDetectionConfig instance
+ */
+ public static create(properties?: google.cloud.datalabeling.v1beta1.IObjectDetectionConfig): google.cloud.datalabeling.v1beta1.ObjectDetectionConfig;
+
+ /**
+ * Encodes the specified ObjectDetectionConfig message. Does not implicitly {@link google.cloud.datalabeling.v1beta1.ObjectDetectionConfig.verify|verify} messages.
+ * @param message ObjectDetectionConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.datalabeling.v1beta1.IObjectDetectionConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ObjectDetectionConfig message, length delimited. Does not implicitly {@link google.cloud.datalabeling.v1beta1.ObjectDetectionConfig.verify|verify} messages.
+ * @param message ObjectDetectionConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.datalabeling.v1beta1.IObjectDetectionConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an ObjectDetectionConfig message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ObjectDetectionConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.datalabeling.v1beta1.ObjectDetectionConfig;
+
+ /**
+ * Decodes an ObjectDetectionConfig message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ObjectDetectionConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.datalabeling.v1beta1.ObjectDetectionConfig;
+
+ /**
+ * Verifies an ObjectDetectionConfig message.
+ * @param message Plain 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 ObjectDetectionConfig message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ObjectDetectionConfig
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.datalabeling.v1beta1.ObjectDetectionConfig;
+
+ /**
+ * Creates a plain object from an ObjectDetectionConfig message. Also converts values to other types if specified.
+ * @param message ObjectDetectionConfig
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.datalabeling.v1beta1.ObjectDetectionConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ObjectDetectionConfig to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ObjectDetectionConfig
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an ObjectTrackingConfig. */
+ interface IObjectTrackingConfig {
+
+ /** ObjectTrackingConfig annotationSpecSet */
+ annotationSpecSet?: (string|null);
+ }
+
+ /** Represents an ObjectTrackingConfig. */
+ class ObjectTrackingConfig implements IObjectTrackingConfig {
+
+ /**
+ * Constructs a new ObjectTrackingConfig.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.datalabeling.v1beta1.IObjectTrackingConfig);
+
+ /** ObjectTrackingConfig annotationSpecSet. */
+ public annotationSpecSet: string;
+
+ /**
+ * Creates a new ObjectTrackingConfig instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ObjectTrackingConfig instance
+ */
+ public static create(properties?: google.cloud.datalabeling.v1beta1.IObjectTrackingConfig): google.cloud.datalabeling.v1beta1.ObjectTrackingConfig;
+
+ /**
+ * Encodes the specified ObjectTrackingConfig message. Does not implicitly {@link google.cloud.datalabeling.v1beta1.ObjectTrackingConfig.verify|verify} messages.
+ * @param message ObjectTrackingConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.datalabeling.v1beta1.IObjectTrackingConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ObjectTrackingConfig message, length delimited. Does not implicitly {@link google.cloud.datalabeling.v1beta1.ObjectTrackingConfig.verify|verify} messages.
+ * @param message ObjectTrackingConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.datalabeling.v1beta1.IObjectTrackingConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an ObjectTrackingConfig message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ObjectTrackingConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.datalabeling.v1beta1.ObjectTrackingConfig;
+
+ /**
+ * Decodes an ObjectTrackingConfig message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ObjectTrackingConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.datalabeling.v1beta1.ObjectTrackingConfig;
+
+ /**
+ * Verifies an ObjectTrackingConfig message.
+ * @param message Plain 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 ObjectTrackingConfig message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ObjectTrackingConfig
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.datalabeling.v1beta1.ObjectTrackingConfig;
+
+ /**
+ * Creates a plain object from an ObjectTrackingConfig message. Also converts values to other types if specified.
+ * @param message ObjectTrackingConfig
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.datalabeling.v1beta1.ObjectTrackingConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ObjectTrackingConfig to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ObjectTrackingConfig
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an EventConfig. */
+ interface IEventConfig {
+
+ /** EventConfig annotationSpecSets */
+ annotationSpecSets?: (string[]|null);
+ }
+
+ /** Represents an EventConfig. */
+ class EventConfig implements IEventConfig {
+
+ /**
+ * Constructs a new EventConfig.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.datalabeling.v1beta1.IEventConfig);
+
+ /** EventConfig annotationSpecSets. */
+ public annotationSpecSets: string[];
+
+ /**
+ * Creates a new EventConfig instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns EventConfig instance
+ */
+ public static create(properties?: google.cloud.datalabeling.v1beta1.IEventConfig): google.cloud.datalabeling.v1beta1.EventConfig;
+
+ /**
+ * Encodes the specified EventConfig message. Does not implicitly {@link google.cloud.datalabeling.v1beta1.EventConfig.verify|verify} messages.
+ * @param message EventConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.datalabeling.v1beta1.IEventConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified EventConfig message, length delimited. Does not implicitly {@link google.cloud.datalabeling.v1beta1.EventConfig.verify|verify} messages.
+ * @param message EventConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.datalabeling.v1beta1.IEventConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an EventConfig message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns EventConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.datalabeling.v1beta1.EventConfig;
+
+ /**
+ * Decodes an EventConfig message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns EventConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.datalabeling.v1beta1.EventConfig;
+
+ /**
+ * Verifies an EventConfig message.
+ * @param message Plain 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 EventConfig message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns EventConfig
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.datalabeling.v1beta1.EventConfig;
+
+ /**
+ * Creates a plain object from an EventConfig message. Also converts values to other types if specified.
+ * @param message EventConfig
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.datalabeling.v1beta1.EventConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this EventConfig to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for EventConfig
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a TextClassificationConfig. */
+ interface ITextClassificationConfig {
+
+ /** TextClassificationConfig allowMultiLabel */
+ allowMultiLabel?: (boolean|null);
+
+ /** TextClassificationConfig annotationSpecSet */
+ annotationSpecSet?: (string|null);
+
+ /** TextClassificationConfig sentimentConfig */
+ sentimentConfig?: (google.cloud.datalabeling.v1beta1.ISentimentConfig|null);
+ }
+
+ /** Represents a TextClassificationConfig. */
+ class TextClassificationConfig implements ITextClassificationConfig {
+
+ /**
+ * Constructs a new TextClassificationConfig.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.datalabeling.v1beta1.ITextClassificationConfig);
+
+ /** TextClassificationConfig allowMultiLabel. */
+ public allowMultiLabel: boolean;
+
+ /** TextClassificationConfig annotationSpecSet. */
+ public annotationSpecSet: string;
+
+ /** TextClassificationConfig sentimentConfig. */
+ public sentimentConfig?: (google.cloud.datalabeling.v1beta1.ISentimentConfig|null);
+
+ /**
+ * Creates a new TextClassificationConfig instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns TextClassificationConfig instance
+ */
+ public static create(properties?: google.cloud.datalabeling.v1beta1.ITextClassificationConfig): google.cloud.datalabeling.v1beta1.TextClassificationConfig;
+
+ /**
+ * Encodes the specified TextClassificationConfig message. Does not implicitly {@link google.cloud.datalabeling.v1beta1.TextClassificationConfig.verify|verify} messages.
+ * @param message TextClassificationConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.datalabeling.v1beta1.ITextClassificationConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified TextClassificationConfig message, length delimited. Does not implicitly {@link google.cloud.datalabeling.v1beta1.TextClassificationConfig.verify|verify} messages.
+ * @param message TextClassificationConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.datalabeling.v1beta1.ITextClassificationConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a TextClassificationConfig message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns TextClassificationConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.datalabeling.v1beta1.TextClassificationConfig;
+
+ /**
+ * Decodes a TextClassificationConfig message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns TextClassificationConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.datalabeling.v1beta1.TextClassificationConfig;
+
+ /**
+ * Verifies a TextClassificationConfig message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a TextClassificationConfig message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns TextClassificationConfig
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.datalabeling.v1beta1.TextClassificationConfig;
+
+ /**
+ * Creates a plain object from a TextClassificationConfig message. Also converts values to other types if specified.
+ * @param message TextClassificationConfig
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.datalabeling.v1beta1.TextClassificationConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this TextClassificationConfig to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for TextClassificationConfig
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a SentimentConfig. */
+ interface ISentimentConfig {
+
+ /** SentimentConfig enableLabelSentimentSelection */
+ enableLabelSentimentSelection?: (boolean|null);
+ }
+
+ /** Represents a SentimentConfig. */
+ class SentimentConfig implements ISentimentConfig {
+
+ /**
+ * Constructs a new SentimentConfig.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.datalabeling.v1beta1.ISentimentConfig);
+
+ /** SentimentConfig enableLabelSentimentSelection. */
+ public enableLabelSentimentSelection: boolean;
+
+ /**
+ * Creates a new SentimentConfig instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns SentimentConfig instance
+ */
+ public static create(properties?: google.cloud.datalabeling.v1beta1.ISentimentConfig): google.cloud.datalabeling.v1beta1.SentimentConfig;
+
+ /**
+ * Encodes the specified SentimentConfig message. Does not implicitly {@link google.cloud.datalabeling.v1beta1.SentimentConfig.verify|verify} messages.
+ * @param message SentimentConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.datalabeling.v1beta1.ISentimentConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified SentimentConfig message, length delimited. Does not implicitly {@link google.cloud.datalabeling.v1beta1.SentimentConfig.verify|verify} messages.
+ * @param message SentimentConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.datalabeling.v1beta1.ISentimentConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a SentimentConfig message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns SentimentConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.datalabeling.v1beta1.SentimentConfig;
+
+ /**
+ * Decodes a SentimentConfig message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns SentimentConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.datalabeling.v1beta1.SentimentConfig;
+
+ /**
+ * Verifies a SentimentConfig message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a SentimentConfig message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns SentimentConfig
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.datalabeling.v1beta1.SentimentConfig;
+
+ /**
+ * Creates a plain object from a SentimentConfig message. Also converts values to other types if specified.
+ * @param message SentimentConfig
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.datalabeling.v1beta1.SentimentConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this SentimentConfig to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for SentimentConfig
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a TextEntityExtractionConfig. */
+ interface ITextEntityExtractionConfig {
+
+ /** TextEntityExtractionConfig annotationSpecSet */
+ annotationSpecSet?: (string|null);
+ }
+
+ /** Represents a TextEntityExtractionConfig. */
+ class TextEntityExtractionConfig implements ITextEntityExtractionConfig {
+
+ /**
+ * Constructs a new TextEntityExtractionConfig.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.datalabeling.v1beta1.ITextEntityExtractionConfig);
+
+ /** TextEntityExtractionConfig annotationSpecSet. */
+ public annotationSpecSet: string;
+
+ /**
+ * Creates a new TextEntityExtractionConfig instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns TextEntityExtractionConfig instance
+ */
+ public static create(properties?: google.cloud.datalabeling.v1beta1.ITextEntityExtractionConfig): google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig;
+
+ /**
+ * Encodes the specified TextEntityExtractionConfig message. Does not implicitly {@link google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig.verify|verify} messages.
+ * @param message TextEntityExtractionConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.datalabeling.v1beta1.ITextEntityExtractionConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified TextEntityExtractionConfig message, length delimited. Does not implicitly {@link google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig.verify|verify} messages.
+ * @param message TextEntityExtractionConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.datalabeling.v1beta1.ITextEntityExtractionConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a TextEntityExtractionConfig message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns TextEntityExtractionConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig;
+
+ /**
+ * Decodes a TextEntityExtractionConfig message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns TextEntityExtractionConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig;
+
+ /**
+ * Verifies a TextEntityExtractionConfig message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a TextEntityExtractionConfig message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns TextEntityExtractionConfig
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig;
+
+ /**
+ * Creates a plain object from a TextEntityExtractionConfig message. Also converts values to other types if specified.
+ * @param message TextEntityExtractionConfig
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this TextEntityExtractionConfig to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for TextEntityExtractionConfig
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an Evaluation. */
+ interface IEvaluation {
+
+ /** Evaluation name */
+ name?: (string|null);
+
+ /** Evaluation config */
+ config?: (google.cloud.datalabeling.v1beta1.IEvaluationConfig|null);
+
+ /** Evaluation evaluationJobRunTime */
+ evaluationJobRunTime?: (google.protobuf.ITimestamp|null);
+
+ /** Evaluation createTime */
+ createTime?: (google.protobuf.ITimestamp|null);
+
+ /** Evaluation evaluationMetrics */
+ evaluationMetrics?: (google.cloud.datalabeling.v1beta1.IEvaluationMetrics|null);
+
+ /** Evaluation annotationType */
+ annotationType?: (google.cloud.datalabeling.v1beta1.AnnotationType|keyof typeof google.cloud.datalabeling.v1beta1.AnnotationType|null);
+
+ /** Evaluation evaluatedItemCount */
+ evaluatedItemCount?: (number|Long|string|null);
+ }
+
+ /** Represents an Evaluation. */
+ class Evaluation implements IEvaluation {
+
+ /**
+ * Constructs a new Evaluation.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.datalabeling.v1beta1.IEvaluation);
+
+ /** Evaluation name. */
+ public name: string;
+
+ /** Evaluation config. */
+ public config?: (google.cloud.datalabeling.v1beta1.IEvaluationConfig|null);
+
+ /** Evaluation evaluationJobRunTime. */
+ public evaluationJobRunTime?: (google.protobuf.ITimestamp|null);
+
+ /** Evaluation createTime. */
+ public createTime?: (google.protobuf.ITimestamp|null);
+
+ /** Evaluation evaluationMetrics. */
+ public evaluationMetrics?: (google.cloud.datalabeling.v1beta1.IEvaluationMetrics|null);
+
+ /** Evaluation annotationType. */
+ public annotationType: (google.cloud.datalabeling.v1beta1.AnnotationType|keyof typeof google.cloud.datalabeling.v1beta1.AnnotationType);
+
+ /** Evaluation evaluatedItemCount. */
+ public evaluatedItemCount: (number|Long|string);
+
+ /**
+ * Creates a new Evaluation instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Evaluation instance
+ */
+ public static create(properties?: google.cloud.datalabeling.v1beta1.IEvaluation): google.cloud.datalabeling.v1beta1.Evaluation;
+
+ /**
+ * Encodes the specified Evaluation message. Does not implicitly {@link google.cloud.datalabeling.v1beta1.Evaluation.verify|verify} messages.
+ * @param message Evaluation message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.datalabeling.v1beta1.IEvaluation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Evaluation message, length delimited. Does not implicitly {@link google.cloud.datalabeling.v1beta1.Evaluation.verify|verify} messages.
+ * @param message Evaluation message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.datalabeling.v1beta1.IEvaluation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an Evaluation message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Evaluation
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.datalabeling.v1beta1.Evaluation;
+
+ /**
+ * Decodes an Evaluation message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Evaluation
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.datalabeling.v1beta1.Evaluation;
+
+ /**
+ * Verifies an Evaluation message.
+ * @param message Plain 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 Evaluation message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Evaluation
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.datalabeling.v1beta1.Evaluation;
+
+ /**
+ * Creates a plain object from an Evaluation message. Also converts values to other types if specified.
+ * @param message Evaluation
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.datalabeling.v1beta1.Evaluation, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Evaluation to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Evaluation
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an EvaluationConfig. */
+ interface IEvaluationConfig {
+
+ /** EvaluationConfig boundingBoxEvaluationOptions */
+ boundingBoxEvaluationOptions?: (google.cloud.datalabeling.v1beta1.IBoundingBoxEvaluationOptions|null);
+ }
+
+ /** Represents an EvaluationConfig. */
+ class EvaluationConfig implements IEvaluationConfig {
+
+ /**
+ * Constructs a new EvaluationConfig.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.datalabeling.v1beta1.IEvaluationConfig);
+
+ /** EvaluationConfig boundingBoxEvaluationOptions. */
+ public boundingBoxEvaluationOptions?: (google.cloud.datalabeling.v1beta1.IBoundingBoxEvaluationOptions|null);
+
+ /** EvaluationConfig verticalOption. */
+ public verticalOption?: "boundingBoxEvaluationOptions";
+
+ /**
+ * Creates a new EvaluationConfig instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns EvaluationConfig instance
+ */
+ public static create(properties?: google.cloud.datalabeling.v1beta1.IEvaluationConfig): google.cloud.datalabeling.v1beta1.EvaluationConfig;
+
+ /**
+ * Encodes the specified EvaluationConfig message. Does not implicitly {@link google.cloud.datalabeling.v1beta1.EvaluationConfig.verify|verify} messages.
+ * @param message EvaluationConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.datalabeling.v1beta1.IEvaluationConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified EvaluationConfig message, length delimited. Does not implicitly {@link google.cloud.datalabeling.v1beta1.EvaluationConfig.verify|verify} messages.
+ * @param message EvaluationConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.datalabeling.v1beta1.IEvaluationConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an EvaluationConfig message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns EvaluationConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.datalabeling.v1beta1.EvaluationConfig;
+
+ /**
+ * Decodes an EvaluationConfig message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns EvaluationConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.datalabeling.v1beta1.EvaluationConfig;
+
+ /**
+ * Verifies an EvaluationConfig message.
+ * @param message Plain 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 EvaluationConfig message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns EvaluationConfig
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.datalabeling.v1beta1.EvaluationConfig;
+
+ /**
+ * Creates a plain object from an EvaluationConfig message. Also converts values to other types if specified.
+ * @param message EvaluationConfig
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.datalabeling.v1beta1.EvaluationConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this EvaluationConfig to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for EvaluationConfig
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a BoundingBoxEvaluationOptions. */
+ interface IBoundingBoxEvaluationOptions {
+
+ /** BoundingBoxEvaluationOptions iouThreshold */
+ iouThreshold?: (number|null);
+ }
+
+ /** Represents a BoundingBoxEvaluationOptions. */
+ class BoundingBoxEvaluationOptions implements IBoundingBoxEvaluationOptions {
+
+ /**
+ * Constructs a new BoundingBoxEvaluationOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.datalabeling.v1beta1.IBoundingBoxEvaluationOptions);
+
+ /** BoundingBoxEvaluationOptions iouThreshold. */
+ public iouThreshold: number;
+
+ /**
+ * Creates a new BoundingBoxEvaluationOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns BoundingBoxEvaluationOptions instance
+ */
+ public static create(properties?: google.cloud.datalabeling.v1beta1.IBoundingBoxEvaluationOptions): google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions;
+
+ /**
+ * Encodes the specified BoundingBoxEvaluationOptions message. Does not implicitly {@link google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions.verify|verify} messages.
+ * @param message BoundingBoxEvaluationOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.datalabeling.v1beta1.IBoundingBoxEvaluationOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified BoundingBoxEvaluationOptions message, length delimited. Does not implicitly {@link google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions.verify|verify} messages.
+ * @param message BoundingBoxEvaluationOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.datalabeling.v1beta1.IBoundingBoxEvaluationOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a BoundingBoxEvaluationOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns BoundingBoxEvaluationOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions;
+
+ /**
+ * Decodes a BoundingBoxEvaluationOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns BoundingBoxEvaluationOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions;
+
+ /**
+ * Verifies a BoundingBoxEvaluationOptions message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a BoundingBoxEvaluationOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns BoundingBoxEvaluationOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions;
+
+ /**
+ * Creates a plain object from a BoundingBoxEvaluationOptions message. Also converts values to other types if specified.
+ * @param message BoundingBoxEvaluationOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this BoundingBoxEvaluationOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for BoundingBoxEvaluationOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an EvaluationMetrics. */
+ interface IEvaluationMetrics {
+
+ /** EvaluationMetrics classificationMetrics */
+ classificationMetrics?: (google.cloud.datalabeling.v1beta1.IClassificationMetrics|null);
+
+ /** EvaluationMetrics objectDetectionMetrics */
+ objectDetectionMetrics?: (google.cloud.datalabeling.v1beta1.IObjectDetectionMetrics|null);
+ }
+
+ /** Represents an EvaluationMetrics. */
+ class EvaluationMetrics implements IEvaluationMetrics {
+
+ /**
+ * Constructs a new EvaluationMetrics.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.datalabeling.v1beta1.IEvaluationMetrics);
+
+ /** EvaluationMetrics classificationMetrics. */
+ public classificationMetrics?: (google.cloud.datalabeling.v1beta1.IClassificationMetrics|null);
+
+ /** EvaluationMetrics objectDetectionMetrics. */
+ public objectDetectionMetrics?: (google.cloud.datalabeling.v1beta1.IObjectDetectionMetrics|null);
+
+ /** EvaluationMetrics metrics. */
+ public metrics?: ("classificationMetrics"|"objectDetectionMetrics");
+
+ /**
+ * Creates a new EvaluationMetrics instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns EvaluationMetrics instance
+ */
+ public static create(properties?: google.cloud.datalabeling.v1beta1.IEvaluationMetrics): google.cloud.datalabeling.v1beta1.EvaluationMetrics;
+
+ /**
+ * Encodes the specified EvaluationMetrics message. Does not implicitly {@link google.cloud.datalabeling.v1beta1.EvaluationMetrics.verify|verify} messages.
+ * @param message EvaluationMetrics message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.datalabeling.v1beta1.IEvaluationMetrics, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified EvaluationMetrics message, length delimited. Does not implicitly {@link google.cloud.datalabeling.v1beta1.EvaluationMetrics.verify|verify} messages.
+ * @param message EvaluationMetrics message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.datalabeling.v1beta1.IEvaluationMetrics, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an EvaluationMetrics message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns EvaluationMetrics
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.datalabeling.v1beta1.EvaluationMetrics;
+
+ /**
+ * Decodes an EvaluationMetrics message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns EvaluationMetrics
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.datalabeling.v1beta1.EvaluationMetrics;
+
+ /**
+ * Verifies an EvaluationMetrics message.
+ * @param message Plain 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 EvaluationMetrics message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns EvaluationMetrics
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.datalabeling.v1beta1.EvaluationMetrics;
+
+ /**
+ * Creates a plain object from an EvaluationMetrics message. Also converts values to other types if specified.
+ * @param message EvaluationMetrics
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.datalabeling.v1beta1.EvaluationMetrics, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this EvaluationMetrics to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for EvaluationMetrics
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ClassificationMetrics. */
+ interface IClassificationMetrics {
+
+ /** ClassificationMetrics prCurve */
+ prCurve?: (google.cloud.datalabeling.v1beta1.IPrCurve|null);
+
+ /** ClassificationMetrics confusionMatrix */
+ confusionMatrix?: (google.cloud.datalabeling.v1beta1.IConfusionMatrix|null);
+ }
+
+ /** Represents a ClassificationMetrics. */
+ class ClassificationMetrics implements IClassificationMetrics {
+
+ /**
+ * Constructs a new ClassificationMetrics.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.datalabeling.v1beta1.IClassificationMetrics);
+
+ /** ClassificationMetrics prCurve. */
+ public prCurve?: (google.cloud.datalabeling.v1beta1.IPrCurve|null);
+
+ /** ClassificationMetrics confusionMatrix. */
+ public confusionMatrix?: (google.cloud.datalabeling.v1beta1.IConfusionMatrix|null);
+
+ /**
+ * Creates a new ClassificationMetrics instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ClassificationMetrics instance
+ */
+ public static create(properties?: google.cloud.datalabeling.v1beta1.IClassificationMetrics): google.cloud.datalabeling.v1beta1.ClassificationMetrics;
+
+ /**
+ * Encodes the specified ClassificationMetrics message. Does not implicitly {@link google.cloud.datalabeling.v1beta1.ClassificationMetrics.verify|verify} messages.
+ * @param message ClassificationMetrics message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.datalabeling.v1beta1.IClassificationMetrics, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ClassificationMetrics message, length delimited. Does not implicitly {@link google.cloud.datalabeling.v1beta1.ClassificationMetrics.verify|verify} messages.
+ * @param message ClassificationMetrics message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.datalabeling.v1beta1.IClassificationMetrics, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ClassificationMetrics message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ClassificationMetrics
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.datalabeling.v1beta1.ClassificationMetrics;
+
+ /**
+ * Decodes a ClassificationMetrics message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ClassificationMetrics
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.datalabeling.v1beta1.ClassificationMetrics;
+
+ /**
+ * Verifies a ClassificationMetrics message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ClassificationMetrics message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ClassificationMetrics
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.datalabeling.v1beta1.ClassificationMetrics;
+
+ /**
+ * Creates a plain object from a ClassificationMetrics message. Also converts values to other types if specified.
+ * @param message ClassificationMetrics
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.datalabeling.v1beta1.ClassificationMetrics, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ClassificationMetrics to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ClassificationMetrics
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an ObjectDetectionMetrics. */
+ interface IObjectDetectionMetrics {
+
+ /** ObjectDetectionMetrics prCurve */
+ prCurve?: (google.cloud.datalabeling.v1beta1.IPrCurve|null);
+ }
+
+ /** Represents an ObjectDetectionMetrics. */
+ class ObjectDetectionMetrics implements IObjectDetectionMetrics {
+
+ /**
+ * Constructs a new ObjectDetectionMetrics.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.datalabeling.v1beta1.IObjectDetectionMetrics);
+
+ /** ObjectDetectionMetrics prCurve. */
+ public prCurve?: (google.cloud.datalabeling.v1beta1.IPrCurve|null);
+
+ /**
+ * Creates a new ObjectDetectionMetrics instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ObjectDetectionMetrics instance
+ */
+ public static create(properties?: google.cloud.datalabeling.v1beta1.IObjectDetectionMetrics): google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics;
+
+ /**
+ * Encodes the specified ObjectDetectionMetrics message. Does not implicitly {@link google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics.verify|verify} messages.
+ * @param message ObjectDetectionMetrics message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.datalabeling.v1beta1.IObjectDetectionMetrics, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ObjectDetectionMetrics message, length delimited. Does not implicitly {@link google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics.verify|verify} messages.
+ * @param message ObjectDetectionMetrics message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.datalabeling.v1beta1.IObjectDetectionMetrics, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an ObjectDetectionMetrics message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ObjectDetectionMetrics
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics;
+
+ /**
+ * Decodes an ObjectDetectionMetrics message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ObjectDetectionMetrics
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics;
+
+ /**
+ * Verifies an ObjectDetectionMetrics message.
+ * @param message Plain 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 ObjectDetectionMetrics message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ObjectDetectionMetrics
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics;
+
+ /**
+ * Creates a plain object from an ObjectDetectionMetrics message. Also converts values to other types if specified.
+ * @param message ObjectDetectionMetrics
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ObjectDetectionMetrics to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ObjectDetectionMetrics
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a PrCurve. */
+ interface IPrCurve {
+
+ /** PrCurve annotationSpec */
+ annotationSpec?: (google.cloud.datalabeling.v1beta1.IAnnotationSpec|null);
+
+ /** PrCurve areaUnderCurve */
+ areaUnderCurve?: (number|null);
+
+ /** PrCurve confidenceMetricsEntries */
+ confidenceMetricsEntries?: (google.cloud.datalabeling.v1beta1.PrCurve.IConfidenceMetricsEntry[]|null);
+
+ /** PrCurve meanAveragePrecision */
+ meanAveragePrecision?: (number|null);
+ }
+
+ /** Represents a PrCurve. */
+ class PrCurve implements IPrCurve {
+
+ /**
+ * Constructs a new PrCurve.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.datalabeling.v1beta1.IPrCurve);
+
+ /** PrCurve annotationSpec. */
+ public annotationSpec?: (google.cloud.datalabeling.v1beta1.IAnnotationSpec|null);
+
+ /** PrCurve areaUnderCurve. */
+ public areaUnderCurve: number;
+
+ /** PrCurve confidenceMetricsEntries. */
+ public confidenceMetricsEntries: google.cloud.datalabeling.v1beta1.PrCurve.IConfidenceMetricsEntry[];
+
+ /** PrCurve meanAveragePrecision. */
+ public meanAveragePrecision: number;
+
+ /**
+ * Creates a new PrCurve instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns PrCurve instance
+ */
+ public static create(properties?: google.cloud.datalabeling.v1beta1.IPrCurve): google.cloud.datalabeling.v1beta1.PrCurve;
+
+ /**
+ * Encodes the specified PrCurve message. Does not implicitly {@link google.cloud.datalabeling.v1beta1.PrCurve.verify|verify} messages.
+ * @param message PrCurve message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.datalabeling.v1beta1.IPrCurve, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified PrCurve message, length delimited. Does not implicitly {@link google.cloud.datalabeling.v1beta1.PrCurve.verify|verify} messages.
+ * @param message PrCurve message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.datalabeling.v1beta1.IPrCurve, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a PrCurve message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns PrCurve
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.datalabeling.v1beta1.PrCurve;
+
+ /**
+ * Decodes a PrCurve message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns PrCurve
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.datalabeling.v1beta1.PrCurve;
+
+ /**
+ * Verifies a PrCurve message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a PrCurve message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns PrCurve
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.datalabeling.v1beta1.PrCurve;
+
+ /**
+ * Creates a plain object from a PrCurve message. Also converts values to other types if specified.
+ * @param message PrCurve
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.datalabeling.v1beta1.PrCurve, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this PrCurve to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for PrCurve
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace PrCurve {
+
+ /** Properties of a ConfidenceMetricsEntry. */
+ interface IConfidenceMetricsEntry {
+
+ /** ConfidenceMetricsEntry confidenceThreshold */
+ confidenceThreshold?: (number|null);
+
+ /** ConfidenceMetricsEntry recall */
+ recall?: (number|null);
+
+ /** ConfidenceMetricsEntry precision */
+ precision?: (number|null);
+
+ /** ConfidenceMetricsEntry f1Score */
+ f1Score?: (number|null);
+
+ /** ConfidenceMetricsEntry recallAt1 */
+ recallAt1?: (number|null);
+
+ /** ConfidenceMetricsEntry precisionAt1 */
+ precisionAt1?: (number|null);
+
+ /** ConfidenceMetricsEntry f1ScoreAt1 */
+ f1ScoreAt1?: (number|null);
+
+ /** ConfidenceMetricsEntry recallAt5 */
+ recallAt5?: (number|null);
+
+ /** ConfidenceMetricsEntry precisionAt5 */
+ precisionAt5?: (number|null);
+
+ /** ConfidenceMetricsEntry f1ScoreAt5 */
+ f1ScoreAt5?: (number|null);
+ }
+
+ /** Represents a ConfidenceMetricsEntry. */
+ class ConfidenceMetricsEntry implements IConfidenceMetricsEntry {
+
+ /**
+ * Constructs a new ConfidenceMetricsEntry.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.datalabeling.v1beta1.PrCurve.IConfidenceMetricsEntry);
+
+ /** ConfidenceMetricsEntry confidenceThreshold. */
+ public confidenceThreshold: number;
+
+ /** ConfidenceMetricsEntry recall. */
+ public recall: number;
+
+ /** ConfidenceMetricsEntry precision. */
+ public precision: number;
+
+ /** ConfidenceMetricsEntry f1Score. */
+ public f1Score: number;
+
+ /** ConfidenceMetricsEntry recallAt1. */
+ public recallAt1: number;
+
+ /** ConfidenceMetricsEntry precisionAt1. */
+ public precisionAt1: number;
+
+ /** ConfidenceMetricsEntry f1ScoreAt1. */
+ public f1ScoreAt1: number;
+
+ /** ConfidenceMetricsEntry recallAt5. */
+ public recallAt5: number;
+
+ /** ConfidenceMetricsEntry precisionAt5. */
+ public precisionAt5: number;
+
+ /** ConfidenceMetricsEntry f1ScoreAt5. */
+ public f1ScoreAt5: number;
+
+ /**
+ * Creates a new ConfidenceMetricsEntry instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ConfidenceMetricsEntry instance
+ */
+ public static create(properties?: google.cloud.datalabeling.v1beta1.PrCurve.IConfidenceMetricsEntry): google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry;
+
+ /**
+ * Encodes the specified ConfidenceMetricsEntry message. Does not implicitly {@link google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry.verify|verify} messages.
+ * @param message ConfidenceMetricsEntry message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.datalabeling.v1beta1.PrCurve.IConfidenceMetricsEntry, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ConfidenceMetricsEntry message, length delimited. Does not implicitly {@link google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry.verify|verify} messages.
+ * @param message ConfidenceMetricsEntry message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.datalabeling.v1beta1.PrCurve.IConfidenceMetricsEntry, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ConfidenceMetricsEntry message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ConfidenceMetricsEntry
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry;
+
+ /**
+ * Decodes a ConfidenceMetricsEntry message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ConfidenceMetricsEntry
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry;
+
+ /**
+ * Verifies a ConfidenceMetricsEntry message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ConfidenceMetricsEntry message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ConfidenceMetricsEntry
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry;
+
+ /**
+ * Creates a plain object from a ConfidenceMetricsEntry message. Also converts values to other types if specified.
+ * @param message ConfidenceMetricsEntry
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ConfidenceMetricsEntry to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ConfidenceMetricsEntry
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of a ConfusionMatrix. */
+ interface IConfusionMatrix {
+
+ /** ConfusionMatrix row */
+ row?: (google.cloud.datalabeling.v1beta1.ConfusionMatrix.IRow[]|null);
+ }
+
+ /** Represents a ConfusionMatrix. */
+ class ConfusionMatrix implements IConfusionMatrix {
+
+ /**
+ * Constructs a new ConfusionMatrix.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.datalabeling.v1beta1.IConfusionMatrix);
+
+ /** ConfusionMatrix row. */
+ public row: google.cloud.datalabeling.v1beta1.ConfusionMatrix.IRow[];
+
+ /**
+ * Creates a new ConfusionMatrix instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ConfusionMatrix instance
+ */
+ public static create(properties?: google.cloud.datalabeling.v1beta1.IConfusionMatrix): google.cloud.datalabeling.v1beta1.ConfusionMatrix;
+
+ /**
+ * Encodes the specified ConfusionMatrix message. Does not implicitly {@link google.cloud.datalabeling.v1beta1.ConfusionMatrix.verify|verify} messages.
+ * @param message ConfusionMatrix message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.datalabeling.v1beta1.IConfusionMatrix, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ConfusionMatrix message, length delimited. Does not implicitly {@link google.cloud.datalabeling.v1beta1.ConfusionMatrix.verify|verify} messages.
+ * @param message ConfusionMatrix message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.datalabeling.v1beta1.IConfusionMatrix, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ConfusionMatrix message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ConfusionMatrix
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.datalabeling.v1beta1.ConfusionMatrix;
+
+ /**
+ * Decodes a ConfusionMatrix message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ConfusionMatrix
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.datalabeling.v1beta1.ConfusionMatrix;
+
+ /**
+ * Verifies a ConfusionMatrix message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ConfusionMatrix message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ConfusionMatrix
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.datalabeling.v1beta1.ConfusionMatrix;
+
+ /**
+ * Creates a plain object from a ConfusionMatrix message. Also converts values to other types if specified.
+ * @param message ConfusionMatrix
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.datalabeling.v1beta1.ConfusionMatrix, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ConfusionMatrix to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ConfusionMatrix
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace ConfusionMatrix {
+
+ /** Properties of a ConfusionMatrixEntry. */
+ interface IConfusionMatrixEntry {
+
+ /** ConfusionMatrixEntry annotationSpec */
+ annotationSpec?: (google.cloud.datalabeling.v1beta1.IAnnotationSpec|null);
+
+ /** ConfusionMatrixEntry itemCount */
+ itemCount?: (number|null);
+ }
+
+ /** Represents a ConfusionMatrixEntry. */
+ class ConfusionMatrixEntry implements IConfusionMatrixEntry {
+
+ /**
+ * Constructs a new ConfusionMatrixEntry.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.datalabeling.v1beta1.ConfusionMatrix.IConfusionMatrixEntry);
+
+ /** ConfusionMatrixEntry annotationSpec. */
+ public annotationSpec?: (google.cloud.datalabeling.v1beta1.IAnnotationSpec|null);
+
+ /** ConfusionMatrixEntry itemCount. */
+ public itemCount: number;
+
+ /**
+ * Creates a new ConfusionMatrixEntry instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ConfusionMatrixEntry instance
+ */
+ public static create(properties?: google.cloud.datalabeling.v1beta1.ConfusionMatrix.IConfusionMatrixEntry): google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry;
+
+ /**
+ * Encodes the specified ConfusionMatrixEntry message. Does not implicitly {@link google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry.verify|verify} messages.
+ * @param message ConfusionMatrixEntry message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.datalabeling.v1beta1.ConfusionMatrix.IConfusionMatrixEntry, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ConfusionMatrixEntry message, length delimited. Does not implicitly {@link google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry.verify|verify} messages.
+ * @param message ConfusionMatrixEntry message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.datalabeling.v1beta1.ConfusionMatrix.IConfusionMatrixEntry, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ConfusionMatrixEntry message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ConfusionMatrixEntry
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry;
+
+ /**
+ * Decodes a ConfusionMatrixEntry message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ConfusionMatrixEntry
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry;
+
+ /**
+ * Verifies a ConfusionMatrixEntry message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ConfusionMatrixEntry message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ConfusionMatrixEntry
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry;
+
+ /**
+ * Creates a plain object from a ConfusionMatrixEntry message. Also converts values to other types if specified.
+ * @param message ConfusionMatrixEntry
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ConfusionMatrixEntry to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ConfusionMatrixEntry
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Row. */
+ interface IRow {
+
+ /** Row annotationSpec */
+ annotationSpec?: (google.cloud.datalabeling.v1beta1.IAnnotationSpec|null);
+
+ /** Row entries */
+ entries?: (google.cloud.datalabeling.v1beta1.ConfusionMatrix.IConfusionMatrixEntry[]|null);
+ }
+
+ /** Represents a Row. */
+ class Row implements IRow {
+
+ /**
+ * Constructs a new Row.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.datalabeling.v1beta1.ConfusionMatrix.IRow);
+
+ /** Row annotationSpec. */
+ public annotationSpec?: (google.cloud.datalabeling.v1beta1.IAnnotationSpec|null);
+
+ /** Row entries. */
+ public entries: google.cloud.datalabeling.v1beta1.ConfusionMatrix.IConfusionMatrixEntry[];
+
+ /**
+ * Creates a new Row instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Row instance
+ */
+ public static create(properties?: google.cloud.datalabeling.v1beta1.ConfusionMatrix.IRow): google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row;
+
+ /**
+ * Encodes the specified Row message. Does not implicitly {@link google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row.verify|verify} messages.
+ * @param message Row message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.datalabeling.v1beta1.ConfusionMatrix.IRow, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Row message, length delimited. Does not implicitly {@link google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row.verify|verify} messages.
+ * @param message Row message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.datalabeling.v1beta1.ConfusionMatrix.IRow, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Row message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Row
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row;
+
+ /**
+ * Decodes a Row message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Row
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row;
+
+ /**
+ * Verifies a Row message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Row message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Row
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row;
+
+ /**
+ * Creates a plain object from a Row message. Also converts values to other types if specified.
+ * @param message Row
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Row to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Row
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of an EvaluationJob. */
+ interface IEvaluationJob {
+
+ /** EvaluationJob name */
+ name?: (string|null);
+
+ /** EvaluationJob description */
+ description?: (string|null);
+
+ /** EvaluationJob state */
+ state?: (google.cloud.datalabeling.v1beta1.EvaluationJob.State|keyof typeof google.cloud.datalabeling.v1beta1.EvaluationJob.State|null);
+
+ /** EvaluationJob schedule */
+ schedule?: (string|null);
+
+ /** EvaluationJob modelVersion */
+ modelVersion?: (string|null);
+
+ /** EvaluationJob evaluationJobConfig */
+ evaluationJobConfig?: (google.cloud.datalabeling.v1beta1.IEvaluationJobConfig|null);
+
+ /** EvaluationJob annotationSpecSet */
+ annotationSpecSet?: (string|null);
+
+ /** EvaluationJob labelMissingGroundTruth */
+ labelMissingGroundTruth?: (boolean|null);
+
+ /** EvaluationJob attempts */
+ attempts?: (google.cloud.datalabeling.v1beta1.IAttempt[]|null);
+
+ /** EvaluationJob createTime */
+ createTime?: (google.protobuf.ITimestamp|null);
+ }
+
+ /** Represents an EvaluationJob. */
+ class EvaluationJob implements IEvaluationJob {
+
+ /**
+ * Constructs a new EvaluationJob.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.datalabeling.v1beta1.IEvaluationJob);
+
+ /** EvaluationJob name. */
+ public name: string;
+
+ /** EvaluationJob description. */
+ public description: string;
+
+ /** EvaluationJob state. */
+ public state: (google.cloud.datalabeling.v1beta1.EvaluationJob.State|keyof typeof google.cloud.datalabeling.v1beta1.EvaluationJob.State);
+
+ /** EvaluationJob schedule. */
+ public schedule: string;
+
+ /** EvaluationJob modelVersion. */
+ public modelVersion: string;
+
+ /** EvaluationJob evaluationJobConfig. */
+ public evaluationJobConfig?: (google.cloud.datalabeling.v1beta1.IEvaluationJobConfig|null);
+
+ /** EvaluationJob annotationSpecSet. */
+ public annotationSpecSet: string;
+
+ /** EvaluationJob labelMissingGroundTruth. */
+ public labelMissingGroundTruth: boolean;
+
+ /** EvaluationJob attempts. */
+ public attempts: google.cloud.datalabeling.v1beta1.IAttempt[];
+
+ /** EvaluationJob createTime. */
+ public createTime?: (google.protobuf.ITimestamp|null);
+
+ /**
+ * Creates a new EvaluationJob instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns EvaluationJob instance
+ */
+ public static create(properties?: google.cloud.datalabeling.v1beta1.IEvaluationJob): google.cloud.datalabeling.v1beta1.EvaluationJob;
+
+ /**
+ * Encodes the specified EvaluationJob message. Does not implicitly {@link google.cloud.datalabeling.v1beta1.EvaluationJob.verify|verify} messages.
+ * @param message EvaluationJob message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.datalabeling.v1beta1.IEvaluationJob, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified EvaluationJob message, length delimited. Does not implicitly {@link google.cloud.datalabeling.v1beta1.EvaluationJob.verify|verify} messages.
+ * @param message EvaluationJob message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.datalabeling.v1beta1.IEvaluationJob, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an EvaluationJob message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns EvaluationJob
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.datalabeling.v1beta1.EvaluationJob;
+
+ /**
+ * Decodes an EvaluationJob message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns EvaluationJob
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.datalabeling.v1beta1.EvaluationJob;
+
+ /**
+ * Verifies an EvaluationJob message.
+ * @param message Plain 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 EvaluationJob message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns EvaluationJob
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.datalabeling.v1beta1.EvaluationJob;
+
+ /**
+ * Creates a plain object from an EvaluationJob message. Also converts values to other types if specified.
+ * @param message EvaluationJob
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.datalabeling.v1beta1.EvaluationJob, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this EvaluationJob to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for EvaluationJob
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace EvaluationJob {
+
+ /** State enum. */
+ enum State {
+ STATE_UNSPECIFIED = 0,
+ SCHEDULED = 1,
+ RUNNING = 2,
+ PAUSED = 3,
+ STOPPED = 4
+ }
+ }
+
+ /** Properties of an EvaluationJobConfig. */
+ interface IEvaluationJobConfig {
+
+ /** EvaluationJobConfig imageClassificationConfig */
+ imageClassificationConfig?: (google.cloud.datalabeling.v1beta1.IImageClassificationConfig|null);
+
+ /** EvaluationJobConfig boundingPolyConfig */
+ boundingPolyConfig?: (google.cloud.datalabeling.v1beta1.IBoundingPolyConfig|null);
+
+ /** EvaluationJobConfig textClassificationConfig */
+ textClassificationConfig?: (google.cloud.datalabeling.v1beta1.ITextClassificationConfig|null);
+
+ /** EvaluationJobConfig inputConfig */
+ inputConfig?: (google.cloud.datalabeling.v1beta1.IInputConfig|null);
+
+ /** EvaluationJobConfig evaluationConfig */
+ evaluationConfig?: (google.cloud.datalabeling.v1beta1.IEvaluationConfig|null);
+
+ /** EvaluationJobConfig humanAnnotationConfig */
+ humanAnnotationConfig?: (google.cloud.datalabeling.v1beta1.IHumanAnnotationConfig|null);
+
+ /** EvaluationJobConfig bigqueryImportKeys */
+ bigqueryImportKeys?: ({ [k: string]: string }|null);
+
+ /** EvaluationJobConfig exampleCount */
+ exampleCount?: (number|null);
+
+ /** EvaluationJobConfig exampleSamplePercentage */
+ exampleSamplePercentage?: (number|null);
+
+ /** EvaluationJobConfig evaluationJobAlertConfig */
+ evaluationJobAlertConfig?: (google.cloud.datalabeling.v1beta1.IEvaluationJobAlertConfig|null);
+ }
+
+ /** Represents an EvaluationJobConfig. */
+ class EvaluationJobConfig implements IEvaluationJobConfig {
+
+ /**
+ * Constructs a new EvaluationJobConfig.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.datalabeling.v1beta1.IEvaluationJobConfig);
+
+ /** EvaluationJobConfig imageClassificationConfig. */
+ public imageClassificationConfig?: (google.cloud.datalabeling.v1beta1.IImageClassificationConfig|null);
+
+ /** EvaluationJobConfig boundingPolyConfig. */
+ public boundingPolyConfig?: (google.cloud.datalabeling.v1beta1.IBoundingPolyConfig|null);
+
+ /** EvaluationJobConfig textClassificationConfig. */
+ public textClassificationConfig?: (google.cloud.datalabeling.v1beta1.ITextClassificationConfig|null);
+
+ /** EvaluationJobConfig inputConfig. */
+ public inputConfig?: (google.cloud.datalabeling.v1beta1.IInputConfig|null);
+
+ /** EvaluationJobConfig evaluationConfig. */
+ public evaluationConfig?: (google.cloud.datalabeling.v1beta1.IEvaluationConfig|null);
+
+ /** EvaluationJobConfig humanAnnotationConfig. */
+ public humanAnnotationConfig?: (google.cloud.datalabeling.v1beta1.IHumanAnnotationConfig|null);
+
+ /** EvaluationJobConfig bigqueryImportKeys. */
+ public bigqueryImportKeys: { [k: string]: string };
+
+ /** EvaluationJobConfig exampleCount. */
+ public exampleCount: number;
+
+ /** EvaluationJobConfig exampleSamplePercentage. */
+ public exampleSamplePercentage: number;
+
+ /** EvaluationJobConfig evaluationJobAlertConfig. */
+ public evaluationJobAlertConfig?: (google.cloud.datalabeling.v1beta1.IEvaluationJobAlertConfig|null);
+
+ /** EvaluationJobConfig humanAnnotationRequestConfig. */
+ public humanAnnotationRequestConfig?: ("imageClassificationConfig"|"boundingPolyConfig"|"textClassificationConfig");
+
+ /**
+ * Creates a new EvaluationJobConfig instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns EvaluationJobConfig instance
+ */
+ public static create(properties?: google.cloud.datalabeling.v1beta1.IEvaluationJobConfig): google.cloud.datalabeling.v1beta1.EvaluationJobConfig;
+
+ /**
+ * Encodes the specified EvaluationJobConfig message. Does not implicitly {@link google.cloud.datalabeling.v1beta1.EvaluationJobConfig.verify|verify} messages.
+ * @param message EvaluationJobConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.datalabeling.v1beta1.IEvaluationJobConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified EvaluationJobConfig message, length delimited. Does not implicitly {@link google.cloud.datalabeling.v1beta1.EvaluationJobConfig.verify|verify} messages.
+ * @param message EvaluationJobConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.datalabeling.v1beta1.IEvaluationJobConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an EvaluationJobConfig message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns EvaluationJobConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.datalabeling.v1beta1.EvaluationJobConfig;
+
+ /**
+ * Decodes an EvaluationJobConfig message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns EvaluationJobConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.datalabeling.v1beta1.EvaluationJobConfig;
+
+ /**
+ * Verifies an EvaluationJobConfig message.
+ * @param message Plain 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 EvaluationJobConfig message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns EvaluationJobConfig
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.datalabeling.v1beta1.EvaluationJobConfig;
+
+ /**
+ * Creates a plain object from an EvaluationJobConfig message. Also converts values to other types if specified.
+ * @param message EvaluationJobConfig
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.datalabeling.v1beta1.EvaluationJobConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this EvaluationJobConfig to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for EvaluationJobConfig
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an EvaluationJobAlertConfig. */
+ interface IEvaluationJobAlertConfig {
+
+ /** EvaluationJobAlertConfig email */
+ email?: (string|null);
+
+ /** EvaluationJobAlertConfig minAcceptableMeanAveragePrecision */
+ minAcceptableMeanAveragePrecision?: (number|null);
+ }
+
+ /** Represents an EvaluationJobAlertConfig. */
+ class EvaluationJobAlertConfig implements IEvaluationJobAlertConfig {
+
+ /**
+ * Constructs a new EvaluationJobAlertConfig.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.datalabeling.v1beta1.IEvaluationJobAlertConfig);
+
+ /** EvaluationJobAlertConfig email. */
+ public email: string;
+
+ /** EvaluationJobAlertConfig minAcceptableMeanAveragePrecision. */
+ public minAcceptableMeanAveragePrecision: number;
+
+ /**
+ * Creates a new EvaluationJobAlertConfig instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns EvaluationJobAlertConfig instance
+ */
+ public static create(properties?: google.cloud.datalabeling.v1beta1.IEvaluationJobAlertConfig): google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig;
+
+ /**
+ * Encodes the specified EvaluationJobAlertConfig message. Does not implicitly {@link google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig.verify|verify} messages.
+ * @param message EvaluationJobAlertConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.datalabeling.v1beta1.IEvaluationJobAlertConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified EvaluationJobAlertConfig message, length delimited. Does not implicitly {@link google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig.verify|verify} messages.
+ * @param message EvaluationJobAlertConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.datalabeling.v1beta1.IEvaluationJobAlertConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an EvaluationJobAlertConfig message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns EvaluationJobAlertConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig;
+
+ /**
+ * Decodes an EvaluationJobAlertConfig message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns EvaluationJobAlertConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig;
+
+ /**
+ * Verifies an EvaluationJobAlertConfig message.
+ * @param message Plain 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 EvaluationJobAlertConfig message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns EvaluationJobAlertConfig
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig;
+
+ /**
+ * Creates a plain object from an EvaluationJobAlertConfig message. Also converts values to other types if specified.
+ * @param message EvaluationJobAlertConfig
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this EvaluationJobAlertConfig to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for EvaluationJobAlertConfig
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an Attempt. */
+ interface IAttempt {
+
+ /** Attempt attemptTime */
+ attemptTime?: (google.protobuf.ITimestamp|null);
+
+ /** Attempt partialFailures */
+ partialFailures?: (google.rpc.IStatus[]|null);
+ }
+
+ /** Represents an Attempt. */
+ class Attempt implements IAttempt {
+
+ /**
+ * Constructs a new Attempt.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.datalabeling.v1beta1.IAttempt);
+
+ /** Attempt attemptTime. */
+ public attemptTime?: (google.protobuf.ITimestamp|null);
+
+ /** Attempt partialFailures. */
+ public partialFailures: google.rpc.IStatus[];
+
+ /**
+ * Creates a new Attempt instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Attempt instance
+ */
+ public static create(properties?: google.cloud.datalabeling.v1beta1.IAttempt): google.cloud.datalabeling.v1beta1.Attempt;
+
+ /**
+ * Encodes the specified Attempt message. Does not implicitly {@link google.cloud.datalabeling.v1beta1.Attempt.verify|verify} messages.
+ * @param message Attempt message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.datalabeling.v1beta1.IAttempt, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Attempt message, length delimited. Does not implicitly {@link google.cloud.datalabeling.v1beta1.Attempt.verify|verify} messages.
+ * @param message Attempt message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.datalabeling.v1beta1.IAttempt, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an Attempt message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Attempt
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.datalabeling.v1beta1.Attempt;
+
+ /**
+ * Decodes an Attempt message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Attempt
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.datalabeling.v1beta1.Attempt;
+
+ /**
+ * Verifies an Attempt message.
+ * @param message Plain 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 Attempt message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Attempt
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.datalabeling.v1beta1.Attempt;
+
+ /**
+ * Creates a plain object from an Attempt message. Also converts values to other types if specified.
+ * @param message Attempt
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.datalabeling.v1beta1.Attempt, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Attempt to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Attempt
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an Instruction. */
+ interface IInstruction {
+
+ /** Instruction name */
+ name?: (string|null);
+
+ /** Instruction displayName */
+ displayName?: (string|null);
+
+ /** Instruction description */
+ description?: (string|null);
+
+ /** Instruction createTime */
+ createTime?: (google.protobuf.ITimestamp|null);
+
+ /** Instruction updateTime */
+ updateTime?: (google.protobuf.ITimestamp|null);
+
+ /** Instruction dataType */
+ dataType?: (google.cloud.datalabeling.v1beta1.DataType|keyof typeof google.cloud.datalabeling.v1beta1.DataType|null);
+
+ /** Instruction csvInstruction */
+ csvInstruction?: (google.cloud.datalabeling.v1beta1.ICsvInstruction|null);
+
+ /** Instruction pdfInstruction */
+ pdfInstruction?: (google.cloud.datalabeling.v1beta1.IPdfInstruction|null);
+
+ /** Instruction blockingResources */
+ blockingResources?: (string[]|null);
+ }
+
+ /** Represents an Instruction. */
+ class Instruction implements IInstruction {
+
+ /**
+ * Constructs a new Instruction.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.datalabeling.v1beta1.IInstruction);
+
+ /** Instruction name. */
+ public name: string;
+
+ /** Instruction displayName. */
+ public displayName: string;
+
+ /** Instruction description. */
+ public description: string;
+
+ /** Instruction createTime. */
+ public createTime?: (google.protobuf.ITimestamp|null);
+
+ /** Instruction updateTime. */
+ public updateTime?: (google.protobuf.ITimestamp|null);
+
+ /** Instruction dataType. */
+ public dataType: (google.cloud.datalabeling.v1beta1.DataType|keyof typeof google.cloud.datalabeling.v1beta1.DataType);
+
+ /** Instruction csvInstruction. */
+ public csvInstruction?: (google.cloud.datalabeling.v1beta1.ICsvInstruction|null);
+
+ /** Instruction pdfInstruction. */
+ public pdfInstruction?: (google.cloud.datalabeling.v1beta1.IPdfInstruction|null);
+
+ /** Instruction blockingResources. */
+ public blockingResources: string[];
+
+ /**
+ * Creates a new Instruction instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Instruction instance
+ */
+ public static create(properties?: google.cloud.datalabeling.v1beta1.IInstruction): google.cloud.datalabeling.v1beta1.Instruction;
+
+ /**
+ * Encodes the specified Instruction message. Does not implicitly {@link google.cloud.datalabeling.v1beta1.Instruction.verify|verify} messages.
+ * @param message Instruction message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.datalabeling.v1beta1.IInstruction, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Instruction message, length delimited. Does not implicitly {@link google.cloud.datalabeling.v1beta1.Instruction.verify|verify} messages.
+ * @param message Instruction message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.datalabeling.v1beta1.IInstruction, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an Instruction message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Instruction
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.datalabeling.v1beta1.Instruction;
+
+ /**
+ * Decodes an Instruction message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Instruction
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.datalabeling.v1beta1.Instruction;
+
+ /**
+ * Verifies an Instruction message.
+ * @param message Plain 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 Instruction message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Instruction
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.datalabeling.v1beta1.Instruction;
+
+ /**
+ * Creates a plain object from an Instruction message. Also converts values to other types if specified.
+ * @param message Instruction
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.datalabeling.v1beta1.Instruction, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Instruction to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Instruction
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CsvInstruction. */
+ interface ICsvInstruction {
+
+ /** CsvInstruction gcsFileUri */
+ gcsFileUri?: (string|null);
+ }
+
+ /** Represents a CsvInstruction. */
+ class CsvInstruction implements ICsvInstruction {
+
+ /**
+ * Constructs a new CsvInstruction.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.datalabeling.v1beta1.ICsvInstruction);
+
+ /** CsvInstruction gcsFileUri. */
+ public gcsFileUri: string;
+
+ /**
+ * Creates a new CsvInstruction instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CsvInstruction instance
+ */
+ public static create(properties?: google.cloud.datalabeling.v1beta1.ICsvInstruction): google.cloud.datalabeling.v1beta1.CsvInstruction;
+
+ /**
+ * Encodes the specified CsvInstruction message. Does not implicitly {@link google.cloud.datalabeling.v1beta1.CsvInstruction.verify|verify} messages.
+ * @param message CsvInstruction message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.datalabeling.v1beta1.ICsvInstruction, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CsvInstruction message, length delimited. Does not implicitly {@link google.cloud.datalabeling.v1beta1.CsvInstruction.verify|verify} messages.
+ * @param message CsvInstruction message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.datalabeling.v1beta1.ICsvInstruction, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CsvInstruction message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CsvInstruction
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.datalabeling.v1beta1.CsvInstruction;
+
+ /**
+ * Decodes a CsvInstruction message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CsvInstruction
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.datalabeling.v1beta1.CsvInstruction;
+
+ /**
+ * Verifies a CsvInstruction message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a CsvInstruction message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CsvInstruction
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.datalabeling.v1beta1.CsvInstruction;
+
+ /**
+ * Creates a plain object from a CsvInstruction message. Also converts values to other types if specified.
+ * @param message CsvInstruction
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.datalabeling.v1beta1.CsvInstruction, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CsvInstruction to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CsvInstruction
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a PdfInstruction. */
+ interface IPdfInstruction {
+
+ /** PdfInstruction gcsFileUri */
+ gcsFileUri?: (string|null);
+ }
+
+ /** Represents a PdfInstruction. */
+ class PdfInstruction implements IPdfInstruction {
+
+ /**
+ * Constructs a new PdfInstruction.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.datalabeling.v1beta1.IPdfInstruction);
+
+ /** PdfInstruction gcsFileUri. */
+ public gcsFileUri: string;
+
+ /**
+ * Creates a new PdfInstruction instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns PdfInstruction instance
+ */
+ public static create(properties?: google.cloud.datalabeling.v1beta1.IPdfInstruction): google.cloud.datalabeling.v1beta1.PdfInstruction;
+
+ /**
+ * Encodes the specified PdfInstruction message. Does not implicitly {@link google.cloud.datalabeling.v1beta1.PdfInstruction.verify|verify} messages.
+ * @param message PdfInstruction message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.datalabeling.v1beta1.IPdfInstruction, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified PdfInstruction message, length delimited. Does not implicitly {@link google.cloud.datalabeling.v1beta1.PdfInstruction.verify|verify} messages.
+ * @param message PdfInstruction message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.datalabeling.v1beta1.IPdfInstruction, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a PdfInstruction message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns PdfInstruction
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.datalabeling.v1beta1.PdfInstruction;
+
+ /**
+ * Decodes a PdfInstruction message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns PdfInstruction
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.datalabeling.v1beta1.PdfInstruction;
+
+ /**
+ * Verifies a PdfInstruction message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a PdfInstruction message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns PdfInstruction
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.datalabeling.v1beta1.PdfInstruction;
+
+ /**
+ * Creates a plain object from a PdfInstruction message. Also converts values to other types if specified.
+ * @param message PdfInstruction
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.datalabeling.v1beta1.PdfInstruction, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this PdfInstruction to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for PdfInstruction
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an ImportDataOperationResponse. */
+ interface IImportDataOperationResponse {
+
+ /** ImportDataOperationResponse dataset */
+ dataset?: (string|null);
+
+ /** ImportDataOperationResponse totalCount */
+ totalCount?: (number|null);
+
+ /** ImportDataOperationResponse importCount */
+ importCount?: (number|null);
+ }
+
+ /** Represents an ImportDataOperationResponse. */
+ class ImportDataOperationResponse implements IImportDataOperationResponse {
+
+ /**
+ * Constructs a new ImportDataOperationResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.datalabeling.v1beta1.IImportDataOperationResponse);
+
+ /** ImportDataOperationResponse dataset. */
+ public dataset: string;
+
+ /** ImportDataOperationResponse totalCount. */
+ public totalCount: number;
+
+ /** ImportDataOperationResponse importCount. */
+ public importCount: number;
+
+ /**
+ * Creates a new ImportDataOperationResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ImportDataOperationResponse instance
+ */
+ public static create(properties?: google.cloud.datalabeling.v1beta1.IImportDataOperationResponse): google.cloud.datalabeling.v1beta1.ImportDataOperationResponse;
+
+ /**
+ * Encodes the specified ImportDataOperationResponse message. Does not implicitly {@link google.cloud.datalabeling.v1beta1.ImportDataOperationResponse.verify|verify} messages.
+ * @param message ImportDataOperationResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.datalabeling.v1beta1.IImportDataOperationResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ImportDataOperationResponse message, length delimited. Does not implicitly {@link google.cloud.datalabeling.v1beta1.ImportDataOperationResponse.verify|verify} messages.
+ * @param message ImportDataOperationResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.datalabeling.v1beta1.IImportDataOperationResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an ImportDataOperationResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ImportDataOperationResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.datalabeling.v1beta1.ImportDataOperationResponse;
+
+ /**
+ * Decodes an ImportDataOperationResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ImportDataOperationResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.datalabeling.v1beta1.ImportDataOperationResponse;
+
+ /**
+ * Verifies an ImportDataOperationResponse message.
+ * @param message Plain 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 ImportDataOperationResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ImportDataOperationResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.datalabeling.v1beta1.ImportDataOperationResponse;
+
+ /**
+ * Creates a plain object from an ImportDataOperationResponse message. Also converts values to other types if specified.
+ * @param message ImportDataOperationResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.datalabeling.v1beta1.ImportDataOperationResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ImportDataOperationResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ImportDataOperationResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an ExportDataOperationResponse. */
+ interface IExportDataOperationResponse {
+
+ /** ExportDataOperationResponse dataset */
+ dataset?: (string|null);
+
+ /** ExportDataOperationResponse totalCount */
+ totalCount?: (number|null);
+
+ /** ExportDataOperationResponse exportCount */
+ exportCount?: (number|null);
+
+ /** ExportDataOperationResponse labelStats */
+ labelStats?: (google.cloud.datalabeling.v1beta1.ILabelStats|null);
+
+ /** ExportDataOperationResponse outputConfig */
+ outputConfig?: (google.cloud.datalabeling.v1beta1.IOutputConfig|null);
+ }
+
+ /** Represents an ExportDataOperationResponse. */
+ class ExportDataOperationResponse implements IExportDataOperationResponse {
+
+ /**
+ * Constructs a new ExportDataOperationResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.datalabeling.v1beta1.IExportDataOperationResponse);
+
+ /** ExportDataOperationResponse dataset. */
+ public dataset: string;
+
+ /** ExportDataOperationResponse totalCount. */
+ public totalCount: number;
+
+ /** ExportDataOperationResponse exportCount. */
+ public exportCount: number;
+
+ /** ExportDataOperationResponse labelStats. */
+ public labelStats?: (google.cloud.datalabeling.v1beta1.ILabelStats|null);
+
+ /** ExportDataOperationResponse outputConfig. */
+ public outputConfig?: (google.cloud.datalabeling.v1beta1.IOutputConfig|null);
+
+ /**
+ * Creates a new ExportDataOperationResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ExportDataOperationResponse instance
+ */
+ public static create(properties?: google.cloud.datalabeling.v1beta1.IExportDataOperationResponse): google.cloud.datalabeling.v1beta1.ExportDataOperationResponse;
+
+ /**
+ * Encodes the specified ExportDataOperationResponse message. Does not implicitly {@link google.cloud.datalabeling.v1beta1.ExportDataOperationResponse.verify|verify} messages.
+ * @param message ExportDataOperationResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.datalabeling.v1beta1.IExportDataOperationResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ExportDataOperationResponse message, length delimited. Does not implicitly {@link google.cloud.datalabeling.v1beta1.ExportDataOperationResponse.verify|verify} messages.
+ * @param message ExportDataOperationResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.datalabeling.v1beta1.IExportDataOperationResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an ExportDataOperationResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ExportDataOperationResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.datalabeling.v1beta1.ExportDataOperationResponse;
+
+ /**
+ * Decodes an ExportDataOperationResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ExportDataOperationResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.datalabeling.v1beta1.ExportDataOperationResponse;
+
+ /**
+ * Verifies an ExportDataOperationResponse message.
+ * @param message Plain 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 ExportDataOperationResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ExportDataOperationResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.datalabeling.v1beta1.ExportDataOperationResponse;
+
+ /**
+ * Creates a plain object from an ExportDataOperationResponse message. Also converts values to other types if specified.
+ * @param message ExportDataOperationResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.datalabeling.v1beta1.ExportDataOperationResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ExportDataOperationResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ExportDataOperationResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an ImportDataOperationMetadata. */
+ interface IImportDataOperationMetadata {
+
+ /** ImportDataOperationMetadata dataset */
+ dataset?: (string|null);
+
+ /** ImportDataOperationMetadata partialFailures */
+ partialFailures?: (google.rpc.IStatus[]|null);
+
+ /** ImportDataOperationMetadata createTime */
+ createTime?: (google.protobuf.ITimestamp|null);
+ }
+
+ /** Represents an ImportDataOperationMetadata. */
+ class ImportDataOperationMetadata implements IImportDataOperationMetadata {
+
+ /**
+ * Constructs a new ImportDataOperationMetadata.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.datalabeling.v1beta1.IImportDataOperationMetadata);
+
+ /** ImportDataOperationMetadata dataset. */
+ public dataset: string;
+
+ /** ImportDataOperationMetadata partialFailures. */
+ public partialFailures: google.rpc.IStatus[];
+
+ /** ImportDataOperationMetadata createTime. */
+ public createTime?: (google.protobuf.ITimestamp|null);
+
+ /**
+ * Creates a new ImportDataOperationMetadata instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ImportDataOperationMetadata instance
+ */
+ public static create(properties?: google.cloud.datalabeling.v1beta1.IImportDataOperationMetadata): google.cloud.datalabeling.v1beta1.ImportDataOperationMetadata;
+
+ /**
+ * Encodes the specified ImportDataOperationMetadata message. Does not implicitly {@link google.cloud.datalabeling.v1beta1.ImportDataOperationMetadata.verify|verify} messages.
+ * @param message ImportDataOperationMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.datalabeling.v1beta1.IImportDataOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ImportDataOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.datalabeling.v1beta1.ImportDataOperationMetadata.verify|verify} messages.
+ * @param message ImportDataOperationMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.datalabeling.v1beta1.IImportDataOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an ImportDataOperationMetadata message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ImportDataOperationMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.datalabeling.v1beta1.ImportDataOperationMetadata;
+
+ /**
+ * Decodes an ImportDataOperationMetadata message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ImportDataOperationMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.datalabeling.v1beta1.ImportDataOperationMetadata;
+
+ /**
+ * Verifies an ImportDataOperationMetadata message.
+ * @param message Plain 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 ImportDataOperationMetadata message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ImportDataOperationMetadata
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.datalabeling.v1beta1.ImportDataOperationMetadata;
+
+ /**
+ * Creates a plain object from an ImportDataOperationMetadata message. Also converts values to other types if specified.
+ * @param message ImportDataOperationMetadata
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.datalabeling.v1beta1.ImportDataOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ImportDataOperationMetadata to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ImportDataOperationMetadata
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an ExportDataOperationMetadata. */
+ interface IExportDataOperationMetadata {
+
+ /** ExportDataOperationMetadata dataset */
+ dataset?: (string|null);
+
+ /** ExportDataOperationMetadata partialFailures */
+ partialFailures?: (google.rpc.IStatus[]|null);
+
+ /** ExportDataOperationMetadata createTime */
+ createTime?: (google.protobuf.ITimestamp|null);
+ }
+
+ /** Represents an ExportDataOperationMetadata. */
+ class ExportDataOperationMetadata implements IExportDataOperationMetadata {
+
+ /**
+ * Constructs a new ExportDataOperationMetadata.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.datalabeling.v1beta1.IExportDataOperationMetadata);
+
+ /** ExportDataOperationMetadata dataset. */
+ public dataset: string;
+
+ /** ExportDataOperationMetadata partialFailures. */
+ public partialFailures: google.rpc.IStatus[];
+
+ /** ExportDataOperationMetadata createTime. */
+ public createTime?: (google.protobuf.ITimestamp|null);
+
+ /**
+ * Creates a new ExportDataOperationMetadata instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ExportDataOperationMetadata instance
+ */
+ public static create(properties?: google.cloud.datalabeling.v1beta1.IExportDataOperationMetadata): google.cloud.datalabeling.v1beta1.ExportDataOperationMetadata;
+
+ /**
+ * Encodes the specified ExportDataOperationMetadata message. Does not implicitly {@link google.cloud.datalabeling.v1beta1.ExportDataOperationMetadata.verify|verify} messages.
+ * @param message ExportDataOperationMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.datalabeling.v1beta1.IExportDataOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ExportDataOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.datalabeling.v1beta1.ExportDataOperationMetadata.verify|verify} messages.
+ * @param message ExportDataOperationMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.datalabeling.v1beta1.IExportDataOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an ExportDataOperationMetadata message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ExportDataOperationMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.datalabeling.v1beta1.ExportDataOperationMetadata;
+
+ /**
+ * Decodes an ExportDataOperationMetadata message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ExportDataOperationMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.datalabeling.v1beta1.ExportDataOperationMetadata;
+
+ /**
+ * Verifies an ExportDataOperationMetadata message.
+ * @param message Plain 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 ExportDataOperationMetadata message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ExportDataOperationMetadata
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.datalabeling.v1beta1.ExportDataOperationMetadata;
+
+ /**
+ * Creates a plain object from an ExportDataOperationMetadata message. Also converts values to other types if specified.
+ * @param message ExportDataOperationMetadata
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.datalabeling.v1beta1.ExportDataOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ExportDataOperationMetadata to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ExportDataOperationMetadata
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a LabelOperationMetadata. */
+ interface ILabelOperationMetadata {
+
+ /** LabelOperationMetadata imageClassificationDetails */
+ imageClassificationDetails?: (google.cloud.datalabeling.v1beta1.ILabelImageClassificationOperationMetadata|null);
+
+ /** LabelOperationMetadata imageBoundingBoxDetails */
+ imageBoundingBoxDetails?: (google.cloud.datalabeling.v1beta1.ILabelImageBoundingBoxOperationMetadata|null);
+
+ /** LabelOperationMetadata imageBoundingPolyDetails */
+ imageBoundingPolyDetails?: (google.cloud.datalabeling.v1beta1.ILabelImageBoundingPolyOperationMetadata|null);
+
+ /** LabelOperationMetadata imageOrientedBoundingBoxDetails */
+ imageOrientedBoundingBoxDetails?: (google.cloud.datalabeling.v1beta1.ILabelImageOrientedBoundingBoxOperationMetadata|null);
+
+ /** LabelOperationMetadata imagePolylineDetails */
+ imagePolylineDetails?: (google.cloud.datalabeling.v1beta1.ILabelImagePolylineOperationMetadata|null);
+
+ /** LabelOperationMetadata imageSegmentationDetails */
+ imageSegmentationDetails?: (google.cloud.datalabeling.v1beta1.ILabelImageSegmentationOperationMetadata|null);
+
+ /** LabelOperationMetadata videoClassificationDetails */
+ videoClassificationDetails?: (google.cloud.datalabeling.v1beta1.ILabelVideoClassificationOperationMetadata|null);
+
+ /** LabelOperationMetadata videoObjectDetectionDetails */
+ videoObjectDetectionDetails?: (google.cloud.datalabeling.v1beta1.ILabelVideoObjectDetectionOperationMetadata|null);
+
+ /** LabelOperationMetadata videoObjectTrackingDetails */
+ videoObjectTrackingDetails?: (google.cloud.datalabeling.v1beta1.ILabelVideoObjectTrackingOperationMetadata|null);
+
+ /** LabelOperationMetadata videoEventDetails */
+ videoEventDetails?: (google.cloud.datalabeling.v1beta1.ILabelVideoEventOperationMetadata|null);
+
+ /** LabelOperationMetadata textClassificationDetails */
+ textClassificationDetails?: (google.cloud.datalabeling.v1beta1.ILabelTextClassificationOperationMetadata|null);
+
+ /** LabelOperationMetadata textEntityExtractionDetails */
+ textEntityExtractionDetails?: (google.cloud.datalabeling.v1beta1.ILabelTextEntityExtractionOperationMetadata|null);
+
+ /** LabelOperationMetadata progressPercent */
+ progressPercent?: (number|null);
+
+ /** LabelOperationMetadata partialFailures */
+ partialFailures?: (google.rpc.IStatus[]|null);
+
+ /** LabelOperationMetadata createTime */
+ createTime?: (google.protobuf.ITimestamp|null);
+ }
+
+ /** Represents a LabelOperationMetadata. */
+ class LabelOperationMetadata implements ILabelOperationMetadata {
+
+ /**
+ * Constructs a new LabelOperationMetadata.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.datalabeling.v1beta1.ILabelOperationMetadata);
+
+ /** LabelOperationMetadata imageClassificationDetails. */
+ public imageClassificationDetails?: (google.cloud.datalabeling.v1beta1.ILabelImageClassificationOperationMetadata|null);
+
+ /** LabelOperationMetadata imageBoundingBoxDetails. */
+ public imageBoundingBoxDetails?: (google.cloud.datalabeling.v1beta1.ILabelImageBoundingBoxOperationMetadata|null);
+
+ /** LabelOperationMetadata imageBoundingPolyDetails. */
+ public imageBoundingPolyDetails?: (google.cloud.datalabeling.v1beta1.ILabelImageBoundingPolyOperationMetadata|null);
+
+ /** LabelOperationMetadata imageOrientedBoundingBoxDetails. */
+ public imageOrientedBoundingBoxDetails?: (google.cloud.datalabeling.v1beta1.ILabelImageOrientedBoundingBoxOperationMetadata|null);
+
+ /** LabelOperationMetadata imagePolylineDetails. */
+ public imagePolylineDetails?: (google.cloud.datalabeling.v1beta1.ILabelImagePolylineOperationMetadata|null);
+
+ /** LabelOperationMetadata imageSegmentationDetails. */
+ public imageSegmentationDetails?: (google.cloud.datalabeling.v1beta1.ILabelImageSegmentationOperationMetadata|null);
+
+ /** LabelOperationMetadata videoClassificationDetails. */
+ public videoClassificationDetails?: (google.cloud.datalabeling.v1beta1.ILabelVideoClassificationOperationMetadata|null);
+
+ /** LabelOperationMetadata videoObjectDetectionDetails. */
+ public videoObjectDetectionDetails?: (google.cloud.datalabeling.v1beta1.ILabelVideoObjectDetectionOperationMetadata|null);
+
+ /** LabelOperationMetadata videoObjectTrackingDetails. */
+ public videoObjectTrackingDetails?: (google.cloud.datalabeling.v1beta1.ILabelVideoObjectTrackingOperationMetadata|null);
+
+ /** LabelOperationMetadata videoEventDetails. */
+ public videoEventDetails?: (google.cloud.datalabeling.v1beta1.ILabelVideoEventOperationMetadata|null);
+
+ /** LabelOperationMetadata textClassificationDetails. */
+ public textClassificationDetails?: (google.cloud.datalabeling.v1beta1.ILabelTextClassificationOperationMetadata|null);
+
+ /** LabelOperationMetadata textEntityExtractionDetails. */
+ public textEntityExtractionDetails?: (google.cloud.datalabeling.v1beta1.ILabelTextEntityExtractionOperationMetadata|null);
+
+ /** LabelOperationMetadata progressPercent. */
+ public progressPercent: number;
+
+ /** LabelOperationMetadata partialFailures. */
+ public partialFailures: google.rpc.IStatus[];
+
+ /** LabelOperationMetadata createTime. */
+ public createTime?: (google.protobuf.ITimestamp|null);
+
+ /** LabelOperationMetadata details. */
+ public details?: ("imageClassificationDetails"|"imageBoundingBoxDetails"|"imageBoundingPolyDetails"|"imageOrientedBoundingBoxDetails"|"imagePolylineDetails"|"imageSegmentationDetails"|"videoClassificationDetails"|"videoObjectDetectionDetails"|"videoObjectTrackingDetails"|"videoEventDetails"|"textClassificationDetails"|"textEntityExtractionDetails");
+
+ /**
+ * Creates a new LabelOperationMetadata instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns LabelOperationMetadata instance
+ */
+ public static create(properties?: google.cloud.datalabeling.v1beta1.ILabelOperationMetadata): google.cloud.datalabeling.v1beta1.LabelOperationMetadata;
+
+ /**
+ * Encodes the specified LabelOperationMetadata message. Does not implicitly {@link google.cloud.datalabeling.v1beta1.LabelOperationMetadata.verify|verify} messages.
+ * @param message LabelOperationMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.datalabeling.v1beta1.ILabelOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified LabelOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.datalabeling.v1beta1.LabelOperationMetadata.verify|verify} messages.
+ * @param message LabelOperationMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.datalabeling.v1beta1.ILabelOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a LabelOperationMetadata message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns LabelOperationMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.datalabeling.v1beta1.LabelOperationMetadata;
+
+ /**
+ * Decodes a LabelOperationMetadata message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns LabelOperationMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.datalabeling.v1beta1.LabelOperationMetadata;
+
+ /**
+ * Verifies a LabelOperationMetadata message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a LabelOperationMetadata message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns LabelOperationMetadata
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.datalabeling.v1beta1.LabelOperationMetadata;
+
+ /**
+ * Creates a plain object from a LabelOperationMetadata message. Also converts values to other types if specified.
+ * @param message LabelOperationMetadata
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.datalabeling.v1beta1.LabelOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this LabelOperationMetadata to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for LabelOperationMetadata
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a LabelImageClassificationOperationMetadata. */
+ interface ILabelImageClassificationOperationMetadata {
+
+ /** LabelImageClassificationOperationMetadata basicConfig */
+ basicConfig?: (google.cloud.datalabeling.v1beta1.IHumanAnnotationConfig|null);
+ }
+
+ /** Represents a LabelImageClassificationOperationMetadata. */
+ class LabelImageClassificationOperationMetadata implements ILabelImageClassificationOperationMetadata {
+
+ /**
+ * Constructs a new LabelImageClassificationOperationMetadata.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.datalabeling.v1beta1.ILabelImageClassificationOperationMetadata);
+
+ /** LabelImageClassificationOperationMetadata basicConfig. */
+ public basicConfig?: (google.cloud.datalabeling.v1beta1.IHumanAnnotationConfig|null);
+
+ /**
+ * Creates a new LabelImageClassificationOperationMetadata instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns LabelImageClassificationOperationMetadata instance
+ */
+ public static create(properties?: google.cloud.datalabeling.v1beta1.ILabelImageClassificationOperationMetadata): google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata;
+
+ /**
+ * Encodes the specified LabelImageClassificationOperationMetadata message. Does not implicitly {@link google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata.verify|verify} messages.
+ * @param message LabelImageClassificationOperationMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.datalabeling.v1beta1.ILabelImageClassificationOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified LabelImageClassificationOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata.verify|verify} messages.
+ * @param message LabelImageClassificationOperationMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.datalabeling.v1beta1.ILabelImageClassificationOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a LabelImageClassificationOperationMetadata message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns LabelImageClassificationOperationMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata;
+
+ /**
+ * Decodes a LabelImageClassificationOperationMetadata message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns LabelImageClassificationOperationMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata;
+
+ /**
+ * Verifies a LabelImageClassificationOperationMetadata message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a LabelImageClassificationOperationMetadata message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns LabelImageClassificationOperationMetadata
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata;
+
+ /**
+ * Creates a plain object from a LabelImageClassificationOperationMetadata message. Also converts values to other types if specified.
+ * @param message LabelImageClassificationOperationMetadata
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this LabelImageClassificationOperationMetadata to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for LabelImageClassificationOperationMetadata
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a LabelImageBoundingBoxOperationMetadata. */
+ interface ILabelImageBoundingBoxOperationMetadata {
+
+ /** LabelImageBoundingBoxOperationMetadata basicConfig */
+ basicConfig?: (google.cloud.datalabeling.v1beta1.IHumanAnnotationConfig|null);
+ }
+
+ /** Represents a LabelImageBoundingBoxOperationMetadata. */
+ class LabelImageBoundingBoxOperationMetadata implements ILabelImageBoundingBoxOperationMetadata {
+
+ /**
+ * Constructs a new LabelImageBoundingBoxOperationMetadata.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.datalabeling.v1beta1.ILabelImageBoundingBoxOperationMetadata);
+
+ /** LabelImageBoundingBoxOperationMetadata basicConfig. */
+ public basicConfig?: (google.cloud.datalabeling.v1beta1.IHumanAnnotationConfig|null);
+
+ /**
+ * Creates a new LabelImageBoundingBoxOperationMetadata instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns LabelImageBoundingBoxOperationMetadata instance
+ */
+ public static create(properties?: google.cloud.datalabeling.v1beta1.ILabelImageBoundingBoxOperationMetadata): google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata;
+
+ /**
+ * Encodes the specified LabelImageBoundingBoxOperationMetadata message. Does not implicitly {@link google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata.verify|verify} messages.
+ * @param message LabelImageBoundingBoxOperationMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.datalabeling.v1beta1.ILabelImageBoundingBoxOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified LabelImageBoundingBoxOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata.verify|verify} messages.
+ * @param message LabelImageBoundingBoxOperationMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.datalabeling.v1beta1.ILabelImageBoundingBoxOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a LabelImageBoundingBoxOperationMetadata message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns LabelImageBoundingBoxOperationMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata;
+
+ /**
+ * Decodes a LabelImageBoundingBoxOperationMetadata message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns LabelImageBoundingBoxOperationMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata;
+
+ /**
+ * Verifies a LabelImageBoundingBoxOperationMetadata message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a LabelImageBoundingBoxOperationMetadata message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns LabelImageBoundingBoxOperationMetadata
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata;
+
+ /**
+ * Creates a plain object from a LabelImageBoundingBoxOperationMetadata message. Also converts values to other types if specified.
+ * @param message LabelImageBoundingBoxOperationMetadata
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this LabelImageBoundingBoxOperationMetadata to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for LabelImageBoundingBoxOperationMetadata
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a LabelImageOrientedBoundingBoxOperationMetadata. */
+ interface ILabelImageOrientedBoundingBoxOperationMetadata {
+
+ /** LabelImageOrientedBoundingBoxOperationMetadata basicConfig */
+ basicConfig?: (google.cloud.datalabeling.v1beta1.IHumanAnnotationConfig|null);
+ }
+
+ /** Represents a LabelImageOrientedBoundingBoxOperationMetadata. */
+ class LabelImageOrientedBoundingBoxOperationMetadata implements ILabelImageOrientedBoundingBoxOperationMetadata {
+
+ /**
+ * Constructs a new LabelImageOrientedBoundingBoxOperationMetadata.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.datalabeling.v1beta1.ILabelImageOrientedBoundingBoxOperationMetadata);
+
+ /** LabelImageOrientedBoundingBoxOperationMetadata basicConfig. */
+ public basicConfig?: (google.cloud.datalabeling.v1beta1.IHumanAnnotationConfig|null);
+
+ /**
+ * Creates a new LabelImageOrientedBoundingBoxOperationMetadata instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns LabelImageOrientedBoundingBoxOperationMetadata instance
+ */
+ public static create(properties?: google.cloud.datalabeling.v1beta1.ILabelImageOrientedBoundingBoxOperationMetadata): google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata;
+
+ /**
+ * Encodes the specified LabelImageOrientedBoundingBoxOperationMetadata message. Does not implicitly {@link google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata.verify|verify} messages.
+ * @param message LabelImageOrientedBoundingBoxOperationMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.datalabeling.v1beta1.ILabelImageOrientedBoundingBoxOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified LabelImageOrientedBoundingBoxOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata.verify|verify} messages.
+ * @param message LabelImageOrientedBoundingBoxOperationMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.datalabeling.v1beta1.ILabelImageOrientedBoundingBoxOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a LabelImageOrientedBoundingBoxOperationMetadata message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns LabelImageOrientedBoundingBoxOperationMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata;
+
+ /**
+ * Decodes a LabelImageOrientedBoundingBoxOperationMetadata message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns LabelImageOrientedBoundingBoxOperationMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata;
+
+ /**
+ * Verifies a LabelImageOrientedBoundingBoxOperationMetadata message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a LabelImageOrientedBoundingBoxOperationMetadata message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns LabelImageOrientedBoundingBoxOperationMetadata
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata;
+
+ /**
+ * Creates a plain object from a LabelImageOrientedBoundingBoxOperationMetadata message. Also converts values to other types if specified.
+ * @param message LabelImageOrientedBoundingBoxOperationMetadata
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this LabelImageOrientedBoundingBoxOperationMetadata to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for LabelImageOrientedBoundingBoxOperationMetadata
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a LabelImageBoundingPolyOperationMetadata. */
+ interface ILabelImageBoundingPolyOperationMetadata {
+
+ /** LabelImageBoundingPolyOperationMetadata basicConfig */
+ basicConfig?: (google.cloud.datalabeling.v1beta1.IHumanAnnotationConfig|null);
+ }
+
+ /** Represents a LabelImageBoundingPolyOperationMetadata. */
+ class LabelImageBoundingPolyOperationMetadata implements ILabelImageBoundingPolyOperationMetadata {
+
+ /**
+ * Constructs a new LabelImageBoundingPolyOperationMetadata.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.datalabeling.v1beta1.ILabelImageBoundingPolyOperationMetadata);
+
+ /** LabelImageBoundingPolyOperationMetadata basicConfig. */
+ public basicConfig?: (google.cloud.datalabeling.v1beta1.IHumanAnnotationConfig|null);
+
+ /**
+ * Creates a new LabelImageBoundingPolyOperationMetadata instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns LabelImageBoundingPolyOperationMetadata instance
+ */
+ public static create(properties?: google.cloud.datalabeling.v1beta1.ILabelImageBoundingPolyOperationMetadata): google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata;
+
+ /**
+ * Encodes the specified LabelImageBoundingPolyOperationMetadata message. Does not implicitly {@link google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata.verify|verify} messages.
+ * @param message LabelImageBoundingPolyOperationMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.datalabeling.v1beta1.ILabelImageBoundingPolyOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified LabelImageBoundingPolyOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata.verify|verify} messages.
+ * @param message LabelImageBoundingPolyOperationMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.datalabeling.v1beta1.ILabelImageBoundingPolyOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a LabelImageBoundingPolyOperationMetadata message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns LabelImageBoundingPolyOperationMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata;
+
+ /**
+ * Decodes a LabelImageBoundingPolyOperationMetadata message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns LabelImageBoundingPolyOperationMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata;
+
+ /**
+ * Verifies a LabelImageBoundingPolyOperationMetadata message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a LabelImageBoundingPolyOperationMetadata message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns LabelImageBoundingPolyOperationMetadata
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata;
+
+ /**
+ * Creates a plain object from a LabelImageBoundingPolyOperationMetadata message. Also converts values to other types if specified.
+ * @param message LabelImageBoundingPolyOperationMetadata
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this LabelImageBoundingPolyOperationMetadata to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for LabelImageBoundingPolyOperationMetadata
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a LabelImagePolylineOperationMetadata. */
+ interface ILabelImagePolylineOperationMetadata {
+
+ /** LabelImagePolylineOperationMetadata basicConfig */
+ basicConfig?: (google.cloud.datalabeling.v1beta1.IHumanAnnotationConfig|null);
+ }
+
+ /** Represents a LabelImagePolylineOperationMetadata. */
+ class LabelImagePolylineOperationMetadata implements ILabelImagePolylineOperationMetadata {
+
+ /**
+ * Constructs a new LabelImagePolylineOperationMetadata.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.datalabeling.v1beta1.ILabelImagePolylineOperationMetadata);
+
+ /** LabelImagePolylineOperationMetadata basicConfig. */
+ public basicConfig?: (google.cloud.datalabeling.v1beta1.IHumanAnnotationConfig|null);
+
+ /**
+ * Creates a new LabelImagePolylineOperationMetadata instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns LabelImagePolylineOperationMetadata instance
+ */
+ public static create(properties?: google.cloud.datalabeling.v1beta1.ILabelImagePolylineOperationMetadata): google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata;
+
+ /**
+ * Encodes the specified LabelImagePolylineOperationMetadata message. Does not implicitly {@link google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata.verify|verify} messages.
+ * @param message LabelImagePolylineOperationMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.datalabeling.v1beta1.ILabelImagePolylineOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified LabelImagePolylineOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata.verify|verify} messages.
+ * @param message LabelImagePolylineOperationMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.datalabeling.v1beta1.ILabelImagePolylineOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a LabelImagePolylineOperationMetadata message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns LabelImagePolylineOperationMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata;
+
+ /**
+ * Decodes a LabelImagePolylineOperationMetadata message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns LabelImagePolylineOperationMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata;
+
+ /**
+ * Verifies a LabelImagePolylineOperationMetadata message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a LabelImagePolylineOperationMetadata message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns LabelImagePolylineOperationMetadata
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata;
+
+ /**
+ * Creates a plain object from a LabelImagePolylineOperationMetadata message. Also converts values to other types if specified.
+ * @param message LabelImagePolylineOperationMetadata
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this LabelImagePolylineOperationMetadata to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for LabelImagePolylineOperationMetadata
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a LabelImageSegmentationOperationMetadata. */
+ interface ILabelImageSegmentationOperationMetadata {
+
+ /** LabelImageSegmentationOperationMetadata basicConfig */
+ basicConfig?: (google.cloud.datalabeling.v1beta1.IHumanAnnotationConfig|null);
+ }
+
+ /** Represents a LabelImageSegmentationOperationMetadata. */
+ class LabelImageSegmentationOperationMetadata implements ILabelImageSegmentationOperationMetadata {
+
+ /**
+ * Constructs a new LabelImageSegmentationOperationMetadata.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.datalabeling.v1beta1.ILabelImageSegmentationOperationMetadata);
+
+ /** LabelImageSegmentationOperationMetadata basicConfig. */
+ public basicConfig?: (google.cloud.datalabeling.v1beta1.IHumanAnnotationConfig|null);
+
+ /**
+ * Creates a new LabelImageSegmentationOperationMetadata instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns LabelImageSegmentationOperationMetadata instance
+ */
+ public static create(properties?: google.cloud.datalabeling.v1beta1.ILabelImageSegmentationOperationMetadata): google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata;
+
+ /**
+ * Encodes the specified LabelImageSegmentationOperationMetadata message. Does not implicitly {@link google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata.verify|verify} messages.
+ * @param message LabelImageSegmentationOperationMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.datalabeling.v1beta1.ILabelImageSegmentationOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified LabelImageSegmentationOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata.verify|verify} messages.
+ * @param message LabelImageSegmentationOperationMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.datalabeling.v1beta1.ILabelImageSegmentationOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a LabelImageSegmentationOperationMetadata message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns LabelImageSegmentationOperationMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata;
+
+ /**
+ * Decodes a LabelImageSegmentationOperationMetadata message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns LabelImageSegmentationOperationMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata;
+
+ /**
+ * Verifies a LabelImageSegmentationOperationMetadata message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a LabelImageSegmentationOperationMetadata message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns LabelImageSegmentationOperationMetadata
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata;
+
+ /**
+ * Creates a plain object from a LabelImageSegmentationOperationMetadata message. Also converts values to other types if specified.
+ * @param message LabelImageSegmentationOperationMetadata
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this LabelImageSegmentationOperationMetadata to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for LabelImageSegmentationOperationMetadata
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a LabelVideoClassificationOperationMetadata. */
+ interface ILabelVideoClassificationOperationMetadata {
+
+ /** LabelVideoClassificationOperationMetadata basicConfig */
+ basicConfig?: (google.cloud.datalabeling.v1beta1.IHumanAnnotationConfig|null);
+ }
+
+ /** Represents a LabelVideoClassificationOperationMetadata. */
+ class LabelVideoClassificationOperationMetadata implements ILabelVideoClassificationOperationMetadata {
+
+ /**
+ * Constructs a new LabelVideoClassificationOperationMetadata.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.datalabeling.v1beta1.ILabelVideoClassificationOperationMetadata);
+
+ /** LabelVideoClassificationOperationMetadata basicConfig. */
+ public basicConfig?: (google.cloud.datalabeling.v1beta1.IHumanAnnotationConfig|null);
+
+ /**
+ * Creates a new LabelVideoClassificationOperationMetadata instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns LabelVideoClassificationOperationMetadata instance
+ */
+ public static create(properties?: google.cloud.datalabeling.v1beta1.ILabelVideoClassificationOperationMetadata): google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata;
+
+ /**
+ * Encodes the specified LabelVideoClassificationOperationMetadata message. Does not implicitly {@link google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata.verify|verify} messages.
+ * @param message LabelVideoClassificationOperationMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.datalabeling.v1beta1.ILabelVideoClassificationOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified LabelVideoClassificationOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata.verify|verify} messages.
+ * @param message LabelVideoClassificationOperationMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.datalabeling.v1beta1.ILabelVideoClassificationOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a LabelVideoClassificationOperationMetadata message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns LabelVideoClassificationOperationMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata;
+
+ /**
+ * Decodes a LabelVideoClassificationOperationMetadata message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns LabelVideoClassificationOperationMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata;
+
+ /**
+ * Verifies a LabelVideoClassificationOperationMetadata message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a LabelVideoClassificationOperationMetadata message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns LabelVideoClassificationOperationMetadata
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata;
+
+ /**
+ * Creates a plain object from a LabelVideoClassificationOperationMetadata message. Also converts values to other types if specified.
+ * @param message LabelVideoClassificationOperationMetadata
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this LabelVideoClassificationOperationMetadata to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for LabelVideoClassificationOperationMetadata
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a LabelVideoObjectDetectionOperationMetadata. */
+ interface ILabelVideoObjectDetectionOperationMetadata {
+
+ /** LabelVideoObjectDetectionOperationMetadata basicConfig */
+ basicConfig?: (google.cloud.datalabeling.v1beta1.IHumanAnnotationConfig|null);
+ }
+
+ /** Represents a LabelVideoObjectDetectionOperationMetadata. */
+ class LabelVideoObjectDetectionOperationMetadata implements ILabelVideoObjectDetectionOperationMetadata {
+
+ /**
+ * Constructs a new LabelVideoObjectDetectionOperationMetadata.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.datalabeling.v1beta1.ILabelVideoObjectDetectionOperationMetadata);
+
+ /** LabelVideoObjectDetectionOperationMetadata basicConfig. */
+ public basicConfig?: (google.cloud.datalabeling.v1beta1.IHumanAnnotationConfig|null);
+
+ /**
+ * Creates a new LabelVideoObjectDetectionOperationMetadata instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns LabelVideoObjectDetectionOperationMetadata instance
+ */
+ public static create(properties?: google.cloud.datalabeling.v1beta1.ILabelVideoObjectDetectionOperationMetadata): google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata;
+
+ /**
+ * Encodes the specified LabelVideoObjectDetectionOperationMetadata message. Does not implicitly {@link google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata.verify|verify} messages.
+ * @param message LabelVideoObjectDetectionOperationMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.datalabeling.v1beta1.ILabelVideoObjectDetectionOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified LabelVideoObjectDetectionOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata.verify|verify} messages.
+ * @param message LabelVideoObjectDetectionOperationMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.datalabeling.v1beta1.ILabelVideoObjectDetectionOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a LabelVideoObjectDetectionOperationMetadata message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns LabelVideoObjectDetectionOperationMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata;
+
+ /**
+ * Decodes a LabelVideoObjectDetectionOperationMetadata message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns LabelVideoObjectDetectionOperationMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata;
+
+ /**
+ * Verifies a LabelVideoObjectDetectionOperationMetadata message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a LabelVideoObjectDetectionOperationMetadata message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns LabelVideoObjectDetectionOperationMetadata
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata;
+
+ /**
+ * Creates a plain object from a LabelVideoObjectDetectionOperationMetadata message. Also converts values to other types if specified.
+ * @param message LabelVideoObjectDetectionOperationMetadata
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this LabelVideoObjectDetectionOperationMetadata to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for LabelVideoObjectDetectionOperationMetadata
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a LabelVideoObjectTrackingOperationMetadata. */
+ interface ILabelVideoObjectTrackingOperationMetadata {
+
+ /** LabelVideoObjectTrackingOperationMetadata basicConfig */
+ basicConfig?: (google.cloud.datalabeling.v1beta1.IHumanAnnotationConfig|null);
+ }
+
+ /** Represents a LabelVideoObjectTrackingOperationMetadata. */
+ class LabelVideoObjectTrackingOperationMetadata implements ILabelVideoObjectTrackingOperationMetadata {
+
+ /**
+ * Constructs a new LabelVideoObjectTrackingOperationMetadata.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.datalabeling.v1beta1.ILabelVideoObjectTrackingOperationMetadata);
+
+ /** LabelVideoObjectTrackingOperationMetadata basicConfig. */
+ public basicConfig?: (google.cloud.datalabeling.v1beta1.IHumanAnnotationConfig|null);
+
+ /**
+ * Creates a new LabelVideoObjectTrackingOperationMetadata instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns LabelVideoObjectTrackingOperationMetadata instance
+ */
+ public static create(properties?: google.cloud.datalabeling.v1beta1.ILabelVideoObjectTrackingOperationMetadata): google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata;
+
+ /**
+ * Encodes the specified LabelVideoObjectTrackingOperationMetadata message. Does not implicitly {@link google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata.verify|verify} messages.
+ * @param message LabelVideoObjectTrackingOperationMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.datalabeling.v1beta1.ILabelVideoObjectTrackingOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified LabelVideoObjectTrackingOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata.verify|verify} messages.
+ * @param message LabelVideoObjectTrackingOperationMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.datalabeling.v1beta1.ILabelVideoObjectTrackingOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a LabelVideoObjectTrackingOperationMetadata message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns LabelVideoObjectTrackingOperationMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata;
+
+ /**
+ * Decodes a LabelVideoObjectTrackingOperationMetadata message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns LabelVideoObjectTrackingOperationMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata;
+
+ /**
+ * Verifies a LabelVideoObjectTrackingOperationMetadata message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a LabelVideoObjectTrackingOperationMetadata message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns LabelVideoObjectTrackingOperationMetadata
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata;
+
+ /**
+ * Creates a plain object from a LabelVideoObjectTrackingOperationMetadata message. Also converts values to other types if specified.
+ * @param message LabelVideoObjectTrackingOperationMetadata
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this LabelVideoObjectTrackingOperationMetadata to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for LabelVideoObjectTrackingOperationMetadata
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a LabelVideoEventOperationMetadata. */
+ interface ILabelVideoEventOperationMetadata {
+
+ /** LabelVideoEventOperationMetadata basicConfig */
+ basicConfig?: (google.cloud.datalabeling.v1beta1.IHumanAnnotationConfig|null);
+ }
+
+ /** Represents a LabelVideoEventOperationMetadata. */
+ class LabelVideoEventOperationMetadata implements ILabelVideoEventOperationMetadata {
+
+ /**
+ * Constructs a new LabelVideoEventOperationMetadata.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.datalabeling.v1beta1.ILabelVideoEventOperationMetadata);
+
+ /** LabelVideoEventOperationMetadata basicConfig. */
+ public basicConfig?: (google.cloud.datalabeling.v1beta1.IHumanAnnotationConfig|null);
+
+ /**
+ * Creates a new LabelVideoEventOperationMetadata instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns LabelVideoEventOperationMetadata instance
+ */
+ public static create(properties?: google.cloud.datalabeling.v1beta1.ILabelVideoEventOperationMetadata): google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata;
+
+ /**
+ * Encodes the specified LabelVideoEventOperationMetadata message. Does not implicitly {@link google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata.verify|verify} messages.
+ * @param message LabelVideoEventOperationMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.datalabeling.v1beta1.ILabelVideoEventOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified LabelVideoEventOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata.verify|verify} messages.
+ * @param message LabelVideoEventOperationMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.datalabeling.v1beta1.ILabelVideoEventOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a LabelVideoEventOperationMetadata message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns LabelVideoEventOperationMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata;
+
+ /**
+ * Decodes a LabelVideoEventOperationMetadata message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns LabelVideoEventOperationMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata;
+
+ /**
+ * Verifies a LabelVideoEventOperationMetadata message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a LabelVideoEventOperationMetadata message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns LabelVideoEventOperationMetadata
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata;
+
+ /**
+ * Creates a plain object from a LabelVideoEventOperationMetadata message. Also converts values to other types if specified.
+ * @param message LabelVideoEventOperationMetadata
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this LabelVideoEventOperationMetadata to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for LabelVideoEventOperationMetadata
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a LabelTextClassificationOperationMetadata. */
+ interface ILabelTextClassificationOperationMetadata {
+
+ /** LabelTextClassificationOperationMetadata basicConfig */
+ basicConfig?: (google.cloud.datalabeling.v1beta1.IHumanAnnotationConfig|null);
+ }
+
+ /** Represents a LabelTextClassificationOperationMetadata. */
+ class LabelTextClassificationOperationMetadata implements ILabelTextClassificationOperationMetadata {
+
+ /**
+ * Constructs a new LabelTextClassificationOperationMetadata.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.datalabeling.v1beta1.ILabelTextClassificationOperationMetadata);
+
+ /** LabelTextClassificationOperationMetadata basicConfig. */
+ public basicConfig?: (google.cloud.datalabeling.v1beta1.IHumanAnnotationConfig|null);
+
+ /**
+ * Creates a new LabelTextClassificationOperationMetadata instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns LabelTextClassificationOperationMetadata instance
+ */
+ public static create(properties?: google.cloud.datalabeling.v1beta1.ILabelTextClassificationOperationMetadata): google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata;
+
+ /**
+ * Encodes the specified LabelTextClassificationOperationMetadata message. Does not implicitly {@link google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata.verify|verify} messages.
+ * @param message LabelTextClassificationOperationMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.datalabeling.v1beta1.ILabelTextClassificationOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified LabelTextClassificationOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata.verify|verify} messages.
+ * @param message LabelTextClassificationOperationMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.datalabeling.v1beta1.ILabelTextClassificationOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a LabelTextClassificationOperationMetadata message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns LabelTextClassificationOperationMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata;
+
+ /**
+ * Decodes a LabelTextClassificationOperationMetadata message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns LabelTextClassificationOperationMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata;
+
+ /**
+ * Verifies a LabelTextClassificationOperationMetadata message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a LabelTextClassificationOperationMetadata message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns LabelTextClassificationOperationMetadata
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata;
+
+ /**
+ * Creates a plain object from a LabelTextClassificationOperationMetadata message. Also converts values to other types if specified.
+ * @param message LabelTextClassificationOperationMetadata
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this LabelTextClassificationOperationMetadata to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for LabelTextClassificationOperationMetadata
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a LabelTextEntityExtractionOperationMetadata. */
+ interface ILabelTextEntityExtractionOperationMetadata {
+
+ /** LabelTextEntityExtractionOperationMetadata basicConfig */
+ basicConfig?: (google.cloud.datalabeling.v1beta1.IHumanAnnotationConfig|null);
+ }
+
+ /** Represents a LabelTextEntityExtractionOperationMetadata. */
+ class LabelTextEntityExtractionOperationMetadata implements ILabelTextEntityExtractionOperationMetadata {
+
+ /**
+ * Constructs a new LabelTextEntityExtractionOperationMetadata.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.datalabeling.v1beta1.ILabelTextEntityExtractionOperationMetadata);
+
+ /** LabelTextEntityExtractionOperationMetadata basicConfig. */
+ public basicConfig?: (google.cloud.datalabeling.v1beta1.IHumanAnnotationConfig|null);
+
+ /**
+ * Creates a new LabelTextEntityExtractionOperationMetadata instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns LabelTextEntityExtractionOperationMetadata instance
+ */
+ public static create(properties?: google.cloud.datalabeling.v1beta1.ILabelTextEntityExtractionOperationMetadata): google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata;
+
+ /**
+ * Encodes the specified LabelTextEntityExtractionOperationMetadata message. Does not implicitly {@link google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata.verify|verify} messages.
+ * @param message LabelTextEntityExtractionOperationMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.datalabeling.v1beta1.ILabelTextEntityExtractionOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified LabelTextEntityExtractionOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata.verify|verify} messages.
+ * @param message LabelTextEntityExtractionOperationMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.datalabeling.v1beta1.ILabelTextEntityExtractionOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a LabelTextEntityExtractionOperationMetadata message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns LabelTextEntityExtractionOperationMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata;
+
+ /**
+ * Decodes a LabelTextEntityExtractionOperationMetadata message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns LabelTextEntityExtractionOperationMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata;
+
+ /**
+ * Verifies a LabelTextEntityExtractionOperationMetadata message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a LabelTextEntityExtractionOperationMetadata message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns LabelTextEntityExtractionOperationMetadata
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata;
+
+ /**
+ * Creates a plain object from a LabelTextEntityExtractionOperationMetadata message. Also converts values to other types if specified.
+ * @param message LabelTextEntityExtractionOperationMetadata
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this LabelTextEntityExtractionOperationMetadata to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for LabelTextEntityExtractionOperationMetadata
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CreateInstructionMetadata. */
+ interface ICreateInstructionMetadata {
+
+ /** CreateInstructionMetadata instruction */
+ instruction?: (string|null);
+
+ /** CreateInstructionMetadata partialFailures */
+ partialFailures?: (google.rpc.IStatus[]|null);
+
+ /** CreateInstructionMetadata createTime */
+ createTime?: (google.protobuf.ITimestamp|null);
+ }
+
+ /** Represents a CreateInstructionMetadata. */
+ class CreateInstructionMetadata implements ICreateInstructionMetadata {
+
+ /**
+ * Constructs a new CreateInstructionMetadata.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.datalabeling.v1beta1.ICreateInstructionMetadata);
+
+ /** CreateInstructionMetadata instruction. */
+ public instruction: string;
+
+ /** CreateInstructionMetadata partialFailures. */
+ public partialFailures: google.rpc.IStatus[];
+
+ /** CreateInstructionMetadata createTime. */
+ public createTime?: (google.protobuf.ITimestamp|null);
+
+ /**
+ * Creates a new CreateInstructionMetadata instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CreateInstructionMetadata instance
+ */
+ public static create(properties?: google.cloud.datalabeling.v1beta1.ICreateInstructionMetadata): google.cloud.datalabeling.v1beta1.CreateInstructionMetadata;
+
+ /**
+ * Encodes the specified CreateInstructionMetadata message. Does not implicitly {@link google.cloud.datalabeling.v1beta1.CreateInstructionMetadata.verify|verify} messages.
+ * @param message CreateInstructionMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.datalabeling.v1beta1.ICreateInstructionMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CreateInstructionMetadata message, length delimited. Does not implicitly {@link google.cloud.datalabeling.v1beta1.CreateInstructionMetadata.verify|verify} messages.
+ * @param message CreateInstructionMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.datalabeling.v1beta1.ICreateInstructionMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CreateInstructionMetadata message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CreateInstructionMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.datalabeling.v1beta1.CreateInstructionMetadata;
+
+ /**
+ * Decodes a CreateInstructionMetadata message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CreateInstructionMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.datalabeling.v1beta1.CreateInstructionMetadata;
+
+ /**
+ * Verifies a CreateInstructionMetadata message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a CreateInstructionMetadata message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CreateInstructionMetadata
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.datalabeling.v1beta1.CreateInstructionMetadata;
+
+ /**
+ * Creates a plain object from a CreateInstructionMetadata message. Also converts values to other types if specified.
+ * @param message CreateInstructionMetadata
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.datalabeling.v1beta1.CreateInstructionMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CreateInstructionMetadata to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CreateInstructionMetadata
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+ }
+ }
+
+ /** Namespace api. */
+ namespace api {
+
+ /** Properties of a ResourceDescriptor. */
+ interface IResourceDescriptor {
+
+ /** ResourceDescriptor type */
+ type?: (string|null);
+
+ /** ResourceDescriptor pattern */
+ pattern?: (string[]|null);
+
+ /** ResourceDescriptor nameField */
+ nameField?: (string|null);
+
+ /** ResourceDescriptor history */
+ history?: (google.api.ResourceDescriptor.History|keyof typeof google.api.ResourceDescriptor.History|null);
+
+ /** ResourceDescriptor plural */
+ plural?: (string|null);
+
+ /** ResourceDescriptor singular */
+ singular?: (string|null);
+
+ /** ResourceDescriptor style */
+ style?: (google.api.ResourceDescriptor.Style[]|null);
+ }
+
+ /** Represents a ResourceDescriptor. */
+ class ResourceDescriptor implements IResourceDescriptor {
+
+ /**
+ * Constructs a new ResourceDescriptor.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IResourceDescriptor);
+
+ /** ResourceDescriptor type. */
+ public type: string;
+
+ /** ResourceDescriptor pattern. */
+ public pattern: string[];
+
+ /** ResourceDescriptor nameField. */
+ public nameField: string;
+
+ /** ResourceDescriptor history. */
+ public history: (google.api.ResourceDescriptor.History|keyof typeof google.api.ResourceDescriptor.History);
+
+ /** ResourceDescriptor plural. */
+ public plural: string;
+
+ /** ResourceDescriptor singular. */
+ public singular: string;
+
+ /** ResourceDescriptor style. */
+ public style: google.api.ResourceDescriptor.Style[];
+
+ /**
+ * Creates a new ResourceDescriptor instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ResourceDescriptor instance
+ */
+ public static create(properties?: google.api.IResourceDescriptor): google.api.ResourceDescriptor;
+
+ /**
+ * Encodes the specified ResourceDescriptor message. Does not implicitly {@link google.api.ResourceDescriptor.verify|verify} messages.
+ * @param message ResourceDescriptor message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IResourceDescriptor, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ResourceDescriptor message, length delimited. Does not implicitly {@link google.api.ResourceDescriptor.verify|verify} messages.
+ * @param message ResourceDescriptor message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IResourceDescriptor, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ResourceDescriptor message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ResourceDescriptor
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.ResourceDescriptor;
+
+ /**
+ * Decodes a ResourceDescriptor message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ResourceDescriptor
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.ResourceDescriptor;
+
+ /**
+ * Verifies a ResourceDescriptor message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ResourceDescriptor message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ResourceDescriptor
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.ResourceDescriptor;
+
+ /**
+ * Creates a plain object from a ResourceDescriptor message. Also converts values to other types if specified.
+ * @param message ResourceDescriptor
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.ResourceDescriptor, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ResourceDescriptor to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ResourceDescriptor
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace ResourceDescriptor {
+
+ /** History enum. */
+ enum History {
+ HISTORY_UNSPECIFIED = 0,
+ ORIGINALLY_SINGLE_PATTERN = 1,
+ FUTURE_MULTI_PATTERN = 2
+ }
+
+ /** Style enum. */
+ enum Style {
+ STYLE_UNSPECIFIED = 0,
+ DECLARATIVE_FRIENDLY = 1
+ }
+ }
+
+ /** Properties of a ResourceReference. */
+ interface IResourceReference {
+
+ /** ResourceReference type */
+ type?: (string|null);
+
+ /** ResourceReference childType */
+ childType?: (string|null);
+ }
+
+ /** Represents a ResourceReference. */
+ class ResourceReference implements IResourceReference {
+
+ /**
+ * Constructs a new ResourceReference.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IResourceReference);
+
+ /** ResourceReference type. */
+ public type: string;
+
+ /** ResourceReference childType. */
+ public childType: string;
+
+ /**
+ * Creates a new ResourceReference instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ResourceReference instance
+ */
+ public static create(properties?: google.api.IResourceReference): google.api.ResourceReference;
+
+ /**
+ * Encodes the specified ResourceReference message. Does not implicitly {@link google.api.ResourceReference.verify|verify} messages.
+ * @param message ResourceReference message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IResourceReference, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ResourceReference message, length delimited. Does not implicitly {@link google.api.ResourceReference.verify|verify} messages.
+ * @param message ResourceReference message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IResourceReference, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ResourceReference message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ResourceReference
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.ResourceReference;
+
+ /**
+ * Decodes a ResourceReference message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ResourceReference
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.ResourceReference;
+
+ /**
+ * Verifies a ResourceReference message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ResourceReference message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ResourceReference
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.ResourceReference;
+
+ /**
+ * Creates a plain object from a ResourceReference message. Also converts values to other types if specified.
+ * @param message ResourceReference
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.ResourceReference, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ResourceReference to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ResourceReference
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Http. */
+ interface IHttp {
+
+ /** Http rules */
+ rules?: (google.api.IHttpRule[]|null);
+
+ /** Http fullyDecodeReservedExpansion */
+ fullyDecodeReservedExpansion?: (boolean|null);
+ }
+
+ /** Represents a Http. */
+ class Http implements IHttp {
+
+ /**
+ * Constructs a new Http.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IHttp);
+
+ /** Http rules. */
+ public rules: google.api.IHttpRule[];
+
+ /** Http fullyDecodeReservedExpansion. */
+ public fullyDecodeReservedExpansion: boolean;
+
+ /**
+ * Creates a new Http instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Http instance
+ */
+ public static create(properties?: google.api.IHttp): google.api.Http;
+
+ /**
+ * Encodes the specified Http message. Does not implicitly {@link google.api.Http.verify|verify} messages.
+ * @param message Http message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IHttp, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Http message, length delimited. Does not implicitly {@link google.api.Http.verify|verify} messages.
+ * @param message Http message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IHttp, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Http message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Http
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.Http;
+
+ /**
+ * Decodes a Http message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Http
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.Http;
+
+ /**
+ * Verifies a Http message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Http message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Http
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.Http;
+
+ /**
+ * Creates a plain object from a Http message. Also converts values to other types if specified.
+ * @param message Http
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.Http, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Http to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Http
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a HttpRule. */
+ interface IHttpRule {
+
+ /** HttpRule selector */
+ selector?: (string|null);
+
+ /** HttpRule get */
+ get?: (string|null);
+
+ /** HttpRule put */
+ put?: (string|null);
+
+ /** HttpRule post */
+ post?: (string|null);
+
+ /** HttpRule delete */
+ "delete"?: (string|null);
+
+ /** HttpRule patch */
+ patch?: (string|null);
+
+ /** HttpRule custom */
+ custom?: (google.api.ICustomHttpPattern|null);
+
+ /** HttpRule body */
+ body?: (string|null);
+
+ /** HttpRule responseBody */
+ responseBody?: (string|null);
+
+ /** HttpRule additionalBindings */
+ additionalBindings?: (google.api.IHttpRule[]|null);
+ }
+
+ /** Represents a HttpRule. */
+ class HttpRule implements IHttpRule {
+
+ /**
+ * Constructs a new HttpRule.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IHttpRule);
+
+ /** HttpRule selector. */
+ public selector: string;
+
+ /** HttpRule get. */
+ public get?: (string|null);
+
+ /** HttpRule put. */
+ public put?: (string|null);
+
+ /** HttpRule post. */
+ public post?: (string|null);
+
+ /** HttpRule delete. */
+ public delete?: (string|null);
+
+ /** HttpRule patch. */
+ public patch?: (string|null);
+
+ /** HttpRule custom. */
+ public custom?: (google.api.ICustomHttpPattern|null);
+
+ /** HttpRule body. */
+ public body: string;
+
+ /** HttpRule responseBody. */
+ public responseBody: string;
+
+ /** HttpRule additionalBindings. */
+ public additionalBindings: google.api.IHttpRule[];
+
+ /** HttpRule pattern. */
+ public pattern?: ("get"|"put"|"post"|"delete"|"patch"|"custom");
+
+ /**
+ * Creates a new HttpRule instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns HttpRule instance
+ */
+ public static create(properties?: google.api.IHttpRule): google.api.HttpRule;
+
+ /**
+ * Encodes the specified HttpRule message. Does not implicitly {@link google.api.HttpRule.verify|verify} messages.
+ * @param message HttpRule message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IHttpRule, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified HttpRule message, length delimited. Does not implicitly {@link google.api.HttpRule.verify|verify} messages.
+ * @param message HttpRule message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IHttpRule, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a HttpRule message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns HttpRule
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.HttpRule;
+
+ /**
+ * Decodes a HttpRule message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns HttpRule
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.HttpRule;
+
+ /**
+ * Verifies a HttpRule message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a HttpRule message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns HttpRule
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.HttpRule;
+
+ /**
+ * Creates a plain object from a HttpRule message. Also converts values to other types if specified.
+ * @param message HttpRule
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.HttpRule, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this HttpRule to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for HttpRule
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CustomHttpPattern. */
+ interface ICustomHttpPattern {
+
+ /** CustomHttpPattern kind */
+ kind?: (string|null);
+
+ /** CustomHttpPattern path */
+ path?: (string|null);
+ }
+
+ /** Represents a CustomHttpPattern. */
+ class CustomHttpPattern implements ICustomHttpPattern {
+
+ /**
+ * Constructs a new CustomHttpPattern.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.ICustomHttpPattern);
+
+ /** CustomHttpPattern kind. */
+ public kind: string;
+
+ /** CustomHttpPattern path. */
+ public path: string;
+
+ /**
+ * Creates a new CustomHttpPattern instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CustomHttpPattern instance
+ */
+ public static create(properties?: google.api.ICustomHttpPattern): google.api.CustomHttpPattern;
+
+ /**
+ * Encodes the specified CustomHttpPattern message. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages.
+ * @param message CustomHttpPattern message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.ICustomHttpPattern, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CustomHttpPattern message, length delimited. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages.
+ * @param message CustomHttpPattern message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.ICustomHttpPattern, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CustomHttpPattern message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CustomHttpPattern
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.CustomHttpPattern;
+
+ /**
+ * Decodes a CustomHttpPattern message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CustomHttpPattern
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.CustomHttpPattern;
+
+ /**
+ * Verifies a CustomHttpPattern message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a CustomHttpPattern message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CustomHttpPattern
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.CustomHttpPattern;
+
+ /**
+ * Creates a plain object from a CustomHttpPattern message. Also converts values to other types if specified.
+ * @param message CustomHttpPattern
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.CustomHttpPattern, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CustomHttpPattern to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CustomHttpPattern
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** 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
+ }
+ }
+
+ /** 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.resourceReference */
+ ".google.api.resourceReference"?: (google.api.IResourceReference|null);
+
+ /** FieldOptions .google.api.fieldBehavior */
+ ".google.api.fieldBehavior"?: (google.api.FieldBehavior[]|null);
+ }
+
+ /** Represents a FieldOptions. */
+ class FieldOptions implements IFieldOptions {
+
+ /**
+ * Constructs a new FieldOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IFieldOptions);
+
+ /** FieldOptions ctype. */
+ public ctype: (google.protobuf.FieldOptions.CType|keyof typeof google.protobuf.FieldOptions.CType);
+
+ /** FieldOptions packed. */
+ public packed: boolean;
+
+ /** FieldOptions jstype. */
+ public jstype: (google.protobuf.FieldOptions.JSType|keyof typeof google.protobuf.FieldOptions.JSType);
+
+ /** FieldOptions lazy. */
+ public lazy: boolean;
+
+ /** FieldOptions unverifiedLazy. */
+ public unverifiedLazy: boolean;
+
+ /** FieldOptions deprecated. */
+ public deprecated: boolean;
+
+ /** FieldOptions weak. */
+ public weak: boolean;
+
+ /** FieldOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+
+ /**
+ * Creates a new FieldOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FieldOptions instance
+ */
+ public static create(properties?: google.protobuf.IFieldOptions): google.protobuf.FieldOptions;
+
+ /**
+ * Encodes the specified FieldOptions message. Does not implicitly {@link google.protobuf.FieldOptions.verify|verify} messages.
+ * @param message FieldOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IFieldOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FieldOptions message, length delimited. Does not implicitly {@link google.protobuf.FieldOptions.verify|verify} messages.
+ * @param message FieldOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IFieldOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FieldOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FieldOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FieldOptions;
+
+ /**
+ * Decodes a FieldOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FieldOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FieldOptions;
+
+ /**
+ * Verifies a FieldOptions message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FieldOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FieldOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.FieldOptions;
+
+ /**
+ * Creates a plain object from a FieldOptions message. Also converts values to other types if specified.
+ * @param message FieldOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.FieldOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FieldOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FieldOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace FieldOptions {
+
+ /** CType enum. */
+ enum CType {
+ STRING = 0,
+ CORD = 1,
+ STRING_PIECE = 2
+ }
+
+ /** JSType enum. */
+ enum JSType {
+ JS_NORMAL = 0,
+ JS_STRING = 1,
+ JS_NUMBER = 2
+ }
+ }
+
+ /** Properties of an OneofOptions. */
+ interface IOneofOptions {
+
+ /** OneofOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+ }
+
+ /** Represents an OneofOptions. */
+ class OneofOptions implements IOneofOptions {
+
+ /**
+ * Constructs a new OneofOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IOneofOptions);
+
+ /** OneofOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+
+ /**
+ * Creates a new OneofOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns OneofOptions instance
+ */
+ public static create(properties?: google.protobuf.IOneofOptions): google.protobuf.OneofOptions;
+
+ /**
+ * Encodes the specified OneofOptions message. Does not implicitly {@link google.protobuf.OneofOptions.verify|verify} messages.
+ * @param message OneofOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IOneofOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified OneofOptions message, length delimited. Does not implicitly {@link google.protobuf.OneofOptions.verify|verify} messages.
+ * @param message OneofOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IOneofOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an OneofOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns OneofOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.OneofOptions;
+
+ /**
+ * Decodes an OneofOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns OneofOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.OneofOptions;
+
+ /**
+ * Verifies an OneofOptions message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an OneofOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns OneofOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.OneofOptions;
+
+ /**
+ * Creates a plain object from an OneofOptions message. Also converts values to other types if specified.
+ * @param message OneofOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.OneofOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this OneofOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for OneofOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an EnumOptions. */
+ interface IEnumOptions {
+
+ /** EnumOptions allowAlias */
+ allowAlias?: (boolean|null);
+
+ /** EnumOptions deprecated */
+ deprecated?: (boolean|null);
+
+ /** EnumOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+ }
+
+ /** Represents an EnumOptions. */
+ class EnumOptions implements IEnumOptions {
+
+ /**
+ * Constructs a new EnumOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IEnumOptions);
+
+ /** EnumOptions allowAlias. */
+ public allowAlias: boolean;
+
+ /** EnumOptions deprecated. */
+ public deprecated: boolean;
+
+ /** EnumOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+
+ /**
+ * Creates a new EnumOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns EnumOptions instance
+ */
+ public static create(properties?: google.protobuf.IEnumOptions): google.protobuf.EnumOptions;
+
+ /**
+ * Encodes the specified EnumOptions message. Does not implicitly {@link google.protobuf.EnumOptions.verify|verify} messages.
+ * @param message EnumOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IEnumOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified EnumOptions message, length delimited. Does not implicitly {@link google.protobuf.EnumOptions.verify|verify} messages.
+ * @param message EnumOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IEnumOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an EnumOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns EnumOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumOptions;
+
+ /**
+ * Decodes an EnumOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns EnumOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumOptions;
+
+ /**
+ * Verifies an EnumOptions message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an EnumOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns EnumOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.EnumOptions;
+
+ /**
+ * Creates a plain object from an EnumOptions message. Also converts values to other types if specified.
+ * @param message EnumOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.EnumOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this EnumOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for EnumOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an EnumValueOptions. */
+ interface IEnumValueOptions {
+
+ /** EnumValueOptions deprecated */
+ deprecated?: (boolean|null);
+
+ /** EnumValueOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+ }
+
+ /** Represents an EnumValueOptions. */
+ class EnumValueOptions implements IEnumValueOptions {
+
+ /**
+ * Constructs a new EnumValueOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IEnumValueOptions);
+
+ /** EnumValueOptions deprecated. */
+ public deprecated: boolean;
+
+ /** EnumValueOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+
+ /**
+ * Creates a new EnumValueOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns EnumValueOptions instance
+ */
+ public static create(properties?: google.protobuf.IEnumValueOptions): google.protobuf.EnumValueOptions;
+
+ /**
+ * Encodes the specified EnumValueOptions message. Does not implicitly {@link google.protobuf.EnumValueOptions.verify|verify} messages.
+ * @param message EnumValueOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IEnumValueOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified EnumValueOptions message, length delimited. Does not implicitly {@link google.protobuf.EnumValueOptions.verify|verify} messages.
+ * @param message EnumValueOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IEnumValueOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an EnumValueOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns EnumValueOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumValueOptions;
+
+ /**
+ * Decodes an EnumValueOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns EnumValueOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumValueOptions;
+
+ /**
+ * Verifies an EnumValueOptions message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an EnumValueOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns EnumValueOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.EnumValueOptions;
+
+ /**
+ * Creates a plain object from an EnumValueOptions message. Also converts values to other types if specified.
+ * @param message EnumValueOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.EnumValueOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this EnumValueOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for EnumValueOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ServiceOptions. */
+ interface IServiceOptions {
+
+ /** ServiceOptions deprecated */
+ deprecated?: (boolean|null);
+
+ /** ServiceOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+
+ /** ServiceOptions .google.api.defaultHost */
+ ".google.api.defaultHost"?: (string|null);
+
+ /** ServiceOptions .google.api.oauthScopes */
+ ".google.api.oauthScopes"?: (string|null);
+ }
+
+ /** Represents a ServiceOptions. */
+ class ServiceOptions implements IServiceOptions {
+
+ /**
+ * Constructs a new ServiceOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IServiceOptions);
+
+ /** ServiceOptions deprecated. */
+ public deprecated: boolean;
+
+ /** ServiceOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+
+ /**
+ * Creates a new ServiceOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ServiceOptions instance
+ */
+ public static create(properties?: google.protobuf.IServiceOptions): google.protobuf.ServiceOptions;
+
+ /**
+ * Encodes the specified ServiceOptions message. Does not implicitly {@link google.protobuf.ServiceOptions.verify|verify} messages.
+ * @param message ServiceOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IServiceOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ServiceOptions message, length delimited. Does not implicitly {@link google.protobuf.ServiceOptions.verify|verify} messages.
+ * @param message ServiceOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IServiceOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ServiceOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ServiceOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.ServiceOptions;
+
+ /**
+ * Decodes a ServiceOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ServiceOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.ServiceOptions;
+
+ /**
+ * Verifies a ServiceOptions message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ServiceOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ServiceOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.ServiceOptions;
+
+ /**
+ * Creates a plain object from a ServiceOptions message. Also converts values to other types if specified.
+ * @param message ServiceOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.ServiceOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ServiceOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ServiceOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a MethodOptions. */
+ interface IMethodOptions {
+
+ /** MethodOptions deprecated */
+ deprecated?: (boolean|null);
+
+ /** MethodOptions idempotencyLevel */
+ idempotencyLevel?: (google.protobuf.MethodOptions.IdempotencyLevel|keyof typeof google.protobuf.MethodOptions.IdempotencyLevel|null);
+
+ /** MethodOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+
+ /** MethodOptions .google.api.http */
+ ".google.api.http"?: (google.api.IHttpRule|null);
+
+ /** MethodOptions .google.api.methodSignature */
+ ".google.api.methodSignature"?: (string[]|null);
+
+ /** MethodOptions .google.longrunning.operationInfo */
+ ".google.longrunning.operationInfo"?: (google.longrunning.IOperationInfo|null);
+ }
+
+ /** Represents a MethodOptions. */
+ class MethodOptions implements IMethodOptions {
+
+ /**
+ * Constructs a new MethodOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IMethodOptions);
+
+ /** MethodOptions deprecated. */
+ public deprecated: boolean;
+
+ /** MethodOptions idempotencyLevel. */
+ public idempotencyLevel: (google.protobuf.MethodOptions.IdempotencyLevel|keyof typeof google.protobuf.MethodOptions.IdempotencyLevel);
+
+ /** MethodOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+
+ /**
+ * Creates a new MethodOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns MethodOptions instance
+ */
+ public static create(properties?: google.protobuf.IMethodOptions): google.protobuf.MethodOptions;
+
+ /**
+ * Encodes the specified MethodOptions message. Does not implicitly {@link google.protobuf.MethodOptions.verify|verify} messages.
+ * @param message MethodOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IMethodOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified MethodOptions message, length delimited. Does not implicitly {@link google.protobuf.MethodOptions.verify|verify} messages.
+ * @param message MethodOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IMethodOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a MethodOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns MethodOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.MethodOptions;
+
+ /**
+ * Decodes a MethodOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns MethodOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.MethodOptions;
+
+ /**
+ * Verifies a MethodOptions message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a MethodOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns MethodOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.MethodOptions;
+
+ /**
+ * Creates a plain object from a MethodOptions message. Also converts values to other types if specified.
+ * @param message MethodOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.MethodOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this MethodOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for MethodOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace MethodOptions {
+
+ /** IdempotencyLevel enum. */
+ enum IdempotencyLevel {
+ IDEMPOTENCY_UNKNOWN = 0,
+ NO_SIDE_EFFECTS = 1,
+ IDEMPOTENT = 2
+ }
+ }
+
+ /** Properties of an UninterpretedOption. */
+ interface IUninterpretedOption {
+
+ /** UninterpretedOption name */
+ name?: (google.protobuf.UninterpretedOption.INamePart[]|null);
+
+ /** UninterpretedOption identifierValue */
+ identifierValue?: (string|null);
+
+ /** UninterpretedOption positiveIntValue */
+ positiveIntValue?: (number|Long|string|null);
+
+ /** UninterpretedOption negativeIntValue */
+ negativeIntValue?: (number|Long|string|null);
+
+ /** UninterpretedOption doubleValue */
+ doubleValue?: (number|null);
+
+ /** UninterpretedOption stringValue */
+ stringValue?: (Uint8Array|string|null);
+
+ /** UninterpretedOption aggregateValue */
+ aggregateValue?: (string|null);
+ }
+
+ /** Represents an UninterpretedOption. */
+ class UninterpretedOption implements IUninterpretedOption {
+
+ /**
+ * Constructs a new UninterpretedOption.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IUninterpretedOption);
+
+ /** UninterpretedOption name. */
+ public name: google.protobuf.UninterpretedOption.INamePart[];
+
+ /** UninterpretedOption identifierValue. */
+ public identifierValue: string;
+
+ /** UninterpretedOption positiveIntValue. */
+ public positiveIntValue: (number|Long|string);
+
+ /** UninterpretedOption negativeIntValue. */
+ public negativeIntValue: (number|Long|string);
+
+ /** UninterpretedOption doubleValue. */
+ public doubleValue: number;
+
+ /** UninterpretedOption stringValue. */
+ public stringValue: (Uint8Array|string);
+
+ /** UninterpretedOption aggregateValue. */
+ public aggregateValue: string;
+
+ /**
+ * Creates a new UninterpretedOption instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns UninterpretedOption instance
+ */
+ public static create(properties?: google.protobuf.IUninterpretedOption): google.protobuf.UninterpretedOption;
+
+ /**
+ * Encodes the specified UninterpretedOption message. Does not implicitly {@link google.protobuf.UninterpretedOption.verify|verify} messages.
+ * @param message UninterpretedOption message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IUninterpretedOption, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified UninterpretedOption message, length delimited. Does not implicitly {@link google.protobuf.UninterpretedOption.verify|verify} messages.
+ * @param message UninterpretedOption message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IUninterpretedOption, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an UninterpretedOption message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns UninterpretedOption
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.UninterpretedOption;
+
+ /**
+ * Decodes an UninterpretedOption message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns UninterpretedOption
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.UninterpretedOption;
+
+ /**
+ * Verifies an UninterpretedOption message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an UninterpretedOption message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns UninterpretedOption
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.UninterpretedOption;
+
+ /**
+ * Creates a plain object from an UninterpretedOption message. Also converts values to other types if specified.
+ * @param message UninterpretedOption
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.UninterpretedOption, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this UninterpretedOption to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for UninterpretedOption
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace UninterpretedOption {
+
+ /** Properties of a NamePart. */
+ interface INamePart {
+
+ /** NamePart namePart */
+ namePart: string;
+
+ /** NamePart isExtension */
+ isExtension: boolean;
+ }
+
+ /** Represents a NamePart. */
+ class NamePart implements INamePart {
+
+ /**
+ * Constructs a new NamePart.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.UninterpretedOption.INamePart);
+
+ /** NamePart namePart. */
+ public namePart: string;
+
+ /** NamePart isExtension. */
+ public isExtension: boolean;
+
+ /**
+ * Creates a new NamePart instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns NamePart instance
+ */
+ public static create(properties?: google.protobuf.UninterpretedOption.INamePart): google.protobuf.UninterpretedOption.NamePart;
+
+ /**
+ * Encodes the specified NamePart message. Does not implicitly {@link google.protobuf.UninterpretedOption.NamePart.verify|verify} messages.
+ * @param message NamePart message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.UninterpretedOption.INamePart, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified NamePart message, length delimited. Does not implicitly {@link google.protobuf.UninterpretedOption.NamePart.verify|verify} messages.
+ * @param message NamePart message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.UninterpretedOption.INamePart, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a NamePart message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns NamePart
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.UninterpretedOption.NamePart;
+
+ /**
+ * Decodes a NamePart message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns NamePart
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.UninterpretedOption.NamePart;
+
+ /**
+ * Verifies a NamePart message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a NamePart message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns NamePart
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.UninterpretedOption.NamePart;
+
+ /**
+ * Creates a plain object from a NamePart message. Also converts values to other types if specified.
+ * @param message NamePart
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.UninterpretedOption.NamePart, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this NamePart to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for NamePart
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of a SourceCodeInfo. */
+ interface ISourceCodeInfo {
+
+ /** SourceCodeInfo location */
+ location?: (google.protobuf.SourceCodeInfo.ILocation[]|null);
+ }
+
+ /** Represents a SourceCodeInfo. */
+ class SourceCodeInfo implements ISourceCodeInfo {
+
+ /**
+ * Constructs a new SourceCodeInfo.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.ISourceCodeInfo);
+
+ /** SourceCodeInfo location. */
+ public location: google.protobuf.SourceCodeInfo.ILocation[];
+
+ /**
+ * Creates a new SourceCodeInfo instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns SourceCodeInfo instance
+ */
+ public static create(properties?: google.protobuf.ISourceCodeInfo): google.protobuf.SourceCodeInfo;
+
+ /**
+ * Encodes the specified SourceCodeInfo message. Does not implicitly {@link google.protobuf.SourceCodeInfo.verify|verify} messages.
+ * @param message SourceCodeInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.ISourceCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified SourceCodeInfo message, length delimited. Does not implicitly {@link google.protobuf.SourceCodeInfo.verify|verify} messages.
+ * @param message SourceCodeInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.ISourceCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a SourceCodeInfo message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns SourceCodeInfo
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.SourceCodeInfo;
+
+ /**
+ * Decodes a SourceCodeInfo message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns SourceCodeInfo
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.SourceCodeInfo;
+
+ /**
+ * Verifies a SourceCodeInfo message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a SourceCodeInfo message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns SourceCodeInfo
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.SourceCodeInfo;
+
+ /**
+ * Creates a plain object from a SourceCodeInfo message. Also converts values to other types if specified.
+ * @param message SourceCodeInfo
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.SourceCodeInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this SourceCodeInfo to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for SourceCodeInfo
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace SourceCodeInfo {
+
+ /** Properties of a Location. */
+ interface ILocation {
+
+ /** Location path */
+ path?: (number[]|null);
+
+ /** Location span */
+ span?: (number[]|null);
+
+ /** Location leadingComments */
+ leadingComments?: (string|null);
+
+ /** Location trailingComments */
+ trailingComments?: (string|null);
+
+ /** Location leadingDetachedComments */
+ leadingDetachedComments?: (string[]|null);
+ }
+
+ /** Represents a Location. */
+ class Location implements ILocation {
+
+ /**
+ * Constructs a new Location.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.SourceCodeInfo.ILocation);
+
+ /** Location path. */
+ public path: number[];
+
+ /** Location span. */
+ public span: number[];
+
+ /** Location leadingComments. */
+ public leadingComments: string;
+
+ /** Location trailingComments. */
+ public trailingComments: string;
+
+ /** Location leadingDetachedComments. */
+ public leadingDetachedComments: string[];
+
+ /**
+ * Creates a new Location instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Location instance
+ */
+ public static create(properties?: google.protobuf.SourceCodeInfo.ILocation): google.protobuf.SourceCodeInfo.Location;
+
+ /**
+ * Encodes the specified Location message. Does not implicitly {@link google.protobuf.SourceCodeInfo.Location.verify|verify} messages.
+ * @param message Location message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.SourceCodeInfo.ILocation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Location message, length delimited. Does not implicitly {@link google.protobuf.SourceCodeInfo.Location.verify|verify} messages.
+ * @param message Location message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.SourceCodeInfo.ILocation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Location message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Location
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.SourceCodeInfo.Location;
+
+ /**
+ * Decodes a Location message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Location
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.SourceCodeInfo.Location;
+
+ /**
+ * Verifies a Location message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Location message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Location
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.SourceCodeInfo.Location;
+
+ /**
+ * Creates a plain object from a Location message. Also converts values to other types if specified.
+ * @param message Location
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.SourceCodeInfo.Location, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Location to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Location
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of a GeneratedCodeInfo. */
+ interface IGeneratedCodeInfo {
+
+ /** GeneratedCodeInfo annotation */
+ annotation?: (google.protobuf.GeneratedCodeInfo.IAnnotation[]|null);
+ }
+
+ /** Represents a GeneratedCodeInfo. */
+ class GeneratedCodeInfo implements IGeneratedCodeInfo {
+
+ /**
+ * Constructs a new GeneratedCodeInfo.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IGeneratedCodeInfo);
+
+ /** GeneratedCodeInfo annotation. */
+ public annotation: google.protobuf.GeneratedCodeInfo.IAnnotation[];
+
+ /**
+ * Creates a new GeneratedCodeInfo instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GeneratedCodeInfo instance
+ */
+ public static create(properties?: google.protobuf.IGeneratedCodeInfo): google.protobuf.GeneratedCodeInfo;
+
+ /**
+ * Encodes the specified GeneratedCodeInfo message. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.verify|verify} messages.
+ * @param message GeneratedCodeInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IGeneratedCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GeneratedCodeInfo message, length delimited. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.verify|verify} messages.
+ * @param message GeneratedCodeInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IGeneratedCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GeneratedCodeInfo message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GeneratedCodeInfo
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.GeneratedCodeInfo;
+
+ /**
+ * Decodes a GeneratedCodeInfo message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GeneratedCodeInfo
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.GeneratedCodeInfo;
+
+ /**
+ * Verifies a GeneratedCodeInfo message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GeneratedCodeInfo message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GeneratedCodeInfo
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.GeneratedCodeInfo;
+
+ /**
+ * Creates a plain object from a GeneratedCodeInfo message. Also converts values to other types if specified.
+ * @param message GeneratedCodeInfo
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.GeneratedCodeInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GeneratedCodeInfo to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GeneratedCodeInfo
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace GeneratedCodeInfo {
+
+ /** Properties of an Annotation. */
+ interface IAnnotation {
+
+ /** Annotation path */
+ path?: (number[]|null);
+
+ /** Annotation sourceFile */
+ sourceFile?: (string|null);
+
+ /** Annotation begin */
+ begin?: (number|null);
+
+ /** Annotation end */
+ end?: (number|null);
+
+ /** Annotation semantic */
+ semantic?: (google.protobuf.GeneratedCodeInfo.Annotation.Semantic|keyof typeof google.protobuf.GeneratedCodeInfo.Annotation.Semantic|null);
+ }
+
+ /** Represents an Annotation. */
+ class Annotation implements IAnnotation {
+
+ /**
+ * Constructs a new Annotation.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.GeneratedCodeInfo.IAnnotation);
+
+ /** Annotation path. */
+ public path: number[];
+
+ /** Annotation sourceFile. */
+ public sourceFile: string;
+
+ /** Annotation begin. */
+ public begin: number;
+
+ /** Annotation end. */
+ public end: number;
+
+ /** Annotation semantic. */
+ public semantic: (google.protobuf.GeneratedCodeInfo.Annotation.Semantic|keyof typeof google.protobuf.GeneratedCodeInfo.Annotation.Semantic);
+
+ /**
+ * Creates a new Annotation instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Annotation instance
+ */
+ public static create(properties?: google.protobuf.GeneratedCodeInfo.IAnnotation): google.protobuf.GeneratedCodeInfo.Annotation;
+
+ /**
+ * Encodes the specified Annotation message. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.Annotation.verify|verify} messages.
+ * @param message Annotation message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.GeneratedCodeInfo.IAnnotation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Annotation message, length delimited. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.Annotation.verify|verify} messages.
+ * @param message Annotation message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.GeneratedCodeInfo.IAnnotation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an Annotation message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Annotation
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.GeneratedCodeInfo.Annotation;
+
+ /**
+ * Decodes an Annotation message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Annotation
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.GeneratedCodeInfo.Annotation;
+
+ /**
+ * Verifies an Annotation message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an Annotation message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Annotation
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.GeneratedCodeInfo.Annotation;
+
+ /**
+ * Creates a plain object from an Annotation message. Also converts values to other types if specified.
+ * @param message Annotation
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.GeneratedCodeInfo.Annotation, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Annotation to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Annotation
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace Annotation {
+
+ /** Semantic enum. */
+ enum Semantic {
+ NONE = 0,
+ SET = 1,
+ ALIAS = 2
+ }
+ }
+ }
+
+ /** Properties of a 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 a Timestamp. */
+ interface ITimestamp {
+
+ /** Timestamp seconds */
+ seconds?: (number|Long|string|null);
+
+ /** Timestamp nanos */
+ nanos?: (number|null);
+ }
+
+ /** Represents a Timestamp. */
+ class Timestamp implements ITimestamp {
+
+ /**
+ * Constructs a new Timestamp.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.ITimestamp);
+
+ /** Timestamp seconds. */
+ public seconds: (number|Long|string);
+
+ /** Timestamp nanos. */
+ public nanos: number;
+
+ /**
+ * Creates a new Timestamp instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Timestamp instance
+ */
+ public static create(properties?: google.protobuf.ITimestamp): google.protobuf.Timestamp;
+
+ /**
+ * Encodes the specified Timestamp message. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages.
+ * @param message Timestamp message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.ITimestamp, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Timestamp message, length delimited. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages.
+ * @param message Timestamp message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.ITimestamp, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Timestamp message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Timestamp
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Timestamp;
+
+ /**
+ * Decodes a Timestamp message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Timestamp
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Timestamp;
+
+ /**
+ * Verifies a Timestamp message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Timestamp message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Timestamp
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.Timestamp;
+
+ /**
+ * Creates a plain object from a Timestamp message. Also converts values to other types if specified.
+ * @param message Timestamp
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.Timestamp, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Timestamp to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Timestamp
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an Any. */
+ interface IAny {
+
+ /** Any type_url */
+ type_url?: (string|null);
+
+ /** Any value */
+ value?: (Uint8Array|string|null);
+ }
+
+ /** Represents an Any. */
+ class Any implements IAny {
+
+ /**
+ * Constructs a new Any.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IAny);
+
+ /** Any type_url. */
+ public type_url: string;
+
+ /** Any value. */
+ public value: (Uint8Array|string);
+
+ /**
+ * Creates a new Any instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Any instance
+ */
+ public static create(properties?: google.protobuf.IAny): google.protobuf.Any;
+
+ /**
+ * Encodes the specified Any message. Does not implicitly {@link google.protobuf.Any.verify|verify} messages.
+ * @param message Any message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IAny, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Any message, length delimited. Does not implicitly {@link google.protobuf.Any.verify|verify} messages.
+ * @param message Any message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IAny, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an Any message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Any
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Any;
+
+ /**
+ * Decodes an Any message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Any
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Any;
+
+ /**
+ * Verifies an Any message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an Any message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Any
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.Any;
+
+ /**
+ * Creates a plain object from an Any message. Also converts values to other types if specified.
+ * @param message Any
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.Any, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Any to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Any
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an Empty. */
+ interface IEmpty {
+ }
+
+ /** Represents an Empty. */
+ class Empty implements IEmpty {
+
+ /**
+ * Constructs a new Empty.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IEmpty);
+
+ /**
+ * Creates a new Empty instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Empty instance
+ */
+ public static create(properties?: google.protobuf.IEmpty): google.protobuf.Empty;
+
+ /**
+ * Encodes the specified Empty message. Does not implicitly {@link google.protobuf.Empty.verify|verify} messages.
+ * @param message Empty message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IEmpty, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Empty message, length delimited. Does not implicitly {@link google.protobuf.Empty.verify|verify} messages.
+ * @param message Empty message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IEmpty, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an Empty message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Empty
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Empty;
+
+ /**
+ * Decodes an Empty message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Empty
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Empty;
+
+ /**
+ * Verifies an Empty message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an Empty message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Empty
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.Empty;
+
+ /**
+ * Creates a plain object from an Empty message. Also converts values to other types if specified.
+ * @param message Empty
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.Empty, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Empty to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Empty
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a FieldMask. */
+ interface IFieldMask {
+
+ /** FieldMask paths */
+ paths?: (string[]|null);
+ }
+
+ /** Represents a FieldMask. */
+ class FieldMask implements IFieldMask {
+
+ /**
+ * Constructs a new FieldMask.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IFieldMask);
+
+ /** FieldMask paths. */
+ public paths: string[];
+
+ /**
+ * Creates a new FieldMask instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FieldMask instance
+ */
+ public static create(properties?: google.protobuf.IFieldMask): google.protobuf.FieldMask;
+
+ /**
+ * Encodes the specified FieldMask message. Does not implicitly {@link google.protobuf.FieldMask.verify|verify} messages.
+ * @param message FieldMask message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IFieldMask, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FieldMask message, length delimited. Does not implicitly {@link google.protobuf.FieldMask.verify|verify} messages.
+ * @param message FieldMask message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IFieldMask, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FieldMask message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FieldMask
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FieldMask;
+
+ /**
+ * Decodes a FieldMask message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FieldMask
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FieldMask;
+
+ /**
+ * Verifies a FieldMask message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FieldMask message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FieldMask
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.FieldMask;
+
+ /**
+ * Creates a plain object from a FieldMask message. Also converts values to other types if specified.
+ * @param message FieldMask
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.FieldMask, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FieldMask to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FieldMask
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Namespace rpc. */
+ namespace rpc {
+
+ /** Properties of a Status. */
+ interface IStatus {
+
+ /** Status code */
+ code?: (number|null);
+
+ /** Status message */
+ message?: (string|null);
+
+ /** Status details */
+ details?: (google.protobuf.IAny[]|null);
+ }
+
+ /** Represents a Status. */
+ class Status implements IStatus {
+
+ /**
+ * Constructs a new Status.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.rpc.IStatus);
+
+ /** Status code. */
+ public code: number;
+
+ /** Status message. */
+ public message: string;
+
+ /** Status details. */
+ public details: google.protobuf.IAny[];
+
+ /**
+ * Creates a new Status instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Status instance
+ */
+ public static create(properties?: google.rpc.IStatus): google.rpc.Status;
+
+ /**
+ * Encodes the specified Status message. Does not implicitly {@link google.rpc.Status.verify|verify} messages.
+ * @param message Status message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.rpc.IStatus, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Status message, length delimited. Does not implicitly {@link google.rpc.Status.verify|verify} messages.
+ * @param message Status message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.rpc.IStatus, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Status message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Status
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.rpc.Status;
+
+ /**
+ * Decodes a Status message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Status
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.rpc.Status;
+
+ /**
+ * Verifies a Status message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Status message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Status
+ */
+ public static fromObject(object: { [k: string]: any }): google.rpc.Status;
+
+ /**
+ * Creates a plain object from a Status message. Also converts values to other types if specified.
+ * @param message Status
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.rpc.Status, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Status to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Status
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Namespace longrunning. */
+ namespace longrunning {
+
+ /** Represents an Operations */
+ class Operations extends $protobuf.rpc.Service {
+
+ /**
+ * Constructs a new Operations service.
+ * @param rpcImpl RPC implementation
+ * @param [requestDelimited=false] Whether requests are length-delimited
+ * @param [responseDelimited=false] Whether responses are length-delimited
+ */
+ constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
+
+ /**
+ * Creates new Operations service using the specified rpc implementation.
+ * @param rpcImpl RPC implementation
+ * @param [requestDelimited=false] Whether requests are length-delimited
+ * @param [responseDelimited=false] Whether responses are length-delimited
+ * @returns RPC service. Useful where requests and/or responses are streamed.
+ */
+ public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): Operations;
+
+ /**
+ * Calls ListOperations.
+ * @param request ListOperationsRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListOperationsResponse
+ */
+ public listOperations(request: google.longrunning.IListOperationsRequest, callback: google.longrunning.Operations.ListOperationsCallback): void;
+
+ /**
+ * Calls ListOperations.
+ * @param request ListOperationsRequest message or plain object
+ * @returns Promise
+ */
+ public listOperations(request: google.longrunning.IListOperationsRequest): Promise;
+
+ /**
+ * Calls GetOperation.
+ * @param request GetOperationRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public getOperation(request: google.longrunning.IGetOperationRequest, callback: google.longrunning.Operations.GetOperationCallback): void;
+
+ /**
+ * Calls GetOperation.
+ * @param request GetOperationRequest message or plain object
+ * @returns Promise
+ */
+ public getOperation(request: google.longrunning.IGetOperationRequest): Promise;
+
+ /**
+ * Calls DeleteOperation.
+ * @param request DeleteOperationRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Empty
+ */
+ public deleteOperation(request: google.longrunning.IDeleteOperationRequest, callback: google.longrunning.Operations.DeleteOperationCallback): void;
+
+ /**
+ * Calls DeleteOperation.
+ * @param request DeleteOperationRequest message or plain object
+ * @returns Promise
+ */
+ public deleteOperation(request: google.longrunning.IDeleteOperationRequest): Promise;
+
+ /**
+ * Calls CancelOperation.
+ * @param request CancelOperationRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Empty
+ */
+ public cancelOperation(request: google.longrunning.ICancelOperationRequest, callback: google.longrunning.Operations.CancelOperationCallback): void;
+
+ /**
+ * Calls CancelOperation.
+ * @param request CancelOperationRequest message or plain object
+ * @returns Promise
+ */
+ public cancelOperation(request: google.longrunning.ICancelOperationRequest): Promise;
+
+ /**
+ * Calls WaitOperation.
+ * @param request WaitOperationRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public waitOperation(request: google.longrunning.IWaitOperationRequest, callback: google.longrunning.Operations.WaitOperationCallback): void;
+
+ /**
+ * Calls WaitOperation.
+ * @param request WaitOperationRequest message or plain object
+ * @returns Promise
+ */
+ public waitOperation(request: google.longrunning.IWaitOperationRequest): Promise;
+ }
+
+ namespace Operations {
+
+ /**
+ * Callback as used by {@link google.longrunning.Operations|listOperations}.
+ * @param error Error, if any
+ * @param [response] ListOperationsResponse
+ */
+ type ListOperationsCallback = (error: (Error|null), response?: google.longrunning.ListOperationsResponse) => void;
+
+ /**
+ * Callback as used by {@link google.longrunning.Operations|getOperation}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type GetOperationCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.longrunning.Operations|deleteOperation}.
+ * @param error Error, if any
+ * @param [response] Empty
+ */
+ type DeleteOperationCallback = (error: (Error|null), response?: google.protobuf.Empty) => void;
+
+ /**
+ * Callback as used by {@link google.longrunning.Operations|cancelOperation}.
+ * @param error Error, if any
+ * @param [response] Empty
+ */
+ type CancelOperationCallback = (error: (Error|null), response?: google.protobuf.Empty) => void;
+
+ /**
+ * Callback as used by {@link google.longrunning.Operations|waitOperation}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type WaitOperationCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+ }
+
+ /** Properties of an Operation. */
+ interface IOperation {
+
+ /** Operation name */
+ name?: (string|null);
+
+ /** Operation metadata */
+ metadata?: (google.protobuf.IAny|null);
+
+ /** Operation done */
+ done?: (boolean|null);
+
+ /** Operation error */
+ error?: (google.rpc.IStatus|null);
+
+ /** Operation response */
+ response?: (google.protobuf.IAny|null);
+ }
+
+ /** Represents an Operation. */
+ class Operation implements IOperation {
+
+ /**
+ * Constructs a new Operation.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.longrunning.IOperation);
+
+ /** Operation name. */
+ public name: string;
+
+ /** Operation metadata. */
+ public metadata?: (google.protobuf.IAny|null);
+
+ /** Operation done. */
+ public done: boolean;
+
+ /** Operation error. */
+ public error?: (google.rpc.IStatus|null);
+
+ /** Operation response. */
+ public response?: (google.protobuf.IAny|null);
+
+ /** Operation result. */
+ public result?: ("error"|"response");
+
+ /**
+ * Creates a new Operation instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Operation instance
+ */
+ public static create(properties?: google.longrunning.IOperation): google.longrunning.Operation;
+
+ /**
+ * Encodes the specified Operation message. Does not implicitly {@link google.longrunning.Operation.verify|verify} messages.
+ * @param message Operation message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.longrunning.IOperation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Operation message, length delimited. Does not implicitly {@link google.longrunning.Operation.verify|verify} messages.
+ * @param message Operation message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.longrunning.IOperation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an Operation message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Operation
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.longrunning.Operation;
+
+ /**
+ * Decodes an Operation message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Operation
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.longrunning.Operation;
+
+ /**
+ * Verifies an Operation message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an Operation message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Operation
+ */
+ public static fromObject(object: { [k: string]: any }): google.longrunning.Operation;
+
+ /**
+ * Creates a plain object from an Operation message. Also converts values to other types if specified.
+ * @param message Operation
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.longrunning.Operation, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Operation to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Operation
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GetOperationRequest. */
+ interface IGetOperationRequest {
+
+ /** GetOperationRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a GetOperationRequest. */
+ class GetOperationRequest implements IGetOperationRequest {
+
+ /**
+ * Constructs a new GetOperationRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.longrunning.IGetOperationRequest);
+
+ /** GetOperationRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new GetOperationRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetOperationRequest instance
+ */
+ public static create(properties?: google.longrunning.IGetOperationRequest): google.longrunning.GetOperationRequest;
+
+ /**
+ * Encodes the specified GetOperationRequest message. Does not implicitly {@link google.longrunning.GetOperationRequest.verify|verify} messages.
+ * @param message GetOperationRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.longrunning.IGetOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetOperationRequest message, length delimited. Does not implicitly {@link google.longrunning.GetOperationRequest.verify|verify} messages.
+ * @param message GetOperationRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.longrunning.IGetOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetOperationRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetOperationRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.longrunning.GetOperationRequest;
+
+ /**
+ * Decodes a GetOperationRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetOperationRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.longrunning.GetOperationRequest;
+
+ /**
+ * Verifies a GetOperationRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GetOperationRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetOperationRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.longrunning.GetOperationRequest;
+
+ /**
+ * Creates a plain object from a GetOperationRequest message. Also converts values to other types if specified.
+ * @param message GetOperationRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.longrunning.GetOperationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetOperationRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetOperationRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListOperationsRequest. */
+ interface IListOperationsRequest {
+
+ /** ListOperationsRequest name */
+ name?: (string|null);
+
+ /** ListOperationsRequest filter */
+ filter?: (string|null);
+
+ /** ListOperationsRequest pageSize */
+ pageSize?: (number|null);
+
+ /** ListOperationsRequest pageToken */
+ pageToken?: (string|null);
+ }
+
+ /** Represents a ListOperationsRequest. */
+ class ListOperationsRequest implements IListOperationsRequest {
+
+ /**
+ * Constructs a new ListOperationsRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.longrunning.IListOperationsRequest);
+
+ /** ListOperationsRequest name. */
+ public name: string;
+
+ /** ListOperationsRequest filter. */
+ public filter: string;
+
+ /** ListOperationsRequest pageSize. */
+ public pageSize: number;
+
+ /** ListOperationsRequest pageToken. */
+ public pageToken: string;
+
+ /**
+ * Creates a new ListOperationsRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListOperationsRequest instance
+ */
+ public static create(properties?: google.longrunning.IListOperationsRequest): google.longrunning.ListOperationsRequest;
+
+ /**
+ * Encodes the specified ListOperationsRequest message. Does not implicitly {@link google.longrunning.ListOperationsRequest.verify|verify} messages.
+ * @param message ListOperationsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.longrunning.IListOperationsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListOperationsRequest message, length delimited. Does not implicitly {@link google.longrunning.ListOperationsRequest.verify|verify} messages.
+ * @param message ListOperationsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.longrunning.IListOperationsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListOperationsRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListOperationsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.longrunning.ListOperationsRequest;
+
+ /**
+ * Decodes a ListOperationsRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListOperationsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.longrunning.ListOperationsRequest;
+
+ /**
+ * Verifies a ListOperationsRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListOperationsRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListOperationsRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.longrunning.ListOperationsRequest;
+
+ /**
+ * Creates a plain object from a ListOperationsRequest message. Also converts values to other types if specified.
+ * @param message ListOperationsRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.longrunning.ListOperationsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListOperationsRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListOperationsRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListOperationsResponse. */
+ interface IListOperationsResponse {
+
+ /** ListOperationsResponse operations */
+ operations?: (google.longrunning.IOperation[]|null);
+
+ /** ListOperationsResponse nextPageToken */
+ nextPageToken?: (string|null);
+ }
+
+ /** Represents a ListOperationsResponse. */
+ class ListOperationsResponse implements IListOperationsResponse {
+
+ /**
+ * Constructs a new ListOperationsResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.longrunning.IListOperationsResponse);
+
+ /** ListOperationsResponse operations. */
+ public operations: google.longrunning.IOperation[];
+
+ /** ListOperationsResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /**
+ * Creates a new ListOperationsResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListOperationsResponse instance
+ */
+ public static create(properties?: google.longrunning.IListOperationsResponse): google.longrunning.ListOperationsResponse;
+
+ /**
+ * Encodes the specified ListOperationsResponse message. Does not implicitly {@link google.longrunning.ListOperationsResponse.verify|verify} messages.
+ * @param message ListOperationsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.longrunning.IListOperationsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListOperationsResponse message, length delimited. Does not implicitly {@link google.longrunning.ListOperationsResponse.verify|verify} messages.
+ * @param message ListOperationsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.longrunning.IListOperationsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListOperationsResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListOperationsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.longrunning.ListOperationsResponse;
+
+ /**
+ * Decodes a ListOperationsResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListOperationsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.longrunning.ListOperationsResponse;
+
+ /**
+ * Verifies a ListOperationsResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListOperationsResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListOperationsResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.longrunning.ListOperationsResponse;
+
+ /**
+ * Creates a plain object from a ListOperationsResponse message. Also converts values to other types if specified.
+ * @param message ListOperationsResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.longrunning.ListOperationsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListOperationsResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListOperationsResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CancelOperationRequest. */
+ interface ICancelOperationRequest {
+
+ /** CancelOperationRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a CancelOperationRequest. */
+ class CancelOperationRequest implements ICancelOperationRequest {
+
+ /**
+ * Constructs a new CancelOperationRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.longrunning.ICancelOperationRequest);
+
+ /** CancelOperationRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new CancelOperationRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CancelOperationRequest instance
+ */
+ public static create(properties?: google.longrunning.ICancelOperationRequest): google.longrunning.CancelOperationRequest;
+
+ /**
+ * Encodes the specified CancelOperationRequest message. Does not implicitly {@link google.longrunning.CancelOperationRequest.verify|verify} messages.
+ * @param message CancelOperationRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.longrunning.ICancelOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CancelOperationRequest message, length delimited. Does not implicitly {@link google.longrunning.CancelOperationRequest.verify|verify} messages.
+ * @param message CancelOperationRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.longrunning.ICancelOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CancelOperationRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CancelOperationRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.longrunning.CancelOperationRequest;
+
+ /**
+ * Decodes a CancelOperationRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CancelOperationRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.longrunning.CancelOperationRequest;
+
+ /**
+ * Verifies a CancelOperationRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a CancelOperationRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CancelOperationRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.longrunning.CancelOperationRequest;
+
+ /**
+ * Creates a plain object from a CancelOperationRequest message. Also converts values to other types if specified.
+ * @param message CancelOperationRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.longrunning.CancelOperationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CancelOperationRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CancelOperationRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DeleteOperationRequest. */
+ interface IDeleteOperationRequest {
+
+ /** DeleteOperationRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a DeleteOperationRequest. */
+ class DeleteOperationRequest implements IDeleteOperationRequest {
+
+ /**
+ * Constructs a new DeleteOperationRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.longrunning.IDeleteOperationRequest);
+
+ /** DeleteOperationRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new DeleteOperationRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DeleteOperationRequest instance
+ */
+ public static create(properties?: google.longrunning.IDeleteOperationRequest): google.longrunning.DeleteOperationRequest;
+
+ /**
+ * Encodes the specified DeleteOperationRequest message. Does not implicitly {@link google.longrunning.DeleteOperationRequest.verify|verify} messages.
+ * @param message DeleteOperationRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.longrunning.IDeleteOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DeleteOperationRequest message, length delimited. Does not implicitly {@link google.longrunning.DeleteOperationRequest.verify|verify} messages.
+ * @param message DeleteOperationRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.longrunning.IDeleteOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DeleteOperationRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DeleteOperationRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.longrunning.DeleteOperationRequest;
+
+ /**
+ * Decodes a DeleteOperationRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DeleteOperationRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.longrunning.DeleteOperationRequest;
+
+ /**
+ * Verifies a DeleteOperationRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DeleteOperationRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DeleteOperationRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.longrunning.DeleteOperationRequest;
+
+ /**
+ * Creates a plain object from a DeleteOperationRequest message. Also converts values to other types if specified.
+ * @param message DeleteOperationRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.longrunning.DeleteOperationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DeleteOperationRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DeleteOperationRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a WaitOperationRequest. */
+ interface IWaitOperationRequest {
+
+ /** WaitOperationRequest name */
+ name?: (string|null);
+
+ /** WaitOperationRequest timeout */
+ timeout?: (google.protobuf.IDuration|null);
+ }
+
+ /** Represents a WaitOperationRequest. */
+ class WaitOperationRequest implements IWaitOperationRequest {
+
+ /**
+ * Constructs a new WaitOperationRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.longrunning.IWaitOperationRequest);
+
+ /** WaitOperationRequest name. */
+ public name: string;
+
+ /** WaitOperationRequest timeout. */
+ public timeout?: (google.protobuf.IDuration|null);
+
+ /**
+ * Creates a new WaitOperationRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns WaitOperationRequest instance
+ */
+ public static create(properties?: google.longrunning.IWaitOperationRequest): google.longrunning.WaitOperationRequest;
+
+ /**
+ * Encodes the specified WaitOperationRequest message. Does not implicitly {@link google.longrunning.WaitOperationRequest.verify|verify} messages.
+ * @param message WaitOperationRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.longrunning.IWaitOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified WaitOperationRequest message, length delimited. Does not implicitly {@link google.longrunning.WaitOperationRequest.verify|verify} messages.
+ * @param message WaitOperationRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.longrunning.IWaitOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a WaitOperationRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns WaitOperationRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.longrunning.WaitOperationRequest;
+
+ /**
+ * Decodes a WaitOperationRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns WaitOperationRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.longrunning.WaitOperationRequest;
+
+ /**
+ * Verifies a WaitOperationRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a WaitOperationRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns WaitOperationRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.longrunning.WaitOperationRequest;
+
+ /**
+ * Creates a plain object from a WaitOperationRequest message. Also converts values to other types if specified.
+ * @param message WaitOperationRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.longrunning.WaitOperationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this WaitOperationRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for WaitOperationRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an OperationInfo. */
+ interface IOperationInfo {
+
+ /** OperationInfo responseType */
+ responseType?: (string|null);
+
+ /** OperationInfo metadataType */
+ metadataType?: (string|null);
+ }
+
+ /** Represents an OperationInfo. */
+ class OperationInfo implements IOperationInfo {
+
+ /**
+ * Constructs a new OperationInfo.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.longrunning.IOperationInfo);
+
+ /** OperationInfo responseType. */
+ public responseType: string;
+
+ /** OperationInfo metadataType. */
+ public metadataType: string;
+
+ /**
+ * Creates a new OperationInfo instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns OperationInfo instance
+ */
+ public static create(properties?: google.longrunning.IOperationInfo): google.longrunning.OperationInfo;
+
+ /**
+ * Encodes the specified OperationInfo message. Does not implicitly {@link google.longrunning.OperationInfo.verify|verify} messages.
+ * @param message OperationInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.longrunning.IOperationInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified OperationInfo message, length delimited. Does not implicitly {@link google.longrunning.OperationInfo.verify|verify} messages.
+ * @param message OperationInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.longrunning.IOperationInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an OperationInfo message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns OperationInfo
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.longrunning.OperationInfo;
+
+ /**
+ * Decodes an OperationInfo message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns OperationInfo
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.longrunning.OperationInfo;
+
+ /**
+ * Verifies an OperationInfo message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an OperationInfo message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns OperationInfo
+ */
+ public static fromObject(object: { [k: string]: any }): google.longrunning.OperationInfo;
+
+ /**
+ * Creates a plain object from an OperationInfo message. Also converts values to other types if specified.
+ * @param message OperationInfo
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.longrunning.OperationInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this OperationInfo to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for OperationInfo
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+}
diff --git a/packages/google-cloud-datalabeling/protos/protos.js b/packages/google-cloud-datalabeling/protos/protos.js
new file mode 100644
index 00000000000..2bd1ab2650a
--- /dev/null
+++ b/packages/google-cloud-datalabeling/protos/protos.js
@@ -0,0 +1,51999 @@
+// 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_datalabeling_protos || ($protobuf.roots._google_cloud_datalabeling_protos = {});
+
+ $root.google = (function() {
+
+ /**
+ * Namespace google.
+ * @exports google
+ * @namespace
+ */
+ var google = {};
+
+ google.cloud = (function() {
+
+ /**
+ * Namespace cloud.
+ * @memberof google
+ * @namespace
+ */
+ var cloud = {};
+
+ cloud.datalabeling = (function() {
+
+ /**
+ * Namespace datalabeling.
+ * @memberof google.cloud
+ * @namespace
+ */
+ var datalabeling = {};
+
+ datalabeling.v1beta1 = (function() {
+
+ /**
+ * Namespace v1beta1.
+ * @memberof google.cloud.datalabeling
+ * @namespace
+ */
+ var v1beta1 = {};
+
+ /**
+ * AnnotationSource enum.
+ * @name google.cloud.datalabeling.v1beta1.AnnotationSource
+ * @enum {number}
+ * @property {number} ANNOTATION_SOURCE_UNSPECIFIED=0 ANNOTATION_SOURCE_UNSPECIFIED value
+ * @property {number} OPERATOR=3 OPERATOR value
+ */
+ v1beta1.AnnotationSource = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "ANNOTATION_SOURCE_UNSPECIFIED"] = 0;
+ values[valuesById[3] = "OPERATOR"] = 3;
+ return values;
+ })();
+
+ v1beta1.Annotation = (function() {
+
+ /**
+ * Properties of an Annotation.
+ * @memberof google.cloud.datalabeling.v1beta1
+ * @interface IAnnotation
+ * @property {string|null} [name] Annotation name
+ * @property {google.cloud.datalabeling.v1beta1.AnnotationSource|null} [annotationSource] Annotation annotationSource
+ * @property {google.cloud.datalabeling.v1beta1.IAnnotationValue|null} [annotationValue] Annotation annotationValue
+ * @property {google.cloud.datalabeling.v1beta1.IAnnotationMetadata|null} [annotationMetadata] Annotation annotationMetadata
+ * @property {google.cloud.datalabeling.v1beta1.AnnotationSentiment|null} [annotationSentiment] Annotation annotationSentiment
+ */
+
+ /**
+ * Constructs a new Annotation.
+ * @memberof google.cloud.datalabeling.v1beta1
+ * @classdesc Represents an Annotation.
+ * @implements IAnnotation
+ * @constructor
+ * @param {google.cloud.datalabeling.v1beta1.IAnnotation=} [properties] Properties to set
+ */
+ function Annotation(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]];
+ }
+
+ /**
+ * Annotation name.
+ * @member {string} name
+ * @memberof google.cloud.datalabeling.v1beta1.Annotation
+ * @instance
+ */
+ Annotation.prototype.name = "";
+
+ /**
+ * Annotation annotationSource.
+ * @member {google.cloud.datalabeling.v1beta1.AnnotationSource} annotationSource
+ * @memberof google.cloud.datalabeling.v1beta1.Annotation
+ * @instance
+ */
+ Annotation.prototype.annotationSource = 0;
+
+ /**
+ * Annotation annotationValue.
+ * @member {google.cloud.datalabeling.v1beta1.IAnnotationValue|null|undefined} annotationValue
+ * @memberof google.cloud.datalabeling.v1beta1.Annotation
+ * @instance
+ */
+ Annotation.prototype.annotationValue = null;
+
+ /**
+ * Annotation annotationMetadata.
+ * @member {google.cloud.datalabeling.v1beta1.IAnnotationMetadata|null|undefined} annotationMetadata
+ * @memberof google.cloud.datalabeling.v1beta1.Annotation
+ * @instance
+ */
+ Annotation.prototype.annotationMetadata = null;
+
+ /**
+ * Annotation annotationSentiment.
+ * @member {google.cloud.datalabeling.v1beta1.AnnotationSentiment} annotationSentiment
+ * @memberof google.cloud.datalabeling.v1beta1.Annotation
+ * @instance
+ */
+ Annotation.prototype.annotationSentiment = 0;
+
+ /**
+ * Creates a new Annotation instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.datalabeling.v1beta1.Annotation
+ * @static
+ * @param {google.cloud.datalabeling.v1beta1.IAnnotation=} [properties] Properties to set
+ * @returns {google.cloud.datalabeling.v1beta1.Annotation} Annotation instance
+ */
+ Annotation.create = function create(properties) {
+ return new Annotation(properties);
+ };
+
+ /**
+ * Encodes the specified Annotation message. Does not implicitly {@link google.cloud.datalabeling.v1beta1.Annotation.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.datalabeling.v1beta1.Annotation
+ * @static
+ * @param {google.cloud.datalabeling.v1beta1.IAnnotation} message Annotation message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Annotation.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.annotationSource != null && Object.hasOwnProperty.call(message, "annotationSource"))
+ writer.uint32(/* id 2, wireType 0 =*/16).int32(message.annotationSource);
+ if (message.annotationValue != null && Object.hasOwnProperty.call(message, "annotationValue"))
+ $root.google.cloud.datalabeling.v1beta1.AnnotationValue.encode(message.annotationValue, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
+ if (message.annotationMetadata != null && Object.hasOwnProperty.call(message, "annotationMetadata"))
+ $root.google.cloud.datalabeling.v1beta1.AnnotationMetadata.encode(message.annotationMetadata, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
+ if (message.annotationSentiment != null && Object.hasOwnProperty.call(message, "annotationSentiment"))
+ writer.uint32(/* id 6, wireType 0 =*/48).int32(message.annotationSentiment);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified Annotation message, length delimited. Does not implicitly {@link google.cloud.datalabeling.v1beta1.Annotation.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.datalabeling.v1beta1.Annotation
+ * @static
+ * @param {google.cloud.datalabeling.v1beta1.IAnnotation} message Annotation message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Annotation.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes an Annotation message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.datalabeling.v1beta1.Annotation
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.datalabeling.v1beta1.Annotation} Annotation
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Annotation.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.datalabeling.v1beta1.Annotation();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.name = reader.string();
+ break;
+ }
+ case 2: {
+ message.annotationSource = reader.int32();
+ break;
+ }
+ case 3: {
+ message.annotationValue = $root.google.cloud.datalabeling.v1beta1.AnnotationValue.decode(reader, reader.uint32());
+ break;
+ }
+ case 4: {
+ message.annotationMetadata = $root.google.cloud.datalabeling.v1beta1.AnnotationMetadata.decode(reader, reader.uint32());
+ break;
+ }
+ case 6: {
+ message.annotationSentiment = reader.int32();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an Annotation message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.datalabeling.v1beta1.Annotation
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.datalabeling.v1beta1.Annotation} Annotation
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Annotation.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an Annotation message.
+ * @function verify
+ * @memberof google.cloud.datalabeling.v1beta1.Annotation
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ Annotation.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.annotationSource != null && message.hasOwnProperty("annotationSource"))
+ switch (message.annotationSource) {
+ default:
+ return "annotationSource: enum value expected";
+ case 0:
+ case 3:
+ break;
+ }
+ if (message.annotationValue != null && message.hasOwnProperty("annotationValue")) {
+ var error = $root.google.cloud.datalabeling.v1beta1.AnnotationValue.verify(message.annotationValue);
+ if (error)
+ return "annotationValue." + error;
+ }
+ if (message.annotationMetadata != null && message.hasOwnProperty("annotationMetadata")) {
+ var error = $root.google.cloud.datalabeling.v1beta1.AnnotationMetadata.verify(message.annotationMetadata);
+ if (error)
+ return "annotationMetadata." + error;
+ }
+ if (message.annotationSentiment != null && message.hasOwnProperty("annotationSentiment"))
+ switch (message.annotationSentiment) {
+ default:
+ return "annotationSentiment: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ break;
+ }
+ return null;
+ };
+
+ /**
+ * Creates an Annotation message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.datalabeling.v1beta1.Annotation
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.datalabeling.v1beta1.Annotation} Annotation
+ */
+ Annotation.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.datalabeling.v1beta1.Annotation)
+ return object;
+ var message = new $root.google.cloud.datalabeling.v1beta1.Annotation();
+ if (object.name != null)
+ message.name = String(object.name);
+ switch (object.annotationSource) {
+ default:
+ if (typeof object.annotationSource === "number") {
+ message.annotationSource = object.annotationSource;
+ break;
+ }
+ break;
+ case "ANNOTATION_SOURCE_UNSPECIFIED":
+ case 0:
+ message.annotationSource = 0;
+ break;
+ case "OPERATOR":
+ case 3:
+ message.annotationSource = 3;
+ break;
+ }
+ if (object.annotationValue != null) {
+ if (typeof object.annotationValue !== "object")
+ throw TypeError(".google.cloud.datalabeling.v1beta1.Annotation.annotationValue: object expected");
+ message.annotationValue = $root.google.cloud.datalabeling.v1beta1.AnnotationValue.fromObject(object.annotationValue);
+ }
+ if (object.annotationMetadata != null) {
+ if (typeof object.annotationMetadata !== "object")
+ throw TypeError(".google.cloud.datalabeling.v1beta1.Annotation.annotationMetadata: object expected");
+ message.annotationMetadata = $root.google.cloud.datalabeling.v1beta1.AnnotationMetadata.fromObject(object.annotationMetadata);
+ }
+ switch (object.annotationSentiment) {
+ default:
+ if (typeof object.annotationSentiment === "number") {
+ message.annotationSentiment = object.annotationSentiment;
+ break;
+ }
+ break;
+ case "ANNOTATION_SENTIMENT_UNSPECIFIED":
+ case 0:
+ message.annotationSentiment = 0;
+ break;
+ case "NEGATIVE":
+ case 1:
+ message.annotationSentiment = 1;
+ break;
+ case "POSITIVE":
+ case 2:
+ message.annotationSentiment = 2;
+ break;
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an Annotation message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.datalabeling.v1beta1.Annotation
+ * @static
+ * @param {google.cloud.datalabeling.v1beta1.Annotation} message Annotation
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ Annotation.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.name = "";
+ object.annotationSource = options.enums === String ? "ANNOTATION_SOURCE_UNSPECIFIED" : 0;
+ object.annotationValue = null;
+ object.annotationMetadata = null;
+ object.annotationSentiment = options.enums === String ? "ANNOTATION_SENTIMENT_UNSPECIFIED" : 0;
+ }
+ if (message.name != null && message.hasOwnProperty("name"))
+ object.name = message.name;
+ if (message.annotationSource != null && message.hasOwnProperty("annotationSource"))
+ object.annotationSource = options.enums === String ? $root.google.cloud.datalabeling.v1beta1.AnnotationSource[message.annotationSource] === undefined ? message.annotationSource : $root.google.cloud.datalabeling.v1beta1.AnnotationSource[message.annotationSource] : message.annotationSource;
+ if (message.annotationValue != null && message.hasOwnProperty("annotationValue"))
+ object.annotationValue = $root.google.cloud.datalabeling.v1beta1.AnnotationValue.toObject(message.annotationValue, options);
+ if (message.annotationMetadata != null && message.hasOwnProperty("annotationMetadata"))
+ object.annotationMetadata = $root.google.cloud.datalabeling.v1beta1.AnnotationMetadata.toObject(message.annotationMetadata, options);
+ if (message.annotationSentiment != null && message.hasOwnProperty("annotationSentiment"))
+ object.annotationSentiment = options.enums === String ? $root.google.cloud.datalabeling.v1beta1.AnnotationSentiment[message.annotationSentiment] === undefined ? message.annotationSentiment : $root.google.cloud.datalabeling.v1beta1.AnnotationSentiment[message.annotationSentiment] : message.annotationSentiment;
+ return object;
+ };
+
+ /**
+ * Converts this Annotation to JSON.
+ * @function toJSON
+ * @memberof google.cloud.datalabeling.v1beta1.Annotation
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ Annotation.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for Annotation
+ * @function getTypeUrl
+ * @memberof google.cloud.datalabeling.v1beta1.Annotation
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ Annotation.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.datalabeling.v1beta1.Annotation";
+ };
+
+ return Annotation;
+ })();
+
+ /**
+ * AnnotationSentiment enum.
+ * @name google.cloud.datalabeling.v1beta1.AnnotationSentiment
+ * @enum {number}
+ * @property {number} ANNOTATION_SENTIMENT_UNSPECIFIED=0 ANNOTATION_SENTIMENT_UNSPECIFIED value
+ * @property {number} NEGATIVE=1 NEGATIVE value
+ * @property {number} POSITIVE=2 POSITIVE value
+ */
+ v1beta1.AnnotationSentiment = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "ANNOTATION_SENTIMENT_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "NEGATIVE"] = 1;
+ values[valuesById[2] = "POSITIVE"] = 2;
+ return values;
+ })();
+
+ /**
+ * AnnotationType enum.
+ * @name google.cloud.datalabeling.v1beta1.AnnotationType
+ * @enum {number}
+ * @property {number} ANNOTATION_TYPE_UNSPECIFIED=0 ANNOTATION_TYPE_UNSPECIFIED value
+ * @property {number} IMAGE_CLASSIFICATION_ANNOTATION=1 IMAGE_CLASSIFICATION_ANNOTATION value
+ * @property {number} IMAGE_BOUNDING_BOX_ANNOTATION=2 IMAGE_BOUNDING_BOX_ANNOTATION value
+ * @property {number} IMAGE_ORIENTED_BOUNDING_BOX_ANNOTATION=13 IMAGE_ORIENTED_BOUNDING_BOX_ANNOTATION value
+ * @property {number} IMAGE_BOUNDING_POLY_ANNOTATION=10 IMAGE_BOUNDING_POLY_ANNOTATION value
+ * @property {number} IMAGE_POLYLINE_ANNOTATION=11 IMAGE_POLYLINE_ANNOTATION value
+ * @property {number} IMAGE_SEGMENTATION_ANNOTATION=12 IMAGE_SEGMENTATION_ANNOTATION value
+ * @property {number} VIDEO_SHOTS_CLASSIFICATION_ANNOTATION=3 VIDEO_SHOTS_CLASSIFICATION_ANNOTATION value
+ * @property {number} VIDEO_OBJECT_TRACKING_ANNOTATION=4 VIDEO_OBJECT_TRACKING_ANNOTATION value
+ * @property {number} VIDEO_OBJECT_DETECTION_ANNOTATION=5 VIDEO_OBJECT_DETECTION_ANNOTATION value
+ * @property {number} VIDEO_EVENT_ANNOTATION=6 VIDEO_EVENT_ANNOTATION value
+ * @property {number} TEXT_CLASSIFICATION_ANNOTATION=8 TEXT_CLASSIFICATION_ANNOTATION value
+ * @property {number} TEXT_ENTITY_EXTRACTION_ANNOTATION=9 TEXT_ENTITY_EXTRACTION_ANNOTATION value
+ * @property {number} GENERAL_CLASSIFICATION_ANNOTATION=14 GENERAL_CLASSIFICATION_ANNOTATION value
+ */
+ v1beta1.AnnotationType = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "ANNOTATION_TYPE_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "IMAGE_CLASSIFICATION_ANNOTATION"] = 1;
+ values[valuesById[2] = "IMAGE_BOUNDING_BOX_ANNOTATION"] = 2;
+ values[valuesById[13] = "IMAGE_ORIENTED_BOUNDING_BOX_ANNOTATION"] = 13;
+ values[valuesById[10] = "IMAGE_BOUNDING_POLY_ANNOTATION"] = 10;
+ values[valuesById[11] = "IMAGE_POLYLINE_ANNOTATION"] = 11;
+ values[valuesById[12] = "IMAGE_SEGMENTATION_ANNOTATION"] = 12;
+ values[valuesById[3] = "VIDEO_SHOTS_CLASSIFICATION_ANNOTATION"] = 3;
+ values[valuesById[4] = "VIDEO_OBJECT_TRACKING_ANNOTATION"] = 4;
+ values[valuesById[5] = "VIDEO_OBJECT_DETECTION_ANNOTATION"] = 5;
+ values[valuesById[6] = "VIDEO_EVENT_ANNOTATION"] = 6;
+ values[valuesById[8] = "TEXT_CLASSIFICATION_ANNOTATION"] = 8;
+ values[valuesById[9] = "TEXT_ENTITY_EXTRACTION_ANNOTATION"] = 9;
+ values[valuesById[14] = "GENERAL_CLASSIFICATION_ANNOTATION"] = 14;
+ return values;
+ })();
+
+ v1beta1.AnnotationValue = (function() {
+
+ /**
+ * Properties of an AnnotationValue.
+ * @memberof google.cloud.datalabeling.v1beta1
+ * @interface IAnnotationValue
+ * @property {google.cloud.datalabeling.v1beta1.IImageClassificationAnnotation|null} [imageClassificationAnnotation] AnnotationValue imageClassificationAnnotation
+ * @property {google.cloud.datalabeling.v1beta1.IImageBoundingPolyAnnotation|null} [imageBoundingPolyAnnotation] AnnotationValue imageBoundingPolyAnnotation
+ * @property {google.cloud.datalabeling.v1beta1.IImagePolylineAnnotation|null} [imagePolylineAnnotation] AnnotationValue imagePolylineAnnotation
+ * @property {google.cloud.datalabeling.v1beta1.IImageSegmentationAnnotation|null} [imageSegmentationAnnotation] AnnotationValue imageSegmentationAnnotation
+ * @property {google.cloud.datalabeling.v1beta1.ITextClassificationAnnotation|null} [textClassificationAnnotation] AnnotationValue textClassificationAnnotation
+ * @property {google.cloud.datalabeling.v1beta1.ITextEntityExtractionAnnotation|null} [textEntityExtractionAnnotation] AnnotationValue textEntityExtractionAnnotation
+ * @property {google.cloud.datalabeling.v1beta1.IVideoClassificationAnnotation|null} [videoClassificationAnnotation] AnnotationValue videoClassificationAnnotation
+ * @property {google.cloud.datalabeling.v1beta1.IVideoObjectTrackingAnnotation|null} [videoObjectTrackingAnnotation] AnnotationValue videoObjectTrackingAnnotation
+ * @property {google.cloud.datalabeling.v1beta1.IVideoEventAnnotation|null} [videoEventAnnotation] AnnotationValue videoEventAnnotation
+ */
+
+ /**
+ * Constructs a new AnnotationValue.
+ * @memberof google.cloud.datalabeling.v1beta1
+ * @classdesc Represents an AnnotationValue.
+ * @implements IAnnotationValue
+ * @constructor
+ * @param {google.cloud.datalabeling.v1beta1.IAnnotationValue=} [properties] Properties to set
+ */
+ function AnnotationValue(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]];
+ }
+
+ /**
+ * AnnotationValue imageClassificationAnnotation.
+ * @member {google.cloud.datalabeling.v1beta1.IImageClassificationAnnotation|null|undefined} imageClassificationAnnotation
+ * @memberof google.cloud.datalabeling.v1beta1.AnnotationValue
+ * @instance
+ */
+ AnnotationValue.prototype.imageClassificationAnnotation = null;
+
+ /**
+ * AnnotationValue imageBoundingPolyAnnotation.
+ * @member {google.cloud.datalabeling.v1beta1.IImageBoundingPolyAnnotation|null|undefined} imageBoundingPolyAnnotation
+ * @memberof google.cloud.datalabeling.v1beta1.AnnotationValue
+ * @instance
+ */
+ AnnotationValue.prototype.imageBoundingPolyAnnotation = null;
+
+ /**
+ * AnnotationValue imagePolylineAnnotation.
+ * @member {google.cloud.datalabeling.v1beta1.IImagePolylineAnnotation|null|undefined} imagePolylineAnnotation
+ * @memberof google.cloud.datalabeling.v1beta1.AnnotationValue
+ * @instance
+ */
+ AnnotationValue.prototype.imagePolylineAnnotation = null;
+
+ /**
+ * AnnotationValue imageSegmentationAnnotation.
+ * @member {google.cloud.datalabeling.v1beta1.IImageSegmentationAnnotation|null|undefined} imageSegmentationAnnotation
+ * @memberof google.cloud.datalabeling.v1beta1.AnnotationValue
+ * @instance
+ */
+ AnnotationValue.prototype.imageSegmentationAnnotation = null;
+
+ /**
+ * AnnotationValue textClassificationAnnotation.
+ * @member {google.cloud.datalabeling.v1beta1.ITextClassificationAnnotation|null|undefined} textClassificationAnnotation
+ * @memberof google.cloud.datalabeling.v1beta1.AnnotationValue
+ * @instance
+ */
+ AnnotationValue.prototype.textClassificationAnnotation = null;
+
+ /**
+ * AnnotationValue textEntityExtractionAnnotation.
+ * @member {google.cloud.datalabeling.v1beta1.ITextEntityExtractionAnnotation|null|undefined} textEntityExtractionAnnotation
+ * @memberof google.cloud.datalabeling.v1beta1.AnnotationValue
+ * @instance
+ */
+ AnnotationValue.prototype.textEntityExtractionAnnotation = null;
+
+ /**
+ * AnnotationValue videoClassificationAnnotation.
+ * @member {google.cloud.datalabeling.v1beta1.IVideoClassificationAnnotation|null|undefined} videoClassificationAnnotation
+ * @memberof google.cloud.datalabeling.v1beta1.AnnotationValue
+ * @instance
+ */
+ AnnotationValue.prototype.videoClassificationAnnotation = null;
+
+ /**
+ * AnnotationValue videoObjectTrackingAnnotation.
+ * @member {google.cloud.datalabeling.v1beta1.IVideoObjectTrackingAnnotation|null|undefined} videoObjectTrackingAnnotation
+ * @memberof google.cloud.datalabeling.v1beta1.AnnotationValue
+ * @instance
+ */
+ AnnotationValue.prototype.videoObjectTrackingAnnotation = null;
+
+ /**
+ * AnnotationValue videoEventAnnotation.
+ * @member {google.cloud.datalabeling.v1beta1.IVideoEventAnnotation|null|undefined} videoEventAnnotation
+ * @memberof google.cloud.datalabeling.v1beta1.AnnotationValue
+ * @instance
+ */
+ AnnotationValue.prototype.videoEventAnnotation = null;
+
+ // OneOf field names bound to virtual getters and setters
+ var $oneOfFields;
+
+ /**
+ * AnnotationValue valueType.
+ * @member {"imageClassificationAnnotation"|"imageBoundingPolyAnnotation"|"imagePolylineAnnotation"|"imageSegmentationAnnotation"|"textClassificationAnnotation"|"textEntityExtractionAnnotation"|"videoClassificationAnnotation"|"videoObjectTrackingAnnotation"|"videoEventAnnotation"|undefined} valueType
+ * @memberof google.cloud.datalabeling.v1beta1.AnnotationValue
+ * @instance
+ */
+ Object.defineProperty(AnnotationValue.prototype, "valueType", {
+ get: $util.oneOfGetter($oneOfFields = ["imageClassificationAnnotation", "imageBoundingPolyAnnotation", "imagePolylineAnnotation", "imageSegmentationAnnotation", "textClassificationAnnotation", "textEntityExtractionAnnotation", "videoClassificationAnnotation", "videoObjectTrackingAnnotation", "videoEventAnnotation"]),
+ set: $util.oneOfSetter($oneOfFields)
+ });
+
+ /**
+ * Creates a new AnnotationValue instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.datalabeling.v1beta1.AnnotationValue
+ * @static
+ * @param {google.cloud.datalabeling.v1beta1.IAnnotationValue=} [properties] Properties to set
+ * @returns {google.cloud.datalabeling.v1beta1.AnnotationValue} AnnotationValue instance
+ */
+ AnnotationValue.create = function create(properties) {
+ return new AnnotationValue(properties);
+ };
+
+ /**
+ * Encodes the specified AnnotationValue message. Does not implicitly {@link google.cloud.datalabeling.v1beta1.AnnotationValue.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.datalabeling.v1beta1.AnnotationValue
+ * @static
+ * @param {google.cloud.datalabeling.v1beta1.IAnnotationValue} message AnnotationValue message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ AnnotationValue.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.imageClassificationAnnotation != null && Object.hasOwnProperty.call(message, "imageClassificationAnnotation"))
+ $root.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation.encode(message.imageClassificationAnnotation, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
+ if (message.imageBoundingPolyAnnotation != null && Object.hasOwnProperty.call(message, "imageBoundingPolyAnnotation"))
+ $root.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation.encode(message.imageBoundingPolyAnnotation, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
+ if (message.textClassificationAnnotation != null && Object.hasOwnProperty.call(message, "textClassificationAnnotation"))
+ $root.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation.encode(message.textClassificationAnnotation, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
+ if (message.videoClassificationAnnotation != null && Object.hasOwnProperty.call(message, "videoClassificationAnnotation"))
+ $root.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation.encode(message.videoClassificationAnnotation, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
+ if (message.videoObjectTrackingAnnotation != null && Object.hasOwnProperty.call(message, "videoObjectTrackingAnnotation"))
+ $root.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation.encode(message.videoObjectTrackingAnnotation, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
+ if (message.videoEventAnnotation != null && Object.hasOwnProperty.call(message, "videoEventAnnotation"))
+ $root.google.cloud.datalabeling.v1beta1.VideoEventAnnotation.encode(message.videoEventAnnotation, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
+ if (message.imagePolylineAnnotation != null && Object.hasOwnProperty.call(message, "imagePolylineAnnotation"))
+ $root.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation.encode(message.imagePolylineAnnotation, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim();
+ if (message.imageSegmentationAnnotation != null && Object.hasOwnProperty.call(message, "imageSegmentationAnnotation"))
+ $root.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation.encode(message.imageSegmentationAnnotation, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim();
+ if (message.textEntityExtractionAnnotation != null && Object.hasOwnProperty.call(message, "textEntityExtractionAnnotation"))
+ $root.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation.encode(message.textEntityExtractionAnnotation, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified AnnotationValue message, length delimited. Does not implicitly {@link google.cloud.datalabeling.v1beta1.AnnotationValue.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.datalabeling.v1beta1.AnnotationValue
+ * @static
+ * @param {google.cloud.datalabeling.v1beta1.IAnnotationValue} message AnnotationValue message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ AnnotationValue.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes an AnnotationValue message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.datalabeling.v1beta1.AnnotationValue
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.datalabeling.v1beta1.AnnotationValue} AnnotationValue
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ AnnotationValue.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.datalabeling.v1beta1.AnnotationValue();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.imageClassificationAnnotation = $root.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation.decode(reader, reader.uint32());
+ break;
+ }
+ case 2: {
+ message.imageBoundingPolyAnnotation = $root.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation.decode(reader, reader.uint32());
+ break;
+ }
+ case 8: {
+ message.imagePolylineAnnotation = $root.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation.decode(reader, reader.uint32());
+ break;
+ }
+ case 9: {
+ message.imageSegmentationAnnotation = $root.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation.decode(reader, reader.uint32());
+ break;
+ }
+ case 3: {
+ message.textClassificationAnnotation = $root.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation.decode(reader, reader.uint32());
+ break;
+ }
+ case 10: {
+ message.textEntityExtractionAnnotation = $root.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation.decode(reader, reader.uint32());
+ break;
+ }
+ case 4: {
+ message.videoClassificationAnnotation = $root.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation.decode(reader, reader.uint32());
+ break;
+ }
+ case 5: {
+ message.videoObjectTrackingAnnotation = $root.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation.decode(reader, reader.uint32());
+ break;
+ }
+ case 6: {
+ message.videoEventAnnotation = $root.google.cloud.datalabeling.v1beta1.VideoEventAnnotation.decode(reader, reader.uint32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an AnnotationValue message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.datalabeling.v1beta1.AnnotationValue
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.datalabeling.v1beta1.AnnotationValue} AnnotationValue
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ AnnotationValue.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an AnnotationValue message.
+ * @function verify
+ * @memberof google.cloud.datalabeling.v1beta1.AnnotationValue
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ AnnotationValue.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ var properties = {};
+ if (message.imageClassificationAnnotation != null && message.hasOwnProperty("imageClassificationAnnotation")) {
+ properties.valueType = 1;
+ {
+ var error = $root.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation.verify(message.imageClassificationAnnotation);
+ if (error)
+ return "imageClassificationAnnotation." + error;
+ }
+ }
+ if (message.imageBoundingPolyAnnotation != null && message.hasOwnProperty("imageBoundingPolyAnnotation")) {
+ if (properties.valueType === 1)
+ return "valueType: multiple values";
+ properties.valueType = 1;
+ {
+ var error = $root.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation.verify(message.imageBoundingPolyAnnotation);
+ if (error)
+ return "imageBoundingPolyAnnotation." + error;
+ }
+ }
+ if (message.imagePolylineAnnotation != null && message.hasOwnProperty("imagePolylineAnnotation")) {
+ if (properties.valueType === 1)
+ return "valueType: multiple values";
+ properties.valueType = 1;
+ {
+ var error = $root.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation.verify(message.imagePolylineAnnotation);
+ if (error)
+ return "imagePolylineAnnotation." + error;
+ }
+ }
+ if (message.imageSegmentationAnnotation != null && message.hasOwnProperty("imageSegmentationAnnotation")) {
+ if (properties.valueType === 1)
+ return "valueType: multiple values";
+ properties.valueType = 1;
+ {
+ var error = $root.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation.verify(message.imageSegmentationAnnotation);
+ if (error)
+ return "imageSegmentationAnnotation." + error;
+ }
+ }
+ if (message.textClassificationAnnotation != null && message.hasOwnProperty("textClassificationAnnotation")) {
+ if (properties.valueType === 1)
+ return "valueType: multiple values";
+ properties.valueType = 1;
+ {
+ var error = $root.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation.verify(message.textClassificationAnnotation);
+ if (error)
+ return "textClassificationAnnotation." + error;
+ }
+ }
+ if (message.textEntityExtractionAnnotation != null && message.hasOwnProperty("textEntityExtractionAnnotation")) {
+ if (properties.valueType === 1)
+ return "valueType: multiple values";
+ properties.valueType = 1;
+ {
+ var error = $root.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation.verify(message.textEntityExtractionAnnotation);
+ if (error)
+ return "textEntityExtractionAnnotation." + error;
+ }
+ }
+ if (message.videoClassificationAnnotation != null && message.hasOwnProperty("videoClassificationAnnotation")) {
+ if (properties.valueType === 1)
+ return "valueType: multiple values";
+ properties.valueType = 1;
+ {
+ var error = $root.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation.verify(message.videoClassificationAnnotation);
+ if (error)
+ return "videoClassificationAnnotation." + error;
+ }
+ }
+ if (message.videoObjectTrackingAnnotation != null && message.hasOwnProperty("videoObjectTrackingAnnotation")) {
+ if (properties.valueType === 1)
+ return "valueType: multiple values";
+ properties.valueType = 1;
+ {
+ var error = $root.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation.verify(message.videoObjectTrackingAnnotation);
+ if (error)
+ return "videoObjectTrackingAnnotation." + error;
+ }
+ }
+ if (message.videoEventAnnotation != null && message.hasOwnProperty("videoEventAnnotation")) {
+ if (properties.valueType === 1)
+ return "valueType: multiple values";
+ properties.valueType = 1;
+ {
+ var error = $root.google.cloud.datalabeling.v1beta1.VideoEventAnnotation.verify(message.videoEventAnnotation);
+ if (error)
+ return "videoEventAnnotation." + error;
+ }
+ }
+ return null;
+ };
+
+ /**
+ * Creates an AnnotationValue message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.datalabeling.v1beta1.AnnotationValue
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.datalabeling.v1beta1.AnnotationValue} AnnotationValue
+ */
+ AnnotationValue.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.datalabeling.v1beta1.AnnotationValue)
+ return object;
+ var message = new $root.google.cloud.datalabeling.v1beta1.AnnotationValue();
+ if (object.imageClassificationAnnotation != null) {
+ if (typeof object.imageClassificationAnnotation !== "object")
+ throw TypeError(".google.cloud.datalabeling.v1beta1.AnnotationValue.imageClassificationAnnotation: object expected");
+ message.imageClassificationAnnotation = $root.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation.fromObject(object.imageClassificationAnnotation);
+ }
+ if (object.imageBoundingPolyAnnotation != null) {
+ if (typeof object.imageBoundingPolyAnnotation !== "object")
+ throw TypeError(".google.cloud.datalabeling.v1beta1.AnnotationValue.imageBoundingPolyAnnotation: object expected");
+ message.imageBoundingPolyAnnotation = $root.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation.fromObject(object.imageBoundingPolyAnnotation);
+ }
+ if (object.imagePolylineAnnotation != null) {
+ if (typeof object.imagePolylineAnnotation !== "object")
+ throw TypeError(".google.cloud.datalabeling.v1beta1.AnnotationValue.imagePolylineAnnotation: object expected");
+ message.imagePolylineAnnotation = $root.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation.fromObject(object.imagePolylineAnnotation);
+ }
+ if (object.imageSegmentationAnnotation != null) {
+ if (typeof object.imageSegmentationAnnotation !== "object")
+ throw TypeError(".google.cloud.datalabeling.v1beta1.AnnotationValue.imageSegmentationAnnotation: object expected");
+ message.imageSegmentationAnnotation = $root.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation.fromObject(object.imageSegmentationAnnotation);
+ }
+ if (object.textClassificationAnnotation != null) {
+ if (typeof object.textClassificationAnnotation !== "object")
+ throw TypeError(".google.cloud.datalabeling.v1beta1.AnnotationValue.textClassificationAnnotation: object expected");
+ message.textClassificationAnnotation = $root.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation.fromObject(object.textClassificationAnnotation);
+ }
+ if (object.textEntityExtractionAnnotation != null) {
+ if (typeof object.textEntityExtractionAnnotation !== "object")
+ throw TypeError(".google.cloud.datalabeling.v1beta1.AnnotationValue.textEntityExtractionAnnotation: object expected");
+ message.textEntityExtractionAnnotation = $root.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation.fromObject(object.textEntityExtractionAnnotation);
+ }
+ if (object.videoClassificationAnnotation != null) {
+ if (typeof object.videoClassificationAnnotation !== "object")
+ throw TypeError(".google.cloud.datalabeling.v1beta1.AnnotationValue.videoClassificationAnnotation: object expected");
+ message.videoClassificationAnnotation = $root.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation.fromObject(object.videoClassificationAnnotation);
+ }
+ if (object.videoObjectTrackingAnnotation != null) {
+ if (typeof object.videoObjectTrackingAnnotation !== "object")
+ throw TypeError(".google.cloud.datalabeling.v1beta1.AnnotationValue.videoObjectTrackingAnnotation: object expected");
+ message.videoObjectTrackingAnnotation = $root.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation.fromObject(object.videoObjectTrackingAnnotation);
+ }
+ if (object.videoEventAnnotation != null) {
+ if (typeof object.videoEventAnnotation !== "object")
+ throw TypeError(".google.cloud.datalabeling.v1beta1.AnnotationValue.videoEventAnnotation: object expected");
+ message.videoEventAnnotation = $root.google.cloud.datalabeling.v1beta1.VideoEventAnnotation.fromObject(object.videoEventAnnotation);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an AnnotationValue message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.datalabeling.v1beta1.AnnotationValue
+ * @static
+ * @param {google.cloud.datalabeling.v1beta1.AnnotationValue} message AnnotationValue
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ AnnotationValue.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (message.imageClassificationAnnotation != null && message.hasOwnProperty("imageClassificationAnnotation")) {
+ object.imageClassificationAnnotation = $root.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation.toObject(message.imageClassificationAnnotation, options);
+ if (options.oneofs)
+ object.valueType = "imageClassificationAnnotation";
+ }
+ if (message.imageBoundingPolyAnnotation != null && message.hasOwnProperty("imageBoundingPolyAnnotation")) {
+ object.imageBoundingPolyAnnotation = $root.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation.toObject(message.imageBoundingPolyAnnotation, options);
+ if (options.oneofs)
+ object.valueType = "imageBoundingPolyAnnotation";
+ }
+ if (message.textClassificationAnnotation != null && message.hasOwnProperty("textClassificationAnnotation")) {
+ object.textClassificationAnnotation = $root.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation.toObject(message.textClassificationAnnotation, options);
+ if (options.oneofs)
+ object.valueType = "textClassificationAnnotation";
+ }
+ if (message.videoClassificationAnnotation != null && message.hasOwnProperty("videoClassificationAnnotation")) {
+ object.videoClassificationAnnotation = $root.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation.toObject(message.videoClassificationAnnotation, options);
+ if (options.oneofs)
+ object.valueType = "videoClassificationAnnotation";
+ }
+ if (message.videoObjectTrackingAnnotation != null && message.hasOwnProperty("videoObjectTrackingAnnotation")) {
+ object.videoObjectTrackingAnnotation = $root.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation.toObject(message.videoObjectTrackingAnnotation, options);
+ if (options.oneofs)
+ object.valueType = "videoObjectTrackingAnnotation";
+ }
+ if (message.videoEventAnnotation != null && message.hasOwnProperty("videoEventAnnotation")) {
+ object.videoEventAnnotation = $root.google.cloud.datalabeling.v1beta1.VideoEventAnnotation.toObject(message.videoEventAnnotation, options);
+ if (options.oneofs)
+ object.valueType = "videoEventAnnotation";
+ }
+ if (message.imagePolylineAnnotation != null && message.hasOwnProperty("imagePolylineAnnotation")) {
+ object.imagePolylineAnnotation = $root.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation.toObject(message.imagePolylineAnnotation, options);
+ if (options.oneofs)
+ object.valueType = "imagePolylineAnnotation";
+ }
+ if (message.imageSegmentationAnnotation != null && message.hasOwnProperty("imageSegmentationAnnotation")) {
+ object.imageSegmentationAnnotation = $root.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation.toObject(message.imageSegmentationAnnotation, options);
+ if (options.oneofs)
+ object.valueType = "imageSegmentationAnnotation";
+ }
+ if (message.textEntityExtractionAnnotation != null && message.hasOwnProperty("textEntityExtractionAnnotation")) {
+ object.textEntityExtractionAnnotation = $root.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation.toObject(message.textEntityExtractionAnnotation, options);
+ if (options.oneofs)
+ object.valueType = "textEntityExtractionAnnotation";
+ }
+ return object;
+ };
+
+ /**
+ * Converts this AnnotationValue to JSON.
+ * @function toJSON
+ * @memberof google.cloud.datalabeling.v1beta1.AnnotationValue
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ AnnotationValue.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for AnnotationValue
+ * @function getTypeUrl
+ * @memberof google.cloud.datalabeling.v1beta1.AnnotationValue
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ AnnotationValue.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.datalabeling.v1beta1.AnnotationValue";
+ };
+
+ return AnnotationValue;
+ })();
+
+ v1beta1.ImageClassificationAnnotation = (function() {
+
+ /**
+ * Properties of an ImageClassificationAnnotation.
+ * @memberof google.cloud.datalabeling.v1beta1
+ * @interface IImageClassificationAnnotation
+ * @property {google.cloud.datalabeling.v1beta1.IAnnotationSpec|null} [annotationSpec] ImageClassificationAnnotation annotationSpec
+ */
+
+ /**
+ * Constructs a new ImageClassificationAnnotation.
+ * @memberof google.cloud.datalabeling.v1beta1
+ * @classdesc Represents an ImageClassificationAnnotation.
+ * @implements IImageClassificationAnnotation
+ * @constructor
+ * @param {google.cloud.datalabeling.v1beta1.IImageClassificationAnnotation=} [properties] Properties to set
+ */
+ function ImageClassificationAnnotation(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]];
+ }
+
+ /**
+ * ImageClassificationAnnotation annotationSpec.
+ * @member {google.cloud.datalabeling.v1beta1.IAnnotationSpec|null|undefined} annotationSpec
+ * @memberof google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation
+ * @instance
+ */
+ ImageClassificationAnnotation.prototype.annotationSpec = null;
+
+ /**
+ * Creates a new ImageClassificationAnnotation instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation
+ * @static
+ * @param {google.cloud.datalabeling.v1beta1.IImageClassificationAnnotation=} [properties] Properties to set
+ * @returns {google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation} ImageClassificationAnnotation instance
+ */
+ ImageClassificationAnnotation.create = function create(properties) {
+ return new ImageClassificationAnnotation(properties);
+ };
+
+ /**
+ * Encodes the specified ImageClassificationAnnotation message. Does not implicitly {@link google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation
+ * @static
+ * @param {google.cloud.datalabeling.v1beta1.IImageClassificationAnnotation} message ImageClassificationAnnotation message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ImageClassificationAnnotation.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.annotationSpec != null && Object.hasOwnProperty.call(message, "annotationSpec"))
+ $root.google.cloud.datalabeling.v1beta1.AnnotationSpec.encode(message.annotationSpec, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ImageClassificationAnnotation message, length delimited. Does not implicitly {@link google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation
+ * @static
+ * @param {google.cloud.datalabeling.v1beta1.IImageClassificationAnnotation} message ImageClassificationAnnotation message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ImageClassificationAnnotation.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes an ImageClassificationAnnotation message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation} ImageClassificationAnnotation
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ImageClassificationAnnotation.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.datalabeling.v1beta1.ImageClassificationAnnotation();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.annotationSpec = $root.google.cloud.datalabeling.v1beta1.AnnotationSpec.decode(reader, reader.uint32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an ImageClassificationAnnotation message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation} ImageClassificationAnnotation
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ImageClassificationAnnotation.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an ImageClassificationAnnotation message.
+ * @function verify
+ * @memberof google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ImageClassificationAnnotation.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.annotationSpec != null && message.hasOwnProperty("annotationSpec")) {
+ var error = $root.google.cloud.datalabeling.v1beta1.AnnotationSpec.verify(message.annotationSpec);
+ if (error)
+ return "annotationSpec." + error;
+ }
+ return null;
+ };
+
+ /**
+ * Creates an ImageClassificationAnnotation message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation} ImageClassificationAnnotation
+ */
+ ImageClassificationAnnotation.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation)
+ return object;
+ var message = new $root.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation();
+ if (object.annotationSpec != null) {
+ if (typeof object.annotationSpec !== "object")
+ throw TypeError(".google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation.annotationSpec: object expected");
+ message.annotationSpec = $root.google.cloud.datalabeling.v1beta1.AnnotationSpec.fromObject(object.annotationSpec);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an ImageClassificationAnnotation message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation
+ * @static
+ * @param {google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation} message ImageClassificationAnnotation
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ImageClassificationAnnotation.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults)
+ object.annotationSpec = null;
+ if (message.annotationSpec != null && message.hasOwnProperty("annotationSpec"))
+ object.annotationSpec = $root.google.cloud.datalabeling.v1beta1.AnnotationSpec.toObject(message.annotationSpec, options);
+ return object;
+ };
+
+ /**
+ * Converts this ImageClassificationAnnotation to JSON.
+ * @function toJSON
+ * @memberof google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ImageClassificationAnnotation.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ImageClassificationAnnotation
+ * @function getTypeUrl
+ * @memberof google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ImageClassificationAnnotation.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation";
+ };
+
+ return ImageClassificationAnnotation;
+ })();
+
+ v1beta1.Vertex = (function() {
+
+ /**
+ * Properties of a Vertex.
+ * @memberof google.cloud.datalabeling.v1beta1
+ * @interface IVertex
+ * @property {number|null} [x] Vertex x
+ * @property {number|null} [y] Vertex y
+ */
+
+ /**
+ * Constructs a new Vertex.
+ * @memberof google.cloud.datalabeling.v1beta1
+ * @classdesc Represents a Vertex.
+ * @implements IVertex
+ * @constructor
+ * @param {google.cloud.datalabeling.v1beta1.IVertex=} [properties] Properties to set
+ */
+ function Vertex(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]];
+ }
+
+ /**
+ * Vertex x.
+ * @member {number} x
+ * @memberof google.cloud.datalabeling.v1beta1.Vertex
+ * @instance
+ */
+ Vertex.prototype.x = 0;
+
+ /**
+ * Vertex y.
+ * @member {number} y
+ * @memberof google.cloud.datalabeling.v1beta1.Vertex
+ * @instance
+ */
+ Vertex.prototype.y = 0;
+
+ /**
+ * Creates a new Vertex instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.datalabeling.v1beta1.Vertex
+ * @static
+ * @param {google.cloud.datalabeling.v1beta1.IVertex=} [properties] Properties to set
+ * @returns {google.cloud.datalabeling.v1beta1.Vertex} Vertex instance
+ */
+ Vertex.create = function create(properties) {
+ return new Vertex(properties);
+ };
+
+ /**
+ * Encodes the specified Vertex message. Does not implicitly {@link google.cloud.datalabeling.v1beta1.Vertex.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.datalabeling.v1beta1.Vertex
+ * @static
+ * @param {google.cloud.datalabeling.v1beta1.IVertex} message Vertex message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Vertex.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.x != null && Object.hasOwnProperty.call(message, "x"))
+ writer.uint32(/* id 1, wireType 0 =*/8).int32(message.x);
+ if (message.y != null && Object.hasOwnProperty.call(message, "y"))
+ writer.uint32(/* id 2, wireType 0 =*/16).int32(message.y);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified Vertex message, length delimited. Does not implicitly {@link google.cloud.datalabeling.v1beta1.Vertex.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.datalabeling.v1beta1.Vertex
+ * @static
+ * @param {google.cloud.datalabeling.v1beta1.IVertex} message Vertex message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Vertex.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a Vertex message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.datalabeling.v1beta1.Vertex
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.datalabeling.v1beta1.Vertex} Vertex
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Vertex.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.datalabeling.v1beta1.Vertex();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.x = reader.int32();
+ break;
+ }
+ case 2: {
+ message.y = reader.int32();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a Vertex message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.datalabeling.v1beta1.Vertex
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.datalabeling.v1beta1.Vertex} Vertex
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Vertex.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a Vertex message.
+ * @function verify
+ * @memberof google.cloud.datalabeling.v1beta1.Vertex
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ Vertex.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.x != null && message.hasOwnProperty("x"))
+ if (!$util.isInteger(message.x))
+ return "x: integer expected";
+ if (message.y != null && message.hasOwnProperty("y"))
+ if (!$util.isInteger(message.y))
+ return "y: integer expected";
+ return null;
+ };
+
+ /**
+ * Creates a Vertex message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.datalabeling.v1beta1.Vertex
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.datalabeling.v1beta1.Vertex} Vertex
+ */
+ Vertex.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.datalabeling.v1beta1.Vertex)
+ return object;
+ var message = new $root.google.cloud.datalabeling.v1beta1.Vertex();
+ if (object.x != null)
+ message.x = object.x | 0;
+ if (object.y != null)
+ message.y = object.y | 0;
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a Vertex message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.datalabeling.v1beta1.Vertex
+ * @static
+ * @param {google.cloud.datalabeling.v1beta1.Vertex} message Vertex
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ Vertex.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.x = 0;
+ object.y = 0;
+ }
+ if (message.x != null && message.hasOwnProperty("x"))
+ object.x = message.x;
+ if (message.y != null && message.hasOwnProperty("y"))
+ object.y = message.y;
+ return object;
+ };
+
+ /**
+ * Converts this Vertex to JSON.
+ * @function toJSON
+ * @memberof google.cloud.datalabeling.v1beta1.Vertex
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ Vertex.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for Vertex
+ * @function getTypeUrl
+ * @memberof google.cloud.datalabeling.v1beta1.Vertex
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ Vertex.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.datalabeling.v1beta1.Vertex";
+ };
+
+ return Vertex;
+ })();
+
+ v1beta1.NormalizedVertex = (function() {
+
+ /**
+ * Properties of a NormalizedVertex.
+ * @memberof google.cloud.datalabeling.v1beta1
+ * @interface INormalizedVertex
+ * @property {number|null} [x] NormalizedVertex x
+ * @property {number|null} [y] NormalizedVertex y
+ */
+
+ /**
+ * Constructs a new NormalizedVertex.
+ * @memberof google.cloud.datalabeling.v1beta1
+ * @classdesc Represents a NormalizedVertex.
+ * @implements INormalizedVertex
+ * @constructor
+ * @param {google.cloud.datalabeling.v1beta1.INormalizedVertex=} [properties] Properties to set
+ */
+ function NormalizedVertex(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]];
+ }
+
+ /**
+ * NormalizedVertex x.
+ * @member {number} x
+ * @memberof google.cloud.datalabeling.v1beta1.NormalizedVertex
+ * @instance
+ */
+ NormalizedVertex.prototype.x = 0;
+
+ /**
+ * NormalizedVertex y.
+ * @member {number} y
+ * @memberof google.cloud.datalabeling.v1beta1.NormalizedVertex
+ * @instance
+ */
+ NormalizedVertex.prototype.y = 0;
+
+ /**
+ * Creates a new NormalizedVertex instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.datalabeling.v1beta1.NormalizedVertex
+ * @static
+ * @param {google.cloud.datalabeling.v1beta1.INormalizedVertex=} [properties] Properties to set
+ * @returns {google.cloud.datalabeling.v1beta1.NormalizedVertex} NormalizedVertex instance
+ */
+ NormalizedVertex.create = function create(properties) {
+ return new NormalizedVertex(properties);
+ };
+
+ /**
+ * Encodes the specified NormalizedVertex message. Does not implicitly {@link google.cloud.datalabeling.v1beta1.NormalizedVertex.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.datalabeling.v1beta1.NormalizedVertex
+ * @static
+ * @param {google.cloud.datalabeling.v1beta1.INormalizedVertex} message NormalizedVertex message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ NormalizedVertex.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.x != null && Object.hasOwnProperty.call(message, "x"))
+ writer.uint32(/* id 1, wireType 5 =*/13).float(message.x);
+ if (message.y != null && Object.hasOwnProperty.call(message, "y"))
+ writer.uint32(/* id 2, wireType 5 =*/21).float(message.y);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified NormalizedVertex message, length delimited. Does not implicitly {@link google.cloud.datalabeling.v1beta1.NormalizedVertex.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.datalabeling.v1beta1.NormalizedVertex
+ * @static
+ * @param {google.cloud.datalabeling.v1beta1.INormalizedVertex} message NormalizedVertex message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ NormalizedVertex.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a NormalizedVertex message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.datalabeling.v1beta1.NormalizedVertex
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.datalabeling.v1beta1.NormalizedVertex} NormalizedVertex
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ NormalizedVertex.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.datalabeling.v1beta1.NormalizedVertex();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.x = reader.float();
+ break;
+ }
+ case 2: {
+ message.y = reader.float();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a NormalizedVertex message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.datalabeling.v1beta1.NormalizedVertex
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.datalabeling.v1beta1.NormalizedVertex} NormalizedVertex
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ NormalizedVertex.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a NormalizedVertex message.
+ * @function verify
+ * @memberof google.cloud.datalabeling.v1beta1.NormalizedVertex
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ NormalizedVertex.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.x != null && message.hasOwnProperty("x"))
+ if (typeof message.x !== "number")
+ return "x: number expected";
+ if (message.y != null && message.hasOwnProperty("y"))
+ if (typeof message.y !== "number")
+ return "y: number expected";
+ return null;
+ };
+
+ /**
+ * Creates a NormalizedVertex message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.datalabeling.v1beta1.NormalizedVertex
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.datalabeling.v1beta1.NormalizedVertex} NormalizedVertex
+ */
+ NormalizedVertex.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.datalabeling.v1beta1.NormalizedVertex)
+ return object;
+ var message = new $root.google.cloud.datalabeling.v1beta1.NormalizedVertex();
+ if (object.x != null)
+ message.x = Number(object.x);
+ if (object.y != null)
+ message.y = Number(object.y);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a NormalizedVertex message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.datalabeling.v1beta1.NormalizedVertex
+ * @static
+ * @param {google.cloud.datalabeling.v1beta1.NormalizedVertex} message NormalizedVertex
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ NormalizedVertex.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.x = 0;
+ object.y = 0;
+ }
+ if (message.x != null && message.hasOwnProperty("x"))
+ object.x = options.json && !isFinite(message.x) ? String(message.x) : message.x;
+ if (message.y != null && message.hasOwnProperty("y"))
+ object.y = options.json && !isFinite(message.y) ? String(message.y) : message.y;
+ return object;
+ };
+
+ /**
+ * Converts this NormalizedVertex to JSON.
+ * @function toJSON
+ * @memberof google.cloud.datalabeling.v1beta1.NormalizedVertex
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ NormalizedVertex.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for NormalizedVertex
+ * @function getTypeUrl
+ * @memberof google.cloud.datalabeling.v1beta1.NormalizedVertex
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ NormalizedVertex.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.datalabeling.v1beta1.NormalizedVertex";
+ };
+
+ return NormalizedVertex;
+ })();
+
+ v1beta1.BoundingPoly = (function() {
+
+ /**
+ * Properties of a BoundingPoly.
+ * @memberof google.cloud.datalabeling.v1beta1
+ * @interface IBoundingPoly
+ * @property {Array.|null} [vertices] BoundingPoly vertices
+ */
+
+ /**
+ * Constructs a new BoundingPoly.
+ * @memberof google.cloud.datalabeling.v1beta1
+ * @classdesc Represents a BoundingPoly.
+ * @implements IBoundingPoly
+ * @constructor
+ * @param {google.cloud.datalabeling.v1beta1.IBoundingPoly=} [properties] Properties to set
+ */
+ function BoundingPoly(properties) {
+ this.vertices = [];
+ 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]];
+ }
+
+ /**
+ * BoundingPoly vertices.
+ * @member {Array.} vertices
+ * @memberof google.cloud.datalabeling.v1beta1.BoundingPoly
+ * @instance
+ */
+ BoundingPoly.prototype.vertices = $util.emptyArray;
+
+ /**
+ * Creates a new BoundingPoly instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.datalabeling.v1beta1.BoundingPoly
+ * @static
+ * @param {google.cloud.datalabeling.v1beta1.IBoundingPoly=} [properties] Properties to set
+ * @returns {google.cloud.datalabeling.v1beta1.BoundingPoly} BoundingPoly instance
+ */
+ BoundingPoly.create = function create(properties) {
+ return new BoundingPoly(properties);
+ };
+
+ /**
+ * Encodes the specified BoundingPoly message. Does not implicitly {@link google.cloud.datalabeling.v1beta1.BoundingPoly.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.datalabeling.v1beta1.BoundingPoly
+ * @static
+ * @param {google.cloud.datalabeling.v1beta1.IBoundingPoly} message BoundingPoly message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ BoundingPoly.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.vertices != null && message.vertices.length)
+ for (var i = 0; i < message.vertices.length; ++i)
+ $root.google.cloud.datalabeling.v1beta1.Vertex.encode(message.vertices[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified BoundingPoly message, length delimited. Does not implicitly {@link google.cloud.datalabeling.v1beta1.BoundingPoly.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.datalabeling.v1beta1.BoundingPoly
+ * @static
+ * @param {google.cloud.datalabeling.v1beta1.IBoundingPoly} message BoundingPoly message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ BoundingPoly.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a BoundingPoly message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.datalabeling.v1beta1.BoundingPoly
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.datalabeling.v1beta1.BoundingPoly} BoundingPoly
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ BoundingPoly.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.datalabeling.v1beta1.BoundingPoly();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ if (!(message.vertices && message.vertices.length))
+ message.vertices = [];
+ message.vertices.push($root.google.cloud.datalabeling.v1beta1.Vertex.decode(reader, reader.uint32()));
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a BoundingPoly message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.datalabeling.v1beta1.BoundingPoly
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.datalabeling.v1beta1.BoundingPoly} BoundingPoly
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ BoundingPoly.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a BoundingPoly message.
+ * @function verify
+ * @memberof google.cloud.datalabeling.v1beta1.BoundingPoly
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ BoundingPoly.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.vertices != null && message.hasOwnProperty("vertices")) {
+ if (!Array.isArray(message.vertices))
+ return "vertices: array expected";
+ for (var i = 0; i < message.vertices.length; ++i) {
+ var error = $root.google.cloud.datalabeling.v1beta1.Vertex.verify(message.vertices[i]);
+ if (error)
+ return "vertices." + error;
+ }
+ }
+ return null;
+ };
+
+ /**
+ * Creates a BoundingPoly message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.datalabeling.v1beta1.BoundingPoly
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.datalabeling.v1beta1.BoundingPoly} BoundingPoly
+ */
+ BoundingPoly.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.datalabeling.v1beta1.BoundingPoly)
+ return object;
+ var message = new $root.google.cloud.datalabeling.v1beta1.BoundingPoly();
+ if (object.vertices) {
+ if (!Array.isArray(object.vertices))
+ throw TypeError(".google.cloud.datalabeling.v1beta1.BoundingPoly.vertices: array expected");
+ message.vertices = [];
+ for (var i = 0; i < object.vertices.length; ++i) {
+ if (typeof object.vertices[i] !== "object")
+ throw TypeError(".google.cloud.datalabeling.v1beta1.BoundingPoly.vertices: object expected");
+ message.vertices[i] = $root.google.cloud.datalabeling.v1beta1.Vertex.fromObject(object.vertices[i]);
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a BoundingPoly message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.datalabeling.v1beta1.BoundingPoly
+ * @static
+ * @param {google.cloud.datalabeling.v1beta1.BoundingPoly} message BoundingPoly
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ BoundingPoly.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.vertices = [];
+ if (message.vertices && message.vertices.length) {
+ object.vertices = [];
+ for (var j = 0; j < message.vertices.length; ++j)
+ object.vertices[j] = $root.google.cloud.datalabeling.v1beta1.Vertex.toObject(message.vertices[j], options);
+ }
+ return object;
+ };
+
+ /**
+ * Converts this BoundingPoly to JSON.
+ * @function toJSON
+ * @memberof google.cloud.datalabeling.v1beta1.BoundingPoly
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ BoundingPoly.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for BoundingPoly
+ * @function getTypeUrl
+ * @memberof google.cloud.datalabeling.v1beta1.BoundingPoly
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ BoundingPoly.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.datalabeling.v1beta1.BoundingPoly";
+ };
+
+ return BoundingPoly;
+ })();
+
+ v1beta1.NormalizedBoundingPoly = (function() {
+
+ /**
+ * Properties of a NormalizedBoundingPoly.
+ * @memberof google.cloud.datalabeling.v1beta1
+ * @interface INormalizedBoundingPoly
+ * @property {Array.|null} [normalizedVertices] NormalizedBoundingPoly normalizedVertices
+ */
+
+ /**
+ * Constructs a new NormalizedBoundingPoly.
+ * @memberof google.cloud.datalabeling.v1beta1
+ * @classdesc Represents a NormalizedBoundingPoly.
+ * @implements INormalizedBoundingPoly
+ * @constructor
+ * @param {google.cloud.datalabeling.v1beta1.INormalizedBoundingPoly=} [properties] Properties to set
+ */
+ function NormalizedBoundingPoly(properties) {
+ this.normalizedVertices = [];
+ 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]];
+ }
+
+ /**
+ * NormalizedBoundingPoly normalizedVertices.
+ * @member {Array.} normalizedVertices
+ * @memberof google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly
+ * @instance
+ */
+ NormalizedBoundingPoly.prototype.normalizedVertices = $util.emptyArray;
+
+ /**
+ * Creates a new NormalizedBoundingPoly instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly
+ * @static
+ * @param {google.cloud.datalabeling.v1beta1.INormalizedBoundingPoly=} [properties] Properties to set
+ * @returns {google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly} NormalizedBoundingPoly instance
+ */
+ NormalizedBoundingPoly.create = function create(properties) {
+ return new NormalizedBoundingPoly(properties);
+ };
+
+ /**
+ * Encodes the specified NormalizedBoundingPoly message. Does not implicitly {@link google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly
+ * @static
+ * @param {google.cloud.datalabeling.v1beta1.INormalizedBoundingPoly} message NormalizedBoundingPoly message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ NormalizedBoundingPoly.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.normalizedVertices != null && message.normalizedVertices.length)
+ for (var i = 0; i < message.normalizedVertices.length; ++i)
+ $root.google.cloud.datalabeling.v1beta1.NormalizedVertex.encode(message.normalizedVertices[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified NormalizedBoundingPoly message, length delimited. Does not implicitly {@link google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly
+ * @static
+ * @param {google.cloud.datalabeling.v1beta1.INormalizedBoundingPoly} message NormalizedBoundingPoly message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ NormalizedBoundingPoly.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a NormalizedBoundingPoly message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly} NormalizedBoundingPoly
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ NormalizedBoundingPoly.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.datalabeling.v1beta1.NormalizedBoundingPoly();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ if (!(message.normalizedVertices && message.normalizedVertices.length))
+ message.normalizedVertices = [];
+ message.normalizedVertices.push($root.google.cloud.datalabeling.v1beta1.NormalizedVertex.decode(reader, reader.uint32()));
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a NormalizedBoundingPoly message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly} NormalizedBoundingPoly
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ NormalizedBoundingPoly.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a NormalizedBoundingPoly message.
+ * @function verify
+ * @memberof google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ NormalizedBoundingPoly.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.normalizedVertices != null && message.hasOwnProperty("normalizedVertices")) {
+ if (!Array.isArray(message.normalizedVertices))
+ return "normalizedVertices: array expected";
+ for (var i = 0; i < message.normalizedVertices.length; ++i) {
+ var error = $root.google.cloud.datalabeling.v1beta1.NormalizedVertex.verify(message.normalizedVertices[i]);
+ if (error)
+ return "normalizedVertices." + error;
+ }
+ }
+ return null;
+ };
+
+ /**
+ * Creates a NormalizedBoundingPoly message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly} NormalizedBoundingPoly
+ */
+ NormalizedBoundingPoly.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly)
+ return object;
+ var message = new $root.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly();
+ if (object.normalizedVertices) {
+ if (!Array.isArray(object.normalizedVertices))
+ throw TypeError(".google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly.normalizedVertices: array expected");
+ message.normalizedVertices = [];
+ for (var i = 0; i < object.normalizedVertices.length; ++i) {
+ if (typeof object.normalizedVertices[i] !== "object")
+ throw TypeError(".google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly.normalizedVertices: object expected");
+ message.normalizedVertices[i] = $root.google.cloud.datalabeling.v1beta1.NormalizedVertex.fromObject(object.normalizedVertices[i]);
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a NormalizedBoundingPoly message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly
+ * @static
+ * @param {google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly} message NormalizedBoundingPoly
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ NormalizedBoundingPoly.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.normalizedVertices = [];
+ if (message.normalizedVertices && message.normalizedVertices.length) {
+ object.normalizedVertices = [];
+ for (var j = 0; j < message.normalizedVertices.length; ++j)
+ object.normalizedVertices[j] = $root.google.cloud.datalabeling.v1beta1.NormalizedVertex.toObject(message.normalizedVertices[j], options);
+ }
+ return object;
+ };
+
+ /**
+ * Converts this NormalizedBoundingPoly to JSON.
+ * @function toJSON
+ * @memberof google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ NormalizedBoundingPoly.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for NormalizedBoundingPoly
+ * @function getTypeUrl
+ * @memberof google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ NormalizedBoundingPoly.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly";
+ };
+
+ return NormalizedBoundingPoly;
+ })();
+
+ v1beta1.ImageBoundingPolyAnnotation = (function() {
+
+ /**
+ * Properties of an ImageBoundingPolyAnnotation.
+ * @memberof google.cloud.datalabeling.v1beta1
+ * @interface IImageBoundingPolyAnnotation
+ * @property {google.cloud.datalabeling.v1beta1.IBoundingPoly|null} [boundingPoly] ImageBoundingPolyAnnotation boundingPoly
+ * @property {google.cloud.datalabeling.v1beta1.INormalizedBoundingPoly|null} [normalizedBoundingPoly] ImageBoundingPolyAnnotation normalizedBoundingPoly
+ * @property {google.cloud.datalabeling.v1beta1.IAnnotationSpec|null} [annotationSpec] ImageBoundingPolyAnnotation annotationSpec
+ */
+
+ /**
+ * Constructs a new ImageBoundingPolyAnnotation.
+ * @memberof google.cloud.datalabeling.v1beta1
+ * @classdesc Represents an ImageBoundingPolyAnnotation.
+ * @implements IImageBoundingPolyAnnotation
+ * @constructor
+ * @param {google.cloud.datalabeling.v1beta1.IImageBoundingPolyAnnotation=} [properties] Properties to set
+ */
+ function ImageBoundingPolyAnnotation(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]];
+ }
+
+ /**
+ * ImageBoundingPolyAnnotation boundingPoly.
+ * @member {google.cloud.datalabeling.v1beta1.IBoundingPoly|null|undefined} boundingPoly
+ * @memberof google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation
+ * @instance
+ */
+ ImageBoundingPolyAnnotation.prototype.boundingPoly = null;
+
+ /**
+ * ImageBoundingPolyAnnotation normalizedBoundingPoly.
+ * @member {google.cloud.datalabeling.v1beta1.INormalizedBoundingPoly|null|undefined} normalizedBoundingPoly
+ * @memberof google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation
+ * @instance
+ */
+ ImageBoundingPolyAnnotation.prototype.normalizedBoundingPoly = null;
+
+ /**
+ * ImageBoundingPolyAnnotation annotationSpec.
+ * @member {google.cloud.datalabeling.v1beta1.IAnnotationSpec|null|undefined} annotationSpec
+ * @memberof google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation
+ * @instance
+ */
+ ImageBoundingPolyAnnotation.prototype.annotationSpec = null;
+
+ // OneOf field names bound to virtual getters and setters
+ var $oneOfFields;
+
+ /**
+ * ImageBoundingPolyAnnotation boundedArea.
+ * @member {"boundingPoly"|"normalizedBoundingPoly"|undefined} boundedArea
+ * @memberof google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation
+ * @instance
+ */
+ Object.defineProperty(ImageBoundingPolyAnnotation.prototype, "boundedArea", {
+ get: $util.oneOfGetter($oneOfFields = ["boundingPoly", "normalizedBoundingPoly"]),
+ set: $util.oneOfSetter($oneOfFields)
+ });
+
+ /**
+ * Creates a new ImageBoundingPolyAnnotation instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation
+ * @static
+ * @param {google.cloud.datalabeling.v1beta1.IImageBoundingPolyAnnotation=} [properties] Properties to set
+ * @returns {google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation} ImageBoundingPolyAnnotation instance
+ */
+ ImageBoundingPolyAnnotation.create = function create(properties) {
+ return new ImageBoundingPolyAnnotation(properties);
+ };
+
+ /**
+ * Encodes the specified ImageBoundingPolyAnnotation message. Does not implicitly {@link google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation
+ * @static
+ * @param {google.cloud.datalabeling.v1beta1.IImageBoundingPolyAnnotation} message ImageBoundingPolyAnnotation message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ImageBoundingPolyAnnotation.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.annotationSpec != null && Object.hasOwnProperty.call(message, "annotationSpec"))
+ $root.google.cloud.datalabeling.v1beta1.AnnotationSpec.encode(message.annotationSpec, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
+ if (message.boundingPoly != null && Object.hasOwnProperty.call(message, "boundingPoly"))
+ $root.google.cloud.datalabeling.v1beta1.BoundingPoly.encode(message.boundingPoly, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
+ if (message.normalizedBoundingPoly != null && Object.hasOwnProperty.call(message, "normalizedBoundingPoly"))
+ $root.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly.encode(message.normalizedBoundingPoly, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ImageBoundingPolyAnnotation message, length delimited. Does not implicitly {@link google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation
+ * @static
+ * @param {google.cloud.datalabeling.v1beta1.IImageBoundingPolyAnnotation} message ImageBoundingPolyAnnotation message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ImageBoundingPolyAnnotation.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes an ImageBoundingPolyAnnotation message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation} ImageBoundingPolyAnnotation
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ImageBoundingPolyAnnotation.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.datalabeling.v1beta1.ImageBoundingPolyAnnotation();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 2: {
+ message.boundingPoly = $root.google.cloud.datalabeling.v1beta1.BoundingPoly.decode(reader, reader.uint32());
+ break;
+ }
+ case 3: {
+ message.normalizedBoundingPoly = $root.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly.decode(reader, reader.uint32());
+ break;
+ }
+ case 1: {
+ message.annotationSpec = $root.google.cloud.datalabeling.v1beta1.AnnotationSpec.decode(reader, reader.uint32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an ImageBoundingPolyAnnotation message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation} ImageBoundingPolyAnnotation
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ImageBoundingPolyAnnotation.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an ImageBoundingPolyAnnotation message.
+ * @function verify
+ * @memberof google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ImageBoundingPolyAnnotation.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ var properties = {};
+ if (message.boundingPoly != null && message.hasOwnProperty("boundingPoly")) {
+ properties.boundedArea = 1;
+ {
+ var error = $root.google.cloud.datalabeling.v1beta1.BoundingPoly.verify(message.boundingPoly);
+ if (error)
+ return "boundingPoly." + error;
+ }
+ }
+ if (message.normalizedBoundingPoly != null && message.hasOwnProperty("normalizedBoundingPoly")) {
+ if (properties.boundedArea === 1)
+ return "boundedArea: multiple values";
+ properties.boundedArea = 1;
+ {
+ var error = $root.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly.verify(message.normalizedBoundingPoly);
+ if (error)
+ return "normalizedBoundingPoly." + error;
+ }
+ }
+ if (message.annotationSpec != null && message.hasOwnProperty("annotationSpec")) {
+ var error = $root.google.cloud.datalabeling.v1beta1.AnnotationSpec.verify(message.annotationSpec);
+ if (error)
+ return "annotationSpec." + error;
+ }
+ return null;
+ };
+
+ /**
+ * Creates an ImageBoundingPolyAnnotation message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation} ImageBoundingPolyAnnotation
+ */
+ ImageBoundingPolyAnnotation.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation)
+ return object;
+ var message = new $root.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation();
+ if (object.boundingPoly != null) {
+ if (typeof object.boundingPoly !== "object")
+ throw TypeError(".google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation.boundingPoly: object expected");
+ message.boundingPoly = $root.google.cloud.datalabeling.v1beta1.BoundingPoly.fromObject(object.boundingPoly);
+ }
+ if (object.normalizedBoundingPoly != null) {
+ if (typeof object.normalizedBoundingPoly !== "object")
+ throw TypeError(".google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation.normalizedBoundingPoly: object expected");
+ message.normalizedBoundingPoly = $root.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly.fromObject(object.normalizedBoundingPoly);
+ }
+ if (object.annotationSpec != null) {
+ if (typeof object.annotationSpec !== "object")
+ throw TypeError(".google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation.annotationSpec: object expected");
+ message.annotationSpec = $root.google.cloud.datalabeling.v1beta1.AnnotationSpec.fromObject(object.annotationSpec);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an ImageBoundingPolyAnnotation message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation
+ * @static
+ * @param {google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation} message ImageBoundingPolyAnnotation
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ImageBoundingPolyAnnotation.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults)
+ object.annotationSpec = null;
+ if (message.annotationSpec != null && message.hasOwnProperty("annotationSpec"))
+ object.annotationSpec = $root.google.cloud.datalabeling.v1beta1.AnnotationSpec.toObject(message.annotationSpec, options);
+ if (message.boundingPoly != null && message.hasOwnProperty("boundingPoly")) {
+ object.boundingPoly = $root.google.cloud.datalabeling.v1beta1.BoundingPoly.toObject(message.boundingPoly, options);
+ if (options.oneofs)
+ object.boundedArea = "boundingPoly";
+ }
+ if (message.normalizedBoundingPoly != null && message.hasOwnProperty("normalizedBoundingPoly")) {
+ object.normalizedBoundingPoly = $root.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly.toObject(message.normalizedBoundingPoly, options);
+ if (options.oneofs)
+ object.boundedArea = "normalizedBoundingPoly";
+ }
+ return object;
+ };
+
+ /**
+ * Converts this ImageBoundingPolyAnnotation to JSON.
+ * @function toJSON
+ * @memberof google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ImageBoundingPolyAnnotation.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ImageBoundingPolyAnnotation
+ * @function getTypeUrl
+ * @memberof google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ImageBoundingPolyAnnotation.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation";
+ };
+
+ return ImageBoundingPolyAnnotation;
+ })();
+
+ v1beta1.Polyline = (function() {
+
+ /**
+ * Properties of a Polyline.
+ * @memberof google.cloud.datalabeling.v1beta1
+ * @interface IPolyline
+ * @property {Array.|null} [vertices] Polyline vertices
+ */
+
+ /**
+ * Constructs a new Polyline.
+ * @memberof google.cloud.datalabeling.v1beta1
+ * @classdesc Represents a Polyline.
+ * @implements IPolyline
+ * @constructor
+ * @param {google.cloud.datalabeling.v1beta1.IPolyline=} [properties] Properties to set
+ */
+ function Polyline(properties) {
+ this.vertices = [];
+ 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]];
+ }
+
+ /**
+ * Polyline vertices.
+ * @member {Array.} vertices
+ * @memberof google.cloud.datalabeling.v1beta1.Polyline
+ * @instance
+ */
+ Polyline.prototype.vertices = $util.emptyArray;
+
+ /**
+ * Creates a new Polyline instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.datalabeling.v1beta1.Polyline
+ * @static
+ * @param {google.cloud.datalabeling.v1beta1.IPolyline=} [properties] Properties to set
+ * @returns {google.cloud.datalabeling.v1beta1.Polyline} Polyline instance
+ */
+ Polyline.create = function create(properties) {
+ return new Polyline(properties);
+ };
+
+ /**
+ * Encodes the specified Polyline message. Does not implicitly {@link google.cloud.datalabeling.v1beta1.Polyline.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.datalabeling.v1beta1.Polyline
+ * @static
+ * @param {google.cloud.datalabeling.v1beta1.IPolyline} message Polyline message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Polyline.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.vertices != null && message.vertices.length)
+ for (var i = 0; i < message.vertices.length; ++i)
+ $root.google.cloud.datalabeling.v1beta1.Vertex.encode(message.vertices[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified Polyline message, length delimited. Does not implicitly {@link google.cloud.datalabeling.v1beta1.Polyline.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.datalabeling.v1beta1.Polyline
+ * @static
+ * @param {google.cloud.datalabeling.v1beta1.IPolyline} message Polyline message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Polyline.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a Polyline message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.datalabeling.v1beta1.Polyline
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.datalabeling.v1beta1.Polyline} Polyline
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Polyline.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.datalabeling.v1beta1.Polyline();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ if (!(message.vertices && message.vertices.length))
+ message.vertices = [];
+ message.vertices.push($root.google.cloud.datalabeling.v1beta1.Vertex.decode(reader, reader.uint32()));
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a Polyline message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.datalabeling.v1beta1.Polyline
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.datalabeling.v1beta1.Polyline} Polyline
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Polyline.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a Polyline message.
+ * @function verify
+ * @memberof google.cloud.datalabeling.v1beta1.Polyline
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ Polyline.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.vertices != null && message.hasOwnProperty("vertices")) {
+ if (!Array.isArray(message.vertices))
+ return "vertices: array expected";
+ for (var i = 0; i < message.vertices.length; ++i) {
+ var error = $root.google.cloud.datalabeling.v1beta1.Vertex.verify(message.vertices[i]);
+ if (error)
+ return "vertices." + error;
+ }
+ }
+ return null;
+ };
+
+ /**
+ * Creates a Polyline message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.datalabeling.v1beta1.Polyline
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.datalabeling.v1beta1.Polyline} Polyline
+ */
+ Polyline.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.datalabeling.v1beta1.Polyline)
+ return object;
+ var message = new $root.google.cloud.datalabeling.v1beta1.Polyline();
+ if (object.vertices) {
+ if (!Array.isArray(object.vertices))
+ throw TypeError(".google.cloud.datalabeling.v1beta1.Polyline.vertices: array expected");
+ message.vertices = [];
+ for (var i = 0; i < object.vertices.length; ++i) {
+ if (typeof object.vertices[i] !== "object")
+ throw TypeError(".google.cloud.datalabeling.v1beta1.Polyline.vertices: object expected");
+ message.vertices[i] = $root.google.cloud.datalabeling.v1beta1.Vertex.fromObject(object.vertices[i]);
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a Polyline message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.datalabeling.v1beta1.Polyline
+ * @static
+ * @param {google.cloud.datalabeling.v1beta1.Polyline} message Polyline
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ Polyline.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.vertices = [];
+ if (message.vertices && message.vertices.length) {
+ object.vertices = [];
+ for (var j = 0; j < message.vertices.length; ++j)
+ object.vertices[j] = $root.google.cloud.datalabeling.v1beta1.Vertex.toObject(message.vertices[j], options);
+ }
+ return object;
+ };
+
+ /**
+ * Converts this Polyline to JSON.
+ * @function toJSON
+ * @memberof google.cloud.datalabeling.v1beta1.Polyline
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ Polyline.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for Polyline
+ * @function getTypeUrl
+ * @memberof google.cloud.datalabeling.v1beta1.Polyline
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ Polyline.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.datalabeling.v1beta1.Polyline";
+ };
+
+ return Polyline;
+ })();
+
+ v1beta1.NormalizedPolyline = (function() {
+
+ /**
+ * Properties of a NormalizedPolyline.
+ * @memberof google.cloud.datalabeling.v1beta1
+ * @interface INormalizedPolyline
+ * @property {Array.|null} [normalizedVertices] NormalizedPolyline normalizedVertices
+ */
+
+ /**
+ * Constructs a new NormalizedPolyline.
+ * @memberof google.cloud.datalabeling.v1beta1
+ * @classdesc Represents a NormalizedPolyline.
+ * @implements INormalizedPolyline
+ * @constructor
+ * @param {google.cloud.datalabeling.v1beta1.INormalizedPolyline=} [properties] Properties to set
+ */
+ function NormalizedPolyline(properties) {
+ this.normalizedVertices = [];
+ 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]];
+ }
+
+ /**
+ * NormalizedPolyline normalizedVertices.
+ * @member {Array.} normalizedVertices
+ * @memberof google.cloud.datalabeling.v1beta1.NormalizedPolyline
+ * @instance
+ */
+ NormalizedPolyline.prototype.normalizedVertices = $util.emptyArray;
+
+ /**
+ * Creates a new NormalizedPolyline instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.datalabeling.v1beta1.NormalizedPolyline
+ * @static
+ * @param {google.cloud.datalabeling.v1beta1.INormalizedPolyline=} [properties] Properties to set
+ * @returns {google.cloud.datalabeling.v1beta1.NormalizedPolyline} NormalizedPolyline instance
+ */
+ NormalizedPolyline.create = function create(properties) {
+ return new NormalizedPolyline(properties);
+ };
+
+ /**
+ * Encodes the specified NormalizedPolyline message. Does not implicitly {@link google.cloud.datalabeling.v1beta1.NormalizedPolyline.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.datalabeling.v1beta1.NormalizedPolyline
+ * @static
+ * @param {google.cloud.datalabeling.v1beta1.INormalizedPolyline} message NormalizedPolyline message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ NormalizedPolyline.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.normalizedVertices != null && message.normalizedVertices.length)
+ for (var i = 0; i < message.normalizedVertices.length; ++i)
+ $root.google.cloud.datalabeling.v1beta1.NormalizedVertex.encode(message.normalizedVertices[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified NormalizedPolyline message, length delimited. Does not implicitly {@link google.cloud.datalabeling.v1beta1.NormalizedPolyline.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.datalabeling.v1beta1.NormalizedPolyline
+ * @static
+ * @param {google.cloud.datalabeling.v1beta1.INormalizedPolyline} message NormalizedPolyline message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ NormalizedPolyline.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a NormalizedPolyline message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.datalabeling.v1beta1.NormalizedPolyline
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.datalabeling.v1beta1.NormalizedPolyline} NormalizedPolyline
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ NormalizedPolyline.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.datalabeling.v1beta1.NormalizedPolyline();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ if (!(message.normalizedVertices && message.normalizedVertices.length))
+ message.normalizedVertices = [];
+ message.normalizedVertices.push($root.google.cloud.datalabeling.v1beta1.NormalizedVertex.decode(reader, reader.uint32()));
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a NormalizedPolyline message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.datalabeling.v1beta1.NormalizedPolyline
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.datalabeling.v1beta1.NormalizedPolyline} NormalizedPolyline
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ NormalizedPolyline.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a NormalizedPolyline message.
+ * @function verify
+ * @memberof google.cloud.datalabeling.v1beta1.NormalizedPolyline
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ NormalizedPolyline.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.normalizedVertices != null && message.hasOwnProperty("normalizedVertices")) {
+ if (!Array.isArray(message.normalizedVertices))
+ return "normalizedVertices: array expected";
+ for (var i = 0; i < message.normalizedVertices.length; ++i) {
+ var error = $root.google.cloud.datalabeling.v1beta1.NormalizedVertex.verify(message.normalizedVertices[i]);
+ if (error)
+ return "normalizedVertices." + error;
+ }
+ }
+ return null;
+ };
+
+ /**
+ * Creates a NormalizedPolyline message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.datalabeling.v1beta1.NormalizedPolyline
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.datalabeling.v1beta1.NormalizedPolyline} NormalizedPolyline
+ */
+ NormalizedPolyline.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.datalabeling.v1beta1.NormalizedPolyline)
+ return object;
+ var message = new $root.google.cloud.datalabeling.v1beta1.NormalizedPolyline();
+ if (object.normalizedVertices) {
+ if (!Array.isArray(object.normalizedVertices))
+ throw TypeError(".google.cloud.datalabeling.v1beta1.NormalizedPolyline.normalizedVertices: array expected");
+ message.normalizedVertices = [];
+ for (var i = 0; i < object.normalizedVertices.length; ++i) {
+ if (typeof object.normalizedVertices[i] !== "object")
+ throw TypeError(".google.cloud.datalabeling.v1beta1.NormalizedPolyline.normalizedVertices: object expected");
+ message.normalizedVertices[i] = $root.google.cloud.datalabeling.v1beta1.NormalizedVertex.fromObject(object.normalizedVertices[i]);
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a NormalizedPolyline message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.datalabeling.v1beta1.NormalizedPolyline
+ * @static
+ * @param {google.cloud.datalabeling.v1beta1.NormalizedPolyline} message NormalizedPolyline
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ NormalizedPolyline.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.normalizedVertices = [];
+ if (message.normalizedVertices && message.normalizedVertices.length) {
+ object.normalizedVertices = [];
+ for (var j = 0; j < message.normalizedVertices.length; ++j)
+ object.normalizedVertices[j] = $root.google.cloud.datalabeling.v1beta1.NormalizedVertex.toObject(message.normalizedVertices[j], options);
+ }
+ return object;
+ };
+
+ /**
+ * Converts this NormalizedPolyline to JSON.
+ * @function toJSON
+ * @memberof google.cloud.datalabeling.v1beta1.NormalizedPolyline
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ NormalizedPolyline.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for NormalizedPolyline
+ * @function getTypeUrl
+ * @memberof google.cloud.datalabeling.v1beta1.NormalizedPolyline
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ NormalizedPolyline.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.datalabeling.v1beta1.NormalizedPolyline";
+ };
+
+ return NormalizedPolyline;
+ })();
+
+ v1beta1.ImagePolylineAnnotation = (function() {
+
+ /**
+ * Properties of an ImagePolylineAnnotation.
+ * @memberof google.cloud.datalabeling.v1beta1
+ * @interface IImagePolylineAnnotation
+ * @property {google.cloud.datalabeling.v1beta1.IPolyline|null} [polyline] ImagePolylineAnnotation polyline
+ * @property {google.cloud.datalabeling.v1beta1.INormalizedPolyline|null} [normalizedPolyline] ImagePolylineAnnotation normalizedPolyline
+ * @property {google.cloud.datalabeling.v1beta1.IAnnotationSpec|null} [annotationSpec] ImagePolylineAnnotation annotationSpec
+ */
+
+ /**
+ * Constructs a new ImagePolylineAnnotation.
+ * @memberof google.cloud.datalabeling.v1beta1
+ * @classdesc Represents an ImagePolylineAnnotation.
+ * @implements IImagePolylineAnnotation
+ * @constructor
+ * @param {google.cloud.datalabeling.v1beta1.IImagePolylineAnnotation=} [properties] Properties to set
+ */
+ function ImagePolylineAnnotation(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]];
+ }
+
+ /**
+ * ImagePolylineAnnotation polyline.
+ * @member {google.cloud.datalabeling.v1beta1.IPolyline|null|undefined} polyline
+ * @memberof google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation
+ * @instance
+ */
+ ImagePolylineAnnotation.prototype.polyline = null;
+
+ /**
+ * ImagePolylineAnnotation normalizedPolyline.
+ * @member {google.cloud.datalabeling.v1beta1.INormalizedPolyline|null|undefined} normalizedPolyline
+ * @memberof google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation
+ * @instance
+ */
+ ImagePolylineAnnotation.prototype.normalizedPolyline = null;
+
+ /**
+ * ImagePolylineAnnotation annotationSpec.
+ * @member {google.cloud.datalabeling.v1beta1.IAnnotationSpec|null|undefined} annotationSpec
+ * @memberof google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation
+ * @instance
+ */
+ ImagePolylineAnnotation.prototype.annotationSpec = null;
+
+ // OneOf field names bound to virtual getters and setters
+ var $oneOfFields;
+
+ /**
+ * ImagePolylineAnnotation poly.
+ * @member {"polyline"|"normalizedPolyline"|undefined} poly
+ * @memberof google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation
+ * @instance
+ */
+ Object.defineProperty(ImagePolylineAnnotation.prototype, "poly", {
+ get: $util.oneOfGetter($oneOfFields = ["polyline", "normalizedPolyline"]),
+ set: $util.oneOfSetter($oneOfFields)
+ });
+
+ /**
+ * Creates a new ImagePolylineAnnotation instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation
+ * @static
+ * @param {google.cloud.datalabeling.v1beta1.IImagePolylineAnnotation=} [properties] Properties to set
+ * @returns {google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation} ImagePolylineAnnotation instance
+ */
+ ImagePolylineAnnotation.create = function create(properties) {
+ return new ImagePolylineAnnotation(properties);
+ };
+
+ /**
+ * Encodes the specified ImagePolylineAnnotation message. Does not implicitly {@link google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation
+ * @static
+ * @param {google.cloud.datalabeling.v1beta1.IImagePolylineAnnotation} message ImagePolylineAnnotation message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ImagePolylineAnnotation.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.annotationSpec != null && Object.hasOwnProperty.call(message, "annotationSpec"))
+ $root.google.cloud.datalabeling.v1beta1.AnnotationSpec.encode(message.annotationSpec, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
+ if (message.polyline != null && Object.hasOwnProperty.call(message, "polyline"))
+ $root.google.cloud.datalabeling.v1beta1.Polyline.encode(message.polyline, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
+ if (message.normalizedPolyline != null && Object.hasOwnProperty.call(message, "normalizedPolyline"))
+ $root.google.cloud.datalabeling.v1beta1.NormalizedPolyline.encode(message.normalizedPolyline, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ImagePolylineAnnotation message, length delimited. Does not implicitly {@link google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation
+ * @static
+ * @param {google.cloud.datalabeling.v1beta1.IImagePolylineAnnotation} message ImagePolylineAnnotation message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ImagePolylineAnnotation.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes an ImagePolylineAnnotation message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation} ImagePolylineAnnotation
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ImagePolylineAnnotation.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.datalabeling.v1beta1.ImagePolylineAnnotation();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 2: {
+ message.polyline = $root.google.cloud.datalabeling.v1beta1.Polyline.decode(reader, reader.uint32());
+ break;
+ }
+ case 3: {
+ message.normalizedPolyline = $root.google.cloud.datalabeling.v1beta1.NormalizedPolyline.decode(reader, reader.uint32());
+ break;
+ }
+ case 1: {
+ message.annotationSpec = $root.google.cloud.datalabeling.v1beta1.AnnotationSpec.decode(reader, reader.uint32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an ImagePolylineAnnotation message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation} ImagePolylineAnnotation
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ImagePolylineAnnotation.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an ImagePolylineAnnotation message.
+ * @function verify
+ * @memberof google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ImagePolylineAnnotation.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ var properties = {};
+ if (message.polyline != null && message.hasOwnProperty("polyline")) {
+ properties.poly = 1;
+ {
+ var error = $root.google.cloud.datalabeling.v1beta1.Polyline.verify(message.polyline);
+ if (error)
+ return "polyline." + error;
+ }
+ }
+ if (message.normalizedPolyline != null && message.hasOwnProperty("normalizedPolyline")) {
+ if (properties.poly === 1)
+ return "poly: multiple values";
+ properties.poly = 1;
+ {
+ var error = $root.google.cloud.datalabeling.v1beta1.NormalizedPolyline.verify(message.normalizedPolyline);
+ if (error)
+ return "normalizedPolyline." + error;
+ }
+ }
+ if (message.annotationSpec != null && message.hasOwnProperty("annotationSpec")) {
+ var error = $root.google.cloud.datalabeling.v1beta1.AnnotationSpec.verify(message.annotationSpec);
+ if (error)
+ return "annotationSpec." + error;
+ }
+ return null;
+ };
+
+ /**
+ * Creates an ImagePolylineAnnotation message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation} ImagePolylineAnnotation
+ */
+ ImagePolylineAnnotation.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation)
+ return object;
+ var message = new $root.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation();
+ if (object.polyline != null) {
+ if (typeof object.polyline !== "object")
+ throw TypeError(".google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation.polyline: object expected");
+ message.polyline = $root.google.cloud.datalabeling.v1beta1.Polyline.fromObject(object.polyline);
+ }
+ if (object.normalizedPolyline != null) {
+ if (typeof object.normalizedPolyline !== "object")
+ throw TypeError(".google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation.normalizedPolyline: object expected");
+ message.normalizedPolyline = $root.google.cloud.datalabeling.v1beta1.NormalizedPolyline.fromObject(object.normalizedPolyline);
+ }
+ if (object.annotationSpec != null) {
+ if (typeof object.annotationSpec !== "object")
+ throw TypeError(".google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation.annotationSpec: object expected");
+ message.annotationSpec = $root.google.cloud.datalabeling.v1beta1.AnnotationSpec.fromObject(object.annotationSpec);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an ImagePolylineAnnotation message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation
+ * @static
+ * @param {google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation} message ImagePolylineAnnotation
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ImagePolylineAnnotation.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults)
+ object.annotationSpec = null;
+ if (message.annotationSpec != null && message.hasOwnProperty("annotationSpec"))
+ object.annotationSpec = $root.google.cloud.datalabeling.v1beta1.AnnotationSpec.toObject(message.annotationSpec, options);
+ if (message.polyline != null && message.hasOwnProperty("polyline")) {
+ object.polyline = $root.google.cloud.datalabeling.v1beta1.Polyline.toObject(message.polyline, options);
+ if (options.oneofs)
+ object.poly = "polyline";
+ }
+ if (message.normalizedPolyline != null && message.hasOwnProperty("normalizedPolyline")) {
+ object.normalizedPolyline = $root.google.cloud.datalabeling.v1beta1.NormalizedPolyline.toObject(message.normalizedPolyline, options);
+ if (options.oneofs)
+ object.poly = "normalizedPolyline";
+ }
+ return object;
+ };
+
+ /**
+ * Converts this ImagePolylineAnnotation to JSON.
+ * @function toJSON
+ * @memberof google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ImagePolylineAnnotation.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ImagePolylineAnnotation
+ * @function getTypeUrl
+ * @memberof google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ImagePolylineAnnotation.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation";
+ };
+
+ return ImagePolylineAnnotation;
+ })();
+
+ v1beta1.ImageSegmentationAnnotation = (function() {
+
+ /**
+ * Properties of an ImageSegmentationAnnotation.
+ * @memberof google.cloud.datalabeling.v1beta1
+ * @interface IImageSegmentationAnnotation
+ * @property {Object.|null} [annotationColors] ImageSegmentationAnnotation annotationColors
+ * @property {string|null} [mimeType] ImageSegmentationAnnotation mimeType
+ * @property {Uint8Array|null} [imageBytes] ImageSegmentationAnnotation imageBytes
+ */
+
+ /**
+ * Constructs a new ImageSegmentationAnnotation.
+ * @memberof google.cloud.datalabeling.v1beta1
+ * @classdesc Represents an ImageSegmentationAnnotation.
+ * @implements IImageSegmentationAnnotation
+ * @constructor
+ * @param {google.cloud.datalabeling.v1beta1.IImageSegmentationAnnotation=} [properties] Properties to set
+ */
+ function ImageSegmentationAnnotation(properties) {
+ this.annotationColors = {};
+ 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]];
+ }
+
+ /**
+ * ImageSegmentationAnnotation annotationColors.
+ * @member {Object.} annotationColors
+ * @memberof google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation
+ * @instance
+ */
+ ImageSegmentationAnnotation.prototype.annotationColors = $util.emptyObject;
+
+ /**
+ * ImageSegmentationAnnotation mimeType.
+ * @member {string} mimeType
+ * @memberof google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation
+ * @instance
+ */
+ ImageSegmentationAnnotation.prototype.mimeType = "";
+
+ /**
+ * ImageSegmentationAnnotation imageBytes.
+ * @member {Uint8Array} imageBytes
+ * @memberof google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation
+ * @instance
+ */
+ ImageSegmentationAnnotation.prototype.imageBytes = $util.newBuffer([]);
+
+ /**
+ * Creates a new ImageSegmentationAnnotation instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation
+ * @static
+ * @param {google.cloud.datalabeling.v1beta1.IImageSegmentationAnnotation=} [properties] Properties to set
+ * @returns {google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation} ImageSegmentationAnnotation instance
+ */
+ ImageSegmentationAnnotation.create = function create(properties) {
+ return new ImageSegmentationAnnotation(properties);
+ };
+
+ /**
+ * Encodes the specified ImageSegmentationAnnotation message. Does not implicitly {@link google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation
+ * @static
+ * @param {google.cloud.datalabeling.v1beta1.IImageSegmentationAnnotation} message ImageSegmentationAnnotation message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ImageSegmentationAnnotation.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.annotationColors != null && Object.hasOwnProperty.call(message, "annotationColors"))
+ for (var keys = Object.keys(message.annotationColors), i = 0; i < keys.length; ++i) {
+ writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
+ $root.google.cloud.datalabeling.v1beta1.AnnotationSpec.encode(message.annotationColors[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
+ }
+ if (message.mimeType != null && Object.hasOwnProperty.call(message, "mimeType"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.mimeType);
+ if (message.imageBytes != null && Object.hasOwnProperty.call(message, "imageBytes"))
+ writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.imageBytes);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ImageSegmentationAnnotation message, length delimited. Does not implicitly {@link google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation
+ * @static
+ * @param {google.cloud.datalabeling.v1beta1.IImageSegmentationAnnotation} message ImageSegmentationAnnotation message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ImageSegmentationAnnotation.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes an ImageSegmentationAnnotation message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation} ImageSegmentationAnnotation
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ImageSegmentationAnnotation.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.datalabeling.v1beta1.ImageSegmentationAnnotation(), key, value;
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ if (message.annotationColors === $util.emptyObject)
+ message.annotationColors = {};
+ var end2 = reader.uint32() + reader.pos;
+ key = "";
+ value = null;
+ while (reader.pos < end2) {
+ var tag2 = reader.uint32();
+ switch (tag2 >>> 3) {
+ case 1:
+ key = reader.string();
+ break;
+ case 2:
+ value = $root.google.cloud.datalabeling.v1beta1.AnnotationSpec.decode(reader, reader.uint32());
+ break;
+ default:
+ reader.skipType(tag2 & 7);
+ break;
+ }
+ }
+ message.annotationColors[key] = value;
+ break;
+ }
+ case 2: {
+ message.mimeType = reader.string();
+ break;
+ }
+ case 3: {
+ message.imageBytes = reader.bytes();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an ImageSegmentationAnnotation message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation} ImageSegmentationAnnotation
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ImageSegmentationAnnotation.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an ImageSegmentationAnnotation message.
+ * @function verify
+ * @memberof google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ImageSegmentationAnnotation.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.annotationColors != null && message.hasOwnProperty("annotationColors")) {
+ if (!$util.isObject(message.annotationColors))
+ return "annotationColors: object expected";
+ var key = Object.keys(message.annotationColors);
+ for (var i = 0; i < key.length; ++i) {
+ var error = $root.google.cloud.datalabeling.v1beta1.AnnotationSpec.verify(message.annotationColors[key[i]]);
+ if (error)
+ return "annotationColors." + error;
+ }
+ }
+ if (message.mimeType != null && message.hasOwnProperty("mimeType"))
+ if (!$util.isString(message.mimeType))
+ return "mimeType: string expected";
+ if (message.imageBytes != null && message.hasOwnProperty("imageBytes"))
+ if (!(message.imageBytes && typeof message.imageBytes.length === "number" || $util.isString(message.imageBytes)))
+ return "imageBytes: buffer expected";
+ return null;
+ };
+
+ /**
+ * Creates an ImageSegmentationAnnotation message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation} ImageSegmentationAnnotation
+ */
+ ImageSegmentationAnnotation.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation)
+ return object;
+ var message = new $root.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation();
+ if (object.annotationColors) {
+ if (typeof object.annotationColors !== "object")
+ throw TypeError(".google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation.annotationColors: object expected");
+ message.annotationColors = {};
+ for (var keys = Object.keys(object.annotationColors), i = 0; i < keys.length; ++i) {
+ if (typeof object.annotationColors[keys[i]] !== "object")
+ throw TypeError(".google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation.annotationColors: object expected");
+ message.annotationColors[keys[i]] = $root.google.cloud.datalabeling.v1beta1.AnnotationSpec.fromObject(object.annotationColors[keys[i]]);
+ }
+ }
+ if (object.mimeType != null)
+ message.mimeType = String(object.mimeType);
+ if (object.imageBytes != null)
+ if (typeof object.imageBytes === "string")
+ $util.base64.decode(object.imageBytes, message.imageBytes = $util.newBuffer($util.base64.length(object.imageBytes)), 0);
+ else if (object.imageBytes.length >= 0)
+ message.imageBytes = object.imageBytes;
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an ImageSegmentationAnnotation message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation
+ * @static
+ * @param {google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation} message ImageSegmentationAnnotation
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ImageSegmentationAnnotation.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.objects || options.defaults)
+ object.annotationColors = {};
+ if (options.defaults) {
+ object.mimeType = "";
+ if (options.bytes === String)
+ object.imageBytes = "";
+ else {
+ object.imageBytes = [];
+ if (options.bytes !== Array)
+ object.imageBytes = $util.newBuffer(object.imageBytes);
+ }
+ }
+ var keys2;
+ if (message.annotationColors && (keys2 = Object.keys(message.annotationColors)).length) {
+ object.annotationColors = {};
+ for (var j = 0; j < keys2.length; ++j)
+ object.annotationColors[keys2[j]] = $root.google.cloud.datalabeling.v1beta1.AnnotationSpec.toObject(message.annotationColors[keys2[j]], options);
+ }
+ if (message.mimeType != null && message.hasOwnProperty("mimeType"))
+ object.mimeType = message.mimeType;
+ if (message.imageBytes != null && message.hasOwnProperty("imageBytes"))
+ object.imageBytes = options.bytes === String ? $util.base64.encode(message.imageBytes, 0, message.imageBytes.length) : options.bytes === Array ? Array.prototype.slice.call(message.imageBytes) : message.imageBytes;
+ return object;
+ };
+
+ /**
+ * Converts this ImageSegmentationAnnotation to JSON.
+ * @function toJSON
+ * @memberof google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ImageSegmentationAnnotation.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ImageSegmentationAnnotation
+ * @function getTypeUrl
+ * @memberof google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ImageSegmentationAnnotation.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation";
+ };
+
+ return ImageSegmentationAnnotation;
+ })();
+
+ v1beta1.TextClassificationAnnotation = (function() {
+
+ /**
+ * Properties of a TextClassificationAnnotation.
+ * @memberof google.cloud.datalabeling.v1beta1
+ * @interface ITextClassificationAnnotation
+ * @property {google.cloud.datalabeling.v1beta1.IAnnotationSpec|null} [annotationSpec] TextClassificationAnnotation annotationSpec
+ */
+
+ /**
+ * Constructs a new TextClassificationAnnotation.
+ * @memberof google.cloud.datalabeling.v1beta1
+ * @classdesc Represents a TextClassificationAnnotation.
+ * @implements ITextClassificationAnnotation
+ * @constructor
+ * @param {google.cloud.datalabeling.v1beta1.ITextClassificationAnnotation=} [properties] Properties to set
+ */
+ function TextClassificationAnnotation(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]];
+ }
+
+ /**
+ * TextClassificationAnnotation annotationSpec.
+ * @member {google.cloud.datalabeling.v1beta1.IAnnotationSpec|null|undefined} annotationSpec
+ * @memberof google.cloud.datalabeling.v1beta1.TextClassificationAnnotation
+ * @instance
+ */
+ TextClassificationAnnotation.prototype.annotationSpec = null;
+
+ /**
+ * Creates a new TextClassificationAnnotation instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.datalabeling.v1beta1.TextClassificationAnnotation
+ * @static
+ * @param {google.cloud.datalabeling.v1beta1.ITextClassificationAnnotation=} [properties] Properties to set
+ * @returns {google.cloud.datalabeling.v1beta1.TextClassificationAnnotation} TextClassificationAnnotation instance
+ */
+ TextClassificationAnnotation.create = function create(properties) {
+ return new TextClassificationAnnotation(properties);
+ };
+
+ /**
+ * Encodes the specified TextClassificationAnnotation message. Does not implicitly {@link google.cloud.datalabeling.v1beta1.TextClassificationAnnotation.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.datalabeling.v1beta1.TextClassificationAnnotation
+ * @static
+ * @param {google.cloud.datalabeling.v1beta1.ITextClassificationAnnotation} message TextClassificationAnnotation message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ TextClassificationAnnotation.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.annotationSpec != null && Object.hasOwnProperty.call(message, "annotationSpec"))
+ $root.google.cloud.datalabeling.v1beta1.AnnotationSpec.encode(message.annotationSpec, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified TextClassificationAnnotation message, length delimited. Does not implicitly {@link google.cloud.datalabeling.v1beta1.TextClassificationAnnotation.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.datalabeling.v1beta1.TextClassificationAnnotation
+ * @static
+ * @param {google.cloud.datalabeling.v1beta1.ITextClassificationAnnotation} message TextClassificationAnnotation message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ TextClassificationAnnotation.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a TextClassificationAnnotation message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.datalabeling.v1beta1.TextClassificationAnnotation
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.datalabeling.v1beta1.TextClassificationAnnotation} TextClassificationAnnotation
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ TextClassificationAnnotation.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.datalabeling.v1beta1.TextClassificationAnnotation();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.annotationSpec = $root.google.cloud.datalabeling.v1beta1.AnnotationSpec.decode(reader, reader.uint32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a TextClassificationAnnotation message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.datalabeling.v1beta1.TextClassificationAnnotation
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.datalabeling.v1beta1.TextClassificationAnnotation} TextClassificationAnnotation
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ TextClassificationAnnotation.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a TextClassificationAnnotation message.
+ * @function verify
+ * @memberof google.cloud.datalabeling.v1beta1.TextClassificationAnnotation
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ TextClassificationAnnotation.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.annotationSpec != null && message.hasOwnProperty("annotationSpec")) {
+ var error = $root.google.cloud.datalabeling.v1beta1.AnnotationSpec.verify(message.annotationSpec);
+ if (error)
+ return "annotationSpec." + error;
+ }
+ return null;
+ };
+
+ /**
+ * Creates a TextClassificationAnnotation message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.datalabeling.v1beta1.TextClassificationAnnotation
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.datalabeling.v1beta1.TextClassificationAnnotation} TextClassificationAnnotation
+ */
+ TextClassificationAnnotation.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation)
+ return object;
+ var message = new $root.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation();
+ if (object.annotationSpec != null) {
+ if (typeof object.annotationSpec !== "object")
+ throw TypeError(".google.cloud.datalabeling.v1beta1.TextClassificationAnnotation.annotationSpec: object expected");
+ message.annotationSpec = $root.google.cloud.datalabeling.v1beta1.AnnotationSpec.fromObject(object.annotationSpec);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a TextClassificationAnnotation message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.datalabeling.v1beta1.TextClassificationAnnotation
+ * @static
+ * @param {google.cloud.datalabeling.v1beta1.TextClassificationAnnotation} message TextClassificationAnnotation
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ TextClassificationAnnotation.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults)
+ object.annotationSpec = null;
+ if (message.annotationSpec != null && message.hasOwnProperty("annotationSpec"))
+ object.annotationSpec = $root.google.cloud.datalabeling.v1beta1.AnnotationSpec.toObject(message.annotationSpec, options);
+ return object;
+ };
+
+ /**
+ * Converts this TextClassificationAnnotation to JSON.
+ * @function toJSON
+ * @memberof google.cloud.datalabeling.v1beta1.TextClassificationAnnotation
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ TextClassificationAnnotation.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for TextClassificationAnnotation
+ * @function getTypeUrl
+ * @memberof google.cloud.datalabeling.v1beta1.TextClassificationAnnotation
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ TextClassificationAnnotation.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.datalabeling.v1beta1.TextClassificationAnnotation";
+ };
+
+ return TextClassificationAnnotation;
+ })();
+
+ v1beta1.TextEntityExtractionAnnotation = (function() {
+
+ /**
+ * Properties of a TextEntityExtractionAnnotation.
+ * @memberof google.cloud.datalabeling.v1beta1
+ * @interface ITextEntityExtractionAnnotation
+ * @property {google.cloud.datalabeling.v1beta1.IAnnotationSpec|null} [annotationSpec] TextEntityExtractionAnnotation annotationSpec
+ * @property {google.cloud.datalabeling.v1beta1.ISequentialSegment|null} [sequentialSegment] TextEntityExtractionAnnotation sequentialSegment
+ */
+
+ /**
+ * Constructs a new TextEntityExtractionAnnotation.
+ * @memberof google.cloud.datalabeling.v1beta1
+ * @classdesc Represents a TextEntityExtractionAnnotation.
+ * @implements ITextEntityExtractionAnnotation
+ * @constructor
+ * @param {google.cloud.datalabeling.v1beta1.ITextEntityExtractionAnnotation=} [properties] Properties to set
+ */
+ function TextEntityExtractionAnnotation(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]];
+ }
+
+ /**
+ * TextEntityExtractionAnnotation annotationSpec.
+ * @member {google.cloud.datalabeling.v1beta1.IAnnotationSpec|null|undefined} annotationSpec
+ * @memberof google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation
+ * @instance
+ */
+ TextEntityExtractionAnnotation.prototype.annotationSpec = null;
+
+ /**
+ * TextEntityExtractionAnnotation sequentialSegment.
+ * @member {google.cloud.datalabeling.v1beta1.ISequentialSegment|null|undefined} sequentialSegment
+ * @memberof google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation
+ * @instance
+ */
+ TextEntityExtractionAnnotation.prototype.sequentialSegment = null;
+
+ /**
+ * Creates a new TextEntityExtractionAnnotation instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation
+ * @static
+ * @param {google.cloud.datalabeling.v1beta1.ITextEntityExtractionAnnotation=} [properties] Properties to set
+ * @returns {google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation} TextEntityExtractionAnnotation instance
+ */
+ TextEntityExtractionAnnotation.create = function create(properties) {
+ return new TextEntityExtractionAnnotation(properties);
+ };
+
+ /**
+ * Encodes the specified TextEntityExtractionAnnotation message. Does not implicitly {@link google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation
+ * @static
+ * @param {google.cloud.datalabeling.v1beta1.ITextEntityExtractionAnnotation} message TextEntityExtractionAnnotation message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ TextEntityExtractionAnnotation.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.annotationSpec != null && Object.hasOwnProperty.call(message, "annotationSpec"))
+ $root.google.cloud.datalabeling.v1beta1.AnnotationSpec.encode(message.annotationSpec, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
+ if (message.sequentialSegment != null && Object.hasOwnProperty.call(message, "sequentialSegment"))
+ $root.google.cloud.datalabeling.v1beta1.SequentialSegment.encode(message.sequentialSegment, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified TextEntityExtractionAnnotation message, length delimited. Does not implicitly {@link google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation
+ * @static
+ * @param {google.cloud.datalabeling.v1beta1.ITextEntityExtractionAnnotation} message TextEntityExtractionAnnotation message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ TextEntityExtractionAnnotation.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a TextEntityExtractionAnnotation message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation} TextEntityExtractionAnnotation
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ TextEntityExtractionAnnotation.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.datalabeling.v1beta1.TextEntityExtractionAnnotation();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.annotationSpec = $root.google.cloud.datalabeling.v1beta1.AnnotationSpec.decode(reader, reader.uint32());
+ break;
+ }
+ case 2: {
+ message.sequentialSegment = $root.google.cloud.datalabeling.v1beta1.SequentialSegment.decode(reader, reader.uint32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a TextEntityExtractionAnnotation message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation} TextEntityExtractionAnnotation
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ TextEntityExtractionAnnotation.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a TextEntityExtractionAnnotation message.
+ * @function verify
+ * @memberof google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ TextEntityExtractionAnnotation.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.annotationSpec != null && message.hasOwnProperty("annotationSpec")) {
+ var error = $root.google.cloud.datalabeling.v1beta1.AnnotationSpec.verify(message.annotationSpec);
+ if (error)
+ return "annotationSpec." + error;
+ }
+ if (message.sequentialSegment != null && message.hasOwnProperty("sequentialSegment")) {
+ var error = $root.google.cloud.datalabeling.v1beta1.SequentialSegment.verify(message.sequentialSegment);
+ if (error)
+ return "sequentialSegment." + error;
+ }
+ return null;
+ };
+
+ /**
+ * Creates a TextEntityExtractionAnnotation message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation} TextEntityExtractionAnnotation
+ */
+ TextEntityExtractionAnnotation.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation)
+ return object;
+ var message = new $root.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation();
+ if (object.annotationSpec != null) {
+ if (typeof object.annotationSpec !== "object")
+ throw TypeError(".google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation.annotationSpec: object expected");
+ message.annotationSpec = $root.google.cloud.datalabeling.v1beta1.AnnotationSpec.fromObject(object.annotationSpec);
+ }
+ if (object.sequentialSegment != null) {
+ if (typeof object.sequentialSegment !== "object")
+ throw TypeError(".google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation.sequentialSegment: object expected");
+ message.sequentialSegment = $root.google.cloud.datalabeling.v1beta1.SequentialSegment.fromObject(object.sequentialSegment);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a TextEntityExtractionAnnotation message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation
+ * @static
+ * @param {google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation} message TextEntityExtractionAnnotation
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ TextEntityExtractionAnnotation.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.annotationSpec = null;
+ object.sequentialSegment = null;
+ }
+ if (message.annotationSpec != null && message.hasOwnProperty("annotationSpec"))
+ object.annotationSpec = $root.google.cloud.datalabeling.v1beta1.AnnotationSpec.toObject(message.annotationSpec, options);
+ if (message.sequentialSegment != null && message.hasOwnProperty("sequentialSegment"))
+ object.sequentialSegment = $root.google.cloud.datalabeling.v1beta1.SequentialSegment.toObject(message.sequentialSegment, options);
+ return object;
+ };
+
+ /**
+ * Converts this TextEntityExtractionAnnotation to JSON.
+ * @function toJSON
+ * @memberof google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ TextEntityExtractionAnnotation.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for TextEntityExtractionAnnotation
+ * @function getTypeUrl
+ * @memberof google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ TextEntityExtractionAnnotation.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation";
+ };
+
+ return TextEntityExtractionAnnotation;
+ })();
+
+ v1beta1.SequentialSegment = (function() {
+
+ /**
+ * Properties of a SequentialSegment.
+ * @memberof google.cloud.datalabeling.v1beta1
+ * @interface ISequentialSegment
+ * @property {number|null} [start] SequentialSegment start
+ * @property {number|null} [end] SequentialSegment end
+ */
+
+ /**
+ * Constructs a new SequentialSegment.
+ * @memberof google.cloud.datalabeling.v1beta1
+ * @classdesc Represents a SequentialSegment.
+ * @implements ISequentialSegment
+ * @constructor
+ * @param {google.cloud.datalabeling.v1beta1.ISequentialSegment=} [properties] Properties to set
+ */
+ function SequentialSegment(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]];
+ }
+
+ /**
+ * SequentialSegment start.
+ * @member {number} start
+ * @memberof google.cloud.datalabeling.v1beta1.SequentialSegment
+ * @instance
+ */
+ SequentialSegment.prototype.start = 0;
+
+ /**
+ * SequentialSegment end.
+ * @member {number} end
+ * @memberof google.cloud.datalabeling.v1beta1.SequentialSegment
+ * @instance
+ */
+ SequentialSegment.prototype.end = 0;
+
+ /**
+ * Creates a new SequentialSegment instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.datalabeling.v1beta1.SequentialSegment
+ * @static
+ * @param {google.cloud.datalabeling.v1beta1.ISequentialSegment=} [properties] Properties to set
+ * @returns {google.cloud.datalabeling.v1beta1.SequentialSegment} SequentialSegment instance
+ */
+ SequentialSegment.create = function create(properties) {
+ return new SequentialSegment(properties);
+ };
+
+ /**
+ * Encodes the specified SequentialSegment message. Does not implicitly {@link google.cloud.datalabeling.v1beta1.SequentialSegment.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.datalabeling.v1beta1.SequentialSegment
+ * @static
+ * @param {google.cloud.datalabeling.v1beta1.ISequentialSegment} message SequentialSegment message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ SequentialSegment.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.start != null && Object.hasOwnProperty.call(message, "start"))
+ writer.uint32(/* id 1, wireType 0 =*/8).int32(message.start);
+ if (message.end != null && Object.hasOwnProperty.call(message, "end"))
+ writer.uint32(/* id 2, wireType 0 =*/16).int32(message.end);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified SequentialSegment message, length delimited. Does not implicitly {@link google.cloud.datalabeling.v1beta1.SequentialSegment.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.datalabeling.v1beta1.SequentialSegment
+ * @static
+ * @param {google.cloud.datalabeling.v1beta1.ISequentialSegment} message SequentialSegment message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ SequentialSegment.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a SequentialSegment message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.datalabeling.v1beta1.SequentialSegment
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.datalabeling.v1beta1.SequentialSegment} SequentialSegment
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ SequentialSegment.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.datalabeling.v1beta1.SequentialSegment();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.start = reader.int32();
+ break;
+ }
+ case 2: {
+ message.end = reader.int32();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a SequentialSegment message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.datalabeling.v1beta1.SequentialSegment
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.datalabeling.v1beta1.SequentialSegment} SequentialSegment
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ SequentialSegment.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a SequentialSegment message.
+ * @function verify
+ * @memberof google.cloud.datalabeling.v1beta1.SequentialSegment
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ SequentialSegment.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.start != null && message.hasOwnProperty("start"))
+ if (!$util.isInteger(message.start))
+ return "start: integer expected";
+ if (message.end != null && message.hasOwnProperty("end"))
+ if (!$util.isInteger(message.end))
+ return "end: integer expected";
+ return null;
+ };
+
+ /**
+ * Creates a SequentialSegment message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.datalabeling.v1beta1.SequentialSegment
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.datalabeling.v1beta1.SequentialSegment} SequentialSegment
+ */
+ SequentialSegment.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.datalabeling.v1beta1.SequentialSegment)
+ return object;
+ var message = new $root.google.cloud.datalabeling.v1beta1.SequentialSegment();
+ if (object.start != null)
+ message.start = object.start | 0;
+ if (object.end != null)
+ message.end = object.end | 0;
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a SequentialSegment message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.datalabeling.v1beta1.SequentialSegment
+ * @static
+ * @param {google.cloud.datalabeling.v1beta1.SequentialSegment} message SequentialSegment
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ SequentialSegment.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.start = 0;
+ object.end = 0;
+ }
+ if (message.start != null && message.hasOwnProperty("start"))
+ object.start = message.start;
+ if (message.end != null && message.hasOwnProperty("end"))
+ object.end = message.end;
+ return object;
+ };
+
+ /**
+ * Converts this SequentialSegment to JSON.
+ * @function toJSON
+ * @memberof google.cloud.datalabeling.v1beta1.SequentialSegment
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ SequentialSegment.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for SequentialSegment
+ * @function getTypeUrl
+ * @memberof google.cloud.datalabeling.v1beta1.SequentialSegment
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ SequentialSegment.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.datalabeling.v1beta1.SequentialSegment";
+ };
+
+ return SequentialSegment;
+ })();
+
+ v1beta1.TimeSegment = (function() {
+
+ /**
+ * Properties of a TimeSegment.
+ * @memberof google.cloud.datalabeling.v1beta1
+ * @interface ITimeSegment
+ * @property {google.protobuf.IDuration|null} [startTimeOffset] TimeSegment startTimeOffset
+ * @property {google.protobuf.IDuration|null} [endTimeOffset] TimeSegment endTimeOffset
+ */
+
+ /**
+ * Constructs a new TimeSegment.
+ * @memberof google.cloud.datalabeling.v1beta1
+ * @classdesc Represents a TimeSegment.
+ * @implements ITimeSegment
+ * @constructor
+ * @param {google.cloud.datalabeling.v1beta1.ITimeSegment=} [properties] Properties to set
+ */
+ function TimeSegment(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]];
+ }
+
+ /**
+ * TimeSegment startTimeOffset.
+ * @member {google.protobuf.IDuration|null|undefined} startTimeOffset
+ * @memberof google.cloud.datalabeling.v1beta1.TimeSegment
+ * @instance
+ */
+ TimeSegment.prototype.startTimeOffset = null;
+
+ /**
+ * TimeSegment endTimeOffset.
+ * @member {google.protobuf.IDuration|null|undefined} endTimeOffset
+ * @memberof google.cloud.datalabeling.v1beta1.TimeSegment
+ * @instance
+ */
+ TimeSegment.prototype.endTimeOffset = null;
+
+ /**
+ * Creates a new TimeSegment instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.datalabeling.v1beta1.TimeSegment
+ * @static
+ * @param {google.cloud.datalabeling.v1beta1.ITimeSegment=} [properties] Properties to set
+ * @returns {google.cloud.datalabeling.v1beta1.TimeSegment} TimeSegment instance
+ */
+ TimeSegment.create = function create(properties) {
+ return new TimeSegment(properties);
+ };
+
+ /**
+ * Encodes the specified TimeSegment message. Does not implicitly {@link google.cloud.datalabeling.v1beta1.TimeSegment.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.datalabeling.v1beta1.TimeSegment
+ * @static
+ * @param {google.cloud.datalabeling.v1beta1.ITimeSegment} message TimeSegment message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ TimeSegment.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.startTimeOffset != null && Object.hasOwnProperty.call(message, "startTimeOffset"))
+ $root.google.protobuf.Duration.encode(message.startTimeOffset, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
+ if (message.endTimeOffset != null && Object.hasOwnProperty.call(message, "endTimeOffset"))
+ $root.google.protobuf.Duration.encode(message.endTimeOffset, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified TimeSegment message, length delimited. Does not implicitly {@link google.cloud.datalabeling.v1beta1.TimeSegment.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.datalabeling.v1beta1.TimeSegment
+ * @static
+ * @param {google.cloud.datalabeling.v1beta1.ITimeSegment} message TimeSegment message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ TimeSegment.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a TimeSegment message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.datalabeling.v1beta1.TimeSegment
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.datalabeling.v1beta1.TimeSegment} TimeSegment
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ TimeSegment.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.datalabeling.v1beta1.TimeSegment();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.startTimeOffset = $root.google.protobuf.Duration.decode(reader, reader.uint32());
+ break;
+ }
+ case 2: {
+ message.endTimeOffset = $root.google.protobuf.Duration.decode(reader, reader.uint32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a TimeSegment message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.datalabeling.v1beta1.TimeSegment
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.datalabeling.v1beta1.TimeSegment} TimeSegment
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ TimeSegment.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a TimeSegment message.
+ * @function verify
+ * @memberof google.cloud.datalabeling.v1beta1.TimeSegment
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ TimeSegment.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.startTimeOffset != null && message.hasOwnProperty("startTimeOffset")) {
+ var error = $root.google.protobuf.Duration.verify(message.startTimeOffset);
+ if (error)
+ return "startTimeOffset." + error;
+ }
+ if (message.endTimeOffset != null && message.hasOwnProperty("endTimeOffset")) {
+ var error = $root.google.protobuf.Duration.verify(message.endTimeOffset);
+ if (error)
+ return "endTimeOffset." + error;
+ }
+ return null;
+ };
+
+ /**
+ * Creates a TimeSegment message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.datalabeling.v1beta1.TimeSegment
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.datalabeling.v1beta1.TimeSegment} TimeSegment
+ */
+ TimeSegment.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.datalabeling.v1beta1.TimeSegment)
+ return object;
+ var message = new $root.google.cloud.datalabeling.v1beta1.TimeSegment();
+ if (object.startTimeOffset != null) {
+ if (typeof object.startTimeOffset !== "object")
+ throw TypeError(".google.cloud.datalabeling.v1beta1.TimeSegment.startTimeOffset: object expected");
+ message.startTimeOffset = $root.google.protobuf.Duration.fromObject(object.startTimeOffset);
+ }
+ if (object.endTimeOffset != null) {
+ if (typeof object.endTimeOffset !== "object")
+ throw TypeError(".google.cloud.datalabeling.v1beta1.TimeSegment.endTimeOffset: object expected");
+ message.endTimeOffset = $root.google.protobuf.Duration.fromObject(object.endTimeOffset);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a TimeSegment message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.datalabeling.v1beta1.TimeSegment
+ * @static
+ * @param {google.cloud.datalabeling.v1beta1.TimeSegment} message TimeSegment
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ TimeSegment.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.startTimeOffset = null;
+ object.endTimeOffset = null;
+ }
+ if (message.startTimeOffset != null && message.hasOwnProperty("startTimeOffset"))
+ object.startTimeOffset = $root.google.protobuf.Duration.toObject(message.startTimeOffset, options);
+ if (message.endTimeOffset != null && message.hasOwnProperty("endTimeOffset"))
+ object.endTimeOffset = $root.google.protobuf.Duration.toObject(message.endTimeOffset, options);
+ return object;
+ };
+
+ /**
+ * Converts this TimeSegment to JSON.
+ * @function toJSON
+ * @memberof google.cloud.datalabeling.v1beta1.TimeSegment
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ TimeSegment.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for TimeSegment
+ * @function getTypeUrl
+ * @memberof google.cloud.datalabeling.v1beta1.TimeSegment
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ TimeSegment.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.datalabeling.v1beta1.TimeSegment";
+ };
+
+ return TimeSegment;
+ })();
+
+ v1beta1.VideoClassificationAnnotation = (function() {
+
+ /**
+ * Properties of a VideoClassificationAnnotation.
+ * @memberof google.cloud.datalabeling.v1beta1
+ * @interface IVideoClassificationAnnotation
+ * @property {google.cloud.datalabeling.v1beta1.ITimeSegment|null} [timeSegment] VideoClassificationAnnotation timeSegment
+ * @property {google.cloud.datalabeling.v1beta1.IAnnotationSpec|null} [annotationSpec] VideoClassificationAnnotation annotationSpec
+ */
+
+ /**
+ * Constructs a new VideoClassificationAnnotation.
+ * @memberof google.cloud.datalabeling.v1beta1
+ * @classdesc Represents a VideoClassificationAnnotation.
+ * @implements IVideoClassificationAnnotation
+ * @constructor
+ * @param {google.cloud.datalabeling.v1beta1.IVideoClassificationAnnotation=} [properties] Properties to set
+ */
+ function VideoClassificationAnnotation(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]];
+ }
+
+ /**
+ * VideoClassificationAnnotation timeSegment.
+ * @member {google.cloud.datalabeling.v1beta1.ITimeSegment|null|undefined} timeSegment
+ * @memberof google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation
+ * @instance
+ */
+ VideoClassificationAnnotation.prototype.timeSegment = null;
+
+ /**
+ * VideoClassificationAnnotation annotationSpec.
+ * @member {google.cloud.datalabeling.v1beta1.IAnnotationSpec|null|undefined} annotationSpec
+ * @memberof google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation
+ * @instance
+ */
+ VideoClassificationAnnotation.prototype.annotationSpec = null;
+
+ /**
+ * Creates a new VideoClassificationAnnotation instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation
+ * @static
+ * @param {google.cloud.datalabeling.v1beta1.IVideoClassificationAnnotation=} [properties] Properties to set
+ * @returns {google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation} VideoClassificationAnnotation instance
+ */
+ VideoClassificationAnnotation.create = function create(properties) {
+ return new VideoClassificationAnnotation(properties);
+ };
+
+ /**
+ * Encodes the specified VideoClassificationAnnotation message. Does not implicitly {@link google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation
+ * @static
+ * @param {google.cloud.datalabeling.v1beta1.IVideoClassificationAnnotation} message VideoClassificationAnnotation message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ VideoClassificationAnnotation.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.timeSegment != null && Object.hasOwnProperty.call(message, "timeSegment"))
+ $root.google.cloud.datalabeling.v1beta1.TimeSegment.encode(message.timeSegment, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
+ if (message.annotationSpec != null && Object.hasOwnProperty.call(message, "annotationSpec"))
+ $root.google.cloud.datalabeling.v1beta1.AnnotationSpec.encode(message.annotationSpec, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified VideoClassificationAnnotation message, length delimited. Does not implicitly {@link google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation
+ * @static
+ * @param {google.cloud.datalabeling.v1beta1.IVideoClassificationAnnotation} message VideoClassificationAnnotation message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ VideoClassificationAnnotation.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a VideoClassificationAnnotation message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation} VideoClassificationAnnotation
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ VideoClassificationAnnotation.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.datalabeling.v1beta1.VideoClassificationAnnotation();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.timeSegment = $root.google.cloud.datalabeling.v1beta1.TimeSegment.decode(reader, reader.uint32());
+ break;
+ }
+ case 2: {
+ message.annotationSpec = $root.google.cloud.datalabeling.v1beta1.AnnotationSpec.decode(reader, reader.uint32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a VideoClassificationAnnotation message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation} VideoClassificationAnnotation
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ VideoClassificationAnnotation.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a VideoClassificationAnnotation message.
+ * @function verify
+ * @memberof google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ VideoClassificationAnnotation.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.timeSegment != null && message.hasOwnProperty("timeSegment")) {
+ var error = $root.google.cloud.datalabeling.v1beta1.TimeSegment.verify(message.timeSegment);
+ if (error)
+ return "timeSegment." + error;
+ }
+ if (message.annotationSpec != null && message.hasOwnProperty("annotationSpec")) {
+ var error = $root.google.cloud.datalabeling.v1beta1.AnnotationSpec.verify(message.annotationSpec);
+ if (error)
+ return "annotationSpec." + error;
+ }
+ return null;
+ };
+
+ /**
+ * Creates a VideoClassificationAnnotation message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation} VideoClassificationAnnotation
+ */
+ VideoClassificationAnnotation.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation)
+ return object;
+ var message = new $root.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation();
+ if (object.timeSegment != null) {
+ if (typeof object.timeSegment !== "object")
+ throw TypeError(".google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation.timeSegment: object expected");
+ message.timeSegment = $root.google.cloud.datalabeling.v1beta1.TimeSegment.fromObject(object.timeSegment);
+ }
+ if (object.annotationSpec != null) {
+ if (typeof object.annotationSpec !== "object")
+ throw TypeError(".google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation.annotationSpec: object expected");
+ message.annotationSpec = $root.google.cloud.datalabeling.v1beta1.AnnotationSpec.fromObject(object.annotationSpec);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a VideoClassificationAnnotation message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation
+ * @static
+ * @param {google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation} message VideoClassificationAnnotation
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ VideoClassificationAnnotation.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.timeSegment = null;
+ object.annotationSpec = null;
+ }
+ if (message.timeSegment != null && message.hasOwnProperty("timeSegment"))
+ object.timeSegment = $root.google.cloud.datalabeling.v1beta1.TimeSegment.toObject(message.timeSegment, options);
+ if (message.annotationSpec != null && message.hasOwnProperty("annotationSpec"))
+ object.annotationSpec = $root.google.cloud.datalabeling.v1beta1.AnnotationSpec.toObject(message.annotationSpec, options);
+ return object;
+ };
+
+ /**
+ * Converts this VideoClassificationAnnotation to JSON.
+ * @function toJSON
+ * @memberof google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ VideoClassificationAnnotation.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for VideoClassificationAnnotation
+ * @function getTypeUrl
+ * @memberof google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ VideoClassificationAnnotation.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation";
+ };
+
+ return VideoClassificationAnnotation;
+ })();
+
+ v1beta1.ObjectTrackingFrame = (function() {
+
+ /**
+ * Properties of an ObjectTrackingFrame.
+ * @memberof google.cloud.datalabeling.v1beta1
+ * @interface IObjectTrackingFrame
+ * @property {google.cloud.datalabeling.v1beta1.IBoundingPoly|null} [boundingPoly] ObjectTrackingFrame boundingPoly
+ * @property {google.cloud.datalabeling.v1beta1.INormalizedBoundingPoly|null} [normalizedBoundingPoly] ObjectTrackingFrame normalizedBoundingPoly
+ * @property {google.protobuf.IDuration|null} [timeOffset] ObjectTrackingFrame timeOffset
+ */
+
+ /**
+ * Constructs a new ObjectTrackingFrame.
+ * @memberof google.cloud.datalabeling.v1beta1
+ * @classdesc Represents an ObjectTrackingFrame.
+ * @implements IObjectTrackingFrame
+ * @constructor
+ * @param {google.cloud.datalabeling.v1beta1.IObjectTrackingFrame=} [properties] Properties to set
+ */
+ function ObjectTrackingFrame(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]];
+ }
+
+ /**
+ * ObjectTrackingFrame boundingPoly.
+ * @member {google.cloud.datalabeling.v1beta1.IBoundingPoly|null|undefined} boundingPoly
+ * @memberof google.cloud.datalabeling.v1beta1.ObjectTrackingFrame
+ * @instance
+ */
+ ObjectTrackingFrame.prototype.boundingPoly = null;
+
+ /**
+ * ObjectTrackingFrame normalizedBoundingPoly.
+ * @member {google.cloud.datalabeling.v1beta1.INormalizedBoundingPoly|null|undefined} normalizedBoundingPoly
+ * @memberof google.cloud.datalabeling.v1beta1.ObjectTrackingFrame
+ * @instance
+ */
+ ObjectTrackingFrame.prototype.normalizedBoundingPoly = null;
+
+ /**
+ * ObjectTrackingFrame timeOffset.
+ * @member {google.protobuf.IDuration|null|undefined} timeOffset
+ * @memberof google.cloud.datalabeling.v1beta1.ObjectTrackingFrame
+ * @instance
+ */
+ ObjectTrackingFrame.prototype.timeOffset = null;
+
+ // OneOf field names bound to virtual getters and setters
+ var $oneOfFields;
+
+ /**
+ * ObjectTrackingFrame boundedArea.
+ * @member {"boundingPoly"|"normalizedBoundingPoly"|undefined} boundedArea
+ * @memberof google.cloud.datalabeling.v1beta1.ObjectTrackingFrame
+ * @instance
+ */
+ Object.defineProperty(ObjectTrackingFrame.prototype, "boundedArea", {
+ get: $util.oneOfGetter($oneOfFields = ["boundingPoly", "normalizedBoundingPoly"]),
+ set: $util.oneOfSetter($oneOfFields)
+ });
+
+ /**
+ * Creates a new ObjectTrackingFrame instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.datalabeling.v1beta1.ObjectTrackingFrame
+ * @static
+ * @param {google.cloud.datalabeling.v1beta1.IObjectTrackingFrame=} [properties] Properties to set
+ * @returns {google.cloud.datalabeling.v1beta1.ObjectTrackingFrame} ObjectTrackingFrame instance
+ */
+ ObjectTrackingFrame.create = function create(properties) {
+ return new ObjectTrackingFrame(properties);
+ };
+
+ /**
+ * Encodes the specified ObjectTrackingFrame message. Does not implicitly {@link google.cloud.datalabeling.v1beta1.ObjectTrackingFrame.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.datalabeling.v1beta1.ObjectTrackingFrame
+ * @static
+ * @param {google.cloud.datalabeling.v1beta1.IObjectTrackingFrame} message ObjectTrackingFrame message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ObjectTrackingFrame.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.boundingPoly != null && Object.hasOwnProperty.call(message, "boundingPoly"))
+ $root.google.cloud.datalabeling.v1beta1.BoundingPoly.encode(message.boundingPoly, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
+ if (message.normalizedBoundingPoly != null && Object.hasOwnProperty.call(message, "normalizedBoundingPoly"))
+ $root.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly.encode(message.normalizedBoundingPoly, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
+ if (message.timeOffset != null && Object.hasOwnProperty.call(message, "timeOffset"))
+ $root.google.protobuf.Duration.encode(message.timeOffset, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ObjectTrackingFrame message, length delimited. Does not implicitly {@link google.cloud.datalabeling.v1beta1.ObjectTrackingFrame.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.datalabeling.v1beta1.ObjectTrackingFrame
+ * @static
+ * @param {google.cloud.datalabeling.v1beta1.IObjectTrackingFrame} message ObjectTrackingFrame message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ObjectTrackingFrame.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes an ObjectTrackingFrame message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.datalabeling.v1beta1.ObjectTrackingFrame
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.datalabeling.v1beta1.ObjectTrackingFrame} ObjectTrackingFrame
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ObjectTrackingFrame.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.datalabeling.v1beta1.ObjectTrackingFrame();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.boundingPoly = $root.google.cloud.datalabeling.v1beta1.BoundingPoly.decode(reader, reader.uint32());
+ break;
+ }
+ case 2: {
+ message.normalizedBoundingPoly = $root.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly.decode(reader, reader.uint32());
+ break;
+ }
+ case 3: {
+ message.timeOffset = $root.google.protobuf.Duration.decode(reader, reader.uint32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an ObjectTrackingFrame message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.datalabeling.v1beta1.ObjectTrackingFrame
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.datalabeling.v1beta1.ObjectTrackingFrame} ObjectTrackingFrame
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ObjectTrackingFrame.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an ObjectTrackingFrame message.
+ * @function verify
+ * @memberof google.cloud.datalabeling.v1beta1.ObjectTrackingFrame
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ObjectTrackingFrame.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ var properties = {};
+ if (message.boundingPoly != null && message.hasOwnProperty("boundingPoly")) {
+ properties.boundedArea = 1;
+ {
+ var error = $root.google.cloud.datalabeling.v1beta1.BoundingPoly.verify(message.boundingPoly);
+ if (error)
+ return "boundingPoly." + error;
+ }
+ }
+ if (message.normalizedBoundingPoly != null && message.hasOwnProperty("normalizedBoundingPoly")) {
+ if (properties.boundedArea === 1)
+ return "boundedArea: multiple values";
+ properties.boundedArea = 1;
+ {
+ var error = $root.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly.verify(message.normalizedBoundingPoly);
+ if (error)
+ return "normalizedBoundingPoly." + error;
+ }
+ }
+ if (message.timeOffset != null && message.hasOwnProperty("timeOffset")) {
+ var error = $root.google.protobuf.Duration.verify(message.timeOffset);
+ if (error)
+ return "timeOffset." + error;
+ }
+ return null;
+ };
+
+ /**
+ * Creates an ObjectTrackingFrame message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.datalabeling.v1beta1.ObjectTrackingFrame
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.datalabeling.v1beta1.ObjectTrackingFrame} ObjectTrackingFrame
+ */
+ ObjectTrackingFrame.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame)
+ return object;
+ var message = new $root.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame();
+ if (object.boundingPoly != null) {
+ if (typeof object.boundingPoly !== "object")
+ throw TypeError(".google.cloud.datalabeling.v1beta1.ObjectTrackingFrame.boundingPoly: object expected");
+ message.boundingPoly = $root.google.cloud.datalabeling.v1beta1.BoundingPoly.fromObject(object.boundingPoly);
+ }
+ if (object.normalizedBoundingPoly != null) {
+ if (typeof object.normalizedBoundingPoly !== "object")
+ throw TypeError(".google.cloud.datalabeling.v1beta1.ObjectTrackingFrame.normalizedBoundingPoly: object expected");
+ message.normalizedBoundingPoly = $root.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly.fromObject(object.normalizedBoundingPoly);
+ }
+ if (object.timeOffset != null) {
+ if (typeof object.timeOffset !== "object")
+ throw TypeError(".google.cloud.datalabeling.v1beta1.ObjectTrackingFrame.timeOffset: object expected");
+ message.timeOffset = $root.google.protobuf.Duration.fromObject(object.timeOffset);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an ObjectTrackingFrame message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.datalabeling.v1beta1.ObjectTrackingFrame
+ * @static
+ * @param {google.cloud.datalabeling.v1beta1.ObjectTrackingFrame} message ObjectTrackingFrame
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ObjectTrackingFrame.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults)
+ object.timeOffset = null;
+ if (message.boundingPoly != null && message.hasOwnProperty("boundingPoly")) {
+ object.boundingPoly = $root.google.cloud.datalabeling.v1beta1.BoundingPoly.toObject(message.boundingPoly, options);
+ if (options.oneofs)
+ object.boundedArea = "boundingPoly";
+ }
+ if (message.normalizedBoundingPoly != null && message.hasOwnProperty("normalizedBoundingPoly")) {
+ object.normalizedBoundingPoly = $root.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly.toObject(message.normalizedBoundingPoly, options);
+ if (options.oneofs)
+ object.boundedArea = "normalizedBoundingPoly";
+ }
+ if (message.timeOffset != null && message.hasOwnProperty("timeOffset"))
+ object.timeOffset = $root.google.protobuf.Duration.toObject(message.timeOffset, options);
+ return object;
+ };
+
+ /**
+ * Converts this ObjectTrackingFrame to JSON.
+ * @function toJSON
+ * @memberof google.cloud.datalabeling.v1beta1.ObjectTrackingFrame
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ObjectTrackingFrame.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ObjectTrackingFrame
+ * @function getTypeUrl
+ * @memberof google.cloud.datalabeling.v1beta1.ObjectTrackingFrame
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ObjectTrackingFrame.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.datalabeling.v1beta1.ObjectTrackingFrame";
+ };
+
+ return ObjectTrackingFrame;
+ })();
+
+ v1beta1.VideoObjectTrackingAnnotation = (function() {
+
+ /**
+ * Properties of a VideoObjectTrackingAnnotation.
+ * @memberof google.cloud.datalabeling.v1beta1
+ * @interface IVideoObjectTrackingAnnotation
+ * @property {google.cloud.datalabeling.v1beta1.IAnnotationSpec|null} [annotationSpec] VideoObjectTrackingAnnotation annotationSpec
+ * @property {google.cloud.datalabeling.v1beta1.ITimeSegment|null} [timeSegment] VideoObjectTrackingAnnotation timeSegment
+ * @property {Array.|null} [objectTrackingFrames] VideoObjectTrackingAnnotation objectTrackingFrames
+ */
+
+ /**
+ * Constructs a new VideoObjectTrackingAnnotation.
+ * @memberof google.cloud.datalabeling.v1beta1
+ * @classdesc Represents a VideoObjectTrackingAnnotation.
+ * @implements IVideoObjectTrackingAnnotation
+ * @constructor
+ * @param {google.cloud.datalabeling.v1beta1.IVideoObjectTrackingAnnotation=} [properties] Properties to set
+ */
+ function VideoObjectTrackingAnnotation(properties) {
+ this.objectTrackingFrames = [];
+ 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]];
+ }
+
+ /**
+ * VideoObjectTrackingAnnotation annotationSpec.
+ * @member {google.cloud.datalabeling.v1beta1.IAnnotationSpec|null|undefined} annotationSpec
+ * @memberof google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation
+ * @instance
+ */
+ VideoObjectTrackingAnnotation.prototype.annotationSpec = null;
+
+ /**
+ * VideoObjectTrackingAnnotation timeSegment.
+ * @member {google.cloud.datalabeling.v1beta1.ITimeSegment|null|undefined} timeSegment
+ * @memberof google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation
+ * @instance
+ */
+ VideoObjectTrackingAnnotation.prototype.timeSegment = null;
+
+ /**
+ * VideoObjectTrackingAnnotation objectTrackingFrames.
+ * @member {Array.} objectTrackingFrames
+ * @memberof google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation
+ * @instance
+ */
+ VideoObjectTrackingAnnotation.prototype.objectTrackingFrames = $util.emptyArray;
+
+ /**
+ * Creates a new VideoObjectTrackingAnnotation instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation
+ * @static
+ * @param {google.cloud.datalabeling.v1beta1.IVideoObjectTrackingAnnotation=} [properties] Properties to set
+ * @returns {google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation} VideoObjectTrackingAnnotation instance
+ */
+ VideoObjectTrackingAnnotation.create = function create(properties) {
+ return new VideoObjectTrackingAnnotation(properties);
+ };
+
+ /**
+ * Encodes the specified VideoObjectTrackingAnnotation message. Does not implicitly {@link google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation
+ * @static
+ * @param {google.cloud.datalabeling.v1beta1.IVideoObjectTrackingAnnotation} message VideoObjectTrackingAnnotation message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ VideoObjectTrackingAnnotation.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.annotationSpec != null && Object.hasOwnProperty.call(message, "annotationSpec"))
+ $root.google.cloud.datalabeling.v1beta1.AnnotationSpec.encode(message.annotationSpec, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
+ if (message.timeSegment != null && Object.hasOwnProperty.call(message, "timeSegment"))
+ $root.google.cloud.datalabeling.v1beta1.TimeSegment.encode(message.timeSegment, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
+ if (message.objectTrackingFrames != null && message.objectTrackingFrames.length)
+ for (var i = 0; i < message.objectTrackingFrames.length; ++i)
+ $root.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame.encode(message.objectTrackingFrames[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified VideoObjectTrackingAnnotation message, length delimited. Does not implicitly {@link google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation
+ * @static
+ * @param {google.cloud.datalabeling.v1beta1.IVideoObjectTrackingAnnotation} message VideoObjectTrackingAnnotation message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ VideoObjectTrackingAnnotation.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a VideoObjectTrackingAnnotation message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation} VideoObjectTrackingAnnotation
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ VideoObjectTrackingAnnotation.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.datalabeling.v1beta1.VideoObjectTrackingAnnotation();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.annotationSpec = $root.google.cloud.datalabeling.v1beta1.AnnotationSpec.decode(reader, reader.uint32());
+ break;
+ }
+ case 2: {
+ message.timeSegment = $root.google.cloud.datalabeling.v1beta1.TimeSegment.decode(reader, reader.uint32());
+ break;
+ }
+ case 3: {
+ if (!(message.objectTrackingFrames && message.objectTrackingFrames.length))
+ message.objectTrackingFrames = [];
+ message.objectTrackingFrames.push($root.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame.decode(reader, reader.uint32()));
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a VideoObjectTrackingAnnotation message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation} VideoObjectTrackingAnnotation
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ VideoObjectTrackingAnnotation.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a VideoObjectTrackingAnnotation message.
+ * @function verify
+ * @memberof google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ VideoObjectTrackingAnnotation.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.annotationSpec != null && message.hasOwnProperty("annotationSpec")) {
+ var error = $root.google.cloud.datalabeling.v1beta1.AnnotationSpec.verify(message.annotationSpec);
+ if (error)
+ return "annotationSpec." + error;
+ }
+ if (message.timeSegment != null && message.hasOwnProperty("timeSegment")) {
+ var error = $root.google.cloud.datalabeling.v1beta1.TimeSegment.verify(message.timeSegment);
+ if (error)
+ return "timeSegment." + error;
+ }
+ if (message.objectTrackingFrames != null && message.hasOwnProperty("objectTrackingFrames")) {
+ if (!Array.isArray(message.objectTrackingFrames))
+ return "objectTrackingFrames: array expected";
+ for (var i = 0; i < message.objectTrackingFrames.length; ++i) {
+ var error = $root.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame.verify(message.objectTrackingFrames[i]);
+ if (error)
+ return "objectTrackingFrames." + error;
+ }
+ }
+ return null;
+ };
+
+ /**
+ * Creates a VideoObjectTrackingAnnotation message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation} VideoObjectTrackingAnnotation
+ */
+ VideoObjectTrackingAnnotation.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation)
+ return object;
+ var message = new $root.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation();
+ if (object.annotationSpec != null) {
+ if (typeof object.annotationSpec !== "object")
+ throw TypeError(".google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation.annotationSpec: object expected");
+ message.annotationSpec = $root.google.cloud.datalabeling.v1beta1.AnnotationSpec.fromObject(object.annotationSpec);
+ }
+ if (object.timeSegment != null) {
+ if (typeof object.timeSegment !== "object")
+ throw TypeError(".google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation.timeSegment: object expected");
+ message.timeSegment = $root.google.cloud.datalabeling.v1beta1.TimeSegment.fromObject(object.timeSegment);
+ }
+ if (object.objectTrackingFrames) {
+ if (!Array.isArray(object.objectTrackingFrames))
+ throw TypeError(".google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation.objectTrackingFrames: array expected");
+ message.objectTrackingFrames = [];
+ for (var i = 0; i < object.objectTrackingFrames.length; ++i) {
+ if (typeof object.objectTrackingFrames[i] !== "object")
+ throw TypeError(".google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation.objectTrackingFrames: object expected");
+ message.objectTrackingFrames[i] = $root.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame.fromObject(object.objectTrackingFrames[i]);
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a VideoObjectTrackingAnnotation message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation
+ * @static
+ * @param {google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation} message VideoObjectTrackingAnnotation
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ VideoObjectTrackingAnnotation.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.objectTrackingFrames = [];
+ if (options.defaults) {
+ object.annotationSpec = null;
+ object.timeSegment = null;
+ }
+ if (message.annotationSpec != null && message.hasOwnProperty("annotationSpec"))
+ object.annotationSpec = $root.google.cloud.datalabeling.v1beta1.AnnotationSpec.toObject(message.annotationSpec, options);
+ if (message.timeSegment != null && message.hasOwnProperty("timeSegment"))
+ object.timeSegment = $root.google.cloud.datalabeling.v1beta1.TimeSegment.toObject(message.timeSegment, options);
+ if (message.objectTrackingFrames && message.objectTrackingFrames.length) {
+ object.objectTrackingFrames = [];
+ for (var j = 0; j < message.objectTrackingFrames.length; ++j)
+ object.objectTrackingFrames[j] = $root.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame.toObject(message.objectTrackingFrames[j], options);
+ }
+ return object;
+ };
+
+ /**
+ * Converts this VideoObjectTrackingAnnotation to JSON.
+ * @function toJSON
+ * @memberof google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ VideoObjectTrackingAnnotation.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for VideoObjectTrackingAnnotation
+ * @function getTypeUrl
+ * @memberof google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ VideoObjectTrackingAnnotation.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation";
+ };
+
+ return VideoObjectTrackingAnnotation;
+ })();
+
+ v1beta1.VideoEventAnnotation = (function() {
+
+ /**
+ * Properties of a VideoEventAnnotation.
+ * @memberof google.cloud.datalabeling.v1beta1
+ * @interface IVideoEventAnnotation
+ * @property {google.cloud.datalabeling.v1beta1.IAnnotationSpec|null} [annotationSpec] VideoEventAnnotation annotationSpec
+ * @property {google.cloud.datalabeling.v1beta1.ITimeSegment|null} [timeSegment] VideoEventAnnotation timeSegment
+ */
+
+ /**
+ * Constructs a new VideoEventAnnotation.
+ * @memberof google.cloud.datalabeling.v1beta1
+ * @classdesc Represents a VideoEventAnnotation.
+ * @implements IVideoEventAnnotation
+ * @constructor
+ * @param {google.cloud.datalabeling.v1beta1.IVideoEventAnnotation=} [properties] Properties to set
+ */
+ function VideoEventAnnotation(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]];
+ }
+
+ /**
+ * VideoEventAnnotation annotationSpec.
+ * @member {google.cloud.datalabeling.v1beta1.IAnnotationSpec|null|undefined} annotationSpec
+ * @memberof google.cloud.datalabeling.v1beta1.VideoEventAnnotation
+ * @instance
+ */
+ VideoEventAnnotation.prototype.annotationSpec = null;
+
+ /**
+ * VideoEventAnnotation timeSegment.
+ * @member {google.cloud.datalabeling.v1beta1.ITimeSegment|null|undefined} timeSegment
+ * @memberof google.cloud.datalabeling.v1beta1.VideoEventAnnotation
+ * @instance
+ */
+ VideoEventAnnotation.prototype.timeSegment = null;
+
+ /**
+ * Creates a new VideoEventAnnotation instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.datalabeling.v1beta1.VideoEventAnnotation
+ * @static
+ * @param {google.cloud.datalabeling.v1beta1.IVideoEventAnnotation=} [properties] Properties to set
+ * @returns {google.cloud.datalabeling.v1beta1.VideoEventAnnotation} VideoEventAnnotation instance
+ */
+ VideoEventAnnotation.create = function create(properties) {
+ return new VideoEventAnnotation(properties);
+ };
+
+ /**
+ * Encodes the specified VideoEventAnnotation message. Does not implicitly {@link google.cloud.datalabeling.v1beta1.VideoEventAnnotation.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.datalabeling.v1beta1.VideoEventAnnotation
+ * @static
+ * @param {google.cloud.datalabeling.v1beta1.IVideoEventAnnotation} message VideoEventAnnotation message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ VideoEventAnnotation.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.annotationSpec != null && Object.hasOwnProperty.call(message, "annotationSpec"))
+ $root.google.cloud.datalabeling.v1beta1.AnnotationSpec.encode(message.annotationSpec, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
+ if (message.timeSegment != null && Object.hasOwnProperty.call(message, "timeSegment"))
+ $root.google.cloud.datalabeling.v1beta1.TimeSegment.encode(message.timeSegment, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified VideoEventAnnotation message, length delimited. Does not implicitly {@link google.cloud.datalabeling.v1beta1.VideoEventAnnotation.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.datalabeling.v1beta1.VideoEventAnnotation
+ * @static
+ * @param {google.cloud.datalabeling.v1beta1.IVideoEventAnnotation} message VideoEventAnnotation message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ VideoEventAnnotation.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a VideoEventAnnotation message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.datalabeling.v1beta1.VideoEventAnnotation
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.datalabeling.v1beta1.VideoEventAnnotation} VideoEventAnnotation
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ VideoEventAnnotation.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.datalabeling.v1beta1.VideoEventAnnotation();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.annotationSpec = $root.google.cloud.datalabeling.v1beta1.AnnotationSpec.decode(reader, reader.uint32());
+ break;
+ }
+ case 2: {
+ message.timeSegment = $root.google.cloud.datalabeling.v1beta1.TimeSegment.decode(reader, reader.uint32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a VideoEventAnnotation message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.datalabeling.v1beta1.VideoEventAnnotation
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.datalabeling.v1beta1.VideoEventAnnotation} VideoEventAnnotation
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ VideoEventAnnotation.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a VideoEventAnnotation message.
+ * @function verify
+ * @memberof google.cloud.datalabeling.v1beta1.VideoEventAnnotation
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ VideoEventAnnotation.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.annotationSpec != null && message.hasOwnProperty("annotationSpec")) {
+ var error = $root.google.cloud.datalabeling.v1beta1.AnnotationSpec.verify(message.annotationSpec);
+ if (error)
+ return "annotationSpec." + error;
+ }
+ if (message.timeSegment != null && message.hasOwnProperty("timeSegment")) {
+ var error = $root.google.cloud.datalabeling.v1beta1.TimeSegment.verify(message.timeSegment);
+ if (error)
+ return "timeSegment." + error;
+ }
+ return null;
+ };
+
+ /**
+ * Creates a VideoEventAnnotation message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.datalabeling.v1beta1.VideoEventAnnotation
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.datalabeling.v1beta1.VideoEventAnnotation} VideoEventAnnotation
+ */
+ VideoEventAnnotation.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.datalabeling.v1beta1.VideoEventAnnotation)
+ return object;
+ var message = new $root.google.cloud.datalabeling.v1beta1.VideoEventAnnotation();
+ if (object.annotationSpec != null) {
+ if (typeof object.annotationSpec !== "object")
+ throw TypeError(".google.cloud.datalabeling.v1beta1.VideoEventAnnotation.annotationSpec: object expected");
+ message.annotationSpec = $root.google.cloud.datalabeling.v1beta1.AnnotationSpec.fromObject(object.annotationSpec);
+ }
+ if (object.timeSegment != null) {
+ if (typeof object.timeSegment !== "object")
+ throw TypeError(".google.cloud.datalabeling.v1beta1.VideoEventAnnotation.timeSegment: object expected");
+ message.timeSegment = $root.google.cloud.datalabeling.v1beta1.TimeSegment.fromObject(object.timeSegment);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a VideoEventAnnotation message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.datalabeling.v1beta1.VideoEventAnnotation
+ * @static
+ * @param {google.cloud.datalabeling.v1beta1.VideoEventAnnotation} message VideoEventAnnotation
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ VideoEventAnnotation.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.annotationSpec = null;
+ object.timeSegment = null;
+ }
+ if (message.annotationSpec != null && message.hasOwnProperty("annotationSpec"))
+ object.annotationSpec = $root.google.cloud.datalabeling.v1beta1.AnnotationSpec.toObject(message.annotationSpec, options);
+ if (message.timeSegment != null && message.hasOwnProperty("timeSegment"))
+ object.timeSegment = $root.google.cloud.datalabeling.v1beta1.TimeSegment.toObject(message.timeSegment, options);
+ return object;
+ };
+
+ /**
+ * Converts this VideoEventAnnotation to JSON.
+ * @function toJSON
+ * @memberof google.cloud.datalabeling.v1beta1.VideoEventAnnotation
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ VideoEventAnnotation.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for VideoEventAnnotation
+ * @function getTypeUrl
+ * @memberof google.cloud.datalabeling.v1beta1.VideoEventAnnotation
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ VideoEventAnnotation.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.datalabeling.v1beta1.VideoEventAnnotation";
+ };
+
+ return VideoEventAnnotation;
+ })();
+
+ v1beta1.AnnotationMetadata = (function() {
+
+ /**
+ * Properties of an AnnotationMetadata.
+ * @memberof google.cloud.datalabeling.v1beta1
+ * @interface IAnnotationMetadata
+ * @property {google.cloud.datalabeling.v1beta1.IOperatorMetadata|null} [operatorMetadata] AnnotationMetadata operatorMetadata
+ */
+
+ /**
+ * Constructs a new AnnotationMetadata.
+ * @memberof google.cloud.datalabeling.v1beta1
+ * @classdesc Represents an AnnotationMetadata.
+ * @implements IAnnotationMetadata
+ * @constructor
+ * @param {google.cloud.datalabeling.v1beta1.IAnnotationMetadata=} [properties] Properties to set
+ */
+ function AnnotationMetadata(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]];
+ }
+
+ /**
+ * AnnotationMetadata operatorMetadata.
+ * @member {google.cloud.datalabeling.v1beta1.IOperatorMetadata|null|undefined} operatorMetadata
+ * @memberof google.cloud.datalabeling.v1beta1.AnnotationMetadata
+ * @instance
+ */
+ AnnotationMetadata.prototype.operatorMetadata = null;
+
+ /**
+ * Creates a new AnnotationMetadata instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.datalabeling.v1beta1.AnnotationMetadata
+ * @static
+ * @param {google.cloud.datalabeling.v1beta1.IAnnotationMetadata=} [properties] Properties to set
+ * @returns {google.cloud.datalabeling.v1beta1.AnnotationMetadata} AnnotationMetadata instance
+ */
+ AnnotationMetadata.create = function create(properties) {
+ return new AnnotationMetadata(properties);
+ };
+
+ /**
+ * Encodes the specified AnnotationMetadata message. Does not implicitly {@link google.cloud.datalabeling.v1beta1.AnnotationMetadata.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.datalabeling.v1beta1.AnnotationMetadata
+ * @static
+ * @param {google.cloud.datalabeling.v1beta1.IAnnotationMetadata} message AnnotationMetadata message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ AnnotationMetadata.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.operatorMetadata != null && Object.hasOwnProperty.call(message, "operatorMetadata"))
+ $root.google.cloud.datalabeling.v1beta1.OperatorMetadata.encode(message.operatorMetadata, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified AnnotationMetadata message, length delimited. Does not implicitly {@link google.cloud.datalabeling.v1beta1.AnnotationMetadata.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.datalabeling.v1beta1.AnnotationMetadata
+ * @static
+ * @param {google.cloud.datalabeling.v1beta1.IAnnotationMetadata} message AnnotationMetadata message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ AnnotationMetadata.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes an AnnotationMetadata message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.datalabeling.v1beta1.AnnotationMetadata
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.datalabeling.v1beta1.AnnotationMetadata} AnnotationMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ AnnotationMetadata.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.datalabeling.v1beta1.AnnotationMetadata();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 2: {
+ message.operatorMetadata = $root.google.cloud.datalabeling.v1beta1.OperatorMetadata.decode(reader, reader.uint32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an AnnotationMetadata message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.datalabeling.v1beta1.AnnotationMetadata
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.datalabeling.v1beta1.AnnotationMetadata} AnnotationMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ AnnotationMetadata.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an AnnotationMetadata message.
+ * @function verify
+ * @memberof google.cloud.datalabeling.v1beta1.AnnotationMetadata
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ AnnotationMetadata.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.operatorMetadata != null && message.hasOwnProperty("operatorMetadata")) {
+ var error = $root.google.cloud.datalabeling.v1beta1.OperatorMetadata.verify(message.operatorMetadata);
+ if (error)
+ return "operatorMetadata." + error;
+ }
+ return null;
+ };
+
+ /**
+ * Creates an AnnotationMetadata message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.datalabeling.v1beta1.AnnotationMetadata
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.datalabeling.v1beta1.AnnotationMetadata} AnnotationMetadata
+ */
+ AnnotationMetadata.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.datalabeling.v1beta1.AnnotationMetadata)
+ return object;
+ var message = new $root.google.cloud.datalabeling.v1beta1.AnnotationMetadata();
+ if (object.operatorMetadata != null) {
+ if (typeof object.operatorMetadata !== "object")
+ throw TypeError(".google.cloud.datalabeling.v1beta1.AnnotationMetadata.operatorMetadata: object expected");
+ message.operatorMetadata = $root.google.cloud.datalabeling.v1beta1.OperatorMetadata.fromObject(object.operatorMetadata);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an AnnotationMetadata message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.datalabeling.v1beta1.AnnotationMetadata
+ * @static
+ * @param {google.cloud.datalabeling.v1beta1.AnnotationMetadata} message AnnotationMetadata
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ AnnotationMetadata.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults)
+ object.operatorMetadata = null;
+ if (message.operatorMetadata != null && message.hasOwnProperty("operatorMetadata"))
+ object.operatorMetadata = $root.google.cloud.datalabeling.v1beta1.OperatorMetadata.toObject(message.operatorMetadata, options);
+ return object;
+ };
+
+ /**
+ * Converts this AnnotationMetadata to JSON.
+ * @function toJSON
+ * @memberof google.cloud.datalabeling.v1beta1.AnnotationMetadata
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ AnnotationMetadata.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for AnnotationMetadata
+ * @function getTypeUrl
+ * @memberof google.cloud.datalabeling.v1beta1.AnnotationMetadata
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ AnnotationMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.datalabeling.v1beta1.AnnotationMetadata";
+ };
+
+ return AnnotationMetadata;
+ })();
+
+ v1beta1.OperatorMetadata = (function() {
+
+ /**
+ * Properties of an OperatorMetadata.
+ * @memberof google.cloud.datalabeling.v1beta1
+ * @interface IOperatorMetadata
+ * @property {number|null} [score] OperatorMetadata score
+ * @property {number|null} [totalVotes] OperatorMetadata totalVotes
+ * @property {number|null} [labelVotes] OperatorMetadata labelVotes
+ * @property {Array.|null} [comments] OperatorMetadata comments
+ */
+
+ /**
+ * Constructs a new OperatorMetadata.
+ * @memberof google.cloud.datalabeling.v1beta1
+ * @classdesc Represents an OperatorMetadata.
+ * @implements IOperatorMetadata
+ * @constructor
+ * @param {google.cloud.datalabeling.v1beta1.IOperatorMetadata=} [properties] Properties to set
+ */
+ function OperatorMetadata(properties) {
+ this.comments = [];
+ 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]];
+ }
+
+ /**
+ * OperatorMetadata score.
+ * @member {number} score
+ * @memberof google.cloud.datalabeling.v1beta1.OperatorMetadata
+ * @instance
+ */
+ OperatorMetadata.prototype.score = 0;
+
+ /**
+ * OperatorMetadata totalVotes.
+ * @member {number} totalVotes
+ * @memberof google.cloud.datalabeling.v1beta1.OperatorMetadata
+ * @instance
+ */
+ OperatorMetadata.prototype.totalVotes = 0;
+
+ /**
+ * OperatorMetadata labelVotes.
+ * @member {number} labelVotes
+ * @memberof google.cloud.datalabeling.v1beta1.OperatorMetadata
+ * @instance
+ */
+ OperatorMetadata.prototype.labelVotes = 0;
+
+ /**
+ * OperatorMetadata comments.
+ * @member {Array.} comments
+ * @memberof google.cloud.datalabeling.v1beta1.OperatorMetadata
+ * @instance
+ */
+ OperatorMetadata.prototype.comments = $util.emptyArray;
+
+ /**
+ * Creates a new OperatorMetadata instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.datalabeling.v1beta1.OperatorMetadata
+ * @static
+ * @param {google.cloud.datalabeling.v1beta1.IOperatorMetadata=} [properties] Properties to set
+ * @returns {google.cloud.datalabeling.v1beta1.OperatorMetadata} OperatorMetadata instance
+ */
+ OperatorMetadata.create = function create(properties) {
+ return new OperatorMetadata(properties);
+ };
+
+ /**
+ * Encodes the specified OperatorMetadata message. Does not implicitly {@link google.cloud.datalabeling.v1beta1.OperatorMetadata.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.datalabeling.v1beta1.OperatorMetadata
+ * @static
+ * @param {google.cloud.datalabeling.v1beta1.IOperatorMetadata} message OperatorMetadata message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ OperatorMetadata.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.score != null && Object.hasOwnProperty.call(message, "score"))
+ writer.uint32(/* id 1, wireType 5 =*/13).float(message.score);
+ if (message.totalVotes != null && Object.hasOwnProperty.call(message, "totalVotes"))
+ writer.uint32(/* id 2, wireType 0 =*/16).int32(message.totalVotes);
+ if (message.labelVotes != null && Object.hasOwnProperty.call(message, "labelVotes"))
+ writer.uint32(/* id 3, wireType 0 =*/24).int32(message.labelVotes);
+ if (message.comments != null && message.comments.length)
+ for (var i = 0; i < message.comments.length; ++i)
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.comments[i]);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified OperatorMetadata message, length delimited. Does not implicitly {@link google.cloud.datalabeling.v1beta1.OperatorMetadata.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.datalabeling.v1beta1.OperatorMetadata
+ * @static
+ * @param {google.cloud.datalabeling.v1beta1.IOperatorMetadata} message OperatorMetadata message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ OperatorMetadata.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes an OperatorMetadata message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.datalabeling.v1beta1.OperatorMetadata
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.datalabeling.v1beta1.OperatorMetadata} OperatorMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ OperatorMetadata.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.datalabeling.v1beta1.OperatorMetadata();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.score = reader.float();
+ break;
+ }
+ case 2: {
+ message.totalVotes = reader.int32();
+ break;
+ }
+ case 3: {
+ message.labelVotes = reader.int32();
+ break;
+ }
+ case 4: {
+ if (!(message.comments && message.comments.length))
+ message.comments = [];
+ message.comments.push(reader.string());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an OperatorMetadata message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.datalabeling.v1beta1.OperatorMetadata
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.datalabeling.v1beta1.OperatorMetadata} OperatorMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ OperatorMetadata.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an OperatorMetadata message.
+ * @function verify
+ * @memberof google.cloud.datalabeling.v1beta1.OperatorMetadata
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ OperatorMetadata.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.score != null && message.hasOwnProperty("score"))
+ if (typeof message.score !== "number")
+ return "score: number expected";
+ if (message.totalVotes != null && message.hasOwnProperty("totalVotes"))
+ if (!$util.isInteger(message.totalVotes))
+ return "totalVotes: integer expected";
+ if (message.labelVotes != null && message.hasOwnProperty("labelVotes"))
+ if (!$util.isInteger(message.labelVotes))
+ return "labelVotes: integer expected";
+ if (message.comments != null && message.hasOwnProperty("comments")) {
+ if (!Array.isArray(message.comments))
+ return "comments: array expected";
+ for (var i = 0; i < message.comments.length; ++i)
+ if (!$util.isString(message.comments[i]))
+ return "comments: string[] expected";
+ }
+ return null;
+ };
+
+ /**
+ * Creates an OperatorMetadata message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.datalabeling.v1beta1.OperatorMetadata
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.datalabeling.v1beta1.OperatorMetadata} OperatorMetadata
+ */
+ OperatorMetadata.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.datalabeling.v1beta1.OperatorMetadata)
+ return object;
+ var message = new $root.google.cloud.datalabeling.v1beta1.OperatorMetadata();
+ if (object.score != null)
+ message.score = Number(object.score);
+ if (object.totalVotes != null)
+ message.totalVotes = object.totalVotes | 0;
+ if (object.labelVotes != null)
+ message.labelVotes = object.labelVotes | 0;
+ if (object.comments) {
+ if (!Array.isArray(object.comments))
+ throw TypeError(".google.cloud.datalabeling.v1beta1.OperatorMetadata.comments: array expected");
+ message.comments = [];
+ for (var i = 0; i < object.comments.length; ++i)
+ message.comments[i] = String(object.comments[i]);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an OperatorMetadata message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.datalabeling.v1beta1.OperatorMetadata
+ * @static
+ * @param {google.cloud.datalabeling.v1beta1.OperatorMetadata} message OperatorMetadata
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ OperatorMetadata.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.comments = [];
+ if (options.defaults) {
+ object.score = 0;
+ object.totalVotes = 0;
+ object.labelVotes = 0;
+ }
+ if (message.score != null && message.hasOwnProperty("score"))
+ object.score = options.json && !isFinite(message.score) ? String(message.score) : message.score;
+ if (message.totalVotes != null && message.hasOwnProperty("totalVotes"))
+ object.totalVotes = message.totalVotes;
+ if (message.labelVotes != null && message.hasOwnProperty("labelVotes"))
+ object.labelVotes = message.labelVotes;
+ if (message.comments && message.comments.length) {
+ object.comments = [];
+ for (var j = 0; j < message.comments.length; ++j)
+ object.comments[j] = message.comments[j];
+ }
+ return object;
+ };
+
+ /**
+ * Converts this OperatorMetadata to JSON.
+ * @function toJSON
+ * @memberof google.cloud.datalabeling.v1beta1.OperatorMetadata
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ OperatorMetadata.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for OperatorMetadata
+ * @function getTypeUrl
+ * @memberof google.cloud.datalabeling.v1beta1.OperatorMetadata
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ OperatorMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.datalabeling.v1beta1.OperatorMetadata";
+ };
+
+ return OperatorMetadata;
+ })();
+
+ v1beta1.AnnotationSpecSet = (function() {
+
+ /**
+ * Properties of an AnnotationSpecSet.
+ * @memberof google.cloud.datalabeling.v1beta1
+ * @interface IAnnotationSpecSet
+ * @property {string|null} [name] AnnotationSpecSet name
+ * @property {string|null} [displayName] AnnotationSpecSet displayName
+ * @property {string|null} [description] AnnotationSpecSet description
+ * @property {Array.|null} [annotationSpecs] AnnotationSpecSet annotationSpecs
+ * @property {Array.|null} [blockingResources] AnnotationSpecSet blockingResources
+ */
+
+ /**
+ * Constructs a new AnnotationSpecSet.
+ * @memberof google.cloud.datalabeling.v1beta1
+ * @classdesc Represents an AnnotationSpecSet.
+ * @implements IAnnotationSpecSet
+ * @constructor
+ * @param {google.cloud.datalabeling.v1beta1.IAnnotationSpecSet=} [properties] Properties to set
+ */
+ function AnnotationSpecSet(properties) {
+ this.annotationSpecs = [];
+ this.blockingResources = [];
+ 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]];
+ }
+
+ /**
+ * AnnotationSpecSet name.
+ * @member {string} name
+ * @memberof google.cloud.datalabeling.v1beta1.AnnotationSpecSet
+ * @instance
+ */
+ AnnotationSpecSet.prototype.name = "";
+
+ /**
+ * AnnotationSpecSet displayName.
+ * @member {string} displayName
+ * @memberof google.cloud.datalabeling.v1beta1.AnnotationSpecSet
+ * @instance
+ */
+ AnnotationSpecSet.prototype.displayName = "";
+
+ /**
+ * AnnotationSpecSet description.
+ * @member {string} description
+ * @memberof google.cloud.datalabeling.v1beta1.AnnotationSpecSet
+ * @instance
+ */
+ AnnotationSpecSet.prototype.description = "";
+
+ /**
+ * AnnotationSpecSet annotationSpecs.
+ * @member {Array.} annotationSpecs
+ * @memberof google.cloud.datalabeling.v1beta1.AnnotationSpecSet
+ * @instance
+ */
+ AnnotationSpecSet.prototype.annotationSpecs = $util.emptyArray;
+
+ /**
+ * AnnotationSpecSet blockingResources.
+ * @member {Array.} blockingResources
+ * @memberof google.cloud.datalabeling.v1beta1.AnnotationSpecSet
+ * @instance
+ */
+ AnnotationSpecSet.prototype.blockingResources = $util.emptyArray;
+
+ /**
+ * Creates a new AnnotationSpecSet instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.datalabeling.v1beta1.AnnotationSpecSet
+ * @static
+ * @param {google.cloud.datalabeling.v1beta1.IAnnotationSpecSet=} [properties] Properties to set
+ * @returns {google.cloud.datalabeling.v1beta1.AnnotationSpecSet} AnnotationSpecSet instance
+ */
+ AnnotationSpecSet.create = function create(properties) {
+ return new AnnotationSpecSet(properties);
+ };
+
+ /**
+ * Encodes the specified AnnotationSpecSet message. Does not implicitly {@link google.cloud.datalabeling.v1beta1.AnnotationSpecSet.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.datalabeling.v1beta1.AnnotationSpecSet
+ * @static
+ * @param {google.cloud.datalabeling.v1beta1.IAnnotationSpecSet} message AnnotationSpecSet message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ AnnotationSpecSet.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.name != null && Object.hasOwnProperty.call(message, "name"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
+ if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName);
+ if (message.description != null && Object.hasOwnProperty.call(message, "description"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.description);
+ if (message.annotationSpecs != null && message.annotationSpecs.length)
+ for (var i = 0; i < message.annotationSpecs.length; ++i)
+ $root.google.cloud.datalabeling.v1beta1.AnnotationSpec.encode(message.annotationSpecs[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
+ if (message.blockingResources != null && message.blockingResources.length)
+ for (var i = 0; i < message.blockingResources.length; ++i)
+ writer.uint32(/* id 5, wireType 2 =*/42).string(message.blockingResources[i]);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified AnnotationSpecSet message, length delimited. Does not implicitly {@link google.cloud.datalabeling.v1beta1.AnnotationSpecSet.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.datalabeling.v1beta1.AnnotationSpecSet
+ * @static
+ * @param {google.cloud.datalabeling.v1beta1.IAnnotationSpecSet} message AnnotationSpecSet message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ AnnotationSpecSet.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes an AnnotationSpecSet message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.datalabeling.v1beta1.AnnotationSpecSet
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.datalabeling.v1beta1.AnnotationSpecSet} AnnotationSpecSet
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ AnnotationSpecSet.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.datalabeling.v1beta1.AnnotationSpecSet();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.name = reader.string();
+ break;
+ }
+ case 2: {
+ message.displayName = reader.string();
+ break;
+ }
+ case 3: {
+ message.description = reader.string();
+ break;
+ }
+ case 4: {
+ if (!(message.annotationSpecs && message.annotationSpecs.length))
+ message.annotationSpecs = [];
+ message.annotationSpecs.push($root.google.cloud.datalabeling.v1beta1.AnnotationSpec.decode(reader, reader.uint32()));
+ break;
+ }
+ case 5: {
+ if (!(message.blockingResources && message.blockingResources.length))
+ message.blockingResources = [];
+ message.blockingResources.push(reader.string());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an AnnotationSpecSet message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.datalabeling.v1beta1.AnnotationSpecSet
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.datalabeling.v1beta1.AnnotationSpecSet} AnnotationSpecSet
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ AnnotationSpecSet.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an AnnotationSpecSet message.
+ * @function verify
+ * @memberof google.cloud.datalabeling.v1beta1.AnnotationSpecSet
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ AnnotationSpecSet.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.name != null && message.hasOwnProperty("name"))
+ if (!$util.isString(message.name))
+ return "name: string expected";
+ if (message.displayName != null && message.hasOwnProperty("displayName"))
+ if (!$util.isString(message.displayName))
+ return "displayName: string expected";
+ if (message.description != null && message.hasOwnProperty("description"))
+ if (!$util.isString(message.description))
+ return "description: string expected";
+ if (message.annotationSpecs != null && message.hasOwnProperty("annotationSpecs")) {
+ if (!Array.isArray(message.annotationSpecs))
+ return "annotationSpecs: array expected";
+ for (var i = 0; i < message.annotationSpecs.length; ++i) {
+ var error = $root.google.cloud.datalabeling.v1beta1.AnnotationSpec.verify(message.annotationSpecs[i]);
+ if (error)
+ return "annotationSpecs." + error;
+ }
+ }
+ if (message.blockingResources != null && message.hasOwnProperty("blockingResources")) {
+ if (!Array.isArray(message.blockingResources))
+ return "blockingResources: array expected";
+ for (var i = 0; i < message.blockingResources.length; ++i)
+ if (!$util.isString(message.blockingResources[i]))
+ return "blockingResources: string[] expected";
+ }
+ return null;
+ };
+
+ /**
+ * Creates an AnnotationSpecSet message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.datalabeling.v1beta1.AnnotationSpecSet
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.datalabeling.v1beta1.AnnotationSpecSet} AnnotationSpecSet
+ */
+ AnnotationSpecSet.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.datalabeling.v1beta1.AnnotationSpecSet)
+ return object;
+ var message = new $root.google.cloud.datalabeling.v1beta1.AnnotationSpecSet();
+ if (object.name != null)
+ message.name = String(object.name);
+ if (object.displayName != null)
+ message.displayName = String(object.displayName);
+ if (object.description != null)
+ message.description = String(object.description);
+ if (object.annotationSpecs) {
+ if (!Array.isArray(object.annotationSpecs))
+ throw TypeError(".google.cloud.datalabeling.v1beta1.AnnotationSpecSet.annotationSpecs: array expected");
+ message.annotationSpecs = [];
+ for (var i = 0; i < object.annotationSpecs.length; ++i) {
+ if (typeof object.annotationSpecs[i] !== "object")
+ throw TypeError(".google.cloud.datalabeling.v1beta1.AnnotationSpecSet.annotationSpecs: object expected");
+ message.annotationSpecs[i] = $root.google.cloud.datalabeling.v1beta1.AnnotationSpec.fromObject(object.annotationSpecs[i]);
+ }
+ }
+ if (object.blockingResources) {
+ if (!Array.isArray(object.blockingResources))
+ throw TypeError(".google.cloud.datalabeling.v1beta1.AnnotationSpecSet.blockingResources: array expected");
+ message.blockingResources = [];
+ for (var i = 0; i < object.blockingResources.length; ++i)
+ message.blockingResources[i] = String(object.blockingResources[i]);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an AnnotationSpecSet message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.datalabeling.v1beta1.AnnotationSpecSet
+ * @static
+ * @param {google.cloud.datalabeling.v1beta1.AnnotationSpecSet} message AnnotationSpecSet
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ AnnotationSpecSet.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults) {
+ object.annotationSpecs = [];
+ object.blockingResources = [];
+ }
+ if (options.defaults) {
+ object.name = "";
+ object.displayName = "";
+ object.description = "";
+ }
+ if (message.name != null && message.hasOwnProperty("name"))
+ object.name = message.name;
+ if (message.displayName != null && message.hasOwnProperty("displayName"))
+ object.displayName = message.displayName;
+ if (message.description != null && message.hasOwnProperty("description"))
+ object.description = message.description;
+ if (message.annotationSpecs && message.annotationSpecs.length) {
+ object.annotationSpecs = [];
+ for (var j = 0; j < message.annotationSpecs.length; ++j)
+ object.annotationSpecs[j] = $root.google.cloud.datalabeling.v1beta1.AnnotationSpec.toObject(message.annotationSpecs[j], options);
+ }
+ if (message.blockingResources && message.blockingResources.length) {
+ object.blockingResources = [];
+ for (var j = 0; j < message.blockingResources.length; ++j)
+ object.blockingResources[j] = message.blockingResources[j];
+ }
+ return object;
+ };
+
+ /**
+ * Converts this AnnotationSpecSet to JSON.
+ * @function toJSON
+ * @memberof google.cloud.datalabeling.v1beta1.AnnotationSpecSet
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ AnnotationSpecSet.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for AnnotationSpecSet
+ * @function getTypeUrl
+ * @memberof google.cloud.datalabeling.v1beta1.AnnotationSpecSet
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ AnnotationSpecSet.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.datalabeling.v1beta1.AnnotationSpecSet";
+ };
+
+ return AnnotationSpecSet;
+ })();
+
+ v1beta1.AnnotationSpec = (function() {
+
+ /**
+ * Properties of an AnnotationSpec.
+ * @memberof google.cloud.datalabeling.v1beta1
+ * @interface IAnnotationSpec
+ * @property {string|null} [displayName] AnnotationSpec displayName
+ * @property {string|null} [description] AnnotationSpec description
+ */
+
+ /**
+ * Constructs a new AnnotationSpec.
+ * @memberof google.cloud.datalabeling.v1beta1
+ * @classdesc Represents an AnnotationSpec.
+ * @implements IAnnotationSpec
+ * @constructor
+ * @param {google.cloud.datalabeling.v1beta1.IAnnotationSpec=} [properties] Properties to set
+ */
+ function AnnotationSpec(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]];
+ }
+
+ /**
+ * AnnotationSpec displayName.
+ * @member {string} displayName
+ * @memberof google.cloud.datalabeling.v1beta1.AnnotationSpec
+ * @instance
+ */
+ AnnotationSpec.prototype.displayName = "";
+
+ /**
+ * AnnotationSpec description.
+ * @member {string} description
+ * @memberof google.cloud.datalabeling.v1beta1.AnnotationSpec
+ * @instance
+ */
+ AnnotationSpec.prototype.description = "";
+
+ /**
+ * Creates a new AnnotationSpec instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.datalabeling.v1beta1.AnnotationSpec
+ * @static
+ * @param {google.cloud.datalabeling.v1beta1.IAnnotationSpec=} [properties] Properties to set
+ * @returns {google.cloud.datalabeling.v1beta1.AnnotationSpec} AnnotationSpec instance
+ */
+ AnnotationSpec.create = function create(properties) {
+ return new AnnotationSpec(properties);
+ };
+
+ /**
+ * Encodes the specified AnnotationSpec message. Does not implicitly {@link google.cloud.datalabeling.v1beta1.AnnotationSpec.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.datalabeling.v1beta1.AnnotationSpec
+ * @static
+ * @param {google.cloud.datalabeling.v1beta1.IAnnotationSpec} message AnnotationSpec message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ AnnotationSpec.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.displayName);
+ if (message.description != null && Object.hasOwnProperty.call(message, "description"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.description);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified AnnotationSpec message, length delimited. Does not implicitly {@link google.cloud.datalabeling.v1beta1.AnnotationSpec.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.datalabeling.v1beta1.AnnotationSpec
+ * @static
+ * @param {google.cloud.datalabeling.v1beta1.IAnnotationSpec} message AnnotationSpec message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ AnnotationSpec.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes an AnnotationSpec message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.datalabeling.v1beta1.AnnotationSpec
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.datalabeling.v1beta1.AnnotationSpec} AnnotationSpec
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ AnnotationSpec.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.datalabeling.v1beta1.AnnotationSpec();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.displayName = reader.string();
+ break;
+ }
+ case 2: {
+ message.description = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an AnnotationSpec message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.datalabeling.v1beta1.AnnotationSpec
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.datalabeling.v1beta1.AnnotationSpec} AnnotationSpec
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ AnnotationSpec.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an AnnotationSpec message.
+ * @function verify
+ * @memberof google.cloud.datalabeling.v1beta1.AnnotationSpec
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ AnnotationSpec.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.displayName != null && message.hasOwnProperty("displayName"))
+ if (!$util.isString(message.displayName))
+ return "displayName: string expected";
+ if (message.description != null && message.hasOwnProperty("description"))
+ if (!$util.isString(message.description))
+ return "description: string expected";
+ return null;
+ };
+
+ /**
+ * Creates an AnnotationSpec message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.datalabeling.v1beta1.AnnotationSpec
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.datalabeling.v1beta1.AnnotationSpec} AnnotationSpec
+ */
+ AnnotationSpec.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.datalabeling.v1beta1.AnnotationSpec)
+ return object;
+ var message = new $root.google.cloud.datalabeling.v1beta1.AnnotationSpec();
+ if (object.displayName != null)
+ message.displayName = String(object.displayName);
+ if (object.description != null)
+ message.description = String(object.description);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an AnnotationSpec message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.datalabeling.v1beta1.AnnotationSpec
+ * @static
+ * @param {google.cloud.datalabeling.v1beta1.AnnotationSpec} message AnnotationSpec
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ AnnotationSpec.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.displayName = "";
+ object.description = "";
+ }
+ if (message.displayName != null && message.hasOwnProperty("displayName"))
+ object.displayName = message.displayName;
+ if (message.description != null && message.hasOwnProperty("description"))
+ object.description = message.description;
+ return object;
+ };
+
+ /**
+ * Converts this AnnotationSpec to JSON.
+ * @function toJSON
+ * @memberof google.cloud.datalabeling.v1beta1.AnnotationSpec
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ AnnotationSpec.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for AnnotationSpec
+ * @function getTypeUrl
+ * @memberof google.cloud.datalabeling.v1beta1.AnnotationSpec
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ AnnotationSpec.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.datalabeling.v1beta1.AnnotationSpec";
+ };
+
+ return AnnotationSpec;
+ })();
+
+ v1beta1.DataLabelingService = (function() {
+
+ /**
+ * Constructs a new DataLabelingService service.
+ * @memberof google.cloud.datalabeling.v1beta1
+ * @classdesc Represents a DataLabelingService
+ * @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 DataLabelingService(rpcImpl, requestDelimited, responseDelimited) {
+ $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited);
+ }
+
+ (DataLabelingService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = DataLabelingService;
+
+ /**
+ * Creates new DataLabelingService service using the specified rpc implementation.
+ * @function create
+ * @memberof google.cloud.datalabeling.v1beta1.DataLabelingService
+ * @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 {DataLabelingService} RPC service. Useful where requests and/or responses are streamed.
+ */
+ DataLabelingService.create = function create(rpcImpl, requestDelimited, responseDelimited) {
+ return new this(rpcImpl, requestDelimited, responseDelimited);
+ };
+
+ /**
+ * Callback as used by {@link google.cloud.datalabeling.v1beta1.DataLabelingService|createDataset}.
+ * @memberof google.cloud.datalabeling.v1beta1.DataLabelingService
+ * @typedef CreateDatasetCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.datalabeling.v1beta1.Dataset} [response] Dataset
+ */
+
+ /**
+ * Calls CreateDataset.
+ * @function createDataset
+ * @memberof google.cloud.datalabeling.v1beta1.DataLabelingService
+ * @instance
+ * @param {google.cloud.datalabeling.v1beta1.ICreateDatasetRequest} request CreateDatasetRequest message or plain object
+ * @param {google.cloud.datalabeling.v1beta1.DataLabelingService.CreateDatasetCallback} callback Node-style callback called with the error, if any, and Dataset
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(DataLabelingService.prototype.createDataset = function createDataset(request, callback) {
+ return this.rpcCall(createDataset, $root.google.cloud.datalabeling.v1beta1.CreateDatasetRequest, $root.google.cloud.datalabeling.v1beta1.Dataset, request, callback);
+ }, "name", { value: "CreateDataset" });
+
+ /**
+ * Calls CreateDataset.
+ * @function createDataset
+ * @memberof google.cloud.datalabeling.v1beta1.DataLabelingService
+ * @instance
+ * @param {google.cloud.datalabeling.v1beta1.ICreateDatasetRequest} request CreateDatasetRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.datalabeling.v1beta1.DataLabelingService|getDataset}.
+ * @memberof google.cloud.datalabeling.v1beta1.DataLabelingService
+ * @typedef GetDatasetCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.datalabeling.v1beta1.Dataset} [response] Dataset
+ */
+
+ /**
+ * Calls GetDataset.
+ * @function getDataset
+ * @memberof google.cloud.datalabeling.v1beta1.DataLabelingService
+ * @instance
+ * @param {google.cloud.datalabeling.v1beta1.IGetDatasetRequest} request GetDatasetRequest message or plain object
+ * @param {google.cloud.datalabeling.v1beta1.DataLabelingService.GetDatasetCallback} callback Node-style callback called with the error, if any, and Dataset
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(DataLabelingService.prototype.getDataset = function getDataset(request, callback) {
+ return this.rpcCall(getDataset, $root.google.cloud.datalabeling.v1beta1.GetDatasetRequest, $root.google.cloud.datalabeling.v1beta1.Dataset, request, callback);
+ }, "name", { value: "GetDataset" });
+
+ /**
+ * Calls GetDataset.
+ * @function getDataset
+ * @memberof google.cloud.datalabeling.v1beta1.DataLabelingService
+ * @instance
+ * @param {google.cloud.datalabeling.v1beta1.IGetDatasetRequest} request GetDatasetRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.datalabeling.v1beta1.DataLabelingService|listDatasets}.
+ * @memberof google.cloud.datalabeling.v1beta1.DataLabelingService
+ * @typedef ListDatasetsCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.datalabeling.v1beta1.ListDatasetsResponse} [response] ListDatasetsResponse
+ */
+
+ /**
+ * Calls ListDatasets.
+ * @function listDatasets
+ * @memberof google.cloud.datalabeling.v1beta1.DataLabelingService
+ * @instance
+ * @param {google.cloud.datalabeling.v1beta1.IListDatasetsRequest} request ListDatasetsRequest message or plain object
+ * @param {google.cloud.datalabeling.v1beta1.DataLabelingService.ListDatasetsCallback} callback Node-style callback called with the error, if any, and ListDatasetsResponse
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(DataLabelingService.prototype.listDatasets = function listDatasets(request, callback) {
+ return this.rpcCall(listDatasets, $root.google.cloud.datalabeling.v1beta1.ListDatasetsRequest, $root.google.cloud.datalabeling.v1beta1.ListDatasetsResponse, request, callback);
+ }, "name", { value: "ListDatasets" });
+
+ /**
+ * Calls ListDatasets.
+ * @function listDatasets
+ * @memberof google.cloud.datalabeling.v1beta1.DataLabelingService
+ * @instance
+ * @param {google.cloud.datalabeling.v1beta1.IListDatasetsRequest} request ListDatasetsRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.datalabeling.v1beta1.DataLabelingService|deleteDataset}.
+ * @memberof google.cloud.datalabeling.v1beta1.DataLabelingService
+ * @typedef DeleteDatasetCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.protobuf.Empty} [response] Empty
+ */
+
+ /**
+ * Calls DeleteDataset.
+ * @function deleteDataset
+ * @memberof google.cloud.datalabeling.v1beta1.DataLabelingService
+ * @instance
+ * @param {google.cloud.datalabeling.v1beta1.IDeleteDatasetRequest} request DeleteDatasetRequest message or plain object
+ * @param {google.cloud.datalabeling.v1beta1.DataLabelingService.DeleteDatasetCallback} callback Node-style callback called with the error, if any, and Empty
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(DataLabelingService.prototype.deleteDataset = function deleteDataset(request, callback) {
+ return this.rpcCall(deleteDataset, $root.google.cloud.datalabeling.v1beta1.DeleteDatasetRequest, $root.google.protobuf.Empty, request, callback);
+ }, "name", { value: "DeleteDataset" });
+
+ /**
+ * Calls DeleteDataset.
+ * @function deleteDataset
+ * @memberof google.cloud.datalabeling.v1beta1.DataLabelingService
+ * @instance
+ * @param {google.cloud.datalabeling.v1beta1.IDeleteDatasetRequest} request DeleteDatasetRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.datalabeling.v1beta1.DataLabelingService|importData}.
+ * @memberof google.cloud.datalabeling.v1beta1.DataLabelingService
+ * @typedef ImportDataCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.longrunning.Operation} [response] Operation
+ */
+
+ /**
+ * Calls ImportData.
+ * @function importData
+ * @memberof google.cloud.datalabeling.v1beta1.DataLabelingService
+ * @instance
+ * @param {google.cloud.datalabeling.v1beta1.IImportDataRequest} request ImportDataRequest message or plain object
+ * @param {google.cloud.datalabeling.v1beta1.DataLabelingService.ImportDataCallback} callback Node-style callback called with the error, if any, and Operation
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(DataLabelingService.prototype.importData = function importData(request, callback) {
+ return this.rpcCall(importData, $root.google.cloud.datalabeling.v1beta1.ImportDataRequest, $root.google.longrunning.Operation, request, callback);
+ }, "name", { value: "ImportData" });
+
+ /**
+ * Calls ImportData.
+ * @function importData
+ * @memberof google.cloud.datalabeling.v1beta1.DataLabelingService
+ * @instance
+ * @param {google.cloud.datalabeling.v1beta1.IImportDataRequest} request ImportDataRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.datalabeling.v1beta1.DataLabelingService|exportData}.
+ * @memberof google.cloud.datalabeling.v1beta1.DataLabelingService
+ * @typedef ExportDataCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.longrunning.Operation} [response] Operation
+ */
+
+ /**
+ * Calls ExportData.
+ * @function exportData
+ * @memberof google.cloud.datalabeling.v1beta1.DataLabelingService
+ * @instance
+ * @param {google.cloud.datalabeling.v1beta1.IExportDataRequest} request ExportDataRequest message or plain object
+ * @param {google.cloud.datalabeling.v1beta1.DataLabelingService.ExportDataCallback} callback Node-style callback called with the error, if any, and Operation
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(DataLabelingService.prototype.exportData = function exportData(request, callback) {
+ return this.rpcCall(exportData, $root.google.cloud.datalabeling.v1beta1.ExportDataRequest, $root.google.longrunning.Operation, request, callback);
+ }, "name", { value: "ExportData" });
+
+ /**
+ * Calls ExportData.
+ * @function exportData
+ * @memberof google.cloud.datalabeling.v1beta1.DataLabelingService
+ * @instance
+ * @param {google.cloud.datalabeling.v1beta1.IExportDataRequest} request ExportDataRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.datalabeling.v1beta1.DataLabelingService|getDataItem}.
+ * @memberof google.cloud.datalabeling.v1beta1.DataLabelingService
+ * @typedef GetDataItemCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.datalabeling.v1beta1.DataItem} [response] DataItem
+ */
+
+ /**
+ * Calls GetDataItem.
+ * @function getDataItem
+ * @memberof google.cloud.datalabeling.v1beta1.DataLabelingService
+ * @instance
+ * @param {google.cloud.datalabeling.v1beta1.IGetDataItemRequest} request GetDataItemRequest message or plain object
+ * @param {google.cloud.datalabeling.v1beta1.DataLabelingService.GetDataItemCallback} callback Node-style callback called with the error, if any, and DataItem
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(DataLabelingService.prototype.getDataItem = function getDataItem(request, callback) {
+ return this.rpcCall(getDataItem, $root.google.cloud.datalabeling.v1beta1.GetDataItemRequest, $root.google.cloud.datalabeling.v1beta1.DataItem, request, callback);
+ }, "name", { value: "GetDataItem" });
+
+ /**
+ * Calls GetDataItem.
+ * @function getDataItem
+ * @memberof google.cloud.datalabeling.v1beta1.DataLabelingService
+ * @instance
+ * @param {google.cloud.datalabeling.v1beta1.IGetDataItemRequest} request GetDataItemRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.datalabeling.v1beta1.DataLabelingService|listDataItems}.
+ * @memberof google.cloud.datalabeling.v1beta1.DataLabelingService
+ * @typedef ListDataItemsCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.datalabeling.v1beta1.ListDataItemsResponse} [response] ListDataItemsResponse
+ */
+
+ /**
+ * Calls ListDataItems.
+ * @function listDataItems
+ * @memberof google.cloud.datalabeling.v1beta1.DataLabelingService
+ * @instance
+ * @param {google.cloud.datalabeling.v1beta1.IListDataItemsRequest} request ListDataItemsRequest message or plain object
+ * @param {google.cloud.datalabeling.v1beta1.DataLabelingService.ListDataItemsCallback} callback Node-style callback called with the error, if any, and ListDataItemsResponse
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(DataLabelingService.prototype.listDataItems = function listDataItems(request, callback) {
+ return this.rpcCall(listDataItems, $root.google.cloud.datalabeling.v1beta1.ListDataItemsRequest, $root.google.cloud.datalabeling.v1beta1.ListDataItemsResponse, request, callback);
+ }, "name", { value: "ListDataItems" });
+
+ /**
+ * Calls ListDataItems.
+ * @function listDataItems
+ * @memberof google.cloud.datalabeling.v1beta1.DataLabelingService
+ * @instance
+ * @param {google.cloud.datalabeling.v1beta1.IListDataItemsRequest} request ListDataItemsRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.datalabeling.v1beta1.DataLabelingService|getAnnotatedDataset}.
+ * @memberof google.cloud.datalabeling.v1beta1.DataLabelingService
+ * @typedef GetAnnotatedDatasetCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.datalabeling.v1beta1.AnnotatedDataset} [response] AnnotatedDataset
+ */
+
+ /**
+ * Calls GetAnnotatedDataset.
+ * @function getAnnotatedDataset
+ * @memberof google.cloud.datalabeling.v1beta1.DataLabelingService
+ * @instance
+ * @param {google.cloud.datalabeling.v1beta1.IGetAnnotatedDatasetRequest} request GetAnnotatedDatasetRequest message or plain object
+ * @param {google.cloud.datalabeling.v1beta1.DataLabelingService.GetAnnotatedDatasetCallback} callback Node-style callback called with the error, if any, and AnnotatedDataset
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(DataLabelingService.prototype.getAnnotatedDataset = function getAnnotatedDataset(request, callback) {
+ return this.rpcCall(getAnnotatedDataset, $root.google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest, $root.google.cloud.datalabeling.v1beta1.AnnotatedDataset, request, callback);
+ }, "name", { value: "GetAnnotatedDataset" });
+
+ /**
+ * Calls GetAnnotatedDataset.
+ * @function getAnnotatedDataset
+ * @memberof google.cloud.datalabeling.v1beta1.DataLabelingService
+ * @instance
+ * @param {google.cloud.datalabeling.v1beta1.IGetAnnotatedDatasetRequest} request GetAnnotatedDatasetRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.datalabeling.v1beta1.DataLabelingService|listAnnotatedDatasets}.
+ * @memberof google.cloud.datalabeling.v1beta1.DataLabelingService
+ * @typedef ListAnnotatedDatasetsCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse} [response] ListAnnotatedDatasetsResponse
+ */
+
+ /**
+ * Calls ListAnnotatedDatasets.
+ * @function listAnnotatedDatasets
+ * @memberof google.cloud.datalabeling.v1beta1.DataLabelingService
+ * @instance
+ * @param {google.cloud.datalabeling.v1beta1.IListAnnotatedDatasetsRequest} request ListAnnotatedDatasetsRequest message or plain object
+ * @param {google.cloud.datalabeling.v1beta1.DataLabelingService.ListAnnotatedDatasetsCallback} callback Node-style callback called with the error, if any, and ListAnnotatedDatasetsResponse
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(DataLabelingService.prototype.listAnnotatedDatasets = function listAnnotatedDatasets(request, callback) {
+ return this.rpcCall(listAnnotatedDatasets, $root.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest, $root.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse, request, callback);
+ }, "name", { value: "ListAnnotatedDatasets" });
+
+ /**
+ * Calls ListAnnotatedDatasets.
+ * @function listAnnotatedDatasets
+ * @memberof google.cloud.datalabeling.v1beta1.DataLabelingService
+ * @instance
+ * @param {google.cloud.datalabeling.v1beta1.IListAnnotatedDatasetsRequest} request ListAnnotatedDatasetsRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.datalabeling.v1beta1.DataLabelingService|deleteAnnotatedDataset}.
+ * @memberof google.cloud.datalabeling.v1beta1.DataLabelingService
+ * @typedef DeleteAnnotatedDatasetCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.protobuf.Empty} [response] Empty
+ */
+
+ /**
+ * Calls DeleteAnnotatedDataset.
+ * @function deleteAnnotatedDataset
+ * @memberof google.cloud.datalabeling.v1beta1.DataLabelingService
+ * @instance
+ * @param {google.cloud.datalabeling.v1beta1.IDeleteAnnotatedDatasetRequest} request DeleteAnnotatedDatasetRequest message or plain object
+ * @param {google.cloud.datalabeling.v1beta1.DataLabelingService.DeleteAnnotatedDatasetCallback} callback Node-style callback called with the error, if any, and Empty
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(DataLabelingService.prototype.deleteAnnotatedDataset = function deleteAnnotatedDataset(request, callback) {
+ return this.rpcCall(deleteAnnotatedDataset, $root.google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest, $root.google.protobuf.Empty, request, callback);
+ }, "name", { value: "DeleteAnnotatedDataset" });
+
+ /**
+ * Calls DeleteAnnotatedDataset.
+ * @function deleteAnnotatedDataset
+ * @memberof google.cloud.datalabeling.v1beta1.DataLabelingService
+ * @instance
+ * @param {google.cloud.datalabeling.v1beta1.IDeleteAnnotatedDatasetRequest} request DeleteAnnotatedDatasetRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.datalabeling.v1beta1.DataLabelingService|labelImage}.
+ * @memberof google.cloud.datalabeling.v1beta1.DataLabelingService
+ * @typedef LabelImageCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.longrunning.Operation} [response] Operation
+ */
+
+ /**
+ * Calls LabelImage.
+ * @function labelImage
+ * @memberof google.cloud.datalabeling.v1beta1.DataLabelingService
+ * @instance
+ * @param {google.cloud.datalabeling.v1beta1.ILabelImageRequest} request LabelImageRequest message or plain object
+ * @param {google.cloud.datalabeling.v1beta1.DataLabelingService.LabelImageCallback} callback Node-style callback called with the error, if any, and Operation
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(DataLabelingService.prototype.labelImage = function labelImage(request, callback) {
+ return this.rpcCall(labelImage, $root.google.cloud.datalabeling.v1beta1.LabelImageRequest, $root.google.longrunning.Operation, request, callback);
+ }, "name", { value: "LabelImage" });
+
+ /**
+ * Calls LabelImage.
+ * @function labelImage
+ * @memberof google.cloud.datalabeling.v1beta1.DataLabelingService
+ * @instance
+ * @param {google.cloud.datalabeling.v1beta1.ILabelImageRequest} request LabelImageRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.datalabeling.v1beta1.DataLabelingService|labelVideo}.
+ * @memberof google.cloud.datalabeling.v1beta1.DataLabelingService
+ * @typedef LabelVideoCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.longrunning.Operation} [response] Operation
+ */
+
+ /**
+ * Calls LabelVideo.
+ * @function labelVideo
+ * @memberof google.cloud.datalabeling.v1beta1.DataLabelingService
+ * @instance
+ * @param {google.cloud.datalabeling.v1beta1.ILabelVideoRequest} request LabelVideoRequest message or plain object
+ * @param {google.cloud.datalabeling.v1beta1.DataLabelingService.LabelVideoCallback} callback Node-style callback called with the error, if any, and Operation
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(DataLabelingService.prototype.labelVideo = function labelVideo(request, callback) {
+ return this.rpcCall(labelVideo, $root.google.cloud.datalabeling.v1beta1.LabelVideoRequest, $root.google.longrunning.Operation, request, callback);
+ }, "name", { value: "LabelVideo" });
+
+ /**
+ * Calls LabelVideo.
+ * @function labelVideo
+ * @memberof google.cloud.datalabeling.v1beta1.DataLabelingService
+ * @instance
+ * @param {google.cloud.datalabeling.v1beta1.ILabelVideoRequest} request LabelVideoRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.datalabeling.v1beta1.DataLabelingService|labelText}.
+ * @memberof google.cloud.datalabeling.v1beta1.DataLabelingService
+ * @typedef LabelTextCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.longrunning.Operation} [response] Operation
+ */
+
+ /**
+ * Calls LabelText.
+ * @function labelText
+ * @memberof google.cloud.datalabeling.v1beta1.DataLabelingService
+ * @instance
+ * @param {google.cloud.datalabeling.v1beta1.ILabelTextRequest} request LabelTextRequest message or plain object
+ * @param {google.cloud.datalabeling.v1beta1.DataLabelingService.LabelTextCallback} callback Node-style callback called with the error, if any, and Operation
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(DataLabelingService.prototype.labelText = function labelText(request, callback) {
+ return this.rpcCall(labelText, $root.google.cloud.datalabeling.v1beta1.LabelTextRequest, $root.google.longrunning.Operation, request, callback);
+ }, "name", { value: "LabelText" });
+
+ /**
+ * Calls LabelText.
+ * @function labelText
+ * @memberof google.cloud.datalabeling.v1beta1.DataLabelingService
+ * @instance
+ * @param {google.cloud.datalabeling.v1beta1.ILabelTextRequest} request LabelTextRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.datalabeling.v1beta1.DataLabelingService|getExample}.
+ * @memberof google.cloud.datalabeling.v1beta1.DataLabelingService
+ * @typedef GetExampleCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.datalabeling.v1beta1.Example} [response] Example
+ */
+
+ /**
+ * Calls GetExample.
+ * @function getExample
+ * @memberof google.cloud.datalabeling.v1beta1.DataLabelingService
+ * @instance
+ * @param {google.cloud.datalabeling.v1beta1.IGetExampleRequest} request GetExampleRequest message or plain object
+ * @param {google.cloud.datalabeling.v1beta1.DataLabelingService.GetExampleCallback} callback Node-style callback called with the error, if any, and Example
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(DataLabelingService.prototype.getExample = function getExample(request, callback) {
+ return this.rpcCall(getExample, $root.google.cloud.datalabeling.v1beta1.GetExampleRequest, $root.google.cloud.datalabeling.v1beta1.Example, request, callback);
+ }, "name", { value: "GetExample" });
+
+ /**
+ * Calls GetExample.
+ * @function getExample
+ * @memberof google.cloud.datalabeling.v1beta1.DataLabelingService
+ * @instance
+ * @param {google.cloud.datalabeling.v1beta1.IGetExampleRequest} request GetExampleRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.datalabeling.v1beta1.DataLabelingService|listExamples}.
+ * @memberof google.cloud.datalabeling.v1beta1.DataLabelingService
+ * @typedef ListExamplesCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.datalabeling.v1beta1.ListExamplesResponse} [response] ListExamplesResponse
+ */
+
+ /**
+ * Calls ListExamples.
+ * @function listExamples
+ * @memberof google.cloud.datalabeling.v1beta1.DataLabelingService
+ * @instance
+ * @param {google.cloud.datalabeling.v1beta1.IListExamplesRequest} request ListExamplesRequest message or plain object
+ * @param {google.cloud.datalabeling.v1beta1.DataLabelingService.ListExamplesCallback} callback Node-style callback called with the error, if any, and ListExamplesResponse
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(DataLabelingService.prototype.listExamples = function listExamples(request, callback) {
+ return this.rpcCall(listExamples, $root.google.cloud.datalabeling.v1beta1.ListExamplesRequest, $root.google.cloud.datalabeling.v1beta1.ListExamplesResponse, request, callback);
+ }, "name", { value: "ListExamples" });
+
+ /**
+ * Calls ListExamples.
+ * @function listExamples
+ * @memberof google.cloud.datalabeling.v1beta1.DataLabelingService
+ * @instance
+ * @param {google.cloud.datalabeling.v1beta1.IListExamplesRequest} request ListExamplesRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.datalabeling.v1beta1.DataLabelingService|createAnnotationSpecSet}.
+ * @memberof google.cloud.datalabeling.v1beta1.DataLabelingService
+ * @typedef CreateAnnotationSpecSetCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.datalabeling.v1beta1.AnnotationSpecSet} [response] AnnotationSpecSet
+ */
+
+ /**
+ * Calls CreateAnnotationSpecSet.
+ * @function createAnnotationSpecSet
+ * @memberof google.cloud.datalabeling.v1beta1.DataLabelingService
+ * @instance
+ * @param {google.cloud.datalabeling.v1beta1.ICreateAnnotationSpecSetRequest} request CreateAnnotationSpecSetRequest message or plain object
+ * @param {google.cloud.datalabeling.v1beta1.DataLabelingService.CreateAnnotationSpecSetCallback} callback Node-style callback called with the error, if any, and AnnotationSpecSet
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(DataLabelingService.prototype.createAnnotationSpecSet = function createAnnotationSpecSet(request, callback) {
+ return this.rpcCall(createAnnotationSpecSet, $root.google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest, $root.google.cloud.datalabeling.v1beta1.AnnotationSpecSet, request, callback);
+ }, "name", { value: "CreateAnnotationSpecSet" });
+
+ /**
+ * Calls CreateAnnotationSpecSet.
+ * @function createAnnotationSpecSet
+ * @memberof google.cloud.datalabeling.v1beta1.DataLabelingService
+ * @instance
+ * @param {google.cloud.datalabeling.v1beta1.ICreateAnnotationSpecSetRequest} request CreateAnnotationSpecSetRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.datalabeling.v1beta1.DataLabelingService|getAnnotationSpecSet}.
+ * @memberof google.cloud.datalabeling.v1beta1.DataLabelingService
+ * @typedef GetAnnotationSpecSetCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.datalabeling.v1beta1.AnnotationSpecSet} [response] AnnotationSpecSet
+ */
+
+ /**
+ * Calls GetAnnotationSpecSet.
+ * @function getAnnotationSpecSet
+ * @memberof google.cloud.datalabeling.v1beta1.DataLabelingService
+ * @instance
+ * @param {google.cloud.datalabeling.v1beta1.IGetAnnotationSpecSetRequest} request GetAnnotationSpecSetRequest message or plain object
+ * @param {google.cloud.datalabeling.v1beta1.DataLabelingService.GetAnnotationSpecSetCallback} callback Node-style callback called with the error, if any, and AnnotationSpecSet
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(DataLabelingService.prototype.getAnnotationSpecSet = function getAnnotationSpecSet(request, callback) {
+ return this.rpcCall(getAnnotationSpecSet, $root.google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest, $root.google.cloud.datalabeling.v1beta1.AnnotationSpecSet, request, callback);
+ }, "name", { value: "GetAnnotationSpecSet" });
+
+ /**
+ * Calls GetAnnotationSpecSet.
+ * @function getAnnotationSpecSet
+ * @memberof google.cloud.datalabeling.v1beta1.DataLabelingService
+ * @instance
+ * @param {google.cloud.datalabeling.v1beta1.IGetAnnotationSpecSetRequest} request GetAnnotationSpecSetRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.datalabeling.v1beta1.DataLabelingService|listAnnotationSpecSets}.
+ * @memberof google.cloud.datalabeling.v1beta1.DataLabelingService
+ * @typedef ListAnnotationSpecSetsCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse} [response] ListAnnotationSpecSetsResponse
+ */
+
+ /**
+ * Calls ListAnnotationSpecSets.
+ * @function listAnnotationSpecSets
+ * @memberof google.cloud.datalabeling.v1beta1.DataLabelingService
+ * @instance
+ * @param {google.cloud.datalabeling.v1beta1.IListAnnotationSpecSetsRequest} request ListAnnotationSpecSetsRequest message or plain object
+ * @param {google.cloud.datalabeling.v1beta1.DataLabelingService.ListAnnotationSpecSetsCallback} callback Node-style callback called with the error, if any, and ListAnnotationSpecSetsResponse
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(DataLabelingService.prototype.listAnnotationSpecSets = function listAnnotationSpecSets(request, callback) {
+ return this.rpcCall(listAnnotationSpecSets, $root.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest, $root.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse, request, callback);
+ }, "name", { value: "ListAnnotationSpecSets" });
+
+ /**
+ * Calls ListAnnotationSpecSets.
+ * @function listAnnotationSpecSets
+ * @memberof google.cloud.datalabeling.v1beta1.DataLabelingService
+ * @instance
+ * @param {google.cloud.datalabeling.v1beta1.IListAnnotationSpecSetsRequest} request ListAnnotationSpecSetsRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.datalabeling.v1beta1.DataLabelingService|deleteAnnotationSpecSet}.
+ * @memberof google.cloud.datalabeling.v1beta1.DataLabelingService
+ * @typedef DeleteAnnotationSpecSetCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.protobuf.Empty} [response] Empty
+ */
+
+ /**
+ * Calls DeleteAnnotationSpecSet.
+ * @function deleteAnnotationSpecSet
+ * @memberof google.cloud.datalabeling.v1beta1.DataLabelingService
+ * @instance
+ * @param {google.cloud.datalabeling.v1beta1.IDeleteAnnotationSpecSetRequest} request DeleteAnnotationSpecSetRequest message or plain object
+ * @param {google.cloud.datalabeling.v1beta1.DataLabelingService.DeleteAnnotationSpecSetCallback} callback Node-style callback called with the error, if any, and Empty
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(DataLabelingService.prototype.deleteAnnotationSpecSet = function deleteAnnotationSpecSet(request, callback) {
+ return this.rpcCall(deleteAnnotationSpecSet, $root.google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest, $root.google.protobuf.Empty, request, callback);
+ }, "name", { value: "DeleteAnnotationSpecSet" });
+
+ /**
+ * Calls DeleteAnnotationSpecSet.
+ * @function deleteAnnotationSpecSet
+ * @memberof google.cloud.datalabeling.v1beta1.DataLabelingService
+ * @instance
+ * @param {google.cloud.datalabeling.v1beta1.IDeleteAnnotationSpecSetRequest} request DeleteAnnotationSpecSetRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.datalabeling.v1beta1.DataLabelingService|createInstruction}.
+ * @memberof google.cloud.datalabeling.v1beta1.DataLabelingService
+ * @typedef CreateInstructionCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.longrunning.Operation} [response] Operation
+ */
+
+ /**
+ * Calls CreateInstruction.
+ * @function createInstruction
+ * @memberof google.cloud.datalabeling.v1beta1.DataLabelingService
+ * @instance
+ * @param {google.cloud.datalabeling.v1beta1.ICreateInstructionRequest} request CreateInstructionRequest message or plain object
+ * @param {google.cloud.datalabeling.v1beta1.DataLabelingService.CreateInstructionCallback} callback Node-style callback called with the error, if any, and Operation
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(DataLabelingService.prototype.createInstruction = function createInstruction(request, callback) {
+ return this.rpcCall(createInstruction, $root.google.cloud.datalabeling.v1beta1.CreateInstructionRequest, $root.google.longrunning.Operation, request, callback);
+ }, "name", { value: "CreateInstruction" });
+
+ /**
+ * Calls CreateInstruction.
+ * @function createInstruction
+ * @memberof google.cloud.datalabeling.v1beta1.DataLabelingService
+ * @instance
+ * @param {google.cloud.datalabeling.v1beta1.ICreateInstructionRequest} request CreateInstructionRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.datalabeling.v1beta1.DataLabelingService|getInstruction}.
+ * @memberof google.cloud.datalabeling.v1beta1.DataLabelingService
+ * @typedef GetInstructionCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.datalabeling.v1beta1.Instruction} [response] Instruction
+ */
+
+ /**
+ * Calls GetInstruction.
+ * @function getInstruction
+ * @memberof google.cloud.datalabeling.v1beta1.DataLabelingService
+ * @instance
+ * @param {google.cloud.datalabeling.v1beta1.IGetInstructionRequest} request GetInstructionRequest message or plain object
+ * @param {google.cloud.datalabeling.v1beta1.DataLabelingService.GetInstructionCallback} callback Node-style callback called with the error, if any, and Instruction
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(DataLabelingService.prototype.getInstruction = function getInstruction(request, callback) {
+ return this.rpcCall(getInstruction, $root.google.cloud.datalabeling.v1beta1.GetInstructionRequest, $root.google.cloud.datalabeling.v1beta1.Instruction, request, callback);
+ }, "name", { value: "GetInstruction" });
+
+ /**
+ * Calls GetInstruction.
+ * @function getInstruction
+ * @memberof google.cloud.datalabeling.v1beta1.DataLabelingService
+ * @instance
+ * @param {google.cloud.datalabeling.v1beta1.IGetInstructionRequest} request GetInstructionRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.datalabeling.v1beta1.DataLabelingService|listInstructions}.
+ * @memberof google.cloud.datalabeling.v1beta1.DataLabelingService
+ * @typedef ListInstructionsCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.datalabeling.v1beta1.ListInstructionsResponse} [response] ListInstructionsResponse
+ */
+
+ /**
+ * Calls ListInstructions.
+ * @function listInstructions
+ * @memberof google.cloud.datalabeling.v1beta1.DataLabelingService
+ * @instance
+ * @param {google.cloud.datalabeling.v1beta1.IListInstructionsRequest} request ListInstructionsRequest message or plain object
+ * @param {google.cloud.datalabeling.v1beta1.DataLabelingService.ListInstructionsCallback} callback Node-style callback called with the error, if any, and ListInstructionsResponse
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(DataLabelingService.prototype.listInstructions = function listInstructions(request, callback) {
+ return this.rpcCall(listInstructions, $root.google.cloud.datalabeling.v1beta1.ListInstructionsRequest, $root.google.cloud.datalabeling.v1beta1.ListInstructionsResponse, request, callback);
+ }, "name", { value: "ListInstructions" });
+
+ /**
+ * Calls ListInstructions.
+ * @function listInstructions
+ * @memberof google.cloud.datalabeling.v1beta1.DataLabelingService
+ * @instance
+ * @param {google.cloud.datalabeling.v1beta1.IListInstructionsRequest} request ListInstructionsRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.datalabeling.v1beta1.DataLabelingService|deleteInstruction}.
+ * @memberof google.cloud.datalabeling.v1beta1.DataLabelingService
+ * @typedef DeleteInstructionCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.protobuf.Empty} [response] Empty
+ */
+
+ /**
+ * Calls DeleteInstruction.
+ * @function deleteInstruction
+ * @memberof google.cloud.datalabeling.v1beta1.DataLabelingService
+ * @instance
+ * @param {google.cloud.datalabeling.v1beta1.IDeleteInstructionRequest} request DeleteInstructionRequest message or plain object
+ * @param {google.cloud.datalabeling.v1beta1.DataLabelingService.DeleteInstructionCallback} callback Node-style callback called with the error, if any, and Empty
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(DataLabelingService.prototype.deleteInstruction = function deleteInstruction(request, callback) {
+ return this.rpcCall(deleteInstruction, $root.google.cloud.datalabeling.v1beta1.DeleteInstructionRequest, $root.google.protobuf.Empty, request, callback);
+ }, "name", { value: "DeleteInstruction" });
+
+ /**
+ * Calls DeleteInstruction.
+ * @function deleteInstruction
+ * @memberof google.cloud.datalabeling.v1beta1.DataLabelingService
+ * @instance
+ * @param {google.cloud.datalabeling.v1beta1.IDeleteInstructionRequest} request DeleteInstructionRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.datalabeling.v1beta1.DataLabelingService|getEvaluation}.
+ * @memberof google.cloud.datalabeling.v1beta1.DataLabelingService
+ * @typedef GetEvaluationCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.datalabeling.v1beta1.Evaluation} [response] Evaluation
+ */
+
+ /**
+ * Calls GetEvaluation.
+ * @function getEvaluation
+ * @memberof google.cloud.datalabeling.v1beta1.DataLabelingService
+ * @instance
+ * @param {google.cloud.datalabeling.v1beta1.IGetEvaluationRequest} request GetEvaluationRequest message or plain object
+ * @param {google.cloud.datalabeling.v1beta1.DataLabelingService.GetEvaluationCallback} callback Node-style callback called with the error, if any, and Evaluation
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(DataLabelingService.prototype.getEvaluation = function getEvaluation(request, callback) {
+ return this.rpcCall(getEvaluation, $root.google.cloud.datalabeling.v1beta1.GetEvaluationRequest, $root.google.cloud.datalabeling.v1beta1.Evaluation, request, callback);
+ }, "name", { value: "GetEvaluation" });
+
+ /**
+ * Calls GetEvaluation.
+ * @function getEvaluation
+ * @memberof google.cloud.datalabeling.v1beta1.DataLabelingService
+ * @instance
+ * @param {google.cloud.datalabeling.v1beta1.IGetEvaluationRequest} request GetEvaluationRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.datalabeling.v1beta1.DataLabelingService|searchEvaluations}.
+ * @memberof google.cloud.datalabeling.v1beta1.DataLabelingService
+ * @typedef SearchEvaluationsCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse} [response] SearchEvaluationsResponse
+ */
+
+ /**
+ * Calls SearchEvaluations.
+ * @function searchEvaluations
+ * @memberof google.cloud.datalabeling.v1beta1.DataLabelingService
+ * @instance
+ * @param {google.cloud.datalabeling.v1beta1.ISearchEvaluationsRequest} request SearchEvaluationsRequest message or plain object
+ * @param {google.cloud.datalabeling.v1beta1.DataLabelingService.SearchEvaluationsCallback} callback Node-style callback called with the error, if any, and SearchEvaluationsResponse
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(DataLabelingService.prototype.searchEvaluations = function searchEvaluations(request, callback) {
+ return this.rpcCall(searchEvaluations, $root.google.cloud.datalabeling.v1beta1.SearchEvaluationsRequest, $root.google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse, request, callback);
+ }, "name", { value: "SearchEvaluations" });
+
+ /**
+ * Calls SearchEvaluations.
+ * @function searchEvaluations
+ * @memberof google.cloud.datalabeling.v1beta1.DataLabelingService
+ * @instance
+ * @param {google.cloud.datalabeling.v1beta1.ISearchEvaluationsRequest} request SearchEvaluationsRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.datalabeling.v1beta1.DataLabelingService|searchExampleComparisons}.
+ * @memberof google.cloud.datalabeling.v1beta1.DataLabelingService
+ * @typedef SearchExampleComparisonsCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse} [response] SearchExampleComparisonsResponse
+ */
+
+ /**
+ * Calls SearchExampleComparisons.
+ * @function searchExampleComparisons
+ * @memberof google.cloud.datalabeling.v1beta1.DataLabelingService
+ * @instance
+ * @param {google.cloud.datalabeling.v1beta1.ISearchExampleComparisonsRequest} request SearchExampleComparisonsRequest message or plain object
+ * @param {google.cloud.datalabeling.v1beta1.DataLabelingService.SearchExampleComparisonsCallback} callback Node-style callback called with the error, if any, and SearchExampleComparisonsResponse
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(DataLabelingService.prototype.searchExampleComparisons = function searchExampleComparisons(request, callback) {
+ return this.rpcCall(searchExampleComparisons, $root.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest, $root.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse, request, callback);
+ }, "name", { value: "SearchExampleComparisons" });
+
+ /**
+ * Calls SearchExampleComparisons.
+ * @function searchExampleComparisons
+ * @memberof google.cloud.datalabeling.v1beta1.DataLabelingService
+ * @instance
+ * @param {google.cloud.datalabeling.v1beta1.ISearchExampleComparisonsRequest} request SearchExampleComparisonsRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.datalabeling.v1beta1.DataLabelingService|createEvaluationJob}.
+ * @memberof google.cloud.datalabeling.v1beta1.DataLabelingService
+ * @typedef CreateEvaluationJobCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.datalabeling.v1beta1.EvaluationJob} [response] EvaluationJob
+ */
+
+ /**
+ * Calls CreateEvaluationJob.
+ * @function createEvaluationJob
+ * @memberof google.cloud.datalabeling.v1beta1.DataLabelingService
+ * @instance
+ * @param {google.cloud.datalabeling.v1beta1.ICreateEvaluationJobRequest} request CreateEvaluationJobRequest message or plain object
+ * @param {google.cloud.datalabeling.v1beta1.DataLabelingService.CreateEvaluationJobCallback} callback Node-style callback called with the error, if any, and EvaluationJob
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(DataLabelingService.prototype.createEvaluationJob = function createEvaluationJob(request, callback) {
+ return this.rpcCall(createEvaluationJob, $root.google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest, $root.google.cloud.datalabeling.v1beta1.EvaluationJob, request, callback);
+ }, "name", { value: "CreateEvaluationJob" });
+
+ /**
+ * Calls CreateEvaluationJob.
+ * @function createEvaluationJob
+ * @memberof google.cloud.datalabeling.v1beta1.DataLabelingService
+ * @instance
+ * @param {google.cloud.datalabeling.v1beta1.ICreateEvaluationJobRequest} request CreateEvaluationJobRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.datalabeling.v1beta1.DataLabelingService|updateEvaluationJob}.
+ * @memberof google.cloud.datalabeling.v1beta1.DataLabelingService
+ * @typedef UpdateEvaluationJobCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.datalabeling.v1beta1.EvaluationJob} [response] EvaluationJob
+ */
+
+ /**
+ * Calls UpdateEvaluationJob.
+ * @function updateEvaluationJob
+ * @memberof google.cloud.datalabeling.v1beta1.DataLabelingService
+ * @instance
+ * @param {google.cloud.datalabeling.v1beta1.IUpdateEvaluationJobRequest} request UpdateEvaluationJobRequest message or plain object
+ * @param {google.cloud.datalabeling.v1beta1.DataLabelingService.UpdateEvaluationJobCallback} callback Node-style callback called with the error, if any, and EvaluationJob
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(DataLabelingService.prototype.updateEvaluationJob = function updateEvaluationJob(request, callback) {
+ return this.rpcCall(updateEvaluationJob, $root.google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest, $root.google.cloud.datalabeling.v1beta1.EvaluationJob, request, callback);
+ }, "name", { value: "UpdateEvaluationJob" });
+
+ /**
+ * Calls UpdateEvaluationJob.
+ * @function updateEvaluationJob
+ * @memberof google.cloud.datalabeling.v1beta1.DataLabelingService
+ * @instance
+ * @param {google.cloud.datalabeling.v1beta1.IUpdateEvaluationJobRequest} request UpdateEvaluationJobRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.datalabeling.v1beta1.DataLabelingService|getEvaluationJob}.
+ * @memberof google.cloud.datalabeling.v1beta1.DataLabelingService
+ * @typedef GetEvaluationJobCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.datalabeling.v1beta1.EvaluationJob} [response] EvaluationJob
+ */
+
+ /**
+ * Calls GetEvaluationJob.
+ * @function getEvaluationJob
+ * @memberof google.cloud.datalabeling.v1beta1.DataLabelingService
+ * @instance
+ * @param {google.cloud.datalabeling.v1beta1.IGetEvaluationJobRequest} request GetEvaluationJobRequest message or plain object
+ * @param {google.cloud.datalabeling.v1beta1.DataLabelingService.GetEvaluationJobCallback} callback Node-style callback called with the error, if any, and EvaluationJob
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(DataLabelingService.prototype.getEvaluationJob = function getEvaluationJob(request, callback) {
+ return this.rpcCall(getEvaluationJob, $root.google.cloud.datalabeling.v1beta1.GetEvaluationJobRequest, $root.google.cloud.datalabeling.v1beta1.EvaluationJob, request, callback);
+ }, "name", { value: "GetEvaluationJob" });
+
+ /**
+ * Calls GetEvaluationJob.
+ * @function getEvaluationJob
+ * @memberof google.cloud.datalabeling.v1beta1.DataLabelingService
+ * @instance
+ * @param {google.cloud.datalabeling.v1beta1.IGetEvaluationJobRequest} request GetEvaluationJobRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.datalabeling.v1beta1.DataLabelingService|pauseEvaluationJob}.
+ * @memberof google.cloud.datalabeling.v1beta1.DataLabelingService
+ * @typedef PauseEvaluationJobCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.protobuf.Empty} [response] Empty
+ */
+
+ /**
+ * Calls PauseEvaluationJob.
+ * @function pauseEvaluationJob
+ * @memberof google.cloud.datalabeling.v1beta1.DataLabelingService
+ * @instance
+ * @param {google.cloud.datalabeling.v1beta1.IPauseEvaluationJobRequest} request PauseEvaluationJobRequest message or plain object
+ * @param {google.cloud.datalabeling.v1beta1.DataLabelingService.PauseEvaluationJobCallback} callback Node-style callback called with the error, if any, and Empty
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(DataLabelingService.prototype.pauseEvaluationJob = function pauseEvaluationJob(request, callback) {
+ return this.rpcCall(pauseEvaluationJob, $root.google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest, $root.google.protobuf.Empty, request, callback);
+ }, "name", { value: "PauseEvaluationJob" });
+
+ /**
+ * Calls PauseEvaluationJob.
+ * @function pauseEvaluationJob
+ * @memberof google.cloud.datalabeling.v1beta1.DataLabelingService
+ * @instance
+ * @param {google.cloud.datalabeling.v1beta1.IPauseEvaluationJobRequest} request PauseEvaluationJobRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.datalabeling.v1beta1.DataLabelingService|resumeEvaluationJob}.
+ * @memberof google.cloud.datalabeling.v1beta1.DataLabelingService
+ * @typedef ResumeEvaluationJobCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.protobuf.Empty} [response] Empty
+ */
+
+ /**
+ * Calls ResumeEvaluationJob.
+ * @function resumeEvaluationJob
+ * @memberof google.cloud.datalabeling.v1beta1.DataLabelingService
+ * @instance
+ * @param {google.cloud.datalabeling.v1beta1.IResumeEvaluationJobRequest} request ResumeEvaluationJobRequest message or plain object
+ * @param {google.cloud.datalabeling.v1beta1.DataLabelingService.ResumeEvaluationJobCallback} callback Node-style callback called with the error, if any, and Empty
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(DataLabelingService.prototype.resumeEvaluationJob = function resumeEvaluationJob(request, callback) {
+ return this.rpcCall(resumeEvaluationJob, $root.google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest, $root.google.protobuf.Empty, request, callback);
+ }, "name", { value: "ResumeEvaluationJob" });
+
+ /**
+ * Calls ResumeEvaluationJob.
+ * @function resumeEvaluationJob
+ * @memberof google.cloud.datalabeling.v1beta1.DataLabelingService
+ * @instance
+ * @param {google.cloud.datalabeling.v1beta1.IResumeEvaluationJobRequest} request ResumeEvaluationJobRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.datalabeling.v1beta1.DataLabelingService|deleteEvaluationJob}.
+ * @memberof google.cloud.datalabeling.v1beta1.DataLabelingService
+ * @typedef DeleteEvaluationJobCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.protobuf.Empty} [response] Empty
+ */
+
+ /**
+ * Calls DeleteEvaluationJob.
+ * @function deleteEvaluationJob
+ * @memberof google.cloud.datalabeling.v1beta1.DataLabelingService
+ * @instance
+ * @param {google.cloud.datalabeling.v1beta1.IDeleteEvaluationJobRequest} request DeleteEvaluationJobRequest message or plain object
+ * @param {google.cloud.datalabeling.v1beta1.DataLabelingService.DeleteEvaluationJobCallback} callback Node-style callback called with the error, if any, and Empty
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(DataLabelingService.prototype.deleteEvaluationJob = function deleteEvaluationJob(request, callback) {
+ return this.rpcCall(deleteEvaluationJob, $root.google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest, $root.google.protobuf.Empty, request, callback);
+ }, "name", { value: "DeleteEvaluationJob" });
+
+ /**
+ * Calls DeleteEvaluationJob.
+ * @function deleteEvaluationJob
+ * @memberof google.cloud.datalabeling.v1beta1.DataLabelingService
+ * @instance
+ * @param {google.cloud.datalabeling.v1beta1.IDeleteEvaluationJobRequest} request DeleteEvaluationJobRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.datalabeling.v1beta1.DataLabelingService|listEvaluationJobs}.
+ * @memberof google.cloud.datalabeling.v1beta1.DataLabelingService
+ * @typedef ListEvaluationJobsCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse} [response] ListEvaluationJobsResponse
+ */
+
+ /**
+ * Calls ListEvaluationJobs.
+ * @function listEvaluationJobs
+ * @memberof google.cloud.datalabeling.v1beta1.DataLabelingService
+ * @instance
+ * @param {google.cloud.datalabeling.v1beta1.IListEvaluationJobsRequest} request ListEvaluationJobsRequest message or plain object
+ * @param {google.cloud.datalabeling.v1beta1.DataLabelingService.ListEvaluationJobsCallback} callback Node-style callback called with the error, if any, and ListEvaluationJobsResponse
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(DataLabelingService.prototype.listEvaluationJobs = function listEvaluationJobs(request, callback) {
+ return this.rpcCall(listEvaluationJobs, $root.google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequest, $root.google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse, request, callback);
+ }, "name", { value: "ListEvaluationJobs" });
+
+ /**
+ * Calls ListEvaluationJobs.
+ * @function listEvaluationJobs
+ * @memberof google.cloud.datalabeling.v1beta1.DataLabelingService
+ * @instance
+ * @param {google.cloud.datalabeling.v1beta1.IListEvaluationJobsRequest} request ListEvaluationJobsRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ return DataLabelingService;
+ })();
+
+ v1beta1.CreateDatasetRequest = (function() {
+
+ /**
+ * Properties of a CreateDatasetRequest.
+ * @memberof google.cloud.datalabeling.v1beta1
+ * @interface ICreateDatasetRequest
+ * @property {string|null} [parent] CreateDatasetRequest parent
+ * @property {google.cloud.datalabeling.v1beta1.IDataset|null} [dataset] CreateDatasetRequest dataset
+ */
+
+ /**
+ * Constructs a new CreateDatasetRequest.
+ * @memberof google.cloud.datalabeling.v1beta1
+ * @classdesc Represents a CreateDatasetRequest.
+ * @implements ICreateDatasetRequest
+ * @constructor
+ * @param {google.cloud.datalabeling.v1beta1.ICreateDatasetRequest=} [properties] Properties to set
+ */
+ function CreateDatasetRequest(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]];
+ }
+
+ /**
+ * CreateDatasetRequest parent.
+ * @member {string} parent
+ * @memberof google.cloud.datalabeling.v1beta1.CreateDatasetRequest
+ * @instance
+ */
+ CreateDatasetRequest.prototype.parent = "";
+
+ /**
+ * CreateDatasetRequest dataset.
+ * @member {google.cloud.datalabeling.v1beta1.IDataset|null|undefined} dataset
+ * @memberof google.cloud.datalabeling.v1beta1.CreateDatasetRequest
+ * @instance
+ */
+ CreateDatasetRequest.prototype.dataset = null;
+
+ /**
+ * Creates a new CreateDatasetRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.datalabeling.v1beta1.CreateDatasetRequest
+ * @static
+ * @param {google.cloud.datalabeling.v1beta1.ICreateDatasetRequest=} [properties] Properties to set
+ * @returns {google.cloud.datalabeling.v1beta1.CreateDatasetRequest} CreateDatasetRequest instance
+ */
+ CreateDatasetRequest.create = function create(properties) {
+ return new CreateDatasetRequest(properties);
+ };
+
+ /**
+ * Encodes the specified CreateDatasetRequest message. Does not implicitly {@link google.cloud.datalabeling.v1beta1.CreateDatasetRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.datalabeling.v1beta1.CreateDatasetRequest
+ * @static
+ * @param {google.cloud.datalabeling.v1beta1.ICreateDatasetRequest} message CreateDatasetRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ CreateDatasetRequest.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.dataset != null && Object.hasOwnProperty.call(message, "dataset"))
+ $root.google.cloud.datalabeling.v1beta1.Dataset.encode(message.dataset, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified CreateDatasetRequest message, length delimited. Does not implicitly {@link google.cloud.datalabeling.v1beta1.CreateDatasetRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.datalabeling.v1beta1.CreateDatasetRequest
+ * @static
+ * @param {google.cloud.datalabeling.v1beta1.ICreateDatasetRequest} message CreateDatasetRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ CreateDatasetRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a CreateDatasetRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.datalabeling.v1beta1.CreateDatasetRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.datalabeling.v1beta1.CreateDatasetRequest} CreateDatasetRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ CreateDatasetRequest.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.datalabeling.v1beta1.CreateDatasetRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.parent = reader.string();
+ break;
+ }
+ case 2: {
+ message.dataset = $root.google.cloud.datalabeling.v1beta1.Dataset.decode(reader, reader.uint32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a CreateDatasetRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.datalabeling.v1beta1.CreateDatasetRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.datalabeling.v1beta1.CreateDatasetRequest} CreateDatasetRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ CreateDatasetRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a CreateDatasetRequest message.
+ * @function verify
+ * @memberof google.cloud.datalabeling.v1beta1.CreateDatasetRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ CreateDatasetRequest.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.dataset != null && message.hasOwnProperty("dataset")) {
+ var error = $root.google.cloud.datalabeling.v1beta1.Dataset.verify(message.dataset);
+ if (error)
+ return "dataset." + error;
+ }
+ return null;
+ };
+
+ /**
+ * Creates a CreateDatasetRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.datalabeling.v1beta1.CreateDatasetRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.datalabeling.v1beta1.CreateDatasetRequest} CreateDatasetRequest
+ */
+ CreateDatasetRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.datalabeling.v1beta1.CreateDatasetRequest)
+ return object;
+ var message = new $root.google.cloud.datalabeling.v1beta1.CreateDatasetRequest();
+ if (object.parent != null)
+ message.parent = String(object.parent);
+ if (object.dataset != null) {
+ if (typeof object.dataset !== "object")
+ throw TypeError(".google.cloud.datalabeling.v1beta1.CreateDatasetRequest.dataset: object expected");
+ message.dataset = $root.google.cloud.datalabeling.v1beta1.Dataset.fromObject(object.dataset);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a CreateDatasetRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.datalabeling.v1beta1.CreateDatasetRequest
+ * @static
+ * @param {google.cloud.datalabeling.v1beta1.CreateDatasetRequest} message CreateDatasetRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ CreateDatasetRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.parent = "";
+ object.dataset = null;
+ }
+ if (message.parent != null && message.hasOwnProperty("parent"))
+ object.parent = message.parent;
+ if (message.dataset != null && message.hasOwnProperty("dataset"))
+ object.dataset = $root.google.cloud.datalabeling.v1beta1.Dataset.toObject(message.dataset, options);
+ return object;
+ };
+
+ /**
+ * Converts this CreateDatasetRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.datalabeling.v1beta1.CreateDatasetRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ CreateDatasetRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for CreateDatasetRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.datalabeling.v1beta1.CreateDatasetRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ CreateDatasetRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.datalabeling.v1beta1.CreateDatasetRequest";
+ };
+
+ return CreateDatasetRequest;
+ })();
+
+ v1beta1.GetDatasetRequest = (function() {
+
+ /**
+ * Properties of a GetDatasetRequest.
+ * @memberof google.cloud.datalabeling.v1beta1
+ * @interface IGetDatasetRequest
+ * @property {string|null} [name] GetDatasetRequest name
+ */
+
+ /**
+ * Constructs a new GetDatasetRequest.
+ * @memberof google.cloud.datalabeling.v1beta1
+ * @classdesc Represents a GetDatasetRequest.
+ * @implements IGetDatasetRequest
+ * @constructor
+ * @param {google.cloud.datalabeling.v1beta1.IGetDatasetRequest=} [properties] Properties to set
+ */
+ function GetDatasetRequest(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]];
+ }
+
+ /**
+ * GetDatasetRequest name.
+ * @member {string} name
+ * @memberof google.cloud.datalabeling.v1beta1.GetDatasetRequest
+ * @instance
+ */
+ GetDatasetRequest.prototype.name = "";
+
+ /**
+ * Creates a new GetDatasetRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.datalabeling.v1beta1.GetDatasetRequest
+ * @static
+ * @param {google.cloud.datalabeling.v1beta1.IGetDatasetRequest=} [properties] Properties to set
+ * @returns {google.cloud.datalabeling.v1beta1.GetDatasetRequest} GetDatasetRequest instance
+ */
+ GetDatasetRequest.create = function create(properties) {
+ return new GetDatasetRequest(properties);
+ };
+
+ /**
+ * Encodes the specified GetDatasetRequest message. Does not implicitly {@link google.cloud.datalabeling.v1beta1.GetDatasetRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.datalabeling.v1beta1.GetDatasetRequest
+ * @static
+ * @param {google.cloud.datalabeling.v1beta1.IGetDatasetRequest} message GetDatasetRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GetDatasetRequest.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 GetDatasetRequest message, length delimited. Does not implicitly {@link google.cloud.datalabeling.v1beta1.GetDatasetRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.datalabeling.v1beta1.GetDatasetRequest
+ * @static
+ * @param {google.cloud.datalabeling.v1beta1.IGetDatasetRequest} message GetDatasetRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GetDatasetRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a GetDatasetRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.datalabeling.v1beta1.GetDatasetRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.datalabeling.v1beta1.GetDatasetRequest} GetDatasetRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GetDatasetRequest.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.datalabeling.v1beta1.GetDatasetRequest();
+ 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 GetDatasetRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.datalabeling.v1beta1.GetDatasetRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.datalabeling.v1beta1.GetDatasetRequest} GetDatasetRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GetDatasetRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a GetDatasetRequest message.
+ * @function verify
+ * @memberof google.cloud.datalabeling.v1beta1.GetDatasetRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ GetDatasetRequest.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 GetDatasetRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.datalabeling.v1beta1.GetDatasetRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.datalabeling.v1beta1.GetDatasetRequest} GetDatasetRequest
+ */
+ GetDatasetRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.datalabeling.v1beta1.GetDatasetRequest)
+ return object;
+ var message = new $root.google.cloud.datalabeling.v1beta1.GetDatasetRequest();
+ if (object.name != null)
+ message.name = String(object.name);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a GetDatasetRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.datalabeling.v1beta1.GetDatasetRequest
+ * @static
+ * @param {google.cloud.datalabeling.v1beta1.GetDatasetRequest} message GetDatasetRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ GetDatasetRequest.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 GetDatasetRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.datalabeling.v1beta1.GetDatasetRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ GetDatasetRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for GetDatasetRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.datalabeling.v1beta1.GetDatasetRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ GetDatasetRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.datalabeling.v1beta1.GetDatasetRequest";
+ };
+
+ return GetDatasetRequest;
+ })();
+
+ v1beta1.ListDatasetsRequest = (function() {
+
+ /**
+ * Properties of a ListDatasetsRequest.
+ * @memberof google.cloud.datalabeling.v1beta1
+ * @interface IListDatasetsRequest
+ * @property {string|null} [parent] ListDatasetsRequest parent
+ * @property {string|null} [filter] ListDatasetsRequest filter
+ * @property {number|null} [pageSize] ListDatasetsRequest pageSize
+ * @property {string|null} [pageToken] ListDatasetsRequest pageToken
+ */
+
+ /**
+ * Constructs a new ListDatasetsRequest.
+ * @memberof google.cloud.datalabeling.v1beta1
+ * @classdesc Represents a ListDatasetsRequest.
+ * @implements IListDatasetsRequest
+ * @constructor
+ * @param {google.cloud.datalabeling.v1beta1.IListDatasetsRequest=} [properties] Properties to set
+ */
+ function ListDatasetsRequest(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]];
+ }
+
+ /**
+ * ListDatasetsRequest parent.
+ * @member {string} parent
+ * @memberof google.cloud.datalabeling.v1beta1.ListDatasetsRequest
+ * @instance
+ */
+ ListDatasetsRequest.prototype.parent = "";
+
+ /**
+ * ListDatasetsRequest filter.
+ * @member {string} filter
+ * @memberof google.cloud.datalabeling.v1beta1.ListDatasetsRequest
+ * @instance
+ */
+ ListDatasetsRequest.prototype.filter = "";
+
+ /**
+ * ListDatasetsRequest pageSize.
+ * @member {number} pageSize
+ * @memberof google.cloud.datalabeling.v1beta1.ListDatasetsRequest
+ * @instance
+ */
+ ListDatasetsRequest.prototype.pageSize = 0;
+
+ /**
+ * ListDatasetsRequest pageToken.
+ * @member {string} pageToken
+ * @memberof google.cloud.datalabeling.v1beta1.ListDatasetsRequest
+ * @instance
+ */
+ ListDatasetsRequest.prototype.pageToken = "";
+
+ /**
+ * Creates a new ListDatasetsRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.datalabeling.v1beta1.ListDatasetsRequest
+ * @static
+ * @param {google.cloud.datalabeling.v1beta1.IListDatasetsRequest=} [properties] Properties to set
+ * @returns {google.cloud.datalabeling.v1beta1.ListDatasetsRequest} ListDatasetsRequest instance
+ */
+ ListDatasetsRequest.create = function create(properties) {
+ return new ListDatasetsRequest(properties);
+ };
+
+ /**
+ * Encodes the specified ListDatasetsRequest message. Does not implicitly {@link google.cloud.datalabeling.v1beta1.ListDatasetsRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.datalabeling.v1beta1.ListDatasetsRequest
+ * @static
+ * @param {google.cloud.datalabeling.v1beta1.IListDatasetsRequest} message ListDatasetsRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListDatasetsRequest.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.filter != null && Object.hasOwnProperty.call(message, "filter"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.filter);
+ if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize"))
+ writer.uint32(/* id 3, wireType 0 =*/24).int32(message.pageSize);
+ if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken"))
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.pageToken);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ListDatasetsRequest message, length delimited. Does not implicitly {@link google.cloud.datalabeling.v1beta1.ListDatasetsRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.datalabeling.v1beta1.ListDatasetsRequest
+ * @static
+ * @param {google.cloud.datalabeling.v1beta1.IListDatasetsRequest} message ListDatasetsRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListDatasetsRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ListDatasetsRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.datalabeling.v1beta1.ListDatasetsRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.datalabeling.v1beta1.ListDatasetsRequest} ListDatasetsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListDatasetsRequest.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.datalabeling.v1beta1.ListDatasetsRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.parent = reader.string();
+ break;
+ }
+ case 2: {
+ message.filter = reader.string();
+ break;
+ }
+ case 3: {
+ message.pageSize = reader.int32();
+ break;
+ }
+ case 4: {
+ message.pageToken = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ListDatasetsRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.datalabeling.v1beta1.ListDatasetsRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.datalabeling.v1beta1.ListDatasetsRequest} ListDatasetsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListDatasetsRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ListDatasetsRequest message.
+ * @function verify
+ * @memberof google.cloud.datalabeling.v1beta1.ListDatasetsRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ListDatasetsRequest.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.filter != null && message.hasOwnProperty("filter"))
+ if (!$util.isString(message.filter))
+ return "filter: string expected";
+ if (message.pageSize != null && message.hasOwnProperty("pageSize"))
+ if (!$util.isInteger(message.pageSize))
+ return "pageSize: integer expected";
+ if (message.pageToken != null && message.hasOwnProperty("pageToken"))
+ if (!$util.isString(message.pageToken))
+ return "pageToken: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a ListDatasetsRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.datalabeling.v1beta1.ListDatasetsRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.datalabeling.v1beta1.ListDatasetsRequest} ListDatasetsRequest
+ */
+ ListDatasetsRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.datalabeling.v1beta1.ListDatasetsRequest)
+ return object;
+ var message = new $root.google.cloud.datalabeling.v1beta1.ListDatasetsRequest();
+ if (object.parent != null)
+ message.parent = String(object.parent);
+ if (object.filter != null)
+ message.filter = String(object.filter);
+ if (object.pageSize != null)
+ message.pageSize = object.pageSize | 0;
+ if (object.pageToken != null)
+ message.pageToken = String(object.pageToken);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ListDatasetsRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.datalabeling.v1beta1.ListDatasetsRequest
+ * @static
+ * @param {google.cloud.datalabeling.v1beta1.ListDatasetsRequest} message ListDatasetsRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ListDatasetsRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.parent = "";
+ object.filter = "";
+ object.pageSize = 0;
+ object.pageToken = "";
+ }
+ if (message.parent != null && message.hasOwnProperty("parent"))
+ object.parent = message.parent;
+ if (message.filter != null && message.hasOwnProperty("filter"))
+ object.filter = message.filter;
+ if (message.pageSize != null && message.hasOwnProperty("pageSize"))
+ object.pageSize = message.pageSize;
+ if (message.pageToken != null && message.hasOwnProperty("pageToken"))
+ object.pageToken = message.pageToken;
+ return object;
+ };
+
+ /**
+ * Converts this ListDatasetsRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.datalabeling.v1beta1.ListDatasetsRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ListDatasetsRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ListDatasetsRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.datalabeling.v1beta1.ListDatasetsRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ListDatasetsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.datalabeling.v1beta1.ListDatasetsRequest";
+ };
+
+ return ListDatasetsRequest;
+ })();
+
+ v1beta1.ListDatasetsResponse = (function() {
+
+ /**
+ * Properties of a ListDatasetsResponse.
+ * @memberof google.cloud.datalabeling.v1beta1
+ * @interface IListDatasetsResponse
+ * @property {Array.|null} [datasets] ListDatasetsResponse datasets
+ * @property {string|null} [nextPageToken] ListDatasetsResponse nextPageToken
+ */
+
+ /**
+ * Constructs a new ListDatasetsResponse.
+ * @memberof google.cloud.datalabeling.v1beta1
+ * @classdesc Represents a ListDatasetsResponse.
+ * @implements IListDatasetsResponse
+ * @constructor
+ * @param {google.cloud.datalabeling.v1beta1.IListDatasetsResponse=} [properties] Properties to set
+ */
+ function ListDatasetsResponse(properties) {
+ this.datasets = [];
+ 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]];
+ }
+
+ /**
+ * ListDatasetsResponse datasets.
+ * @member {Array.} datasets
+ * @memberof google.cloud.datalabeling.v1beta1.ListDatasetsResponse
+ * @instance
+ */
+ ListDatasetsResponse.prototype.datasets = $util.emptyArray;
+
+ /**
+ * ListDatasetsResponse nextPageToken.
+ * @member {string} nextPageToken
+ * @memberof google.cloud.datalabeling.v1beta1.ListDatasetsResponse
+ * @instance
+ */
+ ListDatasetsResponse.prototype.nextPageToken = "";
+
+ /**
+ * Creates a new ListDatasetsResponse instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.datalabeling.v1beta1.ListDatasetsResponse
+ * @static
+ * @param {google.cloud.datalabeling.v1beta1.IListDatasetsResponse=} [properties] Properties to set
+ * @returns {google.cloud.datalabeling.v1beta1.ListDatasetsResponse} ListDatasetsResponse instance
+ */
+ ListDatasetsResponse.create = function create(properties) {
+ return new ListDatasetsResponse(properties);
+ };
+
+ /**
+ * Encodes the specified ListDatasetsResponse message. Does not implicitly {@link google.cloud.datalabeling.v1beta1.ListDatasetsResponse.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.datalabeling.v1beta1.ListDatasetsResponse
+ * @static
+ * @param {google.cloud.datalabeling.v1beta1.IListDatasetsResponse} message ListDatasetsResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListDatasetsResponse.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.datasets != null && message.datasets.length)
+ for (var i = 0; i < message.datasets.length; ++i)
+ $root.google.cloud.datalabeling.v1beta1.Dataset.encode(message.datasets[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
+ if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ListDatasetsResponse message, length delimited. Does not implicitly {@link google.cloud.datalabeling.v1beta1.ListDatasetsResponse.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.datalabeling.v1beta1.ListDatasetsResponse
+ * @static
+ * @param {google.cloud.datalabeling.v1beta1.IListDatasetsResponse} message ListDatasetsResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListDatasetsResponse.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ListDatasetsResponse message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.datalabeling.v1beta1.ListDatasetsResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.datalabeling.v1beta1.ListDatasetsResponse} ListDatasetsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListDatasetsResponse.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.datalabeling.v1beta1.ListDatasetsResponse();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ if (!(message.datasets && message.datasets.length))
+ message.datasets = [];
+ message.datasets.push($root.google.cloud.datalabeling.v1beta1.Dataset.decode(reader, reader.uint32()));
+ break;
+ }
+ case 2: {
+ message.nextPageToken = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ListDatasetsResponse message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.datalabeling.v1beta1.ListDatasetsResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.datalabeling.v1beta1.ListDatasetsResponse} ListDatasetsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListDatasetsResponse.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ListDatasetsResponse message.
+ * @function verify
+ * @memberof google.cloud.datalabeling.v1beta1.ListDatasetsResponse
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ListDatasetsResponse.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.datasets != null && message.hasOwnProperty("datasets")) {
+ if (!Array.isArray(message.datasets))
+ return "datasets: array expected";
+ for (var i = 0; i < message.datasets.length; ++i) {
+ var error = $root.google.cloud.datalabeling.v1beta1.Dataset.verify(message.datasets[i]);
+ if (error)
+ return "datasets." + error;
+ }
+ }
+ if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken"))
+ if (!$util.isString(message.nextPageToken))
+ return "nextPageToken: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a ListDatasetsResponse message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.datalabeling.v1beta1.ListDatasetsResponse
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.datalabeling.v1beta1.ListDatasetsResponse} ListDatasetsResponse
+ */
+ ListDatasetsResponse.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.datalabeling.v1beta1.ListDatasetsResponse)
+ return object;
+ var message = new $root.google.cloud.datalabeling.v1beta1.ListDatasetsResponse();
+ if (object.datasets) {
+ if (!Array.isArray(object.datasets))
+ throw TypeError(".google.cloud.datalabeling.v1beta1.ListDatasetsResponse.datasets: array expected");
+ message.datasets = [];
+ for (var i = 0; i < object.datasets.length; ++i) {
+ if (typeof object.datasets[i] !== "object")
+ throw TypeError(".google.cloud.datalabeling.v1beta1.ListDatasetsResponse.datasets: object expected");
+ message.datasets[i] = $root.google.cloud.datalabeling.v1beta1.Dataset.fromObject(object.datasets[i]);
+ }
+ }
+ if (object.nextPageToken != null)
+ message.nextPageToken = String(object.nextPageToken);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ListDatasetsResponse message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.datalabeling.v1beta1.ListDatasetsResponse
+ * @static
+ * @param {google.cloud.datalabeling.v1beta1.ListDatasetsResponse} message ListDatasetsResponse
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ListDatasetsResponse.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.datasets = [];
+ if (options.defaults)
+ object.nextPageToken = "";
+ if (message.datasets && message.datasets.length) {
+ object.datasets = [];
+ for (var j = 0; j < message.datasets.length; ++j)
+ object.datasets[j] = $root.google.cloud.datalabeling.v1beta1.Dataset.toObject(message.datasets[j], options);
+ }
+ if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken"))
+ object.nextPageToken = message.nextPageToken;
+ return object;
+ };
+
+ /**
+ * Converts this ListDatasetsResponse to JSON.
+ * @function toJSON
+ * @memberof google.cloud.datalabeling.v1beta1.ListDatasetsResponse
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ListDatasetsResponse.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ListDatasetsResponse
+ * @function getTypeUrl
+ * @memberof google.cloud.datalabeling.v1beta1.ListDatasetsResponse
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ListDatasetsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.datalabeling.v1beta1.ListDatasetsResponse";
+ };
+
+ return ListDatasetsResponse;
+ })();
+
+ v1beta1.DeleteDatasetRequest = (function() {
+
+ /**
+ * Properties of a DeleteDatasetRequest.
+ * @memberof google.cloud.datalabeling.v1beta1
+ * @interface IDeleteDatasetRequest
+ * @property {string|null} [name] DeleteDatasetRequest name
+ */
+
+ /**
+ * Constructs a new DeleteDatasetRequest.
+ * @memberof google.cloud.datalabeling.v1beta1
+ * @classdesc Represents a DeleteDatasetRequest.
+ * @implements IDeleteDatasetRequest
+ * @constructor
+ * @param {google.cloud.datalabeling.v1beta1.IDeleteDatasetRequest=} [properties] Properties to set
+ */
+ function DeleteDatasetRequest(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]];
+ }
+
+ /**
+ * DeleteDatasetRequest name.
+ * @member {string} name
+ * @memberof google.cloud.datalabeling.v1beta1.DeleteDatasetRequest
+ * @instance
+ */
+ DeleteDatasetRequest.prototype.name = "";
+
+ /**
+ * Creates a new DeleteDatasetRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.datalabeling.v1beta1.DeleteDatasetRequest
+ * @static
+ * @param {google.cloud.datalabeling.v1beta1.IDeleteDatasetRequest=} [properties] Properties to set
+ * @returns {google.cloud.datalabeling.v1beta1.DeleteDatasetRequest} DeleteDatasetRequest instance
+ */
+ DeleteDatasetRequest.create = function create(properties) {
+ return new DeleteDatasetRequest(properties);
+ };
+
+ /**
+ * Encodes the specified DeleteDatasetRequest message. Does not implicitly {@link google.cloud.datalabeling.v1beta1.DeleteDatasetRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.datalabeling.v1beta1.DeleteDatasetRequest
+ * @static
+ * @param {google.cloud.datalabeling.v1beta1.IDeleteDatasetRequest} message DeleteDatasetRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ DeleteDatasetRequest.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 DeleteDatasetRequest message, length delimited. Does not implicitly {@link google.cloud.datalabeling.v1beta1.DeleteDatasetRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.datalabeling.v1beta1.DeleteDatasetRequest
+ * @static
+ * @param {google.cloud.datalabeling.v1beta1.IDeleteDatasetRequest} message DeleteDatasetRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ DeleteDatasetRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a DeleteDatasetRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.datalabeling.v1beta1.DeleteDatasetRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.datalabeling.v1beta1.DeleteDatasetRequest} DeleteDatasetRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ DeleteDatasetRequest.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.datalabeling.v1beta1.DeleteDatasetRequest();
+ 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 DeleteDatasetRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.datalabeling.v1beta1.DeleteDatasetRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.datalabeling.v1beta1.DeleteDatasetRequest} DeleteDatasetRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ DeleteDatasetRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a DeleteDatasetRequest message.
+ * @function verify
+ * @memberof google.cloud.datalabeling.v1beta1.DeleteDatasetRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ DeleteDatasetRequest.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 DeleteDatasetRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.datalabeling.v1beta1.DeleteDatasetRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.datalabeling.v1beta1.DeleteDatasetRequest} DeleteDatasetRequest
+ */
+ DeleteDatasetRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.datalabeling.v1beta1.DeleteDatasetRequest)
+ return object;
+ var message = new $root.google.cloud.datalabeling.v1beta1.DeleteDatasetRequest();
+ if (object.name != null)
+ message.name = String(object.name);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a DeleteDatasetRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.datalabeling.v1beta1.DeleteDatasetRequest
+ * @static
+ * @param {google.cloud.datalabeling.v1beta1.DeleteDatasetRequest} message DeleteDatasetRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ DeleteDatasetRequest.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 DeleteDatasetRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.datalabeling.v1beta1.DeleteDatasetRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ DeleteDatasetRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for DeleteDatasetRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.datalabeling.v1beta1.DeleteDatasetRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ DeleteDatasetRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.datalabeling.v1beta1.DeleteDatasetRequest";
+ };
+
+ return DeleteDatasetRequest;
+ })();
+
+ v1beta1.ImportDataRequest = (function() {
+
+ /**
+ * Properties of an ImportDataRequest.
+ * @memberof google.cloud.datalabeling.v1beta1
+ * @interface IImportDataRequest
+ * @property {string|null} [name] ImportDataRequest name
+ * @property {google.cloud.datalabeling.v1beta1.IInputConfig|null} [inputConfig] ImportDataRequest inputConfig
+ * @property {string|null} [userEmailAddress] ImportDataRequest userEmailAddress
+ */
+
+ /**
+ * Constructs a new ImportDataRequest.
+ * @memberof google.cloud.datalabeling.v1beta1
+ * @classdesc Represents an ImportDataRequest.
+ * @implements IImportDataRequest
+ * @constructor
+ * @param {google.cloud.datalabeling.v1beta1.IImportDataRequest=} [properties] Properties to set
+ */
+ function ImportDataRequest(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]];
+ }
+
+ /**
+ * ImportDataRequest name.
+ * @member {string} name
+ * @memberof google.cloud.datalabeling.v1beta1.ImportDataRequest
+ * @instance
+ */
+ ImportDataRequest.prototype.name = "";
+
+ /**
+ * ImportDataRequest inputConfig.
+ * @member {google.cloud.datalabeling.v1beta1.IInputConfig|null|undefined} inputConfig
+ * @memberof google.cloud.datalabeling.v1beta1.ImportDataRequest
+ * @instance
+ */
+ ImportDataRequest.prototype.inputConfig = null;
+
+ /**
+ * ImportDataRequest userEmailAddress.
+ * @member {string} userEmailAddress
+ * @memberof google.cloud.datalabeling.v1beta1.ImportDataRequest
+ * @instance
+ */
+ ImportDataRequest.prototype.userEmailAddress = "";
+
+ /**
+ * Creates a new ImportDataRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.datalabeling.v1beta1.ImportDataRequest
+ * @static
+ * @param {google.cloud.datalabeling.v1beta1.IImportDataRequest=} [properties] Properties to set
+ * @returns {google.cloud.datalabeling.v1beta1.ImportDataRequest} ImportDataRequest instance
+ */
+ ImportDataRequest.create = function create(properties) {
+ return new ImportDataRequest(properties);
+ };
+
+ /**
+ * Encodes the specified ImportDataRequest message. Does not implicitly {@link google.cloud.datalabeling.v1beta1.ImportDataRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.datalabeling.v1beta1.ImportDataRequest
+ * @static
+ * @param {google.cloud.datalabeling.v1beta1.IImportDataRequest} message ImportDataRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ImportDataRequest.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.inputConfig != null && Object.hasOwnProperty.call(message, "inputConfig"))
+ $root.google.cloud.datalabeling.v1beta1.InputConfig.encode(message.inputConfig, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
+ if (message.userEmailAddress != null && Object.hasOwnProperty.call(message, "userEmailAddress"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.userEmailAddress);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ImportDataRequest message, length delimited. Does not implicitly {@link google.cloud.datalabeling.v1beta1.ImportDataRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.datalabeling.v1beta1.ImportDataRequest
+ * @static
+ * @param {google.cloud.datalabeling.v1beta1.IImportDataRequest} message ImportDataRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ImportDataRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes an ImportDataRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.datalabeling.v1beta1.ImportDataRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.datalabeling.v1beta1.ImportDataRequest} ImportDataRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ImportDataRequest.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.datalabeling.v1beta1.ImportDataRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.name = reader.string();
+ break;
+ }
+ case 2: {
+ message.inputConfig = $root.google.cloud.datalabeling.v1beta1.InputConfig.decode(reader, reader.uint32());
+ break;
+ }
+ case 3: {
+ message.userEmailAddress = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an ImportDataRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.datalabeling.v1beta1.ImportDataRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.datalabeling.v1beta1.ImportDataRequest} ImportDataRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ImportDataRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an ImportDataRequest message.
+ * @function verify
+ * @memberof google.cloud.datalabeling.v1beta1.ImportDataRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ImportDataRequest.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.inputConfig != null && message.hasOwnProperty("inputConfig")) {
+ var error = $root.google.cloud.datalabeling.v1beta1.InputConfig.verify(message.inputConfig);
+ if (error)
+ return "inputConfig." + error;
+ }
+ if (message.userEmailAddress != null && message.hasOwnProperty("userEmailAddress"))
+ if (!$util.isString(message.userEmailAddress))
+ return "userEmailAddress: string expected";
+ return null;
+ };
+
+ /**
+ * Creates an ImportDataRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.datalabeling.v1beta1.ImportDataRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.datalabeling.v1beta1.ImportDataRequest} ImportDataRequest
+ */
+ ImportDataRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.datalabeling.v1beta1.ImportDataRequest)
+ return object;
+ var message = new $root.google.cloud.datalabeling.v1beta1.ImportDataRequest();
+ if (object.name != null)
+ message.name = String(object.name);
+ if (object.inputConfig != null) {
+ if (typeof object.inputConfig !== "object")
+ throw TypeError(".google.cloud.datalabeling.v1beta1.ImportDataRequest.inputConfig: object expected");
+ message.inputConfig = $root.google.cloud.datalabeling.v1beta1.InputConfig.fromObject(object.inputConfig);
+ }
+ if (object.userEmailAddress != null)
+ message.userEmailAddress = String(object.userEmailAddress);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an ImportDataRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.datalabeling.v1beta1.ImportDataRequest
+ * @static
+ * @param {google.cloud.datalabeling.v1beta1.ImportDataRequest} message ImportDataRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ImportDataRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.name = "";
+ object.inputConfig = null;
+ object.userEmailAddress = "";
+ }
+ if (message.name != null && message.hasOwnProperty("name"))
+ object.name = message.name;
+ if (message.inputConfig != null && message.hasOwnProperty("inputConfig"))
+ object.inputConfig = $root.google.cloud.datalabeling.v1beta1.InputConfig.toObject(message.inputConfig, options);
+ if (message.userEmailAddress != null && message.hasOwnProperty("userEmailAddress"))
+ object.userEmailAddress = message.userEmailAddress;
+ return object;
+ };
+
+ /**
+ * Converts this ImportDataRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.datalabeling.v1beta1.ImportDataRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ImportDataRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ImportDataRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.datalabeling.v1beta1.ImportDataRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ImportDataRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.datalabeling.v1beta1.ImportDataRequest";
+ };
+
+ return ImportDataRequest;
+ })();
+
+ v1beta1.ExportDataRequest = (function() {
+
+ /**
+ * Properties of an ExportDataRequest.
+ * @memberof google.cloud.datalabeling.v1beta1
+ * @interface IExportDataRequest
+ * @property {string|null} [name] ExportDataRequest name
+ * @property {string|null} [annotatedDataset] ExportDataRequest annotatedDataset
+ * @property {string|null} [filter] ExportDataRequest filter
+ * @property {google.cloud.datalabeling.v1beta1.IOutputConfig|null} [outputConfig] ExportDataRequest outputConfig
+ * @property {string|null} [userEmailAddress] ExportDataRequest userEmailAddress
+ */
+
+ /**
+ * Constructs a new ExportDataRequest.
+ * @memberof google.cloud.datalabeling.v1beta1
+ * @classdesc Represents an ExportDataRequest.
+ * @implements IExportDataRequest
+ * @constructor
+ * @param {google.cloud.datalabeling.v1beta1.IExportDataRequest=} [properties] Properties to set
+ */
+ function ExportDataRequest(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]];
+ }
+
+ /**
+ * ExportDataRequest name.
+ * @member {string} name
+ * @memberof google.cloud.datalabeling.v1beta1.ExportDataRequest
+ * @instance
+ */
+ ExportDataRequest.prototype.name = "";
+
+ /**
+ * ExportDataRequest annotatedDataset.
+ * @member {string} annotatedDataset
+ * @memberof google.cloud.datalabeling.v1beta1.ExportDataRequest
+ * @instance
+ */
+ ExportDataRequest.prototype.annotatedDataset = "";
+
+ /**
+ * ExportDataRequest filter.
+ * @member {string} filter
+ * @memberof google.cloud.datalabeling.v1beta1.ExportDataRequest
+ * @instance
+ */
+ ExportDataRequest.prototype.filter = "";
+
+ /**
+ * ExportDataRequest outputConfig.
+ * @member {google.cloud.datalabeling.v1beta1.IOutputConfig|null|undefined} outputConfig
+ * @memberof google.cloud.datalabeling.v1beta1.ExportDataRequest
+ * @instance
+ */
+ ExportDataRequest.prototype.outputConfig = null;
+
+ /**
+ * ExportDataRequest userEmailAddress.
+ * @member {string} userEmailAddress
+ * @memberof google.cloud.datalabeling.v1beta1.ExportDataRequest
+ * @instance
+ */
+ ExportDataRequest.prototype.userEmailAddress = "";
+
+ /**
+ * Creates a new ExportDataRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.datalabeling.v1beta1.ExportDataRequest
+ * @static
+ * @param {google.cloud.datalabeling.v1beta1.IExportDataRequest=} [properties] Properties to set
+ * @returns {google.cloud.datalabeling.v1beta1.ExportDataRequest} ExportDataRequest instance
+ */
+ ExportDataRequest.create = function create(properties) {
+ return new ExportDataRequest(properties);
+ };
+
+ /**
+ * Encodes the specified ExportDataRequest message. Does not implicitly {@link google.cloud.datalabeling.v1beta1.ExportDataRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.datalabeling.v1beta1.ExportDataRequest
+ * @static
+ * @param {google.cloud.datalabeling.v1beta1.IExportDataRequest} message ExportDataRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ExportDataRequest.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.annotatedDataset != null && Object.hasOwnProperty.call(message, "annotatedDataset"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.annotatedDataset);
+ if (message.filter != null && Object.hasOwnProperty.call(message, "filter"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.filter);
+ if (message.outputConfig != null && Object.hasOwnProperty.call(message, "outputConfig"))
+ $root.google.cloud.datalabeling.v1beta1.OutputConfig.encode(message.outputConfig, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
+ if (message.userEmailAddress != null && Object.hasOwnProperty.call(message, "userEmailAddress"))
+ writer.uint32(/* id 5, wireType 2 =*/42).string(message.userEmailAddress);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ExportDataRequest message, length delimited. Does not implicitly {@link google.cloud.datalabeling.v1beta1.ExportDataRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.datalabeling.v1beta1.ExportDataRequest
+ * @static
+ * @param {google.cloud.datalabeling.v1beta1.IExportDataRequest} message ExportDataRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ExportDataRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes an ExportDataRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.datalabeling.v1beta1.ExportDataRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.datalabeling.v1beta1.ExportDataRequest} ExportDataRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ExportDataRequest.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.datalabeling.v1beta1.ExportDataRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.name = reader.string();
+ break;
+ }
+ case 2: {
+ message.annotatedDataset = reader.string();
+ break;
+ }
+ case 3: {
+ message.filter = reader.string();
+ break;
+ }
+ case 4: {
+ message.outputConfig = $root.google.cloud.datalabeling.v1beta1.OutputConfig.decode(reader, reader.uint32());
+ break;
+ }
+ case 5: {
+ message.userEmailAddress = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an ExportDataRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.datalabeling.v1beta1.ExportDataRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.datalabeling.v1beta1.ExportDataRequest} ExportDataRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ExportDataRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an ExportDataRequest message.
+ * @function verify
+ * @memberof google.cloud.datalabeling.v1beta1.ExportDataRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ExportDataRequest.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.annotatedDataset != null && message.hasOwnProperty("annotatedDataset"))
+ if (!$util.isString(message.annotatedDataset))
+ return "annotatedDataset: string expected";
+ if (message.filter != null && message.hasOwnProperty("filter"))
+ if (!$util.isString(message.filter))
+ return "filter: string expected";
+ if (message.outputConfig != null && message.hasOwnProperty("outputConfig")) {
+ var error = $root.google.cloud.datalabeling.v1beta1.OutputConfig.verify(message.outputConfig);
+ if (error)
+ return "outputConfig." + error;
+ }
+ if (message.userEmailAddress != null && message.hasOwnProperty("userEmailAddress"))
+ if (!$util.isString(message.userEmailAddress))
+ return "userEmailAddress: string expected";
+ return null;
+ };
+
+ /**
+ * Creates an ExportDataRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.datalabeling.v1beta1.ExportDataRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.datalabeling.v1beta1.ExportDataRequest} ExportDataRequest
+ */
+ ExportDataRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.datalabeling.v1beta1.ExportDataRequest)
+ return object;
+ var message = new $root.google.cloud.datalabeling.v1beta1.ExportDataRequest();
+ if (object.name != null)
+ message.name = String(object.name);
+ if (object.annotatedDataset != null)
+ message.annotatedDataset = String(object.annotatedDataset);
+ if (object.filter != null)
+ message.filter = String(object.filter);
+ if (object.outputConfig != null) {
+ if (typeof object.outputConfig !== "object")
+ throw TypeError(".google.cloud.datalabeling.v1beta1.ExportDataRequest.outputConfig: object expected");
+ message.outputConfig = $root.google.cloud.datalabeling.v1beta1.OutputConfig.fromObject(object.outputConfig);
+ }
+ if (object.userEmailAddress != null)
+ message.userEmailAddress = String(object.userEmailAddress);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an ExportDataRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.datalabeling.v1beta1.ExportDataRequest
+ * @static
+ * @param {google.cloud.datalabeling.v1beta1.ExportDataRequest} message ExportDataRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ExportDataRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.name = "";
+ object.annotatedDataset = "";
+ object.filter = "";
+ object.outputConfig = null;
+ object.userEmailAddress = "";
+ }
+ if (message.name != null && message.hasOwnProperty("name"))
+ object.name = message.name;
+ if (message.annotatedDataset != null && message.hasOwnProperty("annotatedDataset"))
+ object.annotatedDataset = message.annotatedDataset;
+ if (message.filter != null && message.hasOwnProperty("filter"))
+ object.filter = message.filter;
+ if (message.outputConfig != null && message.hasOwnProperty("outputConfig"))
+ object.outputConfig = $root.google.cloud.datalabeling.v1beta1.OutputConfig.toObject(message.outputConfig, options);
+ if (message.userEmailAddress != null && message.hasOwnProperty("userEmailAddress"))
+ object.userEmailAddress = message.userEmailAddress;
+ return object;
+ };
+
+ /**
+ * Converts this ExportDataRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.datalabeling.v1beta1.ExportDataRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ExportDataRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ExportDataRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.datalabeling.v1beta1.ExportDataRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ExportDataRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.datalabeling.v1beta1.ExportDataRequest";
+ };
+
+ return ExportDataRequest;
+ })();
+
+ v1beta1.GetDataItemRequest = (function() {
+
+ /**
+ * Properties of a GetDataItemRequest.
+ * @memberof google.cloud.datalabeling.v1beta1
+ * @interface IGetDataItemRequest
+ * @property {string|null} [name] GetDataItemRequest name
+ */
+
+ /**
+ * Constructs a new GetDataItemRequest.
+ * @memberof google.cloud.datalabeling.v1beta1
+ * @classdesc Represents a GetDataItemRequest.
+ * @implements IGetDataItemRequest
+ * @constructor
+ * @param {google.cloud.datalabeling.v1beta1.IGetDataItemRequest=} [properties] Properties to set
+ */
+ function GetDataItemRequest(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]];
+ }
+
+ /**
+ * GetDataItemRequest name.
+ * @member {string} name
+ * @memberof google.cloud.datalabeling.v1beta1.GetDataItemRequest
+ * @instance
+ */
+ GetDataItemRequest.prototype.name = "";
+
+ /**
+ * Creates a new GetDataItemRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.datalabeling.v1beta1.GetDataItemRequest
+ * @static
+ * @param {google.cloud.datalabeling.v1beta1.IGetDataItemRequest=} [properties] Properties to set
+ * @returns {google.cloud.datalabeling.v1beta1.GetDataItemRequest} GetDataItemRequest instance
+ */
+ GetDataItemRequest.create = function create(properties) {
+ return new GetDataItemRequest(properties);
+ };
+
+ /**
+ * Encodes the specified GetDataItemRequest message. Does not implicitly {@link google.cloud.datalabeling.v1beta1.GetDataItemRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.datalabeling.v1beta1.GetDataItemRequest
+ * @static
+ * @param {google.cloud.datalabeling.v1beta1.IGetDataItemRequest} message GetDataItemRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GetDataItemRequest.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 GetDataItemRequest message, length delimited. Does not implicitly {@link google.cloud.datalabeling.v1beta1.GetDataItemRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.datalabeling.v1beta1.GetDataItemRequest
+ * @static
+ * @param {google.cloud.datalabeling.v1beta1.IGetDataItemRequest} message GetDataItemRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GetDataItemRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a GetDataItemRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.datalabeling.v1beta1.GetDataItemRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.datalabeling.v1beta1.GetDataItemRequest} GetDataItemRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GetDataItemRequest.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.datalabeling.v1beta1.GetDataItemRequest();
+ 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 GetDataItemRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.datalabeling.v1beta1.GetDataItemRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.datalabeling.v1beta1.GetDataItemRequest} GetDataItemRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GetDataItemRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a GetDataItemRequest message.
+ * @function verify
+ * @memberof google.cloud.datalabeling.v1beta1.GetDataItemRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ GetDataItemRequest.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 GetDataItemRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.datalabeling.v1beta1.GetDataItemRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.datalabeling.v1beta1.GetDataItemRequest} GetDataItemRequest
+ */
+ GetDataItemRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.datalabeling.v1beta1.GetDataItemRequest)
+ return object;
+ var message = new $root.google.cloud.datalabeling.v1beta1.GetDataItemRequest();
+ if (object.name != null)
+ message.name = String(object.name);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a GetDataItemRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.datalabeling.v1beta1.GetDataItemRequest
+ * @static
+ * @param {google.cloud.datalabeling.v1beta1.GetDataItemRequest} message GetDataItemRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ GetDataItemRequest.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 GetDataItemRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.datalabeling.v1beta1.GetDataItemRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ GetDataItemRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for GetDataItemRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.datalabeling.v1beta1.GetDataItemRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ GetDataItemRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.datalabeling.v1beta1.GetDataItemRequest";
+ };
+
+ return GetDataItemRequest;
+ })();
+
+ v1beta1.ListDataItemsRequest = (function() {
+
+ /**
+ * Properties of a ListDataItemsRequest.
+ * @memberof google.cloud.datalabeling.v1beta1
+ * @interface IListDataItemsRequest
+ * @property {string|null} [parent] ListDataItemsRequest parent
+ * @property {string|null} [filter] ListDataItemsRequest filter
+ * @property {number|null} [pageSize] ListDataItemsRequest pageSize
+ * @property {string|null} [pageToken] ListDataItemsRequest pageToken
+ */
+
+ /**
+ * Constructs a new ListDataItemsRequest.
+ * @memberof google.cloud.datalabeling.v1beta1
+ * @classdesc Represents a ListDataItemsRequest.
+ * @implements IListDataItemsRequest
+ * @constructor
+ * @param {google.cloud.datalabeling.v1beta1.IListDataItemsRequest=} [properties] Properties to set
+ */
+ function ListDataItemsRequest(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]];
+ }
+
+ /**
+ * ListDataItemsRequest parent.
+ * @member {string} parent
+ * @memberof google.cloud.datalabeling.v1beta1.ListDataItemsRequest
+ * @instance
+ */
+ ListDataItemsRequest.prototype.parent = "";
+
+ /**
+ * ListDataItemsRequest filter.
+ * @member {string} filter
+ * @memberof google.cloud.datalabeling.v1beta1.ListDataItemsRequest
+ * @instance
+ */
+ ListDataItemsRequest.prototype.filter = "";
+
+ /**
+ * ListDataItemsRequest pageSize.
+ * @member {number} pageSize
+ * @memberof google.cloud.datalabeling.v1beta1.ListDataItemsRequest
+ * @instance
+ */
+ ListDataItemsRequest.prototype.pageSize = 0;
+
+ /**
+ * ListDataItemsRequest pageToken.
+ * @member {string} pageToken
+ * @memberof google.cloud.datalabeling.v1beta1.ListDataItemsRequest
+ * @instance
+ */
+ ListDataItemsRequest.prototype.pageToken = "";
+
+ /**
+ * Creates a new ListDataItemsRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.datalabeling.v1beta1.ListDataItemsRequest
+ * @static
+ * @param {google.cloud.datalabeling.v1beta1.IListDataItemsRequest=} [properties] Properties to set
+ * @returns {google.cloud.datalabeling.v1beta1.ListDataItemsRequest} ListDataItemsRequest instance
+ */
+ ListDataItemsRequest.create = function create(properties) {
+ return new ListDataItemsRequest(properties);
+ };
+
+ /**
+ * Encodes the specified ListDataItemsRequest message. Does not implicitly {@link google.cloud.datalabeling.v1beta1.ListDataItemsRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.datalabeling.v1beta1.ListDataItemsRequest
+ * @static
+ * @param {google.cloud.datalabeling.v1beta1.IListDataItemsRequest} message ListDataItemsRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListDataItemsRequest.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.filter != null && Object.hasOwnProperty.call(message, "filter"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.filter);
+ if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize"))
+ writer.uint32(/* id 3, wireType 0 =*/24).int32(message.pageSize);
+ if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken"))
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.pageToken);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ListDataItemsRequest message, length delimited. Does not implicitly {@link google.cloud.datalabeling.v1beta1.ListDataItemsRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.datalabeling.v1beta1.ListDataItemsRequest
+ * @static
+ * @param {google.cloud.datalabeling.v1beta1.IListDataItemsRequest} message ListDataItemsRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListDataItemsRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ListDataItemsRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.datalabeling.v1beta1.ListDataItemsRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.datalabeling.v1beta1.ListDataItemsRequest} ListDataItemsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListDataItemsRequest.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.datalabeling.v1beta1.ListDataItemsRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.parent = reader.string();
+ break;
+ }
+ case 2: {
+ message.filter = reader.string();
+ break;
+ }
+ case 3: {
+ message.pageSize = reader.int32();
+ break;
+ }
+ case 4: {
+ message.pageToken = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ListDataItemsRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.datalabeling.v1beta1.ListDataItemsRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.datalabeling.v1beta1.ListDataItemsRequest} ListDataItemsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListDataItemsRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ListDataItemsRequest message.
+ * @function verify
+ * @memberof google.cloud.datalabeling.v1beta1.ListDataItemsRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ListDataItemsRequest.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.filter != null && message.hasOwnProperty("filter"))
+ if (!$util.isString(message.filter))
+ return "filter: string expected";
+ if (message.pageSize != null && message.hasOwnProperty("pageSize"))
+ if (!$util.isInteger(message.pageSize))
+ return "pageSize: integer expected";
+ if (message.pageToken != null && message.hasOwnProperty("pageToken"))
+ if (!$util.isString(message.pageToken))
+ return "pageToken: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a ListDataItemsRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.datalabeling.v1beta1.ListDataItemsRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.datalabeling.v1beta1.ListDataItemsRequest} ListDataItemsRequest
+ */
+ ListDataItemsRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.datalabeling.v1beta1.ListDataItemsRequest)
+ return object;
+ var message = new $root.google.cloud.datalabeling.v1beta1.ListDataItemsRequest();
+ if (object.parent != null)
+ message.parent = String(object.parent);
+ if (object.filter != null)
+ message.filter = String(object.filter);
+ if (object.pageSize != null)
+ message.pageSize = object.pageSize | 0;
+ if (object.pageToken != null)
+ message.pageToken = String(object.pageToken);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ListDataItemsRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.datalabeling.v1beta1.ListDataItemsRequest
+ * @static
+ * @param {google.cloud.datalabeling.v1beta1.ListDataItemsRequest} message ListDataItemsRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ListDataItemsRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.parent = "";
+ object.filter = "";
+ object.pageSize = 0;
+ object.pageToken = "";
+ }
+ if (message.parent != null && message.hasOwnProperty("parent"))
+ object.parent = message.parent;
+ if (message.filter != null && message.hasOwnProperty("filter"))
+ object.filter = message.filter;
+ if (message.pageSize != null && message.hasOwnProperty("pageSize"))
+ object.pageSize = message.pageSize;
+ if (message.pageToken != null && message.hasOwnProperty("pageToken"))
+ object.pageToken = message.pageToken;
+ return object;
+ };
+
+ /**
+ * Converts this ListDataItemsRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.datalabeling.v1beta1.ListDataItemsRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ListDataItemsRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ListDataItemsRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.datalabeling.v1beta1.ListDataItemsRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ListDataItemsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.datalabeling.v1beta1.ListDataItemsRequest";
+ };
+
+ return ListDataItemsRequest;
+ })();
+
+ v1beta1.ListDataItemsResponse = (function() {
+
+ /**
+ * Properties of a ListDataItemsResponse.
+ * @memberof google.cloud.datalabeling.v1beta1
+ * @interface IListDataItemsResponse
+ * @property {Array.|null} [dataItems] ListDataItemsResponse dataItems
+ * @property {string|null} [nextPageToken] ListDataItemsResponse nextPageToken
+ */
+
+ /**
+ * Constructs a new ListDataItemsResponse.
+ * @memberof google.cloud.datalabeling.v1beta1
+ * @classdesc Represents a ListDataItemsResponse.
+ * @implements IListDataItemsResponse
+ * @constructor
+ * @param {google.cloud.datalabeling.v1beta1.IListDataItemsResponse=} [properties] Properties to set
+ */
+ function ListDataItemsResponse(properties) {
+ this.dataItems = [];
+ 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]];
+ }
+
+ /**
+ * ListDataItemsResponse dataItems.
+ * @member {Array.} dataItems
+ * @memberof google.cloud.datalabeling.v1beta1.ListDataItemsResponse
+ * @instance
+ */
+ ListDataItemsResponse.prototype.dataItems = $util.emptyArray;
+
+ /**
+ * ListDataItemsResponse nextPageToken.
+ * @member {string} nextPageToken
+ * @memberof google.cloud.datalabeling.v1beta1.ListDataItemsResponse
+ * @instance
+ */
+ ListDataItemsResponse.prototype.nextPageToken = "";
+
+ /**
+ * Creates a new ListDataItemsResponse instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.datalabeling.v1beta1.ListDataItemsResponse
+ * @static
+ * @param {google.cloud.datalabeling.v1beta1.IListDataItemsResponse=} [properties] Properties to set
+ * @returns {google.cloud.datalabeling.v1beta1.ListDataItemsResponse} ListDataItemsResponse instance
+ */
+ ListDataItemsResponse.create = function create(properties) {
+ return new ListDataItemsResponse(properties);
+ };
+
+ /**
+ * Encodes the specified ListDataItemsResponse message. Does not implicitly {@link google.cloud.datalabeling.v1beta1.ListDataItemsResponse.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.datalabeling.v1beta1.ListDataItemsResponse
+ * @static
+ * @param {google.cloud.datalabeling.v1beta1.IListDataItemsResponse} message ListDataItemsResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListDataItemsResponse.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.dataItems != null && message.dataItems.length)
+ for (var i = 0; i < message.dataItems.length; ++i)
+ $root.google.cloud.datalabeling.v1beta1.DataItem.encode(message.dataItems[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
+ if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ListDataItemsResponse message, length delimited. Does not implicitly {@link google.cloud.datalabeling.v1beta1.ListDataItemsResponse.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.datalabeling.v1beta1.ListDataItemsResponse
+ * @static
+ * @param {google.cloud.datalabeling.v1beta1.IListDataItemsResponse} message ListDataItemsResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListDataItemsResponse.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ListDataItemsResponse message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.datalabeling.v1beta1.ListDataItemsResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.datalabeling.v1beta1.ListDataItemsResponse} ListDataItemsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListDataItemsResponse.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.datalabeling.v1beta1.ListDataItemsResponse();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ if (!(message.dataItems && message.dataItems.length))
+ message.dataItems = [];
+ message.dataItems.push($root.google.cloud.datalabeling.v1beta1.DataItem.decode(reader, reader.uint32()));
+ break;
+ }
+ case 2: {
+ message.nextPageToken = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ListDataItemsResponse message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.datalabeling.v1beta1.ListDataItemsResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.datalabeling.v1beta1.ListDataItemsResponse} ListDataItemsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListDataItemsResponse.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ListDataItemsResponse message.
+ * @function verify
+ * @memberof google.cloud.datalabeling.v1beta1.ListDataItemsResponse
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ListDataItemsResponse.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.dataItems != null && message.hasOwnProperty("dataItems")) {
+ if (!Array.isArray(message.dataItems))
+ return "dataItems: array expected";
+ for (var i = 0; i < message.dataItems.length; ++i) {
+ var error = $root.google.cloud.datalabeling.v1beta1.DataItem.verify(message.dataItems[i]);
+ if (error)
+ return "dataItems." + error;
+ }
+ }
+ if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken"))
+ if (!$util.isString(message.nextPageToken))
+ return "nextPageToken: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a ListDataItemsResponse message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.datalabeling.v1beta1.ListDataItemsResponse
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.datalabeling.v1beta1.ListDataItemsResponse} ListDataItemsResponse
+ */
+ ListDataItemsResponse.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.datalabeling.v1beta1.ListDataItemsResponse)
+ return object;
+ var message = new $root.google.cloud.datalabeling.v1beta1.ListDataItemsResponse();
+ if (object.dataItems) {
+ if (!Array.isArray(object.dataItems))
+ throw TypeError(".google.cloud.datalabeling.v1beta1.ListDataItemsResponse.dataItems: array expected");
+ message.dataItems = [];
+ for (var i = 0; i < object.dataItems.length; ++i) {
+ if (typeof object.dataItems[i] !== "object")
+ throw TypeError(".google.cloud.datalabeling.v1beta1.ListDataItemsResponse.dataItems: object expected");
+ message.dataItems[i] = $root.google.cloud.datalabeling.v1beta1.DataItem.fromObject(object.dataItems[i]);
+ }
+ }
+ if (object.nextPageToken != null)
+ message.nextPageToken = String(object.nextPageToken);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ListDataItemsResponse message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.datalabeling.v1beta1.ListDataItemsResponse
+ * @static
+ * @param {google.cloud.datalabeling.v1beta1.ListDataItemsResponse} message ListDataItemsResponse
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ListDataItemsResponse.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.dataItems = [];
+ if (options.defaults)
+ object.nextPageToken = "";
+ if (message.dataItems && message.dataItems.length) {
+ object.dataItems = [];
+ for (var j = 0; j < message.dataItems.length; ++j)
+ object.dataItems[j] = $root.google.cloud.datalabeling.v1beta1.DataItem.toObject(message.dataItems[j], options);
+ }
+ if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken"))
+ object.nextPageToken = message.nextPageToken;
+ return object;
+ };
+
+ /**
+ * Converts this ListDataItemsResponse to JSON.
+ * @function toJSON
+ * @memberof google.cloud.datalabeling.v1beta1.ListDataItemsResponse
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ListDataItemsResponse.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ListDataItemsResponse
+ * @function getTypeUrl
+ * @memberof google.cloud.datalabeling.v1beta1.ListDataItemsResponse
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ListDataItemsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.datalabeling.v1beta1.ListDataItemsResponse";
+ };
+
+ return ListDataItemsResponse;
+ })();
+
+ v1beta1.GetAnnotatedDatasetRequest = (function() {
+
+ /**
+ * Properties of a GetAnnotatedDatasetRequest.
+ * @memberof google.cloud.datalabeling.v1beta1
+ * @interface IGetAnnotatedDatasetRequest
+ * @property {string|null} [name] GetAnnotatedDatasetRequest name
+ */
+
+ /**
+ * Constructs a new GetAnnotatedDatasetRequest.
+ * @memberof google.cloud.datalabeling.v1beta1
+ * @classdesc Represents a GetAnnotatedDatasetRequest.
+ * @implements IGetAnnotatedDatasetRequest
+ * @constructor
+ * @param {google.cloud.datalabeling.v1beta1.IGetAnnotatedDatasetRequest=} [properties] Properties to set
+ */
+ function GetAnnotatedDatasetRequest(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]];
+ }
+
+ /**
+ * GetAnnotatedDatasetRequest name.
+ * @member {string} name
+ * @memberof google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest
+ * @instance
+ */
+ GetAnnotatedDatasetRequest.prototype.name = "";
+
+ /**
+ * Creates a new GetAnnotatedDatasetRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest
+ * @static
+ * @param {google.cloud.datalabeling.v1beta1.IGetAnnotatedDatasetRequest=} [properties] Properties to set
+ * @returns {google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest} GetAnnotatedDatasetRequest instance
+ */
+ GetAnnotatedDatasetRequest.create = function create(properties) {
+ return new GetAnnotatedDatasetRequest(properties);
+ };
+
+ /**
+ * Encodes the specified GetAnnotatedDatasetRequest message. Does not implicitly {@link google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest
+ * @static
+ * @param {google.cloud.datalabeling.v1beta1.IGetAnnotatedDatasetRequest} message GetAnnotatedDatasetRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GetAnnotatedDatasetRequest.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 GetAnnotatedDatasetRequest message, length delimited. Does not implicitly {@link google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest
+ * @static
+ * @param {google.cloud.datalabeling.v1beta1.IGetAnnotatedDatasetRequest} message GetAnnotatedDatasetRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GetAnnotatedDatasetRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a GetAnnotatedDatasetRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest} GetAnnotatedDatasetRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GetAnnotatedDatasetRequest.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.datalabeling.v1beta1.GetAnnotatedDatasetRequest();
+ 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 GetAnnotatedDatasetRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest} GetAnnotatedDatasetRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GetAnnotatedDatasetRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a GetAnnotatedDatasetRequest message.
+ * @function verify
+ * @memberof google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ GetAnnotatedDatasetRequest.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 GetAnnotatedDatasetRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest} GetAnnotatedDatasetRequest
+ */
+ GetAnnotatedDatasetRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest)
+ return object;
+ var message = new $root.google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest();
+ if (object.name != null)
+ message.name = String(object.name);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a GetAnnotatedDatasetRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest
+ * @static
+ * @param {google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest} message GetAnnotatedDatasetRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ GetAnnotatedDatasetRequest.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 GetAnnotatedDatasetRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ GetAnnotatedDatasetRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for GetAnnotatedDatasetRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ GetAnnotatedDatasetRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest";
+ };
+
+ return GetAnnotatedDatasetRequest;
+ })();
+
+ v1beta1.ListAnnotatedDatasetsRequest = (function() {
+
+ /**
+ * Properties of a ListAnnotatedDatasetsRequest.
+ * @memberof google.cloud.datalabeling.v1beta1
+ * @interface IListAnnotatedDatasetsRequest
+ * @property {string|null} [parent] ListAnnotatedDatasetsRequest parent
+ * @property {string|null} [filter] ListAnnotatedDatasetsRequest filter
+ * @property {number|null} [pageSize] ListAnnotatedDatasetsRequest pageSize
+ * @property {string|null} [pageToken] ListAnnotatedDatasetsRequest pageToken
+ */
+
+ /**
+ * Constructs a new ListAnnotatedDatasetsRequest.
+ * @memberof google.cloud.datalabeling.v1beta1
+ * @classdesc Represents a ListAnnotatedDatasetsRequest.
+ * @implements IListAnnotatedDatasetsRequest
+ * @constructor
+ * @param {google.cloud.datalabeling.v1beta1.IListAnnotatedDatasetsRequest=} [properties] Properties to set
+ */
+ function ListAnnotatedDatasetsRequest(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]];
+ }
+
+ /**
+ * ListAnnotatedDatasetsRequest parent.
+ * @member {string} parent
+ * @memberof google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest
+ * @instance
+ */
+ ListAnnotatedDatasetsRequest.prototype.parent = "";
+
+ /**
+ * ListAnnotatedDatasetsRequest filter.
+ * @member {string} filter
+ * @memberof google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest
+ * @instance
+ */
+ ListAnnotatedDatasetsRequest.prototype.filter = "";
+
+ /**
+ * ListAnnotatedDatasetsRequest pageSize.
+ * @member {number} pageSize
+ * @memberof google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest
+ * @instance
+ */
+ ListAnnotatedDatasetsRequest.prototype.pageSize = 0;
+
+ /**
+ * ListAnnotatedDatasetsRequest pageToken.
+ * @member {string} pageToken
+ * @memberof google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest
+ * @instance
+ */
+ ListAnnotatedDatasetsRequest.prototype.pageToken = "";
+
+ /**
+ * Creates a new ListAnnotatedDatasetsRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest
+ * @static
+ * @param {google.cloud.datalabeling.v1beta1.IListAnnotatedDatasetsRequest=} [properties] Properties to set
+ * @returns {google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest} ListAnnotatedDatasetsRequest instance
+ */
+ ListAnnotatedDatasetsRequest.create = function create(properties) {
+ return new ListAnnotatedDatasetsRequest(properties);
+ };
+
+ /**
+ * Encodes the specified ListAnnotatedDatasetsRequest message. Does not implicitly {@link google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest
+ * @static
+ * @param {google.cloud.datalabeling.v1beta1.IListAnnotatedDatasetsRequest} message ListAnnotatedDatasetsRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListAnnotatedDatasetsRequest.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.filter != null && Object.hasOwnProperty.call(message, "filter"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.filter);
+ if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize"))
+ writer.uint32(/* id 3, wireType 0 =*/24).int32(message.pageSize);
+ if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken"))
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.pageToken);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ListAnnotatedDatasetsRequest message, length delimited. Does not implicitly {@link google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest
+ * @static
+ * @param {google.cloud.datalabeling.v1beta1.IListAnnotatedDatasetsRequest} message ListAnnotatedDatasetsRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListAnnotatedDatasetsRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ListAnnotatedDatasetsRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest} ListAnnotatedDatasetsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListAnnotatedDatasetsRequest.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.datalabeling.v1beta1.ListAnnotatedDatasetsRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.parent = reader.string();
+ break;
+ }
+ case 2: {
+ message.filter = reader.string();
+ break;
+ }
+ case 3: {
+ message.pageSize = reader.int32();
+ break;
+ }
+ case 4: {
+ message.pageToken = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ListAnnotatedDatasetsRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest} ListAnnotatedDatasetsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListAnnotatedDatasetsRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ListAnnotatedDatasetsRequest message.
+ * @function verify
+ * @memberof google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ListAnnotatedDatasetsRequest.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.filter != null && message.hasOwnProperty("filter"))
+ if (!$util.isString(message.filter))
+ return "filter: string expected";
+ if (message.pageSize != null && message.hasOwnProperty("pageSize"))
+ if (!$util.isInteger(message.pageSize))
+ return "pageSize: integer expected";
+ if (message.pageToken != null && message.hasOwnProperty("pageToken"))
+ if (!$util.isString(message.pageToken))
+ return "pageToken: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a ListAnnotatedDatasetsRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest} ListAnnotatedDatasetsRequest
+ */
+ ListAnnotatedDatasetsRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest)
+ return object;
+ var message = new $root.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest();
+ if (object.parent != null)
+ message.parent = String(object.parent);
+ if (object.filter != null)
+ message.filter = String(object.filter);
+ if (object.pageSize != null)
+ message.pageSize = object.pageSize | 0;
+ if (object.pageToken != null)
+ message.pageToken = String(object.pageToken);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ListAnnotatedDatasetsRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest
+ * @static
+ * @param {google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest} message ListAnnotatedDatasetsRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ListAnnotatedDatasetsRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.parent = "";
+ object.filter = "";
+ object.pageSize = 0;
+ object.pageToken = "";
+ }
+ if (message.parent != null && message.hasOwnProperty("parent"))
+ object.parent = message.parent;
+ if (message.filter != null && message.hasOwnProperty("filter"))
+ object.filter = message.filter;
+ if (message.pageSize != null && message.hasOwnProperty("pageSize"))
+ object.pageSize = message.pageSize;
+ if (message.pageToken != null && message.hasOwnProperty("pageToken"))
+ object.pageToken = message.pageToken;
+ return object;
+ };
+
+ /**
+ * Converts this ListAnnotatedDatasetsRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ListAnnotatedDatasetsRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ListAnnotatedDatasetsRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ListAnnotatedDatasetsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest";
+ };
+
+ return ListAnnotatedDatasetsRequest;
+ })();
+
+ v1beta1.ListAnnotatedDatasetsResponse = (function() {
+
+ /**
+ * Properties of a ListAnnotatedDatasetsResponse.
+ * @memberof google.cloud.datalabeling.v1beta1
+ * @interface IListAnnotatedDatasetsResponse
+ * @property {Array.|null} [annotatedDatasets] ListAnnotatedDatasetsResponse annotatedDatasets
+ * @property {string|null} [nextPageToken] ListAnnotatedDatasetsResponse nextPageToken
+ */
+
+ /**
+ * Constructs a new ListAnnotatedDatasetsResponse.
+ * @memberof google.cloud.datalabeling.v1beta1
+ * @classdesc Represents a ListAnnotatedDatasetsResponse.
+ * @implements IListAnnotatedDatasetsResponse
+ * @constructor
+ * @param {google.cloud.datalabeling.v1beta1.IListAnnotatedDatasetsResponse=} [properties] Properties to set
+ */
+ function ListAnnotatedDatasetsResponse(properties) {
+ this.annotatedDatasets = [];
+ 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]];
+ }
+
+ /**
+ * ListAnnotatedDatasetsResponse annotatedDatasets.
+ * @member {Array.} annotatedDatasets
+ * @memberof google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse
+ * @instance
+ */
+ ListAnnotatedDatasetsResponse.prototype.annotatedDatasets = $util.emptyArray;
+
+ /**
+ * ListAnnotatedDatasetsResponse nextPageToken.
+ * @member {string} nextPageToken
+ * @memberof google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse
+ * @instance
+ */
+ ListAnnotatedDatasetsResponse.prototype.nextPageToken = "";
+
+ /**
+ * Creates a new ListAnnotatedDatasetsResponse instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse
+ * @static
+ * @param {google.cloud.datalabeling.v1beta1.IListAnnotatedDatasetsResponse=} [properties] Properties to set
+ * @returns {google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse} ListAnnotatedDatasetsResponse instance
+ */
+ ListAnnotatedDatasetsResponse.create = function create(properties) {
+ return new ListAnnotatedDatasetsResponse(properties);
+ };
+
+ /**
+ * Encodes the specified ListAnnotatedDatasetsResponse message. Does not implicitly {@link google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse
+ * @static
+ * @param {google.cloud.datalabeling.v1beta1.IListAnnotatedDatasetsResponse} message ListAnnotatedDatasetsResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListAnnotatedDatasetsResponse.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.annotatedDatasets != null && message.annotatedDatasets.length)
+ for (var i = 0; i < message.annotatedDatasets.length; ++i)
+ $root.google.cloud.datalabeling.v1beta1.AnnotatedDataset.encode(message.annotatedDatasets[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
+ if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ListAnnotatedDatasetsResponse message, length delimited. Does not implicitly {@link google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse
+ * @static
+ * @param {google.cloud.datalabeling.v1beta1.IListAnnotatedDatasetsResponse} message ListAnnotatedDatasetsResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListAnnotatedDatasetsResponse.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ListAnnotatedDatasetsResponse message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse} ListAnnotatedDatasetsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListAnnotatedDatasetsResponse.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.datalabeling.v1beta1.ListAnnotatedDatasetsResponse();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ if (!(message.annotatedDatasets && message.annotatedDatasets.length))
+ message.annotatedDatasets = [];
+ message.annotatedDatasets.push($root.google.cloud.datalabeling.v1beta1.AnnotatedDataset.decode(reader, reader.uint32()));
+ break;
+ }
+ case 2: {
+ message.nextPageToken = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ListAnnotatedDatasetsResponse message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse} ListAnnotatedDatasetsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListAnnotatedDatasetsResponse.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ListAnnotatedDatasetsResponse message.
+ * @function verify
+ * @memberof google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ListAnnotatedDatasetsResponse.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.annotatedDatasets != null && message.hasOwnProperty("annotatedDatasets")) {
+ if (!Array.isArray(message.annotatedDatasets))
+ return "annotatedDatasets: array expected";
+ for (var i = 0; i < message.annotatedDatasets.length; ++i) {
+ var error = $root.google.cloud.datalabeling.v1beta1.AnnotatedDataset.verify(message.annotatedDatasets[i]);
+ if (error)
+ return "annotatedDatasets." + error;
+ }
+ }
+ if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken"))
+ if (!$util.isString(message.nextPageToken))
+ return "nextPageToken: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a ListAnnotatedDatasetsResponse message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse} ListAnnotatedDatasetsResponse
+ */
+ ListAnnotatedDatasetsResponse.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse)
+ return object;
+ var message = new $root.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse();
+ if (object.annotatedDatasets) {
+ if (!Array.isArray(object.annotatedDatasets))
+ throw TypeError(".google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse.annotatedDatasets: array expected");
+ message.annotatedDatasets = [];
+ for (var i = 0; i < object.annotatedDatasets.length; ++i) {
+ if (typeof object.annotatedDatasets[i] !== "object")
+ throw TypeError(".google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse.annotatedDatasets: object expected");
+ message.annotatedDatasets[i] = $root.google.cloud.datalabeling.v1beta1.AnnotatedDataset.fromObject(object.annotatedDatasets[i]);
+ }
+ }
+ if (object.nextPageToken != null)
+ message.nextPageToken = String(object.nextPageToken);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ListAnnotatedDatasetsResponse message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse
+ * @static
+ * @param {google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse} message ListAnnotatedDatasetsResponse
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ListAnnotatedDatasetsResponse.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.annotatedDatasets = [];
+ if (options.defaults)
+ object.nextPageToken = "";
+ if (message.annotatedDatasets && message.annotatedDatasets.length) {
+ object.annotatedDatasets = [];
+ for (var j = 0; j < message.annotatedDatasets.length; ++j)
+ object.annotatedDatasets[j] = $root.google.cloud.datalabeling.v1beta1.AnnotatedDataset.toObject(message.annotatedDatasets[j], options);
+ }
+ if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken"))
+ object.nextPageToken = message.nextPageToken;
+ return object;
+ };
+
+ /**
+ * Converts this ListAnnotatedDatasetsResponse to JSON.
+ * @function toJSON
+ * @memberof google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ListAnnotatedDatasetsResponse.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ListAnnotatedDatasetsResponse
+ * @function getTypeUrl
+ * @memberof google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ListAnnotatedDatasetsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse";
+ };
+
+ return ListAnnotatedDatasetsResponse;
+ })();
+
+ v1beta1.DeleteAnnotatedDatasetRequest = (function() {
+
+ /**
+ * Properties of a DeleteAnnotatedDatasetRequest.
+ * @memberof google.cloud.datalabeling.v1beta1
+ * @interface IDeleteAnnotatedDatasetRequest
+ * @property {string|null} [name] DeleteAnnotatedDatasetRequest name
+ */
+
+ /**
+ * Constructs a new DeleteAnnotatedDatasetRequest.
+ * @memberof google.cloud.datalabeling.v1beta1
+ * @classdesc Represents a DeleteAnnotatedDatasetRequest.
+ * @implements IDeleteAnnotatedDatasetRequest
+ * @constructor
+ * @param {google.cloud.datalabeling.v1beta1.IDeleteAnnotatedDatasetRequest=} [properties] Properties to set
+ */
+ function DeleteAnnotatedDatasetRequest(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]];
+ }
+
+ /**
+ * DeleteAnnotatedDatasetRequest name.
+ * @member {string} name
+ * @memberof google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest
+ * @instance
+ */
+ DeleteAnnotatedDatasetRequest.prototype.name = "";
+
+ /**
+ * Creates a new DeleteAnnotatedDatasetRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest
+ * @static
+ * @param {google.cloud.datalabeling.v1beta1.IDeleteAnnotatedDatasetRequest=} [properties] Properties to set
+ * @returns {google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest} DeleteAnnotatedDatasetRequest instance
+ */
+ DeleteAnnotatedDatasetRequest.create = function create(properties) {
+ return new DeleteAnnotatedDatasetRequest(properties);
+ };
+
+ /**
+ * Encodes the specified DeleteAnnotatedDatasetRequest message. Does not implicitly {@link google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest
+ * @static
+ * @param {google.cloud.datalabeling.v1beta1.IDeleteAnnotatedDatasetRequest} message DeleteAnnotatedDatasetRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ DeleteAnnotatedDatasetRequest.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 DeleteAnnotatedDatasetRequest message, length delimited. Does not implicitly {@link google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest
+ * @static
+ * @param {google.cloud.datalabeling.v1beta1.IDeleteAnnotatedDatasetRequest} message DeleteAnnotatedDatasetRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ DeleteAnnotatedDatasetRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a DeleteAnnotatedDatasetRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest} DeleteAnnotatedDatasetRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ DeleteAnnotatedDatasetRequest.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.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest();
+ 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 DeleteAnnotatedDatasetRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest} DeleteAnnotatedDatasetRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ DeleteAnnotatedDatasetRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a DeleteAnnotatedDatasetRequest message.
+ * @function verify
+ * @memberof google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ DeleteAnnotatedDatasetRequest.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 DeleteAnnotatedDatasetRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest} DeleteAnnotatedDatasetRequest
+ */
+ DeleteAnnotatedDatasetRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest)
+ return object;
+ var message = new $root.google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest();
+ if (object.name != null)
+ message.name = String(object.name);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a DeleteAnnotatedDatasetRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest
+ * @static
+ * @param {google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest} message DeleteAnnotatedDatasetRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ DeleteAnnotatedDatasetRequest.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 DeleteAnnotatedDatasetRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ DeleteAnnotatedDatasetRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for DeleteAnnotatedDatasetRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ DeleteAnnotatedDatasetRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest";
+ };
+
+ return DeleteAnnotatedDatasetRequest;
+ })();
+
+ v1beta1.LabelImageRequest = (function() {
+
+ /**
+ * Properties of a LabelImageRequest.
+ * @memberof google.cloud.datalabeling.v1beta1
+ * @interface ILabelImageRequest
+ * @property {google.cloud.datalabeling.v1beta1.IImageClassificationConfig|null} [imageClassificationConfig] LabelImageRequest imageClassificationConfig
+ * @property {google.cloud.datalabeling.v1beta1.IBoundingPolyConfig|null} [boundingPolyConfig] LabelImageRequest boundingPolyConfig
+ * @property {google.cloud.datalabeling.v1beta1.IPolylineConfig|null} [polylineConfig] LabelImageRequest polylineConfig
+ * @property {google.cloud.datalabeling.v1beta1.ISegmentationConfig|null} [segmentationConfig] LabelImageRequest segmentationConfig
+ * @property {string|null} [parent] LabelImageRequest parent
+ * @property {google.cloud.datalabeling.v1beta1.IHumanAnnotationConfig|null} [basicConfig] LabelImageRequest basicConfig
+ * @property {google.cloud.datalabeling.v1beta1.LabelImageRequest.Feature|null} [feature] LabelImageRequest feature
+ */
+
+ /**
+ * Constructs a new LabelImageRequest.
+ * @memberof google.cloud.datalabeling.v1beta1
+ * @classdesc Represents a LabelImageRequest.
+ * @implements ILabelImageRequest
+ * @constructor
+ * @param {google.cloud.datalabeling.v1beta1.ILabelImageRequest=} [properties] Properties to set
+ */
+ function LabelImageRequest(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]];
+ }
+
+ /**
+ * LabelImageRequest imageClassificationConfig.
+ * @member {google.cloud.datalabeling.v1beta1.IImageClassificationConfig|null|undefined} imageClassificationConfig
+ * @memberof google.cloud.datalabeling.v1beta1.LabelImageRequest
+ * @instance
+ */
+ LabelImageRequest.prototype.imageClassificationConfig = null;
+
+ /**
+ * LabelImageRequest boundingPolyConfig.
+ * @member {google.cloud.datalabeling.v1beta1.IBoundingPolyConfig|null|undefined} boundingPolyConfig
+ * @memberof google.cloud.datalabeling.v1beta1.LabelImageRequest
+ * @instance
+ */
+ LabelImageRequest.prototype.boundingPolyConfig = null;
+
+ /**
+ * LabelImageRequest polylineConfig.
+ * @member {google.cloud.datalabeling.v1beta1.IPolylineConfig|null|undefined} polylineConfig
+ * @memberof google.cloud.datalabeling.v1beta1.LabelImageRequest
+ * @instance
+ */
+ LabelImageRequest.prototype.polylineConfig = null;
+
+ /**
+ * LabelImageRequest segmentationConfig.
+ * @member {google.cloud.datalabeling.v1beta1.ISegmentationConfig|null|undefined} segmentationConfig
+ * @memberof google.cloud.datalabeling.v1beta1.LabelImageRequest
+ * @instance
+ */
+ LabelImageRequest.prototype.segmentationConfig = null;
+
+ /**
+ * LabelImageRequest parent.
+ * @member {string} parent
+ * @memberof google.cloud.datalabeling.v1beta1.LabelImageRequest
+ * @instance
+ */
+ LabelImageRequest.prototype.parent = "";
+
+ /**
+ * LabelImageRequest basicConfig.
+ * @member {google.cloud.datalabeling.v1beta1.IHumanAnnotationConfig|null|undefined} basicConfig
+ * @memberof google.cloud.datalabeling.v1beta1.LabelImageRequest
+ * @instance
+ */
+ LabelImageRequest.prototype.basicConfig = null;
+
+ /**
+ * LabelImageRequest feature.
+ * @member {google.cloud.datalabeling.v1beta1.LabelImageRequest.Feature} feature
+ * @memberof google.cloud.datalabeling.v1beta1.LabelImageRequest
+ * @instance
+ */
+ LabelImageRequest.prototype.feature = 0;
+
+ // OneOf field names bound to virtual getters and setters
+ var $oneOfFields;
+
+ /**
+ * LabelImageRequest requestConfig.
+ * @member {"imageClassificationConfig"|"boundingPolyConfig"|"polylineConfig"|"segmentationConfig"|undefined} requestConfig
+ * @memberof google.cloud.datalabeling.v1beta1.LabelImageRequest
+ * @instance
+ */
+ Object.defineProperty(LabelImageRequest.prototype, "requestConfig", {
+ get: $util.oneOfGetter($oneOfFields = ["imageClassificationConfig", "boundingPolyConfig", "polylineConfig", "segmentationConfig"]),
+ set: $util.oneOfSetter($oneOfFields)
+ });
+
+ /**
+ * Creates a new LabelImageRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.datalabeling.v1beta1.LabelImageRequest
+ * @static
+ * @param {google.cloud.datalabeling.v1beta1.ILabelImageRequest=} [properties] Properties to set
+ * @returns {google.cloud.datalabeling.v1beta1.LabelImageRequest} LabelImageRequest instance
+ */
+ LabelImageRequest.create = function create(properties) {
+ return new LabelImageRequest(properties);
+ };
+
+ /**
+ * Encodes the specified LabelImageRequest message. Does not implicitly {@link google.cloud.datalabeling.v1beta1.LabelImageRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.datalabeling.v1beta1.LabelImageRequest
+ * @static
+ * @param {google.cloud.datalabeling.v1beta1.ILabelImageRequest} message LabelImageRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ LabelImageRequest.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.basicConfig != null && Object.hasOwnProperty.call(message, "basicConfig"))
+ $root.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.encode(message.basicConfig, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
+ if (message.feature != null && Object.hasOwnProperty.call(message, "feature"))
+ writer.uint32(/* id 3, wireType 0 =*/24).int32(message.feature);
+ if (message.imageClassificationConfig != null && Object.hasOwnProperty.call(message, "imageClassificationConfig"))
+ $root.google.cloud.datalabeling.v1beta1.ImageClassificationConfig.encode(message.imageClassificationConfig, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
+ if (message.boundingPolyConfig != null && Object.hasOwnProperty.call(message, "boundingPolyConfig"))
+ $root.google.cloud.datalabeling.v1beta1.BoundingPolyConfig.encode(message.boundingPolyConfig, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
+ if (message.polylineConfig != null && Object.hasOwnProperty.call(message, "polylineConfig"))
+ $root.google.cloud.datalabeling.v1beta1.PolylineConfig.encode(message.polylineConfig, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
+ if (message.segmentationConfig != null && Object.hasOwnProperty.call(message, "segmentationConfig"))
+ $root.google.cloud.datalabeling.v1beta1.SegmentationConfig.encode(message.segmentationConfig, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified LabelImageRequest message, length delimited. Does not implicitly {@link google.cloud.datalabeling.v1beta1.LabelImageRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.datalabeling.v1beta1.LabelImageRequest
+ * @static
+ * @param {google.cloud.datalabeling.v1beta1.ILabelImageRequest} message LabelImageRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ LabelImageRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a LabelImageRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.datalabeling.v1beta1.LabelImageRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.datalabeling.v1beta1.LabelImageRequest} LabelImageRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ LabelImageRequest.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.datalabeling.v1beta1.LabelImageRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 4: {
+ message.imageClassificationConfig = $root.google.cloud.datalabeling.v1beta1.ImageClassificationConfig.decode(reader, reader.uint32());
+ break;
+ }
+ case 5: {
+ message.boundingPolyConfig = $root.google.cloud.datalabeling.v1beta1.BoundingPolyConfig.decode(reader, reader.uint32());
+ break;
+ }
+ case 6: {
+ message.polylineConfig = $root.google.cloud.datalabeling.v1beta1.PolylineConfig.decode(reader, reader.uint32());
+ break;
+ }
+ case 7: {
+ message.segmentationConfig = $root.google.cloud.datalabeling.v1beta1.SegmentationConfig.decode(reader, reader.uint32());
+ break;
+ }
+ case 1: {
+ message.parent = reader.string();
+ break;
+ }
+ case 2: {
+ message.basicConfig = $root.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.decode(reader, reader.uint32());
+ break;
+ }
+ case 3: {
+ message.feature = reader.int32();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a LabelImageRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.datalabeling.v1beta1.LabelImageRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.datalabeling.v1beta1.LabelImageRequest} LabelImageRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ LabelImageRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a LabelImageRequest message.
+ * @function verify
+ * @memberof google.cloud.datalabeling.v1beta1.LabelImageRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ LabelImageRequest.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ var properties = {};
+ if (message.imageClassificationConfig != null && message.hasOwnProperty("imageClassificationConfig")) {
+ properties.requestConfig = 1;
+ {
+ var error = $root.google.cloud.datalabeling.v1beta1.ImageClassificationConfig.verify(message.imageClassificationConfig);
+ if (error)
+ return "imageClassificationConfig." + error;
+ }
+ }
+ if (message.boundingPolyConfig != null && message.hasOwnProperty("boundingPolyConfig")) {
+ if (properties.requestConfig === 1)
+ return "requestConfig: multiple values";
+ properties.requestConfig = 1;
+ {
+ var error = $root.google.cloud.datalabeling.v1beta1.BoundingPolyConfig.verify(message.boundingPolyConfig);
+ if (error)
+ return "boundingPolyConfig." + error;
+ }
+ }
+ if (message.polylineConfig != null && message.hasOwnProperty("polylineConfig")) {
+ if (properties.requestConfig === 1)
+ return "requestConfig: multiple values";
+ properties.requestConfig = 1;
+ {
+ var error = $root.google.cloud.datalabeling.v1beta1.PolylineConfig.verify(message.polylineConfig);
+ if (error)
+ return "polylineConfig." + error;
+ }
+ }
+ if (message.segmentationConfig != null && message.hasOwnProperty("segmentationConfig")) {
+ if (properties.requestConfig === 1)
+ return "requestConfig: multiple values";
+ properties.requestConfig = 1;
+ {
+ var error = $root.google.cloud.datalabeling.v1beta1.SegmentationConfig.verify(message.segmentationConfig);
+ if (error)
+ return "segmentationConfig." + error;
+ }
+ }
+ if (message.parent != null && message.hasOwnProperty("parent"))
+ if (!$util.isString(message.parent))
+ return "parent: string expected";
+ if (message.basicConfig != null && message.hasOwnProperty("basicConfig")) {
+ var error = $root.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.verify(message.basicConfig);
+ if (error)
+ return "basicConfig." + error;
+ }
+ if (message.feature != null && message.hasOwnProperty("feature"))
+ switch (message.feature) {
+ default:
+ return "feature: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ case 6:
+ case 3:
+ case 4:
+ case 5:
+ break;
+ }
+ return null;
+ };
+
+ /**
+ * Creates a LabelImageRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.datalabeling.v1beta1.LabelImageRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.datalabeling.v1beta1.LabelImageRequest} LabelImageRequest
+ */
+ LabelImageRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.datalabeling.v1beta1.LabelImageRequest)
+ return object;
+ var message = new $root.google.cloud.datalabeling.v1beta1.LabelImageRequest();
+ if (object.imageClassificationConfig != null) {
+ if (typeof object.imageClassificationConfig !== "object")
+ throw TypeError(".google.cloud.datalabeling.v1beta1.LabelImageRequest.imageClassificationConfig: object expected");
+ message.imageClassificationConfig = $root.google.cloud.datalabeling.v1beta1.ImageClassificationConfig.fromObject(object.imageClassificationConfig);
+ }
+ if (object.boundingPolyConfig != null) {
+ if (typeof object.boundingPolyConfig !== "object")
+ throw TypeError(".google.cloud.datalabeling.v1beta1.LabelImageRequest.boundingPolyConfig: object expected");
+ message.boundingPolyConfig = $root.google.cloud.datalabeling.v1beta1.BoundingPolyConfig.fromObject(object.boundingPolyConfig);
+ }
+ if (object.polylineConfig != null) {
+ if (typeof object.polylineConfig !== "object")
+ throw TypeError(".google.cloud.datalabeling.v1beta1.LabelImageRequest.polylineConfig: object expected");
+ message.polylineConfig = $root.google.cloud.datalabeling.v1beta1.PolylineConfig.fromObject(object.polylineConfig);
+ }
+ if (object.segmentationConfig != null) {
+ if (typeof object.segmentationConfig !== "object")
+ throw TypeError(".google.cloud.datalabeling.v1beta1.LabelImageRequest.segmentationConfig: object expected");
+ message.segmentationConfig = $root.google.cloud.datalabeling.v1beta1.SegmentationConfig.fromObject(object.segmentationConfig);
+ }
+ if (object.parent != null)
+ message.parent = String(object.parent);
+ if (object.basicConfig != null) {
+ if (typeof object.basicConfig !== "object")
+ throw TypeError(".google.cloud.datalabeling.v1beta1.LabelImageRequest.basicConfig: object expected");
+ message.basicConfig = $root.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.fromObject(object.basicConfig);
+ }
+ switch (object.feature) {
+ default:
+ if (typeof object.feature === "number") {
+ message.feature = object.feature;
+ break;
+ }
+ break;
+ case "FEATURE_UNSPECIFIED":
+ case 0:
+ message.feature = 0;
+ break;
+ case "CLASSIFICATION":
+ case 1:
+ message.feature = 1;
+ break;
+ case "BOUNDING_BOX":
+ case 2:
+ message.feature = 2;
+ break;
+ case "ORIENTED_BOUNDING_BOX":
+ case 6:
+ message.feature = 6;
+ break;
+ case "BOUNDING_POLY":
+ case 3:
+ message.feature = 3;
+ break;
+ case "POLYLINE":
+ case 4:
+ message.feature = 4;
+ break;
+ case "SEGMENTATION":
+ case 5:
+ message.feature = 5;
+ break;
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a LabelImageRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.datalabeling.v1beta1.LabelImageRequest
+ * @static
+ * @param {google.cloud.datalabeling.v1beta1.LabelImageRequest} message LabelImageRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.