diff --git a/.release-please-manifest.json b/.release-please-manifest.json
index b4adf51e3b0..5933969590e 100644
--- a/.release-please-manifest.json
+++ b/.release-please-manifest.json
@@ -22,6 +22,7 @@
"packages/google-cloud-deploy": "2.2.2",
"packages/google-cloud-dialogflow": "5.3.0",
"packages/google-cloud-discoveryengine": "0.2.0",
+ "packages/google-cloud-documentai": "6.1.0",
"packages/google-cloud-gkeconnect-gateway": "2.0.5",
"packages/google-cloud-gkemulticloud": "0.1.4",
"packages/google-cloud-iot": "3.1.2",
diff --git a/packages/google-cloud-documentai/.OwlBot.yaml b/packages/google-cloud-documentai/.OwlBot.yaml
new file mode 100644
index 00000000000..5e095ce5be2
--- /dev/null
+++ b/packages/google-cloud-documentai/.OwlBot.yaml
@@ -0,0 +1,20 @@
+# Copyright 2021 Google LLC
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+deep-remove-regex:
+ - /owl-bot-staging
+
+deep-copy-regex:
+ - source: /google/cloud/documentai/(.*)/.*-nodejs
+ dest: /owl-bot-staging/google-cloud-documentai/$1
diff --git a/packages/google-cloud-documentai/.eslintignore b/packages/google-cloud-documentai/.eslintignore
new file mode 100644
index 00000000000..ea5b04aebe6
--- /dev/null
+++ b/packages/google-cloud-documentai/.eslintignore
@@ -0,0 +1,7 @@
+**/node_modules
+**/coverage
+test/fixtures
+build/
+docs/
+protos/
+samples/generated/
diff --git a/packages/google-cloud-documentai/.eslintrc.json b/packages/google-cloud-documentai/.eslintrc.json
new file mode 100644
index 00000000000..78215349546
--- /dev/null
+++ b/packages/google-cloud-documentai/.eslintrc.json
@@ -0,0 +1,3 @@
+{
+ "extends": "./node_modules/gts"
+}
diff --git a/packages/google-cloud-documentai/.gitattributes b/packages/google-cloud-documentai/.gitattributes
new file mode 100644
index 00000000000..33739cb74e4
--- /dev/null
+++ b/packages/google-cloud-documentai/.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-documentai/.gitignore b/packages/google-cloud-documentai/.gitignore
new file mode 100644
index 00000000000..5d32b23782f
--- /dev/null
+++ b/packages/google-cloud-documentai/.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-documentai/.jsdoc.js b/packages/google-cloud-documentai/.jsdoc.js
new file mode 100644
index 00000000000..75c76e52a54
--- /dev/null
+++ b/packages/google-cloud-documentai/.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/documentai',
+ theme: 'lumen',
+ default: {
+ outputSourceFiles: false
+ }
+ },
+ markdown: {
+ idInHeadings: true
+ }
+};
diff --git a/packages/google-cloud-documentai/.mocharc.js b/packages/google-cloud-documentai/.mocharc.js
new file mode 100644
index 00000000000..cdb7b752160
--- /dev/null
+++ b/packages/google-cloud-documentai/.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-documentai/.nycrc b/packages/google-cloud-documentai/.nycrc
new file mode 100644
index 00000000000..b18d5472b62
--- /dev/null
+++ b/packages/google-cloud-documentai/.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-documentai/.prettierignore b/packages/google-cloud-documentai/.prettierignore
new file mode 100644
index 00000000000..9340ad9b86d
--- /dev/null
+++ b/packages/google-cloud-documentai/.prettierignore
@@ -0,0 +1,6 @@
+**/node_modules
+**/coverage
+test/fixtures
+build/
+docs/
+protos/
diff --git a/packages/google-cloud-documentai/.prettierrc.js b/packages/google-cloud-documentai/.prettierrc.js
new file mode 100644
index 00000000000..d546a4ad546
--- /dev/null
+++ b/packages/google-cloud-documentai/.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-documentai/.repo-metadata.json b/packages/google-cloud-documentai/.repo-metadata.json
new file mode 100644
index 00000000000..bd9f0e591b4
--- /dev/null
+++ b/packages/google-cloud-documentai/.repo-metadata.json
@@ -0,0 +1,17 @@
+{
+ "name": "documentai",
+ "name_pretty": "Document AI",
+ "product_documentation": "https://cloud.google.com/document-ai/docs/",
+ "client_documentation": "https://cloud.google.com/nodejs/docs/reference/documentai/latest",
+ "issue_tracker": "",
+ "release_level": "stable",
+ "language": "nodejs",
+ "repo": "googleapis/google-cloud-node",
+ "distribution_name": "@google-cloud/documentai",
+ "api_id": "documentai.googleapis.com",
+ "requires_billing": true,
+ "codeowner_team": "@googleapis/ml-apis",
+ "default_version": "v1",
+ "api_shortname": "documentai",
+ "library_type": "GAPIC_AUTO"
+}
diff --git a/packages/google-cloud-documentai/CHANGELOG.md b/packages/google-cloud-documentai/CHANGELOG.md
new file mode 100644
index 00000000000..f144e97701e
--- /dev/null
+++ b/packages/google-cloud-documentai/CHANGELOG.md
@@ -0,0 +1,291 @@
+# Changelog
+
+## [6.1.0](https://github.com/googleapis/nodejs-document-ai/compare/v6.0.0...v6.1.0) (2022-11-11)
+
+
+### Features
+
+* Added font_family to document.proto ([#377](https://github.com/googleapis/nodejs-document-ai/issues/377)) ([7ded563](https://github.com/googleapis/nodejs-document-ai/commit/7ded5630ed4e589d7a77a91722531fc4f62810b6))
+* added ImageQualityScores message to document.proto ([7ded563](https://github.com/googleapis/nodejs-document-ai/commit/7ded5630ed4e589d7a77a91722531fc4f62810b6))
+* added PropertyMetadata and EntityTypeMetadata to document_schema.proto ([7ded563](https://github.com/googleapis/nodejs-document-ai/commit/7ded5630ed4e589d7a77a91722531fc4f62810b6))
+
+
+### Bug Fixes
+
+* **deps:** Use google-gax v3.5.2 ([#372](https://github.com/googleapis/nodejs-document-ai/issues/372)) ([a612f68](https://github.com/googleapis/nodejs-document-ai/commit/a612f68401bdd63eba38f4830db1d83ab7d5bef2))
+* Regenerated protos JS and TS definitions ([#376](https://github.com/googleapis/nodejs-document-ai/issues/376)) ([64223b5](https://github.com/googleapis/nodejs-document-ai/commit/64223b5d6b5fe5ee4d3922162dbbc63a9401c41a))
+
+## [6.0.0](https://github.com/googleapis/nodejs-document-ai/compare/v5.0.0...v6.0.0) (2022-09-22)
+
+
+### ⚠ BREAKING CHANGES
+
+* Changed the name field for ProcessRequest and BatchProcessorRequest to accept * so the name field can accept Processor and ProcessorVersion.
+
+### Bug Fixes
+
+* Allow passing gax instance to client constructor ([#354](https://github.com/googleapis/nodejs-document-ai/issues/354)) ([bfa1e06](https://github.com/googleapis/nodejs-document-ai/commit/bfa1e0694cd8529b04175970cc08035ddf1692c4))
+* Better support for fallback mode ([#348](https://github.com/googleapis/nodejs-document-ai/issues/348)) ([ae5f1ae](https://github.com/googleapis/nodejs-document-ai/commit/ae5f1aef32f87c7a8ca6a1d4189bf12369d0259e))
+* Change import long to require ([#350](https://github.com/googleapis/nodejs-document-ai/issues/350)) ([ba282ff](https://github.com/googleapis/nodejs-document-ai/commit/ba282ff23872947ef2df2dffb31ff978f2a5a6d9))
+* **deps:** Update dependency uuid to v9 ([#356](https://github.com/googleapis/nodejs-document-ai/issues/356)) ([b465fd2](https://github.com/googleapis/nodejs-document-ai/commit/b465fd2088b9e9269e5b5f2b24aa64fd42bdfffb))
+* Do not import the whole google-gax from proto JS ([#1553](https://github.com/googleapis/nodejs-document-ai/issues/1553)) ([#353](https://github.com/googleapis/nodejs-document-ai/issues/353)) ([3e0beda](https://github.com/googleapis/nodejs-document-ai/commit/3e0beda24c8393e1b1b4e81b71a4ca95fee0056b))
+* Preserve default values in x-goog-request-params header ([#357](https://github.com/googleapis/nodejs-document-ai/issues/357)) ([17f61ed](https://github.com/googleapis/nodejs-document-ai/commit/17f61ed8fa6690845826987fb0f7471e289443b7))
+* Remove pip install statements ([#1546](https://github.com/googleapis/nodejs-document-ai/issues/1546)) ([#352](https://github.com/googleapis/nodejs-document-ai/issues/352)) ([0624e90](https://github.com/googleapis/nodejs-document-ai/commit/0624e90f6e5944f2ee41294fa1e39d5c0b9916c5))
+* use google-gax v3.3.0 ([3e0beda](https://github.com/googleapis/nodejs-document-ai/commit/3e0beda24c8393e1b1b4e81b71a4ca95fee0056b))
+
+
+### Miscellaneous Chores
+
+* Remove unused proto imports ([#345](https://github.com/googleapis/nodejs-document-ai/issues/345)) ([5da430e](https://github.com/googleapis/nodejs-document-ai/commit/5da430e28bbd1298db8cda588c896873b1614191))
+
+## [5.0.0](https://github.com/googleapis/nodejs-document-ai/compare/v4.1.0...v5.0.0) (2022-08-12)
+
+
+### ⚠ BREAKING CHANGES
+
+* Changed the name field for ProcessRequest and BatchProcessorRequest to accept * so the name field can accept Processor and ProcessorVersion.
+
+### Documentation
+
+* fix minor docstring formatting ([#343](https://github.com/googleapis/nodejs-document-ai/issues/343)) ([fc3eb0c](https://github.com/googleapis/nodejs-document-ai/commit/fc3eb0c24bd6a9618cb404b77a4f22e57f603060))
+
+## [4.1.0](https://github.com/googleapis/nodejs-document-ai/compare/v4.0.0...v4.1.0) (2022-07-01)
+
+
+### Features
+
+* support regapic LRO ([#339](https://github.com/googleapis/nodejs-document-ai/issues/339)) ([2be6744](https://github.com/googleapis/nodejs-document-ai/commit/2be67448def326a68a4f81557c536a8a4eed6aad))
+
+## [4.0.0](https://github.com/googleapis/nodejs-document-ai/compare/v3.3.0...v4.0.0) (2022-06-20)
+
+
+### ⚠ BREAKING CHANGES
+
+* update library to use Node 12 (#333)
+* mark Document.Entity.type as REQUIRED in all versions (#326)
+
+### Features
+
+* add `content` field in TextAnchor ([#315](https://github.com/googleapis/nodejs-document-ai/issues/315)) ([1fa9195](https://github.com/googleapis/nodejs-document-ai/commit/1fa9195d555bef2fc2c45668338200d95fec47cb))
+
+
+### Bug Fixes
+
+* **deps:** update dependency @google-cloud/storage to v6 ([#335](https://github.com/googleapis/nodejs-document-ai/issues/335)) ([0259e67](https://github.com/googleapis/nodejs-document-ai/commit/0259e67e411622dbe4acf2ece931b09adf7aaafd))
+* mark Document.Entity.type as REQUIRED in all versions ([#326](https://github.com/googleapis/nodejs-document-ai/issues/326)) ([8ef4cca](https://github.com/googleapis/nodejs-document-ai/commit/8ef4cca05d7095ed51befbb791991209b0d1a3f8))
+
+
+### Build System
+
+* update library to use Node 12 ([#333](https://github.com/googleapis/nodejs-document-ai/issues/333)) ([f51470c](https://github.com/googleapis/nodejs-document-ai/commit/f51470cff119edca6d5ad38ba89652fec80cb429))
+
+## [3.3.0](https://github.com/googleapis/nodejs-document-ai/compare/v3.2.1...v3.3.0) (2022-02-22)
+
+
+### Features
+
+* add `symbols` field, and auto-format comments ([ec5edb7](https://github.com/googleapis/nodejs-document-ai/commit/ec5edb79f3efc5bef40a55dc30e342ce8ffa0cb8))
+* add `symbols` field, and auto-format comments ([ec5edb7](https://github.com/googleapis/nodejs-document-ai/commit/ec5edb79f3efc5bef40a55dc30e342ce8ffa0cb8))
+* add question_id field in ReviewDocumentOperationMetadata ([#304](https://github.com/googleapis/nodejs-document-ai/issues/304)) ([e10cd03](https://github.com/googleapis/nodejs-document-ai/commit/e10cd0349295483ca2628af661a3ce18c75382ac))
+* add question_id field in ReviewDocumentOperationMetadata ([#308](https://github.com/googleapis/nodejs-document-ai/issues/308)) ([675aff9](https://github.com/googleapis/nodejs-document-ai/commit/675aff978cf6d0b685816a76f75d0562af9bef0b))
+
+### [3.2.1](https://github.com/googleapis/nodejs-document-ai/compare/v3.2.0...v3.2.1) (2022-01-13)
+
+
+### Bug Fixes
+
+* **documentai:** add ancillary service bindings to service_yaml ([#296](https://github.com/googleapis/nodejs-document-ai/issues/296)) ([14d1b31](https://github.com/googleapis/nodejs-document-ai/commit/14d1b3195a3288f436a1445372cc3d66438bc544))
+
+## [3.2.0](https://www.github.com/googleapis/nodejs-document-ai/compare/v3.1.0...v3.2.0) (2021-12-14)
+
+
+### Features
+
+* add eslintignore for sameple generated code ([#1302](https://www.github.com/googleapis/nodejs-document-ai/issues/1302)) ([#286](https://www.github.com/googleapis/nodejs-document-ai/issues/286)) ([2baf637](https://www.github.com/googleapis/nodejs-document-ai/commit/2baf63798501748096b8e17500789e067ec66edd))
+
+## [3.1.0](https://www.github.com/googleapis/nodejs-document-ai/compare/v3.0.2...v3.1.0) (2021-09-21)
+
+
+### Features
+
+* turns on self-signed JWT feature flag ([#258](https://www.github.com/googleapis/nodejs-document-ai/issues/258)) ([e39c909](https://www.github.com/googleapis/nodejs-document-ai/commit/e39c909422e03b6ba48ea1163d80bc8a2504d172))
+
+
+### Bug Fixes
+
+* flag module as GA ([#260](https://www.github.com/googleapis/nodejs-document-ai/issues/260)) ([ecc541c](https://www.github.com/googleapis/nodejs-document-ai/commit/ecc541ce928a0b69a4541d8df941d47b71374938))
+
+### [3.0.2](https://www.github.com/googleapis/nodejs-document-ai/compare/v3.0.1...v3.0.2) (2021-08-17)
+
+
+### Bug Fixes
+
+* **build:** migrate to using main branch ([#253](https://www.github.com/googleapis/nodejs-document-ai/issues/253)) ([ac879c4](https://www.github.com/googleapis/nodejs-document-ai/commit/ac879c425cb75862508527b2cf7cbd34e958684e))
+* **deps:** google-gax v2.24.1 ([#257](https://www.github.com/googleapis/nodejs-document-ai/issues/257)) ([4ff6b2d](https://www.github.com/googleapis/nodejs-document-ai/commit/4ff6b2dfa2a5cee97f5dee0690c54f606902a38a))
+* Update DocumentUnderstandingService default_host in v1beta2 from a regional endpoint, to non-regional ([#252](https://www.github.com/googleapis/nodejs-document-ai/issues/252)) ([79b8d82](https://www.github.com/googleapis/nodejs-document-ai/commit/79b8d825244748473efcee1d75653aa2b5077055))
+
+### [3.0.1](https://www.github.com/googleapis/nodejs-document-ai/compare/v3.0.0...v3.0.1) (2021-07-21)
+
+
+### Bug Fixes
+
+* **deps:** google-gax v2.17.1 ([#243](https://www.github.com/googleapis/nodejs-document-ai/issues/243)) ([a9e4efd](https://www.github.com/googleapis/nodejs-document-ai/commit/a9e4efd2478def845376a951c40b76e3384a8b29))
+* Updating WORKSPACE files to use the newest version of the Typescript generator. ([#245](https://www.github.com/googleapis/nodejs-document-ai/issues/245)) ([06bf319](https://www.github.com/googleapis/nodejs-document-ai/commit/06bf3190cad3c9ce98e13aff718bb11db85dd4e5))
+
+## [3.0.0](https://www.github.com/googleapis/nodejs-document-ai/compare/v2.10.0...v3.0.0) (2021-07-01)
+
+
+### ⚠ BREAKING CHANGES
+
+* The default version of the API has changed from `v1beta3` to `v1`.
+
+### Features
+
+* default to v1 of the API ([#220](https://www.github.com/googleapis/nodejs-document-ai/issues/220)) ([5b370d0](https://www.github.com/googleapis/nodejs-document-ai/commit/5b370d06dd0edeefc05d70d99e2ae25890c8546d))
+* update document.proto, add the processor management methods. ([#236](https://www.github.com/googleapis/nodejs-document-ai/issues/236)) ([ddc147f](https://www.github.com/googleapis/nodejs-document-ai/commit/ddc147f4ca253e52eb1d419219b5124ba00c93cd))
+* update ReviewDocumentRequest to allow set priority and enable validation ([#238](https://www.github.com/googleapis/nodejs-document-ai/issues/238)) ([a39d9d5](https://www.github.com/googleapis/nodejs-document-ai/commit/a39d9d53fc9c25f0ba0f7046704ef9807116120b))
+
+
+### Bug Fixes
+
+* **deps:** google-gax v2.17.0 with mTLS ([#241](https://www.github.com/googleapis/nodejs-document-ai/issues/241)) ([2576761](https://www.github.com/googleapis/nodejs-document-ai/commit/25767610bc0161ff98c984e6f08a29ff401ff6e4))
+* GoogleAdsError missing using generator version after 1.3.0 ([#224](https://www.github.com/googleapis/nodejs-document-ai/issues/224)) ([087b081](https://www.github.com/googleapis/nodejs-document-ai/commit/087b0814467e340e8a1c5e2f860ebe8c083be734))
+* make request optional in all cases ([#237](https://www.github.com/googleapis/nodejs-document-ai/issues/237)) ([10e12bb](https://www.github.com/googleapis/nodejs-document-ai/commit/10e12bbcd85818040cf85d9b70fbbaa63bde14e3))
+* update default host to documentai.googleapis.com ([#217](https://www.github.com/googleapis/nodejs-document-ai/issues/217)) ([2d30ad0](https://www.github.com/googleapis/nodejs-document-ai/commit/2d30ad0f29e06d3fc83abba7e46f8d53c24762e7))
+
+## [2.10.0](https://www.github.com/googleapis/nodejs-document-ai/compare/v2.9.0...v2.10.0) (2021-05-12)
+
+
+### Features
+
+* add confidence field to the PageAnchor.PageRef in document.proto ([#206](https://www.github.com/googleapis/nodejs-document-ai/issues/206)) ([f3154a9](https://www.github.com/googleapis/nodejs-document-ai/commit/f3154a9456c5727b317af34c5a76ca0c7cda9cbb))
+
+
+### Bug Fixes
+
+* **deps:** require google-gax v2.12.0 ([#210](https://www.github.com/googleapis/nodejs-document-ai/issues/210)) ([86d31c7](https://www.github.com/googleapis/nodejs-document-ai/commit/86d31c767881ee5524f4285bf828bf674a7d282e))
+* use require() to load JSON protos ([#214](https://www.github.com/googleapis/nodejs-document-ai/issues/214)) ([c73202d](https://www.github.com/googleapis/nodejs-document-ai/commit/c73202dba1d62a1b414abe8b1dc39b93c0eb2e7b))
+
+## [2.9.0](https://www.github.com/googleapis/nodejs-document-ai/compare/v2.8.0...v2.9.0) (2021-04-26)
+
+
+### Features
+
+* add confidence field to the PageAnchor.PageRef in document.proto ([#204](https://www.github.com/googleapis/nodejs-document-ai/issues/204)) ([580150b](https://www.github.com/googleapis/nodejs-document-ai/commit/580150bdb3b5f7bfac599ee7c122a3ffb9a624c7))
+
+## [2.8.0](https://www.github.com/googleapis/nodejs-document-ai/compare/v2.7.0...v2.8.0) (2021-04-13)
+
+
+### Features
+
+* add v1 API surface ([#196](https://www.github.com/googleapis/nodejs-document-ai/issues/196)) ([54b1dc4](https://www.github.com/googleapis/nodejs-document-ai/commit/54b1dc4354c3700d2d729d745edf0de0657d1014))
+
+## [2.7.0](https://www.github.com/googleapis/nodejs-document-ai/compare/v2.6.0...v2.7.0) (2021-04-12)
+
+
+### Features
+
+* add EVAL_SKIPPED value to the Provenance.OperationType enum ([#191](https://www.github.com/googleapis/nodejs-document-ai/issues/191)) ([161b3e0](https://www.github.com/googleapis/nodejs-document-ai/commit/161b3e05412e27454f183c77038f3a920a8af8f5))
+
+## [2.6.0](https://www.github.com/googleapis/nodejs-document-ai/compare/v2.5.0...v2.6.0) (2021-03-15)
+
+
+### Features
+
+* remove the translation fields in document.proto ([#181](https://www.github.com/googleapis/nodejs-document-ai/issues/181)) ([d76272a](https://www.github.com/googleapis/nodejs-document-ai/commit/d76272a98f527d00a5862299208f8f0ebb054405))
+
+## [2.5.0](https://www.github.com/googleapis/nodejs-document-ai/compare/v2.4.0...v2.5.0) (2021-02-24)
+
+
+### Features
+
+* Update documentai/v1beta3 protos: add support for boolean normalized value ([#154](https://www.github.com/googleapis/nodejs-document-ai/issues/154)) ([4ae8c57](https://www.github.com/googleapis/nodejs-document-ai/commit/4ae8c572089cf607810a5e730a4e5807a495bcbc))
+
+## [2.4.0](https://www.github.com/googleapis/nodejs-document-ai/compare/v2.3.0...v2.4.0) (2021-02-17)
+
+
+### Features
+
+* Update documentai/v1beta3 protos ([#152](https://www.github.com/googleapis/nodejs-document-ai/issues/152)) ([9e6b660](https://www.github.com/googleapis/nodejs-document-ai/commit/9e6b66000cc12a08c87924ab26ad9a482f03dbeb))
+
+## [2.3.0](https://www.github.com/googleapis/nodejs-document-ai/compare/v2.2.2...v2.3.0) (2021-01-09)
+
+
+### Features
+
+* adds style enumeration ([#143](https://www.github.com/googleapis/nodejs-document-ai/issues/143)) ([0ed64c4](https://www.github.com/googleapis/nodejs-document-ai/commit/0ed64c40cb5908838348cb9c968841941114473c))
+
+### [2.2.2](https://www.github.com/googleapis/nodejs-document-ai/compare/v2.2.1...v2.2.2) (2020-12-01)
+
+
+### Bug Fixes
+
+* **browser:** check for fetch on window ([#131](https://www.github.com/googleapis/nodejs-document-ai/issues/131)) ([b7b016e](https://www.github.com/googleapis/nodejs-document-ai/commit/b7b016ed8c45c4da57cbe3eb652cd6b27f3be0f0))
+
+### [2.2.1](https://www.github.com/googleapis/nodejs-document-ai/compare/v2.2.0...v2.2.1) (2020-11-10)
+
+
+### Bug Fixes
+
+* do not modify options object ([#125](https://www.github.com/googleapis/nodejs-document-ai/issues/125)) ([acd166f](https://www.github.com/googleapis/nodejs-document-ai/commit/acd166fab67c77101e6d0168d0a74a420fc3df6f))
+
+## [2.2.0](https://www.github.com/googleapis/nodejs-document-ai/compare/v2.1.1...v2.2.0) (2020-10-17)
+
+
+### Features
+
+* add v1beta3 version ([#105](https://www.github.com/googleapis/nodejs-document-ai/issues/105)) ([b419994](https://www.github.com/googleapis/nodejs-document-ai/commit/b4199943d8678b9bcaa324e94540652dff40d4e0))
+* generation error and set v1beta3 as default ([#112](https://www.github.com/googleapis/nodejs-document-ai/issues/112)) ([83ca094](https://www.github.com/googleapis/nodejs-document-ai/commit/83ca09497a4803e566c58a9a88e5bdac04585743))
+
+### [2.1.1](https://www.github.com/googleapis/nodejs-document-ai/compare/v2.1.0...v2.1.1) (2020-07-09)
+
+
+### Bug Fixes
+
+* typeo in nodejs .gitattribute ([#74](https://www.github.com/googleapis/nodejs-document-ai/issues/74)) ([54782b4](https://www.github.com/googleapis/nodejs-document-ai/commit/54782b440b716967f722dec369556b183d1de878))
+
+## [2.1.0](https://www.github.com/googleapis/nodejs-document-ai/compare/v2.0.0...v2.1.0) (2020-06-28)
+
+
+### Features
+
+* move ts target to es2018 from es2016 ([#60](https://www.github.com/googleapis/nodejs-document-ai/issues/60)) ([73ab3b1](https://www.github.com/googleapis/nodejs-document-ai/commit/73ab3b1a98286293b0c639ed0690914de0582987))
+
+
+### Bug Fixes
+
+* proper fallback option handling ([b4aef10](https://www.github.com/googleapis/nodejs-document-ai/commit/b4aef1014338767666f05de59f04fb60b3600be6))
+
+## [2.0.0](https://www.github.com/googleapis/nodejs-document-ai/compare/v1.0.0...v2.0.0) (2020-05-15)
+
+
+### ⚠ 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 ([#54](https://www.github.com/googleapis/nodejs-document-ai/issues/54)) ([d88c23c](https://www.github.com/googleapis/nodejs-document-ai/commit/d88c23cb6722e8b4cac710f87bf1cfee1061a5e3))
+* drop node8 support ([#30](https://www.github.com/googleapis/nodejs-document-ai/issues/30)) ([67ff888](https://www.github.com/googleapis/nodejs-document-ai/commit/67ff88835475d12680e2a2af03987160af9d30e5))
+
+
+### Bug Fixes
+
+* remove eslint, update gax, fix generated protos, run the generator ([#37](https://www.github.com/googleapis/nodejs-document-ai/issues/37)) ([9e6cf01](https://www.github.com/googleapis/nodejs-document-ai/commit/9e6cf011c010bdae157d022fa95edd0ad819862c))
+* remove unused dependencies ([#41](https://www.github.com/googleapis/nodejs-document-ai/issues/41)) ([27077e9](https://www.github.com/googleapis/nodejs-document-ai/commit/27077e9348ce2991f0b506384871e42494baa085))
+* **deps:** update dependency @google-cloud/storage to v5 ([#56](https://www.github.com/googleapis/nodejs-document-ai/issues/56)) ([934f317](https://www.github.com/googleapis/nodejs-document-ai/commit/934f3170fd5650e766525e7d8b1f580a1eca7fab))
+* **samples:** do not pass location ([#39](https://www.github.com/googleapis/nodejs-document-ai/issues/39)) ([2ef2db5](https://www.github.com/googleapis/nodejs-document-ai/commit/2ef2db5f004eb5dcaef27fa85c0d723634661a34))
+
+## 1.0.0 (2020-03-20)
+
+
+### ⚠ BREAKING CHANGES
+
+* initial generation of beta client (#5)
+
+### Features
+
+* **samples:** adds Document AI parse table, forms samples ([#8](https://www.github.com/googleapis/nodejs-document-ai/issues/8)) ([2fdf913](https://www.github.com/googleapis/nodejs-document-ai/commit/2fdf913a29d5339b65212a3105a59435ebdd11b0))
+* adds beta samples ([30a5392](https://www.github.com/googleapis/nodejs-document-ai/commit/30a5392f806399ce233186f3ca3a1bf2bb1be044))
+* initial generation of beta client ([#5](https://www.github.com/googleapis/nodejs-document-ai/issues/5)) ([e5a34f1](https://www.github.com/googleapis/nodejs-document-ai/commit/e5a34f1de4ac9993bd51738e7a626a814c2d962a))
+* updated library from protos ([#9](https://www.github.com/googleapis/nodejs-document-ai/issues/9)) ([5ef7220](https://www.github.com/googleapis/nodejs-document-ai/commit/5ef722045146cd5dc8f8b7c3383136a9bc253f47))
diff --git a/packages/google-cloud-documentai/CODE_OF_CONDUCT.md b/packages/google-cloud-documentai/CODE_OF_CONDUCT.md
new file mode 100644
index 00000000000..2add2547a81
--- /dev/null
+++ b/packages/google-cloud-documentai/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-documentai/CONTRIBUTING.md b/packages/google-cloud-documentai/CONTRIBUTING.md
new file mode 100644
index 00000000000..7bd13312a09
--- /dev/null
+++ b/packages/google-cloud-documentai/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 Document AI 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=documentai.googleapis.com
+[auth]: https://cloud.google.com/docs/authentication/getting-started
\ No newline at end of file
diff --git a/packages/google-cloud-documentai/LICENSE b/packages/google-cloud-documentai/LICENSE
new file mode 100644
index 00000000000..d6456956733
--- /dev/null
+++ b/packages/google-cloud-documentai/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-documentai/README.md b/packages/google-cloud-documentai/README.md
new file mode 100644
index 00000000000..58ebf7d8167
--- /dev/null
+++ b/packages/google-cloud-documentai/README.md
@@ -0,0 +1,246 @@
+[//]: # "This README.md file is auto-generated, all changes to this file will be lost."
+[//]: # "To regenerate it, use `python -m synthtool`."
+
+
+# [Document AI: Node.js Client](https://github.com/googleapis/google-cloud-node)
+
+[](https://cloud.google.com/terms/launch-stages)
+[](https://www.npmjs.org/package/@google-cloud/documentai)
+
+
+
+
+Document AI 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-documentai/CHANGELOG.md).
+
+* [Document AI Node.js Client API Reference][client-docs]
+* [Document AI Documentation][product-docs]
+* [github.com/googleapis/google-cloud-node/packages/google-cloud-documentai](https://github.com/googleapis/google-cloud-node/tree/main/packages/google-cloud-documentai)
+
+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 Document AI 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/documentai
+```
+
+
+### Using the client library
+
+```javascript
+/**
+ * TODO(developer): Uncomment these variables before running the sample.
+ */
+// const projectId = 'YOUR_PROJECT_ID';
+// const location = 'YOUR_PROJECT_LOCATION'; // Format is 'us' or 'eu'
+// const processorId = 'YOUR_PROCESSOR_ID'; // Create processor in Cloud Console
+// const filePath = '/path/to/local/pdf';
+
+const {DocumentProcessorServiceClient} =
+ require('@google-cloud/documentai').v1;
+
+// Instantiates a client
+// apiEndpoint regions available: eu-documentai.googleapis.com, us-documentai.googleapis.com (Required if using eu based processor)
+// const client = new DocumentProcessorServiceClient({apiEndpoint: 'eu-documentai.googleapis.com'});
+const client = new DocumentProcessorServiceClient();
+
+async function quickstart() {
+ // The full resource name of the processor, e.g.:
+ // projects/project-id/locations/location/processor/processor-id
+ // You must create new processors in the Cloud Console first
+ const name = `projects/${projectId}/locations/${location}/processors/${processorId}`;
+
+ // Read the file into memory.
+ const fs = require('fs').promises;
+ const imageFile = await fs.readFile(filePath);
+
+ // Convert the image data to a Buffer and base64 encode it.
+ const encodedImage = Buffer.from(imageFile).toString('base64');
+
+ const request = {
+ name,
+ rawDocument: {
+ content: encodedImage,
+ mimeType: 'application/pdf',
+ },
+ };
+
+ // Recognizes text entities in the PDF document
+ const [result] = await client.processDocument(request);
+ const {document} = result;
+
+ // Get all of the document text as one big string
+ const {text} = document;
+
+ // Extract shards from the text field
+ const getText = textAnchor => {
+ if (!textAnchor.textSegments || textAnchor.textSegments.length === 0) {
+ return '';
+ }
+
+ // First shard in document doesn't have startIndex property
+ const startIndex = textAnchor.textSegments[0].startIndex || 0;
+ const endIndex = textAnchor.textSegments[0].endIndex;
+
+ return text.substring(startIndex, endIndex);
+ };
+
+ // Read the text recognition output from the processor
+ console.log('The document contains the following paragraphs:');
+ const [page1] = document.pages;
+ const {paragraphs} = page1;
+
+ for (const paragraph of paragraphs) {
+ const paragraphText = getText(paragraph.layout.textAnchor);
+ console.log(`Paragraph text:\n${paragraphText}`);
+ }
+}
+
+```
+
+
+
+## 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 |
+| --------------------------- | --------------------------------- | ------ |
+| Document_processor_service.batch_process_documents | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-documentai/samples/generated/v1/document_processor_service.batch_process_documents.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-documentai/samples/generated/v1/document_processor_service.batch_process_documents.js,samples/README.md) |
+| Document_processor_service.create_processor | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-documentai/samples/generated/v1/document_processor_service.create_processor.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-documentai/samples/generated/v1/document_processor_service.create_processor.js,samples/README.md) |
+| Document_processor_service.delete_processor | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-documentai/samples/generated/v1/document_processor_service.delete_processor.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-documentai/samples/generated/v1/document_processor_service.delete_processor.js,samples/README.md) |
+| Document_processor_service.delete_processor_version | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-documentai/samples/generated/v1/document_processor_service.delete_processor_version.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-documentai/samples/generated/v1/document_processor_service.delete_processor_version.js,samples/README.md) |
+| Document_processor_service.deploy_processor_version | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-documentai/samples/generated/v1/document_processor_service.deploy_processor_version.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-documentai/samples/generated/v1/document_processor_service.deploy_processor_version.js,samples/README.md) |
+| Document_processor_service.disable_processor | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-documentai/samples/generated/v1/document_processor_service.disable_processor.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-documentai/samples/generated/v1/document_processor_service.disable_processor.js,samples/README.md) |
+| Document_processor_service.enable_processor | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-documentai/samples/generated/v1/document_processor_service.enable_processor.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-documentai/samples/generated/v1/document_processor_service.enable_processor.js,samples/README.md) |
+| Document_processor_service.fetch_processor_types | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-documentai/samples/generated/v1/document_processor_service.fetch_processor_types.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-documentai/samples/generated/v1/document_processor_service.fetch_processor_types.js,samples/README.md) |
+| Document_processor_service.get_processor | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-documentai/samples/generated/v1/document_processor_service.get_processor.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-documentai/samples/generated/v1/document_processor_service.get_processor.js,samples/README.md) |
+| Document_processor_service.get_processor_version | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-documentai/samples/generated/v1/document_processor_service.get_processor_version.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-documentai/samples/generated/v1/document_processor_service.get_processor_version.js,samples/README.md) |
+| Document_processor_service.list_processor_types | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-documentai/samples/generated/v1/document_processor_service.list_processor_types.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-documentai/samples/generated/v1/document_processor_service.list_processor_types.js,samples/README.md) |
+| Document_processor_service.list_processor_versions | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-documentai/samples/generated/v1/document_processor_service.list_processor_versions.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-documentai/samples/generated/v1/document_processor_service.list_processor_versions.js,samples/README.md) |
+| Document_processor_service.list_processors | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-documentai/samples/generated/v1/document_processor_service.list_processors.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-documentai/samples/generated/v1/document_processor_service.list_processors.js,samples/README.md) |
+| Document_processor_service.process_document | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-documentai/samples/generated/v1/document_processor_service.process_document.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-documentai/samples/generated/v1/document_processor_service.process_document.js,samples/README.md) |
+| Document_processor_service.review_document | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-documentai/samples/generated/v1/document_processor_service.review_document.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-documentai/samples/generated/v1/document_processor_service.review_document.js,samples/README.md) |
+| Document_processor_service.set_default_processor_version | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-documentai/samples/generated/v1/document_processor_service.set_default_processor_version.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-documentai/samples/generated/v1/document_processor_service.set_default_processor_version.js,samples/README.md) |
+| Document_processor_service.undeploy_processor_version | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-documentai/samples/generated/v1/document_processor_service.undeploy_processor_version.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-documentai/samples/generated/v1/document_processor_service.undeploy_processor_version.js,samples/README.md) |
+| Document_understanding_service.batch_process_documents | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-documentai/samples/generated/v1beta1/document_understanding_service.batch_process_documents.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-documentai/samples/generated/v1beta1/document_understanding_service.batch_process_documents.js,samples/README.md) |
+| Document_understanding_service.batch_process_documents | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-documentai/samples/generated/v1beta2/document_understanding_service.batch_process_documents.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-documentai/samples/generated/v1beta2/document_understanding_service.batch_process_documents.js,samples/README.md) |
+| Document_understanding_service.process_document | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-documentai/samples/generated/v1beta2/document_understanding_service.process_document.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-documentai/samples/generated/v1beta2/document_understanding_service.process_document.js,samples/README.md) |
+| Document_processor_service.batch_process_documents | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-documentai/samples/generated/v1beta3/document_processor_service.batch_process_documents.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-documentai/samples/generated/v1beta3/document_processor_service.batch_process_documents.js,samples/README.md) |
+| Document_processor_service.create_processor | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-documentai/samples/generated/v1beta3/document_processor_service.create_processor.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-documentai/samples/generated/v1beta3/document_processor_service.create_processor.js,samples/README.md) |
+| Document_processor_service.delete_processor | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-documentai/samples/generated/v1beta3/document_processor_service.delete_processor.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-documentai/samples/generated/v1beta3/document_processor_service.delete_processor.js,samples/README.md) |
+| Document_processor_service.delete_processor_version | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-documentai/samples/generated/v1beta3/document_processor_service.delete_processor_version.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-documentai/samples/generated/v1beta3/document_processor_service.delete_processor_version.js,samples/README.md) |
+| Document_processor_service.deploy_processor_version | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-documentai/samples/generated/v1beta3/document_processor_service.deploy_processor_version.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-documentai/samples/generated/v1beta3/document_processor_service.deploy_processor_version.js,samples/README.md) |
+| Document_processor_service.disable_processor | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-documentai/samples/generated/v1beta3/document_processor_service.disable_processor.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-documentai/samples/generated/v1beta3/document_processor_service.disable_processor.js,samples/README.md) |
+| Document_processor_service.enable_processor | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-documentai/samples/generated/v1beta3/document_processor_service.enable_processor.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-documentai/samples/generated/v1beta3/document_processor_service.enable_processor.js,samples/README.md) |
+| Document_processor_service.fetch_processor_types | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-documentai/samples/generated/v1beta3/document_processor_service.fetch_processor_types.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-documentai/samples/generated/v1beta3/document_processor_service.fetch_processor_types.js,samples/README.md) |
+| Document_processor_service.get_processor | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-documentai/samples/generated/v1beta3/document_processor_service.get_processor.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-documentai/samples/generated/v1beta3/document_processor_service.get_processor.js,samples/README.md) |
+| Document_processor_service.get_processor_version | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-documentai/samples/generated/v1beta3/document_processor_service.get_processor_version.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-documentai/samples/generated/v1beta3/document_processor_service.get_processor_version.js,samples/README.md) |
+| Document_processor_service.list_processor_types | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-documentai/samples/generated/v1beta3/document_processor_service.list_processor_types.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-documentai/samples/generated/v1beta3/document_processor_service.list_processor_types.js,samples/README.md) |
+| Document_processor_service.list_processor_versions | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-documentai/samples/generated/v1beta3/document_processor_service.list_processor_versions.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-documentai/samples/generated/v1beta3/document_processor_service.list_processor_versions.js,samples/README.md) |
+| Document_processor_service.list_processors | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-documentai/samples/generated/v1beta3/document_processor_service.list_processors.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-documentai/samples/generated/v1beta3/document_processor_service.list_processors.js,samples/README.md) |
+| Document_processor_service.process_document | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-documentai/samples/generated/v1beta3/document_processor_service.process_document.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-documentai/samples/generated/v1beta3/document_processor_service.process_document.js,samples/README.md) |
+| Document_processor_service.review_document | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-documentai/samples/generated/v1beta3/document_processor_service.review_document.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-documentai/samples/generated/v1beta3/document_processor_service.review_document.js,samples/README.md) |
+| Document_processor_service.set_default_processor_version | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-documentai/samples/generated/v1beta3/document_processor_service.set_default_processor_version.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-documentai/samples/generated/v1beta3/document_processor_service.set_default_processor_version.js,samples/README.md) |
+| Document_processor_service.undeploy_processor_version | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-documentai/samples/generated/v1beta3/document_processor_service.undeploy_processor_version.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-documentai/samples/generated/v1beta3/document_processor_service.undeploy_processor_version.js,samples/README.md) |
+| Quickstart | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-documentai/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-documentai/samples/quickstart.js,samples/README.md) |
+| Quickstart.test | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-documentai/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-documentai/samples/test/quickstart.test.js,samples/README.md) |
+
+
+
+The [Document AI 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/documentai@legacy-8` installs client libraries
+for versions compatible with Node.js 8.
+
+## Versioning
+
+This library follows [Semantic Versioning](http://semver.org/).
+
+
+
+This library is considered to be **stable**. The code surface will not change in backwards-incompatible ways
+unless absolutely necessary (e.g. because of critical security issues) or with
+an extensive deprecation period. Issues and requests against **stable** libraries
+are addressed with the highest priority.
+
+
+
+
+
+
+More Information: [Google Cloud Platform Launch Stages][launch_stages]
+
+[launch_stages]: https://cloud.google.com/terms/launch-stages
+
+## Contributing
+
+Contributions welcome! See the [Contributing Guide](https://github.com/googleapis/google-cloud-node/blob/main/CONTRIBUTING.md).
+
+Please note that this `README.md`, the `samples/README.md`,
+and a variety of configuration files in this repository (including `.nycrc` and `tsconfig.json`)
+are generated from a central template. To edit one of these files, make an edit
+to its templates in
+[directory](https://github.com/googleapis/synthtool).
+
+## License
+
+Apache Version 2.0
+
+See [LICENSE](https://github.com/googleapis/google-cloud-node/blob/main/LICENSE)
+
+[client-docs]: https://cloud.google.com/nodejs/docs/reference/documentai/latest
+[product-docs]: https://cloud.google.com/document-ai/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=documentai.googleapis.com
+[auth]: https://cloud.google.com/docs/authentication/getting-started
diff --git a/packages/google-cloud-documentai/linkinator.config.json b/packages/google-cloud-documentai/linkinator.config.json
new file mode 100644
index 00000000000..befd23c8633
--- /dev/null
+++ b/packages/google-cloud-documentai/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-documentai/owlbot.py b/packages/google-cloud-documentai/owlbot.py
new file mode 100644
index 00000000000..3a0575fbd7d
--- /dev/null
+++ b/packages/google-cloud-documentai/owlbot.py
@@ -0,0 +1,38 @@
+# 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.
+"""This script is used to synthesize generated parts of this library."""
+
+import os
+import synthtool as s
+import synthtool.gcp as gcp
+import synthtool.languages.node_mono_repo as node
+import json
+import logging
+from pathlib import Path
+
+node.owlbot_main(relative_dir="packages/google-cloud-documentai",)
+
+## Note: this API only supports regional endpoints and does not support default scopes.
+s.replace(f"src/*/document_*_service_client.ts",
+ "servicePath !== staticMembers.servicePath && ",
+ ""
+ )
+s.replace(f"src/*/document_*_service_client.ts",
+ "and we're connecting to a non-default endpoint, set scopes just in case",
+ "set scopes"
+ )
+s.replace(f"src/*/document_*_service_client.ts",
+ r"// Set the default scopes in auth client if needed(.|\n)*?}",
+ ""
+ )
diff --git a/packages/google-cloud-documentai/package.json b/packages/google-cloud-documentai/package.json
new file mode 100644
index 00000000000..c344a9ea087
--- /dev/null
+++ b/packages/google-cloud-documentai/package.json
@@ -0,0 +1,60 @@
+{
+ "name": "@google-cloud/documentai",
+ "version": "6.1.0",
+ "description": "Document AI client for Node.js",
+ "repository": {
+ "type": "git",
+ "directory": "packages/google-cloud-documentai",
+ "url": "https://github.com/googleapis/google-cloud-node.git"
+ },
+ "license": "Apache-2.0",
+ "author": "Google LLC",
+ "files": [
+ "build/src",
+ "build/protos"
+ ],
+ "main": "build/src/index.js",
+ "scripts": {
+ "clean": "gts clean",
+ "compile": "tsc -p . && cp -r protos build/",
+ "compile-protos": "compileProtos src",
+ "docs": "jsdoc -c .jsdoc.js",
+ "docs-test": "linkinator docs",
+ "fix": "gts fix",
+ "lint": "gts check",
+ "prelint": "cd samples; npm link ../; npm install",
+ "predocs-test": "npm run docs",
+ "prepare": "npm run compile-protos && npm run compile",
+ "system-test": "npm run compile && c8 mocha build/system-test",
+ "samples-test": "npm run compile && cd samples/ && npm link ../ && npm i && npm test",
+ "test": "c8 mocha build/test",
+ "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.1.0",
+ "chai": "^4.2.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"
+ },
+ "engines": {
+ "node": ">=12.0.0"
+ },
+ "homepage": "https://github.com/googleapis/google-cloud-node/tree/main/packages/google-cloud-documentai"
+}
diff --git a/packages/google-cloud-documentai/protos/google/cloud/common_resources.proto b/packages/google-cloud-documentai/protos/google/cloud/common_resources.proto
new file mode 100644
index 00000000000..56c9f800d5e
--- /dev/null
+++ b/packages/google-cloud-documentai/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-documentai/protos/google/cloud/document/v1beta1/document.proto b/packages/google-cloud-documentai/protos/google/cloud/document/v1beta1/document.proto
new file mode 100644
index 00000000000..09804b9e420
--- /dev/null
+++ b/packages/google-cloud-documentai/protos/google/cloud/document/v1beta1/document.proto
@@ -0,0 +1,410 @@
+// 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.document.v1beta1;
+
+import "google/cloud/document/v1beta1/geometry.proto";
+import "google/rpc/status.proto";
+import "google/type/color.proto";
+import "google/api/annotations.proto";
+
+option go_package = "google.golang.org/genproto/googleapis/cloud/document/v1beta1;document";
+option java_multiple_files = true;
+option java_outer_classname = "DocumentProto";
+option java_package = "com.google.cloud.document.v1beta1";
+
+// Document represents the canonical document resource in Document Understanding
+// AI.
+// It is an interchange format that provides insights into documents and allows
+// for collaboration between users and Document Understanding AI to iterate and
+// optimize for quality.
+message Document {
+ // For a large document, sharding may be performed to produce several
+ // document shards. Each document shard contains this field to detail which
+ // shard it is.
+ message ShardInfo {
+ // The 0-based index of this shard.
+ int64 shard_index = 1;
+
+ // Total number of shards.
+ int64 shard_count = 2;
+
+ // The index of the first character in [Document.text][google.cloud.document.v1beta1.Document.text] in the overall
+ // document global text.
+ int64 text_offset = 3;
+ }
+
+ // Annotation for common text style attributes. This adheres to CSS
+ // conventions as much as possible.
+ message Style {
+ // Font size with unit.
+ message FontSize {
+ // Font size for the text.
+ float size = 1;
+
+ // Unit for the font size. Follows CSS naming (in, px, pt, etc.).
+ string unit = 2;
+ }
+
+ // Text anchor indexing into the [Document.text][google.cloud.document.v1beta1.Document.text].
+ TextAnchor text_anchor = 1;
+
+ // Text color.
+ google.type.Color color = 2;
+
+ // Text background color.
+ google.type.Color background_color = 3;
+
+ // Font weight. Possible values are normal, bold, bolder, and lighter.
+ // https://www.w3schools.com/cssref/pr_font_weight.asp
+ string font_weight = 4;
+
+ // Text style. Possible values are normal, italic, and oblique.
+ // https://www.w3schools.com/cssref/pr_font_font-style.asp
+ string text_style = 5;
+
+ // Text decoration. Follows CSS standard.
+ //
+ // https://www.w3schools.com/cssref/pr_text_text-decoration.asp
+ string text_decoration = 6;
+
+ // Font size.
+ FontSize font_size = 7;
+ }
+
+ // A page in a [Document][google.cloud.document.v1beta1.Document].
+ message Page {
+ // Dimension for the page.
+ message Dimension {
+ // Page width.
+ float width = 1;
+
+ // Page height.
+ float height = 2;
+
+ // Dimension unit.
+ string unit = 3;
+ }
+
+ // Visual element describing a layout unit on a page.
+ message Layout {
+ // Detected human reading orientation.
+ enum Orientation {
+ // Unspecified orientation.
+ ORIENTATION_UNSPECIFIED = 0;
+
+ // Orientation is aligned with page up.
+ PAGE_UP = 1;
+
+ // Orientation is aligned with page right.
+ // Turn the head 90 degrees clockwise from upright to read.
+ PAGE_RIGHT = 2;
+
+ // Orientation is aligned with page down.
+ // Turn the head 180 degrees from upright to read.
+ PAGE_DOWN = 3;
+
+ // Orientation is aligned with page left.
+ // Turn the head 90 degrees counterclockwise from upright to read.
+ PAGE_LEFT = 4;
+ }
+
+ // Text anchor indexing into the [Document.text][google.cloud.document.v1beta1.Document.text].
+ TextAnchor text_anchor = 1;
+
+ // Confidence of the current [Layout][google.cloud.document.v1beta1.Document.Page.Layout] within context of the object this
+ // layout is for. e.g. confidence can be for a single token, a table,
+ // a visual element, etc. depending on context. Range [0, 1].
+ float confidence = 2;
+
+ // The bounding polygon for the [Layout][google.cloud.document.v1beta1.Document.Page.Layout].
+ BoundingPoly bounding_poly = 3;
+
+ // Detected orientation for the [Layout][google.cloud.document.v1beta1.Document.Page.Layout].
+ Orientation orientation = 4;
+ }
+
+ // A block has a set of lines (collected into paragraphs) that have a
+ // common line-spacing and orientation.
+ message Block {
+ // [Layout][google.cloud.document.v1beta1.Document.Page.Layout] for [Block][google.cloud.document.v1beta1.Document.Page.Block].
+ Layout layout = 1;
+
+ // A list of detected languages together with confidence.
+ repeated DetectedLanguage detected_languages = 2;
+ }
+
+ // A collection of lines that a human would perceive as a paragraph.
+ message Paragraph {
+ // [Layout][google.cloud.document.v1beta1.Document.Page.Layout] for [Paragraph][google.cloud.document.v1beta1.Document.Page.Paragraph].
+ Layout layout = 1;
+
+ // A list of detected languages together with confidence.
+ repeated DetectedLanguage detected_languages = 2;
+ }
+
+ // A collection of tokens that a human would perceive as a line.
+ // Does not cross column boundaries, can be horizontal, vertical, etc.
+ message Line {
+ // [Layout][google.cloud.document.v1beta1.Document.Page.Layout] for [Line][google.cloud.document.v1beta1.Document.Page.Line].
+ Layout layout = 1;
+
+ // A list of detected languages together with confidence.
+ repeated DetectedLanguage detected_languages = 2;
+ }
+
+ // A detected token.
+ message Token {
+ // Detected break at the end of a [Token][google.cloud.document.v1beta1.Document.Page.Token].
+ message DetectedBreak {
+ // Enum to denote the type of break found.
+ enum Type {
+ // Unspecified break type.
+ TYPE_UNSPECIFIED = 0;
+
+ // A single whitespace.
+ SPACE = 1;
+
+ // A wider whitespace.
+ WIDE_SPACE = 2;
+
+ // A hyphen that indicates that a token has been split across lines.
+ HYPHEN = 3;
+ }
+
+ // Detected break type.
+ Type type = 1;
+ }
+
+ // [Layout][google.cloud.document.v1beta1.Document.Page.Layout] for [Token][google.cloud.document.v1beta1.Document.Page.Token].
+ Layout layout = 1;
+
+ // Detected break at the end of a [Token][google.cloud.document.v1beta1.Document.Page.Token].
+ DetectedBreak detected_break = 2;
+
+ // A list of detected languages together with confidence.
+ repeated DetectedLanguage detected_languages = 3;
+ }
+
+ // Detected non-text visual elements e.g. checkbox, signature etc. on the
+ // page.
+ message VisualElement {
+ // [Layout][google.cloud.document.v1beta1.Document.Page.Layout] for [Token][google.cloud.document.v1beta1.Document.Page.Token].
+ Layout layout = 1;
+
+ // Type of the [VisualElement][google.cloud.document.v1beta1.Document.Page.VisualElement].
+ string type = 2;
+
+ // A list of detected languages together with confidence.
+ repeated DetectedLanguage detected_languages = 3;
+ }
+
+ // A table representation similar to HTML table structure.
+ message Table {
+ // A row of table cells.
+ message TableRow {
+ // Cells that make up this row.
+ repeated TableCell cells = 1;
+ }
+
+ // A cell representation inside the table.
+ message TableCell {
+ // [Layout][google.cloud.document.v1beta1.Document.Page.Layout] for [TableCell][google.cloud.document.v1beta1.Document.Page.Table.TableCell].
+ Layout layout = 1;
+
+ // How many rows this cell spans.
+ int32 row_span = 2;
+
+ // How many columns this cell spans.
+ int32 col_span = 3;
+
+ // A list of detected languages together with confidence.
+ repeated DetectedLanguage detected_languages = 4;
+ }
+
+ // [Layout][google.cloud.document.v1beta1.Document.Page.Layout] for [Table][google.cloud.document.v1beta1.Document.Page.Table].
+ Layout layout = 1;
+
+ // Header rows of the table.
+ repeated TableRow header_rows = 2;
+
+ // Body rows of the table.
+ repeated TableRow body_rows = 3;
+
+ // A list of detected languages together with confidence.
+ repeated DetectedLanguage detected_languages = 4;
+ }
+
+ // A form field detected on the page.
+ message FormField {
+ // [Layout][google.cloud.document.v1beta1.Document.Page.Layout] for the [FormField][google.cloud.document.v1beta1.Document.Page.FormField] name. e.g. `Address`, `Email`,
+ // `Grand total`, `Phone number`, etc.
+ Layout field_name = 1;
+
+ // [Layout][google.cloud.document.v1beta1.Document.Page.Layout] for the [FormField][google.cloud.document.v1beta1.Document.Page.FormField] value.
+ Layout field_value = 2;
+
+ // A list of detected languages for name together with confidence.
+ repeated DetectedLanguage name_detected_languages = 3;
+
+ // A list of detected languages for value together with confidence.
+ repeated DetectedLanguage value_detected_languages = 4;
+ }
+
+ // Detected language for a structural component.
+ message DetectedLanguage {
+ // The BCP-47 language code, such as "en-US" or "sr-Latn". For more
+ // information, see
+ // http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
+ string language_code = 1;
+
+ // Confidence of detected language. Range [0, 1].
+ float confidence = 2;
+ }
+
+ // 1-based index for current [Page][google.cloud.document.v1beta1.Document.Page] in a parent [Document][google.cloud.document.v1beta1.Document].
+ // Useful when a page is taken out of a [Document][google.cloud.document.v1beta1.Document] for individual
+ // processing.
+ int32 page_number = 1;
+
+ // Physical dimension of the page.
+ Dimension dimension = 2;
+
+ // [Layout][google.cloud.document.v1beta1.Document.Page.Layout] for the page.
+ Layout layout = 3;
+
+ // A list of detected languages together with confidence.
+ repeated DetectedLanguage detected_languages = 4;
+
+ // A list of visually detected text blocks on the page.
+ // A block has a set of lines (collected into paragraphs) that have a common
+ // line-spacing and orientation.
+ repeated Block blocks = 5;
+
+ // A list of visually detected text paragraphs on the page.
+ // A collection of lines that a human would perceive as a paragraph.
+ repeated Paragraph paragraphs = 6;
+
+ // A list of visually detected text lines on the page.
+ // A collection of tokens that a human would perceive as a line.
+ repeated Line lines = 7;
+
+ // A list of visually detected tokens on the page.
+ repeated Token tokens = 8;
+
+ // A list of detected non-text visual elements e.g. checkbox,
+ // signature etc. on the page.
+ repeated VisualElement visual_elements = 9;
+
+ // A list of visually detected tables on the page.
+ repeated Table tables = 10;
+
+ // A list of visually detected form fields on the page.
+ repeated FormField form_fields = 11;
+ }
+
+ // A phrase in the text that is a known entity type, such as a person, an
+ // organization, or location.
+ message Entity {
+ // Provenance of the entity.
+ // Text anchor indexing into the [Document.text][google.cloud.document.v1beta1.Document.text].
+ TextAnchor text_anchor = 1;
+
+ // Entity type from a schema e.g. `Address`.
+ string type = 2;
+
+ // Text value in the document e.g. `1600 Amphitheatre Pkwy`.
+ string mention_text = 3;
+
+ // Canonical mention name. This will be a unique value in the entity list
+ // for this document.
+ string mention_id = 4;
+ }
+
+ // Relationship between [Entities][google.cloud.document.v1beta1.Document.Entity].
+ message EntityRelation {
+ // Subject entity mention_id.
+ string subject_id = 1;
+
+ // Object entity mention_id.
+ string object_id = 2;
+
+ // Relationship description.
+ string relation = 3;
+ }
+
+ // Text reference indexing into the [Document.text][google.cloud.document.v1beta1.Document.text].
+ message TextAnchor {
+ // A text segment in the [Document.text][google.cloud.document.v1beta1.Document.text]. The indices may be out of bounds
+ // which indicate that the text extends into another document shard for
+ // large sharded documents. See [ShardInfo.text_offset][google.cloud.document.v1beta1.Document.ShardInfo.text_offset]
+ message TextSegment {
+ // [TextSegment][google.cloud.document.v1beta1.Document.TextAnchor.TextSegment] start UTF-8 char index in the [Document.text][google.cloud.document.v1beta1.Document.text].
+ int64 start_index = 1;
+
+ // [TextSegment][google.cloud.document.v1beta1.Document.TextAnchor.TextSegment] half open end UTF-8 char index in the
+ // [Document.text][google.cloud.document.v1beta1.Document.text].
+ int64 end_index = 2;
+ }
+
+ // The text segments from the [Document.text][google.cloud.document.v1beta1.Document.text].
+ repeated TextSegment text_segments = 1;
+ }
+
+ // Original source document from the user.
+ oneof source {
+ // Currently supports Google Cloud Storage URI of the form
+ // `gs://bucket_name/object_name`. Object versioning is not supported.
+ // See [Google Cloud Storage Request
+ // URIs](https://cloud.google.com/storage/docs/reference-uris) for more
+ // info.
+ string uri = 1;
+
+ // Inline document content, represented as a stream of bytes.
+ // Note: As with all `bytes` fields, protobuffers use a pure binary
+ // representation, whereas JSON representations use base64.
+ bytes content = 2;
+ }
+
+ // An IANA published MIME type (also referred to as media type). For more
+ // information, see
+ // https://www.iana.org/assignments/media-types/media-types.xhtml.
+ string mime_type = 3;
+
+ // UTF-8 encoded text in reading order from the document.
+ string text = 4;
+
+ // Styles for the [Document.text][google.cloud.document.v1beta1.Document.text].
+ repeated Style text_styles = 5;
+
+ // Visual page layout for the [Document][google.cloud.document.v1beta1.Document].
+ repeated Page pages = 6;
+
+ // A list of entities detected on [Document.text][google.cloud.document.v1beta1.Document.text]. For document shards,
+ // entities in this list may cross shard boundaries.
+ repeated Entity entities = 7;
+
+ // Relationship among [Document.entities][google.cloud.document.v1beta1.Document.entities].
+ repeated EntityRelation entity_relations = 8;
+
+ // Information about the sharding if this document is sharded part of a larger
+ // document. If the document is not sharded, this message is not specified.
+ ShardInfo shard_info = 9;
+
+ // Any error that occurred while processing this document.
+ google.rpc.Status error = 10;
+}
diff --git a/packages/google-cloud-documentai/protos/google/cloud/document/v1beta1/document_understanding.proto b/packages/google-cloud-documentai/protos/google/cloud/document/v1beta1/document_understanding.proto
new file mode 100644
index 00000000000..bd355a38928
--- /dev/null
+++ b/packages/google-cloud-documentai/protos/google/cloud/document/v1beta1/document_understanding.proto
@@ -0,0 +1,284 @@
+// 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.document.v1beta1;
+
+import "google/api/annotations.proto";
+import "google/cloud/document/v1beta1/geometry.proto";
+import "google/longrunning/operations.proto";
+import "google/protobuf/timestamp.proto";
+import "google/api/client.proto";
+
+option go_package = "google.golang.org/genproto/googleapis/cloud/document/v1beta1;document";
+option java_multiple_files = true;
+option java_outer_classname = "DocumentUnderstandingProto";
+option java_package = "com.google.cloud.document.v1beta1";
+
+// Service to parse structured information from unstructured or semi-structured
+// documents using state-of-the-art Google AI such as natural language,
+// computer vision, and translation.
+service DocumentUnderstandingService {
+ option (google.api.default_host) = "document.googleapis.com";
+ option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform";
+
+ // LRO endpoint to batch process many documents.
+ rpc BatchProcessDocuments(BatchProcessDocumentsRequest) returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ post: "/v1beta1/{parent=projects/*/locations/*}/documents:batchProcess"
+ body: "*"
+ additional_bindings {
+ post: "/v1beta1/{parent=projects/*}/documents:batchProcess"
+ body: "*"
+ }
+ };
+ }
+}
+
+// Request to batch process documents as an asynchronous operation.
+message BatchProcessDocumentsRequest {
+ // Individual requests for each document.
+ repeated ProcessDocumentRequest requests = 1;
+
+ // Target project and location to make a call.
+ //
+ // Format: `projects/{project-id}/locations/{location-id}`.
+ //
+ // If no location is specified, a region will be chosen automatically.
+ string parent = 2;
+}
+
+// Request to process one document.
+message ProcessDocumentRequest {
+ // Required. Information about the input file.
+ InputConfig input_config = 1;
+
+ // Required. The desired output location.
+ OutputConfig output_config = 2;
+
+ // Specifies a known document type for deeper structure detection. Valid
+ // values are currently "general" and "invoice". If not provided, "general"\
+ // is used as default. If any other value is given, the request is rejected.
+ string document_type = 3;
+
+ // Controls table extraction behavior. If not specified, the system will
+ // decide reasonable defaults.
+ TableExtractionParams table_extraction_params = 4;
+
+ // Controls form extraction behavior. If not specified, the system will
+ // decide reasonable defaults.
+ FormExtractionParams form_extraction_params = 5;
+
+ // Controls entity extraction behavior. If not specified, the system will
+ // decide reasonable defaults.
+ EntityExtractionParams entity_extraction_params = 6;
+
+ // Controls OCR behavior. If not specified, the system will decide reasonable
+ // defaults.
+ OcrParams ocr_params = 7;
+}
+
+// Response to an batch document processing request. This is returned in
+// the LRO Operation after the operation is complete.
+message BatchProcessDocumentsResponse {
+ // Responses for each individual document.
+ repeated ProcessDocumentResponse responses = 1;
+}
+
+// Response to a single document processing request.
+message ProcessDocumentResponse {
+ // Information about the input file. This is the same as the corresponding
+ // input config in the request.
+ InputConfig input_config = 1;
+
+ // The output location of the parsed responses. The responses are written to
+ // this location as JSON-serialized `Document` objects.
+ OutputConfig output_config = 2;
+}
+
+// Parameters to control Optical Character Recognition (OCR) behavior.
+message OcrParams {
+ // List of languages to use for OCR. In most cases, an empty value
+ // yields the best results since it enables automatic language detection. For
+ // languages based on the Latin alphabet, setting `language_hints` is not
+ // needed. In rare cases, when the language of the text in the image is known,
+ // setting a hint will help get better results (although it will be a
+ // significant hindrance if the hint is wrong). Document processing returns an
+ // error if one or more of the specified languages is not one of the
+ // supported languages.
+ repeated string language_hints = 1;
+}
+
+// Parameters to control table extraction behavior.
+message TableExtractionParams {
+ // Whether to enable table extraction.
+ bool enabled = 1;
+
+ // Optional. Table bounding box hints that can be provided to complex cases
+ // which our algorithm cannot locate the table(s) in.
+ repeated TableBoundHint table_bound_hints = 2;
+
+ // Optional. Table header hints. The extraction will bias towards producing
+ // these terms as table headers, which may improve accuracy.
+ repeated string header_hints = 3;
+
+ // Model version of the table extraction system. Default is "builtin/stable".
+ // Specify "builtin/latest" for the latest model.
+ string model_version = 4;
+}
+
+// A hint for a table bounding box on the page for table parsing.
+message TableBoundHint {
+ // Optional page number for multi-paged inputs this hint applies to. If not
+ // provided, this hint will apply to all pages by default. This value is
+ // 1-based.
+ int32 page_number = 1;
+
+ // Bounding box hint for a table on this page. The coordinates must be
+ // normalized to [0,1] and the bounding box must be an axis-aligned rectangle.
+ BoundingPoly bounding_box = 2;
+}
+
+// Parameters to control form extraction behavior.
+message FormExtractionParams {
+ // Whether to enable form extraction.
+ bool enabled = 1;
+
+ // User can provide pairs of (key text, value type) to improve the parsing
+ // result.
+ //
+ // For example, if a document has a field called "Date" that holds a date
+ // value and a field called "Amount" that may hold either a currency value
+ // (e.g., "$500.00") or a simple number value (e.g., "20"), you could use the
+ // following hints: [ {"key": "Date", value_types: [ "DATE"]}, {"key":
+ // "Amount", "value_types": [ "PRICE", "NUMBER" ]} ]
+ //
+ // If the value type is unknown, but you want to provide hints for the keys,
+ // you can leave the value_types field blank. e.g. {"key": "Date",
+ // "value_types": []}
+ repeated KeyValuePairHint key_value_pair_hints = 2;
+
+ // Model version of the form extraction system. Default is
+ // "builtin/stable". Specify "builtin/latest" for the latest model.
+ string model_version = 3;
+}
+
+// User-provided hint for key value pair.
+message KeyValuePairHint {
+ // The key text for the hint.
+ string key = 1;
+
+ // Type of the value. This is case-insensitive, and could be one of:
+ // ADDRESS, LOCATION, ORGANIZATION, PERSON, PHONE_NUMBER,
+ // ID, NUMBER, EMAIL, PRICE, TERMS, DATE, NAME. Types not in this list will
+ // be ignored.
+ repeated string value_types = 2;
+}
+
+// Parameters to control entity extraction behavior.
+message EntityExtractionParams {
+ // Whether to enable entity extraction.
+ bool enabled = 1;
+
+ // Model version of the entity extraction. Default is
+ // "builtin/stable". Specify "builtin/latest" for the latest model.
+ string model_version = 2;
+}
+
+// The desired input location and metadata.
+message InputConfig {
+ oneof source {
+ // The Google Cloud Storage location to read the input from. This must be a
+ // single file.
+ GcsSource gcs_source = 1;
+ }
+
+ // Mimetype of the input. Current supported mimetypes are application/pdf,
+ // image/tiff, and image/gif.
+ string mime_type = 2;
+}
+
+// The desired output location and metadata.
+message OutputConfig {
+ oneof destination {
+ // The Google Cloud Storage location to write the output to.
+ GcsDestination gcs_destination = 1;
+ }
+
+ // The max number of pages to include into each output Document shard JSON on
+ // Google Cloud Storage.
+ //
+ // The valid range is [1, 100]. If not specified, the default value is 20.
+ //
+ // For example, for one pdf file with 100 pages, 100 parsed pages will be
+ // produced. If `pages_per_shard` = 20, then 5 Document shard JSON files each
+ // containing 20 parsed pages will be written under the prefix
+ // [InputConfig.gcs_destination.uri][] and suffix -pages-x-to-y.json where
+ // x and y are 1-indexed page numbers.
+ //
+ // Example GCS outputs with 157 pages and pages_per_shard = 50:
+ //
+ // -pages-001-to-050.json
+ // -pages-051-to-100.json
+ // -pages-101-to-150.json
+ // -pages-151-to-157.json
+ int32 pages_per_shard = 2;
+}
+
+// The Google Cloud Storage location where the input file will be read from.
+message GcsSource {
+ string uri = 1;
+}
+
+// The Google Cloud Storage location where the output file will be written to.
+message GcsDestination {
+ string uri = 1;
+}
+
+// Contains metadata for the BatchProcessDocuments operation.
+message OperationMetadata {
+ enum State {
+ // The default value. This value is used if the state is omitted.
+ STATE_UNSPECIFIED = 0;
+
+ // Request is received.
+ ACCEPTED = 1;
+
+ // Request operation is waiting for scheduling.
+ WAITING = 2;
+
+ // Request is being processed.
+ RUNNING = 3;
+
+ // The batch processing completed successfully.
+ SUCCEEDED = 4;
+
+ // The batch processing was cancelled.
+ CANCELLED = 5;
+ }
+
+ // The state of the current batch processing.
+ State state = 1;
+
+ // A message providing more details about the current state of processing.
+ string state_message = 2;
+
+ // The creation time of the operation.
+ google.protobuf.Timestamp create_time = 3;
+
+ // The last update time of the operation.
+ google.protobuf.Timestamp update_time = 4;
+}
diff --git a/packages/google-cloud-documentai/protos/google/cloud/document/v1beta1/geometry.proto b/packages/google-cloud-documentai/protos/google/cloud/document/v1beta1/geometry.proto
new file mode 100644
index 00000000000..a39fd8ea29d
--- /dev/null
+++ b/packages/google-cloud-documentai/protos/google/cloud/document/v1beta1/geometry.proto
@@ -0,0 +1,55 @@
+// 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.document.v1beta1;
+
+import "google/api/annotations.proto";
+
+option go_package = "google.golang.org/genproto/googleapis/cloud/document/v1beta1;document";
+option java_multiple_files = true;
+option java_outer_classname = "GeometryProto";
+option java_package = "com.google.cloud.document.v1beta1";
+
+// 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 for the detected image annotation.
+message BoundingPoly {
+ // The bounding polygon vertices.
+ repeated Vertex vertices = 1;
+
+ // The bounding polygon normalized vertices.
+ repeated NormalizedVertex normalized_vertices = 2;
+}
diff --git a/packages/google-cloud-documentai/protos/google/cloud/documentai/v1/barcode.proto b/packages/google-cloud-documentai/protos/google/cloud/documentai/v1/barcode.proto
new file mode 100644
index 00000000000..bb841771ade
--- /dev/null
+++ b/packages/google-cloud-documentai/protos/google/cloud/documentai/v1/barcode.proto
@@ -0,0 +1,69 @@
+// Copyright 2022 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.documentai.v1;
+
+option csharp_namespace = "Google.Cloud.DocumentAI.V1";
+option go_package = "google.golang.org/genproto/googleapis/cloud/documentai/v1;documentai";
+option java_multiple_files = true;
+option java_outer_classname = "BarcodeProto";
+option java_package = "com.google.cloud.documentai.v1";
+option php_namespace = "Google\\Cloud\\DocumentAI\\V1";
+option ruby_package = "Google::Cloud::DocumentAI::V1";
+
+// Encodes the detailed information of a barcode.
+message Barcode {
+ // Format of a barcode.
+ // The supported formats are:
+ //
+ // - `CODE_128`: Code 128 type.
+ // - `CODE_39`: Code 39 type.
+ // - `CODE_93`: Code 93 type.
+ // - `CODABAR`: Codabar type.
+ // - `DATA_MATRIX`: 2D Data Matrix type.
+ // - `ITF`: ITF type.
+ // - `EAN_13`: EAN-13 type.
+ // - `EAN_8`: EAN-8 type.
+ // - `QR_CODE`: 2D QR code type.
+ // - `UPC_A`: UPC-A type.
+ // - `UPC_E`: UPC-E type.
+ // - `PDF417`: PDF417 type.
+ // - `AZTEC`: 2D Aztec code type.
+ // - `DATABAR`: GS1 DataBar code type.
+ string format = 1;
+
+ // Value format describes the format of the value that a barcode
+ // encodes.
+ // The supported formats are:
+ //
+ // - `CONTACT_INFO`: Contact information.
+ // - `EMAIL`: Email address.
+ // - `ISBN`: ISBN identifier.
+ // - `PHONE`: Phone number.
+ // - `PRODUCT`: Product.
+ // - `SMS`: SMS message.
+ // - `TEXT`: Text string.
+ // - `URL`: URL address.
+ // - `WIFI`: Wifi information.
+ // - `GEO`: Geo-localization.
+ // - `CALENDAR_EVENT`: Calendar event.
+ // - `DRIVER_LICENSE`: Driver's license.
+ string value_format = 2;
+
+ // Raw value encoded in the barcode.
+ // For example: `'MEBKM:TITLE:Google;URL:https://www.google.com;;'`.
+ string raw_value = 3;
+}
diff --git a/packages/google-cloud-documentai/protos/google/cloud/documentai/v1/document.proto b/packages/google-cloud-documentai/protos/google/cloud/documentai/v1/document.proto
new file mode 100644
index 00000000000..c4fbb21ceca
--- /dev/null
+++ b/packages/google-cloud-documentai/protos/google/cloud/documentai/v1/document.proto
@@ -0,0 +1,820 @@
+// Copyright 2022 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.documentai.v1;
+
+import "google/api/field_behavior.proto";
+import "google/cloud/documentai/v1/barcode.proto";
+import "google/cloud/documentai/v1/geometry.proto";
+import "google/protobuf/timestamp.proto";
+import "google/rpc/status.proto";
+import "google/type/color.proto";
+import "google/type/date.proto";
+import "google/type/datetime.proto";
+import "google/type/money.proto";
+import "google/type/postal_address.proto";
+
+option csharp_namespace = "Google.Cloud.DocumentAI.V1";
+option go_package = "google.golang.org/genproto/googleapis/cloud/documentai/v1;documentai";
+option java_multiple_files = true;
+option java_outer_classname = "DocumentProto";
+option java_package = "com.google.cloud.documentai.v1";
+option php_namespace = "Google\\Cloud\\DocumentAI\\V1";
+option ruby_package = "Google::Cloud::DocumentAI::V1";
+
+// Document represents the canonical document resource in Document AI. It is an
+// interchange format that provides insights into documents and allows for
+// collaboration between users and Document AI to iterate and optimize for
+// quality.
+message Document {
+ // For a large document, sharding may be performed to produce several
+ // document shards. Each document shard contains this field to detail which
+ // shard it is.
+ message ShardInfo {
+ // The 0-based index of this shard.
+ int64 shard_index = 1;
+
+ // Total number of shards.
+ int64 shard_count = 2;
+
+ // The index of the first character in [Document.text][google.cloud.documentai.v1.Document.text] in the overall
+ // document global text.
+ int64 text_offset = 3;
+ }
+
+ // Annotation for common text style attributes. This adheres to CSS
+ // conventions as much as possible.
+ message Style {
+ // Font size with unit.
+ message FontSize {
+ // Font size for the text.
+ float size = 1;
+
+ // Unit for the font size. Follows CSS naming (in, px, pt, etc.).
+ string unit = 2;
+ }
+
+ // Text anchor indexing into the [Document.text][google.cloud.documentai.v1.Document.text].
+ TextAnchor text_anchor = 1;
+
+ // Text color.
+ google.type.Color color = 2;
+
+ // Text background color.
+ google.type.Color background_color = 3;
+
+ // Font weight. Possible values are normal, bold, bolder, and lighter.
+ // https://www.w3schools.com/cssref/pr_font_weight.asp
+ string font_weight = 4;
+
+ // Text style. Possible values are normal, italic, and oblique.
+ // https://www.w3schools.com/cssref/pr_font_font-style.asp
+ string text_style = 5;
+
+ // Text decoration. Follows CSS standard.
+ //
+ // https://www.w3schools.com/cssref/pr_text_text-decoration.asp
+ string text_decoration = 6;
+
+ // Font size.
+ FontSize font_size = 7;
+
+ // Font family such as `Arial`, `Times New Roman`.
+ // https://www.w3schools.com/cssref/pr_font_font-family.asp
+ string font_family = 8;
+ }
+
+ // A page in a [Document][google.cloud.documentai.v1.Document].
+ message Page {
+ // Dimension for the page.
+ message Dimension {
+ // Page width.
+ float width = 1;
+
+ // Page height.
+ float height = 2;
+
+ // Dimension unit.
+ string unit = 3;
+ }
+
+ // Rendered image contents for this page.
+ message Image {
+ // Raw byte content of the image.
+ bytes content = 1;
+
+ // Encoding mime type for the image.
+ string mime_type = 2;
+
+ // Width of the image in pixels.
+ int32 width = 3;
+
+ // Height of the image in pixels.
+ int32 height = 4;
+ }
+
+ // Representation for transformation matrix, intended to be compatible and
+ // used with OpenCV format for image manipulation.
+ message Matrix {
+ // Number of rows in the matrix.
+ int32 rows = 1;
+
+ // Number of columns in the matrix.
+ int32 cols = 2;
+
+ // This encodes information about what data type the matrix uses.
+ // For example, 0 (CV_8U) is an unsigned 8-bit image. For the full list
+ // of OpenCV primitive data types, please refer to
+ // https://docs.opencv.org/4.3.0/d1/d1b/group__core__hal__interface.html
+ int32 type = 3;
+
+ // The matrix data.
+ bytes data = 4;
+ }
+
+ // Visual element describing a layout unit on a page.
+ message Layout {
+ // Detected human reading orientation.
+ enum Orientation {
+ // Unspecified orientation.
+ ORIENTATION_UNSPECIFIED = 0;
+
+ // Orientation is aligned with page up.
+ PAGE_UP = 1;
+
+ // Orientation is aligned with page right.
+ // Turn the head 90 degrees clockwise from upright to read.
+ PAGE_RIGHT = 2;
+
+ // Orientation is aligned with page down.
+ // Turn the head 180 degrees from upright to read.
+ PAGE_DOWN = 3;
+
+ // Orientation is aligned with page left.
+ // Turn the head 90 degrees counterclockwise from upright to read.
+ PAGE_LEFT = 4;
+ }
+
+ // Text anchor indexing into the [Document.text][google.cloud.documentai.v1.Document.text].
+ TextAnchor text_anchor = 1;
+
+ // Confidence of the current [Layout][google.cloud.documentai.v1.Document.Page.Layout] within context of the object this
+ // layout is for. e.g. confidence can be for a single token, a table,
+ // a visual element, etc. depending on context. Range `[0, 1]`.
+ float confidence = 2;
+
+ // The bounding polygon for the [Layout][google.cloud.documentai.v1.Document.Page.Layout].
+ BoundingPoly bounding_poly = 3;
+
+ // Detected orientation for the [Layout][google.cloud.documentai.v1.Document.Page.Layout].
+ Orientation orientation = 4;
+ }
+
+ // A block has a set of lines (collected into paragraphs) that have a
+ // common line-spacing and orientation.
+ message Block {
+ // [Layout][google.cloud.documentai.v1.Document.Page.Layout] for [Block][google.cloud.documentai.v1.Document.Page.Block].
+ Layout layout = 1;
+
+ // A list of detected languages together with confidence.
+ repeated DetectedLanguage detected_languages = 2;
+
+ // The history of this annotation.
+ Provenance provenance = 3 [deprecated = true];
+ }
+
+ // A collection of lines that a human would perceive as a paragraph.
+ message Paragraph {
+ // [Layout][google.cloud.documentai.v1.Document.Page.Layout] for [Paragraph][google.cloud.documentai.v1.Document.Page.Paragraph].
+ Layout layout = 1;
+
+ // A list of detected languages together with confidence.
+ repeated DetectedLanguage detected_languages = 2;
+
+ // The history of this annotation.
+ Provenance provenance = 3 [deprecated = true];
+ }
+
+ // A collection of tokens that a human would perceive as a line.
+ // Does not cross column boundaries, can be horizontal, vertical, etc.
+ message Line {
+ // [Layout][google.cloud.documentai.v1.Document.Page.Layout] for [Line][google.cloud.documentai.v1.Document.Page.Line].
+ Layout layout = 1;
+
+ // A list of detected languages together with confidence.
+ repeated DetectedLanguage detected_languages = 2;
+
+ // The history of this annotation.
+ Provenance provenance = 3 [deprecated = true];
+ }
+
+ // A detected token.
+ message Token {
+ // Detected break at the end of a [Token][google.cloud.documentai.v1.Document.Page.Token].
+ message DetectedBreak {
+ // Enum to denote the type of break found.
+ enum Type {
+ // Unspecified break type.
+ TYPE_UNSPECIFIED = 0;
+
+ // A single whitespace.
+ SPACE = 1;
+
+ // A wider whitespace.
+ WIDE_SPACE = 2;
+
+ // A hyphen that indicates that a token has been split across lines.
+ HYPHEN = 3;
+ }
+
+ // Detected break type.
+ Type type = 1;
+ }
+
+ // [Layout][google.cloud.documentai.v1.Document.Page.Layout] for [Token][google.cloud.documentai.v1.Document.Page.Token].
+ Layout layout = 1;
+
+ // Detected break at the end of a [Token][google.cloud.documentai.v1.Document.Page.Token].
+ DetectedBreak detected_break = 2;
+
+ // A list of detected languages together with confidence.
+ repeated DetectedLanguage detected_languages = 3;
+
+ // The history of this annotation.
+ Provenance provenance = 4 [deprecated = true];
+ }
+
+ // A detected symbol.
+ message Symbol {
+ // [Layout][google.cloud.documentai.v1.Document.Page.Layout] for [Symbol][google.cloud.documentai.v1.Document.Page.Symbol].
+ Layout layout = 1;
+
+ // A list of detected languages together with confidence.
+ repeated DetectedLanguage detected_languages = 2;
+ }
+
+ // Detected non-text visual elements e.g. checkbox, signature etc. on the
+ // page.
+ message VisualElement {
+ // [Layout][google.cloud.documentai.v1.Document.Page.Layout] for [VisualElement][google.cloud.documentai.v1.Document.Page.VisualElement].
+ Layout layout = 1;
+
+ // Type of the [VisualElement][google.cloud.documentai.v1.Document.Page.VisualElement].
+ string type = 2;
+
+ // A list of detected languages together with confidence.
+ repeated DetectedLanguage detected_languages = 3;
+ }
+
+ // A table representation similar to HTML table structure.
+ message Table {
+ // A row of table cells.
+ message TableRow {
+ // Cells that make up this row.
+ repeated TableCell cells = 1;
+ }
+
+ // A cell representation inside the table.
+ message TableCell {
+ // [Layout][google.cloud.documentai.v1.Document.Page.Layout] for [TableCell][google.cloud.documentai.v1.Document.Page.Table.TableCell].
+ Layout layout = 1;
+
+ // How many rows this cell spans.
+ int32 row_span = 2;
+
+ // How many columns this cell spans.
+ int32 col_span = 3;
+
+ // A list of detected languages together with confidence.
+ repeated DetectedLanguage detected_languages = 4;
+ }
+
+ // [Layout][google.cloud.documentai.v1.Document.Page.Layout] for [Table][google.cloud.documentai.v1.Document.Page.Table].
+ Layout layout = 1;
+
+ // Header rows of the table.
+ repeated TableRow header_rows = 2;
+
+ // Body rows of the table.
+ repeated TableRow body_rows = 3;
+
+ // A list of detected languages together with confidence.
+ repeated DetectedLanguage detected_languages = 4;
+
+ // The history of this table.
+ Provenance provenance = 5;
+ }
+
+ // A form field detected on the page.
+ message FormField {
+ // [Layout][google.cloud.documentai.v1.Document.Page.Layout] for the [FormField][google.cloud.documentai.v1.Document.Page.FormField] name. e.g. `Address`, `Email`,
+ // `Grand total`, `Phone number`, etc.
+ Layout field_name = 1;
+
+ // [Layout][google.cloud.documentai.v1.Document.Page.Layout] for the [FormField][google.cloud.documentai.v1.Document.Page.FormField] value.
+ Layout field_value = 2;
+
+ // A list of detected languages for name together with confidence.
+ repeated DetectedLanguage name_detected_languages = 3;
+
+ // A list of detected languages for value together with confidence.
+ repeated DetectedLanguage value_detected_languages = 4;
+
+ // If the value is non-textual, this field represents the type. Current
+ // valid values are:
+ // - blank (this indicates the field_value is normal text)
+ // - "unfilled_checkbox"
+ // - "filled_checkbox"
+ string value_type = 5;
+
+ // Created for Labeling UI to export key text.
+ // If corrections were made to the text identified by the
+ // `field_name.text_anchor`, this field will contain the correction.
+ string corrected_key_text = 6;
+
+ // Created for Labeling UI to export value text.
+ // If corrections were made to the text identified by the
+ // `field_value.text_anchor`, this field will contain the correction.
+ string corrected_value_text = 7;
+
+ // The history of this annotation.
+ Provenance provenance = 8;
+ }
+
+ // A detected barcode.
+ message DetectedBarcode {
+ // [Layout][google.cloud.documentai.v1.Document.Page.Layout] for [DetectedBarcode][google.cloud.documentai.v1.Document.Page.DetectedBarcode].
+ Layout layout = 1;
+
+ // Detailed barcode information of the [DetectedBarcode][google.cloud.documentai.v1.Document.Page.DetectedBarcode].
+ Barcode barcode = 2;
+ }
+
+ // Detected language for a structural component.
+ message DetectedLanguage {
+ // The BCP-47 language code, such as `en-US` or `sr-Latn`. For more
+ // information, see
+ // https://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
+ string language_code = 1;
+
+ // Confidence of detected language. Range `[0, 1]`.
+ float confidence = 2;
+ }
+
+ // Image Quality Scores for the page image
+ message ImageQualityScores {
+ // Image Quality Defects
+ message DetectedDefect {
+ // Name of the defect type. Supported values are:
+ //
+ // - `quality/defect_blurry`
+ // - `quality/defect_noisy`
+ // - `quality/defect_dark`
+ // - `quality/defect_faint`
+ // - `quality/defect_text_too_small`
+ // - `quality/defect_document_cutoff`
+ // - `quality/defect_text_cutoff`
+ // - `quality/defect_glare`
+ string type = 1;
+
+ // Confidence of detected defect. Range `[0, 1]` where 1 indicates
+ // strong confidence of that the defect exists.
+ float confidence = 2;
+ }
+
+ // The overall quality score. Range `[0, 1]` where 1 is perfect quality.
+ float quality_score = 1;
+
+ // A list of detected defects.
+ repeated DetectedDefect detected_defects = 2;
+ }
+
+ // 1-based index for current [Page][google.cloud.documentai.v1.Document.Page] in a parent [Document][google.cloud.documentai.v1.Document].
+ // Useful when a page is taken out of a [Document][google.cloud.documentai.v1.Document] for individual
+ // processing.
+ int32 page_number = 1;
+
+ // Rendered image for this page. This image is preprocessed to remove any
+ // skew, rotation, and distortions such that the annotation bounding boxes
+ // can be upright and axis-aligned.
+ Image image = 13;
+
+ // Transformation matrices that were applied to the original document image
+ // to produce [Page.image][google.cloud.documentai.v1.Document.Page.image].
+ repeated Matrix transforms = 14;
+
+ // Physical dimension of the page.
+ Dimension dimension = 2;
+
+ // [Layout][google.cloud.documentai.v1.Document.Page.Layout] for the page.
+ Layout layout = 3;
+
+ // A list of detected languages together with confidence.
+ repeated DetectedLanguage detected_languages = 4;
+
+ // A list of visually detected text blocks on the page.
+ // A block has a set of lines (collected into paragraphs) that have a common
+ // line-spacing and orientation.
+ repeated Block blocks = 5;
+
+ // A list of visually detected text paragraphs on the page.
+ // A collection of lines that a human would perceive as a paragraph.
+ repeated Paragraph paragraphs = 6;
+
+ // A list of visually detected text lines on the page.
+ // A collection of tokens that a human would perceive as a line.
+ repeated Line lines = 7;
+
+ // A list of visually detected tokens on the page.
+ repeated Token tokens = 8;
+
+ // A list of detected non-text visual elements e.g. checkbox,
+ // signature etc. on the page.
+ repeated VisualElement visual_elements = 9;
+
+ // A list of visually detected tables on the page.
+ repeated Table tables = 10;
+
+ // A list of visually detected form fields on the page.
+ repeated FormField form_fields = 11;
+
+ // A list of visually detected symbols on the page.
+ repeated Symbol symbols = 12;
+
+ // A list of detected barcodes.
+ repeated DetectedBarcode detected_barcodes = 15;
+
+ // Image Quality Scores.
+ ImageQualityScores image_quality_scores = 17;
+
+ // The history of this page.
+ Provenance provenance = 16 [deprecated = true];
+ }
+
+ // An entity that could be a phrase in the text or a property that belongs to
+ // the document. It is a known entity type, such as a person, an organization,
+ // or location.
+ message Entity {
+ // Parsed and normalized entity value.
+ message NormalizedValue {
+ // An optional structured entity value.
+ // Must match entity type defined in schema if
+ // known. If this field is present, the `text` field could also be
+ // populated.
+ oneof structured_value {
+ // Money value. See also:
+ // https://github.com/googleapis/googleapis/blob/master/google/type/money.proto
+ google.type.Money money_value = 2;
+
+ // Date value. Includes year, month, day. See also:
+ // https://github.com/googleapis/googleapis/blob/master/google/type/date.proto
+ google.type.Date date_value = 3;
+
+ // DateTime value. Includes date, time, and timezone. See also:
+ // https://github.com/googleapis/googleapis/blob/master/google/type/datetime.proto
+ google.type.DateTime datetime_value = 4;
+
+ // Postal address. See also:
+ // https://github.com/googleapis/googleapis/blob/master/google/type/postal_address.proto
+ google.type.PostalAddress address_value = 5;
+
+ // Boolean value. Can be used for entities with binary values, or for
+ // checkboxes.
+ bool boolean_value = 6;
+
+ // Integer value.
+ int32 integer_value = 7;
+
+ // Float value.
+ float float_value = 8;
+ }
+
+ // Optional. An optional field to store a normalized string.
+ // For some entity types, one of respective `structured_value` fields may
+ // also be populated. Also not all the types of `structured_value` will be
+ // normalized. For example, some processors may not generate float
+ // or int normalized text by default.
+ //
+ // Below are sample formats mapped to structured values.
+ //
+ // - Money/Currency type (`money_value`) is in the ISO 4217 text format.
+ // - Date type (`date_value`) is in the ISO 8601 text format.
+ // - Datetime type (`datetime_value`) is in the ISO 8601 text format.
+ string text = 1 [(google.api.field_behavior) = OPTIONAL];
+ }
+
+ // Optional. Provenance of the entity.
+ // Text anchor indexing into the [Document.text][google.cloud.documentai.v1.Document.text].
+ TextAnchor text_anchor = 1 [(google.api.field_behavior) = OPTIONAL];
+
+ // Required. Entity type from a schema e.g. `Address`.
+ string type = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // Optional. Text value of the entity e.g. `1600 Amphitheatre Pkwy`.
+ string mention_text = 3 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Deprecated. Use `id` field instead.
+ string mention_id = 4 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Confidence of detected Schema entity. Range `[0, 1]`.
+ float confidence = 5 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Represents the provenance of this entity wrt. the location on the
+ // page where it was found.
+ PageAnchor page_anchor = 6 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Canonical id. This will be a unique value in the entity list
+ // for this document.
+ string id = 7 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Normalized entity value. Absent if the extracted value could not be
+ // converted or the type (e.g. address) is not supported for certain
+ // parsers. This field is also only populated for certain supported document
+ // types.
+ NormalizedValue normalized_value = 9 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Entities can be nested to form a hierarchical data structure representing
+ // the content in the document.
+ repeated Entity properties = 10 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The history of this annotation.
+ Provenance provenance = 11 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Whether the entity will be redacted for de-identification purposes.
+ bool redacted = 12 [(google.api.field_behavior) = OPTIONAL];
+ }
+
+ // Relationship between [Entities][google.cloud.documentai.v1.Document.Entity].
+ message EntityRelation {
+ // Subject entity id.
+ string subject_id = 1;
+
+ // Object entity id.
+ string object_id = 2;
+
+ // Relationship description.
+ string relation = 3;
+ }
+
+ // Text reference indexing into the [Document.text][google.cloud.documentai.v1.Document.text].
+ message TextAnchor {
+ // A text segment in the [Document.text][google.cloud.documentai.v1.Document.text]. The indices may be out of bounds
+ // which indicate that the text extends into another document shard for
+ // large sharded documents. See [ShardInfo.text_offset][google.cloud.documentai.v1.Document.ShardInfo.text_offset]
+ message TextSegment {
+ // [TextSegment][google.cloud.documentai.v1.Document.TextAnchor.TextSegment] start UTF-8 char index in the [Document.text][google.cloud.documentai.v1.Document.text].
+ int64 start_index = 1;
+
+ // [TextSegment][google.cloud.documentai.v1.Document.TextAnchor.TextSegment] half open end UTF-8 char index in the
+ // [Document.text][google.cloud.documentai.v1.Document.text].
+ int64 end_index = 2;
+ }
+
+ // The text segments from the [Document.text][google.cloud.documentai.v1.Document.text].
+ repeated TextSegment text_segments = 1;
+
+ // Contains the content of the text span so that users do
+ // not have to look it up in the text_segments. It is always
+ // populated for formFields.
+ string content = 2;
+ }
+
+ // Referencing the visual context of the entity in the [Document.pages][google.cloud.documentai.v1.Document.pages].
+ // Page anchors can be cross-page, consist of multiple bounding polygons and
+ // optionally reference specific layout element types.
+ message PageAnchor {
+ // Represents a weak reference to a page element within a document.
+ message PageRef {
+ // The type of layout that is being referenced.
+ enum LayoutType {
+ // Layout Unspecified.
+ LAYOUT_TYPE_UNSPECIFIED = 0;
+
+ // References a [Page.blocks][google.cloud.documentai.v1.Document.Page.blocks] element.
+ BLOCK = 1;
+
+ // References a [Page.paragraphs][google.cloud.documentai.v1.Document.Page.paragraphs] element.
+ PARAGRAPH = 2;
+
+ // References a [Page.lines][google.cloud.documentai.v1.Document.Page.lines] element.
+ LINE = 3;
+
+ // References a [Page.tokens][google.cloud.documentai.v1.Document.Page.tokens] element.
+ TOKEN = 4;
+
+ // References a [Page.visual_elements][google.cloud.documentai.v1.Document.Page.visual_elements] element.
+ VISUAL_ELEMENT = 5;
+
+ // Refrrences a [Page.tables][google.cloud.documentai.v1.Document.Page.tables] element.
+ TABLE = 6;
+
+ // References a [Page.form_fields][google.cloud.documentai.v1.Document.Page.form_fields] element.
+ FORM_FIELD = 7;
+ }
+
+ // Required. Index into the [Document.pages][google.cloud.documentai.v1.Document.pages] element, for example using
+ // [Document.pages][page_refs.page] to locate the related page element.
+ // This field is skipped when its value is the default 0. See
+ // https://developers.google.com/protocol-buffers/docs/proto3#json.
+ int64 page = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Optional. The type of the layout element that is being referenced if any.
+ LayoutType layout_type = 2 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Deprecated. Use [PageRef.bounding_poly][google.cloud.documentai.v1.Document.PageAnchor.PageRef.bounding_poly] instead.
+ string layout_id = 3 [
+ deprecated = true,
+ (google.api.field_behavior) = OPTIONAL
+ ];
+
+ // Optional. Identifies the bounding polygon of a layout element on the page.
+ BoundingPoly bounding_poly = 4 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Confidence of detected page element, if applicable. Range `[0, 1]`.
+ float confidence = 5 [(google.api.field_behavior) = OPTIONAL];
+ }
+
+ // One or more references to visual page elements
+ repeated PageRef page_refs = 1;
+ }
+
+ // Structure to identify provenance relationships between annotations in
+ // different revisions.
+ message Provenance {
+ // The parent element the current element is based on. Used for
+ // referencing/aligning, removal and replacement operations.
+ message Parent {
+ // The index of the index into current revision's parent_ids list.
+ int32 revision = 1;
+
+ // The index of the parent item in the corresponding item list (eg. list
+ // of entities, properties within entities, etc.) in the parent revision.
+ int32 index = 3;
+
+ // The id of the parent provenance.
+ int32 id = 2 [deprecated = true];
+ }
+
+ // If a processor or agent does an explicit operation on existing elements.
+ enum OperationType {
+ // Operation type unspecified. If no operation is specified a provenance
+ // entry is simply used to match against a `parent`.
+ OPERATION_TYPE_UNSPECIFIED = 0;
+
+ // Add an element.
+ ADD = 1;
+
+ // Remove an element identified by `parent`.
+ REMOVE = 2;
+
+ // Replace an element identified by `parent`.
+ REPLACE = 3;
+
+ // Request human review for the element identified by `parent`.
+ EVAL_REQUESTED = 4;
+
+ // Element is reviewed and approved at human review, confidence will be
+ // set to 1.0.
+ EVAL_APPROVED = 5;
+
+ // Element is skipped in the validation process.
+ EVAL_SKIPPED = 6;
+ }
+
+ // The index of the revision that produced this element.
+ int32 revision = 1;
+
+ // The Id of this operation. Needs to be unique within the scope of the
+ // revision.
+ int32 id = 2 [deprecated = true];
+
+ // References to the original elements that are replaced.
+ repeated Parent parents = 3;
+
+ // The type of provenance operation.
+ OperationType type = 4;
+ }
+
+ // Contains past or forward revisions of this document.
+ message Revision {
+ // Human Review information of the document.
+ message HumanReview {
+ // Human review state. e.g. `requested`, `succeeded`, `rejected`.
+ string state = 1;
+
+ // A message providing more details about the current state of processing.
+ // For example, the rejection reason when the state is `rejected`.
+ string state_message = 2;
+ }
+
+ // Who/what made the change
+ oneof source {
+ // If the change was made by a person specify the name or id of that
+ // person.
+ string agent = 4;
+
+ // If the annotation was made by processor identify the processor by its
+ // resource name.
+ string processor = 5;
+ }
+
+ // Id of the revision. Unique within the context of the document.
+ string id = 1;
+
+ // The revisions that this revision is based on. This can include one or
+ // more parent (when documents are merged.) This field represents the
+ // index into the `revisions` field.
+ repeated int32 parent = 2 [deprecated = true];
+
+ // The revisions that this revision is based on. Must include all the ids
+ // that have anything to do with this revision - eg. there are
+ // `provenance.parent.revision` fields that index into this field.
+ repeated string parent_ids = 7;
+
+ // The time that the revision was created.
+ google.protobuf.Timestamp create_time = 3;
+
+ // Human Review information of this revision.
+ HumanReview human_review = 6;
+ }
+
+ // This message is used for text changes aka. OCR corrections.
+ message TextChange {
+ // Provenance of the correction.
+ // Text anchor indexing into the [Document.text][google.cloud.documentai.v1.Document.text]. There can only be a
+ // single `TextAnchor.text_segments` element. If the start and
+ // end index of the text segment are the same, the text change is inserted
+ // before that index.
+ TextAnchor text_anchor = 1;
+
+ // The text that replaces the text identified in the `text_anchor`.
+ string changed_text = 2;
+
+ // The history of this annotation.
+ repeated Provenance provenance = 3 [deprecated = true];
+ }
+
+ // Original source document from the user.
+ oneof source {
+ // Optional. Currently supports Google Cloud Storage URI of the form
+ // `gs://bucket_name/object_name`. Object versioning is not supported.
+ // See [Google Cloud Storage Request
+ // URIs](https://cloud.google.com/storage/docs/reference-uris) for more
+ // info.
+ string uri = 1 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Inline document content, represented as a stream of bytes.
+ // Note: As with all `bytes` fields, protobuffers use a pure binary
+ // representation, whereas JSON representations use base64.
+ bytes content = 2 [(google.api.field_behavior) = OPTIONAL];
+ }
+
+ // An IANA published MIME type (also referred to as media type). For more
+ // information, see
+ // https://www.iana.org/assignments/media-types/media-types.xhtml.
+ string mime_type = 3;
+
+ // Optional. UTF-8 encoded text in reading order from the document.
+ string text = 4 [(google.api.field_behavior) = OPTIONAL];
+
+ // Placeholder. Styles for the [Document.text][google.cloud.documentai.v1.Document.text].
+ repeated Style text_styles = 5;
+
+ // Visual page layout for the [Document][google.cloud.documentai.v1.Document].
+ repeated Page pages = 6;
+
+ // A list of entities detected on [Document.text][google.cloud.documentai.v1.Document.text]. For document shards,
+ // entities in this list may cross shard boundaries.
+ repeated Entity entities = 7;
+
+ // Placeholder. Relationship among [Document.entities][google.cloud.documentai.v1.Document.entities].
+ repeated EntityRelation entity_relations = 8;
+
+ // Placeholder. A list of text corrections made to [Document.text][google.cloud.documentai.v1.Document.text]. This
+ // is usually used for annotating corrections to OCR mistakes. Text changes
+ // for a given revision may not overlap with each other.
+ repeated TextChange text_changes = 14;
+
+ // Information about the sharding if this document is sharded part of a larger
+ // document. If the document is not sharded, this message is not specified.
+ ShardInfo shard_info = 9;
+
+ // Any error that occurred while processing this document.
+ google.rpc.Status error = 10;
+
+ // Placeholder. Revision history of this document.
+ repeated Revision revisions = 13;
+}
diff --git a/packages/google-cloud-documentai/protos/google/cloud/documentai/v1/document_io.proto b/packages/google-cloud-documentai/protos/google/cloud/documentai/v1/document_io.proto
new file mode 100644
index 00000000000..3240d494e8f
--- /dev/null
+++ b/packages/google-cloud-documentai/protos/google/cloud/documentai/v1/document_io.proto
@@ -0,0 +1,91 @@
+// Copyright 2022 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.documentai.v1;
+
+import "google/protobuf/field_mask.proto";
+
+option csharp_namespace = "Google.Cloud.DocumentAI.V1";
+option go_package = "google.golang.org/genproto/googleapis/cloud/documentai/v1;documentai";
+option java_multiple_files = true;
+option java_outer_classname = "DocumentIoProto";
+option java_package = "com.google.cloud.documentai.v1";
+option php_namespace = "Google\\Cloud\\DocumentAI\\V1";
+option ruby_package = "Google::Cloud::DocumentAI::V1";
+
+// Payload message of raw document content (bytes).
+message RawDocument {
+ // Inline document content.
+ bytes content = 1;
+
+ // An IANA MIME type (RFC6838) indicating the nature and format of the
+ // [content][google.cloud.documentai.v1.RawDocument.content].
+ string mime_type = 2;
+}
+
+// Specifies a document stored on Cloud Storage.
+message GcsDocument {
+ // The Cloud Storage object uri.
+ string gcs_uri = 1;
+
+ // An IANA MIME type (RFC6838) of the content.
+ string mime_type = 2;
+}
+
+// Specifies a set of documents on Cloud Storage.
+message GcsDocuments {
+ // The list of documents.
+ repeated GcsDocument documents = 1;
+}
+
+// Specifies all documents on Cloud Storage with a common prefix.
+message GcsPrefix {
+ // The URI prefix.
+ string gcs_uri_prefix = 1;
+}
+
+// The common config to specify a set of documents used as input.
+message BatchDocumentsInputConfig {
+ // The source.
+ oneof source {
+ // The set of documents that match the specified Cloud Storage `gcs_prefix`.
+ GcsPrefix gcs_prefix = 1;
+
+ // The set of documents individually specified on Cloud Storage.
+ GcsDocuments gcs_documents = 2;
+ }
+}
+
+// Config that controls the output of documents. All documents will be written
+// as a JSON file.
+message DocumentOutputConfig {
+ // The configuration used when outputting documents.
+ message GcsOutputConfig {
+ // The Cloud Storage uri (a directory) of the output.
+ string gcs_uri = 1;
+
+ // Specifies which fields to include in the output documents.
+ // Only supports top level document and pages field so it must be in the
+ // form of `{document_field_name}` or `pages.{page_field_name}`.
+ google.protobuf.FieldMask field_mask = 2;
+ }
+
+ // The destination of the results.
+ oneof destination {
+ // Output config to write the results to Cloud Storage.
+ GcsOutputConfig gcs_output_config = 1;
+ }
+}
diff --git a/packages/google-cloud-documentai/protos/google/cloud/documentai/v1/document_processor_service.proto b/packages/google-cloud-documentai/protos/google/cloud/documentai/v1/document_processor_service.proto
new file mode 100644
index 00000000000..e748ae1f748
--- /dev/null
+++ b/packages/google-cloud-documentai/protos/google/cloud/documentai/v1/document_processor_service.proto
@@ -0,0 +1,801 @@
+// Copyright 2022 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.documentai.v1;
+
+import "google/api/annotations.proto";
+import "google/api/client.proto";
+import "google/api/field_behavior.proto";
+import "google/api/resource.proto";
+import "google/cloud/documentai/v1/document.proto";
+import "google/cloud/documentai/v1/document_io.proto";
+import "google/cloud/documentai/v1/document_schema.proto";
+import "google/cloud/documentai/v1/operation_metadata.proto";
+import "google/cloud/documentai/v1/processor.proto";
+import "google/cloud/documentai/v1/processor_type.proto";
+import "google/longrunning/operations.proto";
+import "google/protobuf/field_mask.proto";
+import "google/protobuf/timestamp.proto";
+import "google/rpc/status.proto";
+
+option csharp_namespace = "Google.Cloud.DocumentAI.V1";
+option go_package = "google.golang.org/genproto/googleapis/cloud/documentai/v1;documentai";
+option java_multiple_files = true;
+option java_outer_classname = "DocumentAiProcessorService";
+option java_package = "com.google.cloud.documentai.v1";
+option php_namespace = "Google\\Cloud\\DocumentAI\\V1";
+option ruby_package = "Google::Cloud::DocumentAI::V1";
+option (google.api.resource_definition) = {
+ type: "documentai.googleapis.com/HumanReviewConfig"
+ pattern: "projects/{project}/locations/{location}/processors/{processor}/humanReviewConfig"
+};
+option (google.api.resource_definition) = {
+ type: "documentai.googleapis.com/Location"
+ pattern: "projects/{project}/locations/{location}"
+};
+
+// Service to call Cloud DocumentAI to process documents according to the
+// processor's definition. Processors are built using state-of-the-art Google
+// AI such as natural language, computer vision, and translation to extract
+// structured information from unstructured or semi-structured documents.
+service DocumentProcessorService {
+ option (google.api.default_host) = "documentai.googleapis.com";
+ option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform";
+
+ // Processes a single document.
+ rpc ProcessDocument(ProcessRequest) returns (ProcessResponse) {
+ option (google.api.http) = {
+ post: "/v1/{name=projects/*/locations/*/processors/*}:process"
+ body: "*"
+ additional_bindings {
+ post: "/v1/{name=projects/*/locations/*/processors/*/processorVersions/*}:process"
+ body: "*"
+ }
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // LRO endpoint to batch process many documents. The output is written
+ // to Cloud Storage as JSON in the [Document] format.
+ rpc BatchProcessDocuments(BatchProcessRequest) returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ post: "/v1/{name=projects/*/locations/*/processors/*}:batchProcess"
+ body: "*"
+ additional_bindings {
+ post: "/v1/{name=projects/*/locations/*/processors/*/processorVersions/*}:batchProcess"
+ body: "*"
+ }
+ };
+ option (google.api.method_signature) = "name";
+ option (google.longrunning.operation_info) = {
+ response_type: "BatchProcessResponse"
+ metadata_type: "BatchProcessMetadata"
+ };
+ }
+
+ // Fetches processor types. Note that we do not use ListProcessorTypes here
+ // because it is not paginated.
+ rpc FetchProcessorTypes(FetchProcessorTypesRequest) returns (FetchProcessorTypesResponse) {
+ option (google.api.http) = {
+ get: "/v1/{parent=projects/*/locations/*}:fetchProcessorTypes"
+ };
+ option (google.api.method_signature) = "parent";
+ }
+
+ // Lists the processor types that exist.
+ rpc ListProcessorTypes(ListProcessorTypesRequest) returns (ListProcessorTypesResponse) {
+ option (google.api.http) = {
+ get: "/v1/{parent=projects/*/locations/*}/processorTypes"
+ };
+ option (google.api.method_signature) = "parent";
+ }
+
+ // Lists all processors which belong to this project.
+ rpc ListProcessors(ListProcessorsRequest) returns (ListProcessorsResponse) {
+ option (google.api.http) = {
+ get: "/v1/{parent=projects/*/locations/*}/processors"
+ };
+ option (google.api.method_signature) = "parent";
+ }
+
+ // Gets a processor detail.
+ rpc GetProcessor(GetProcessorRequest) returns (Processor) {
+ option (google.api.http) = {
+ get: "/v1/{name=projects/*/locations/*/processors/*}"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // Gets a processor version detail.
+ rpc GetProcessorVersion(GetProcessorVersionRequest) returns (ProcessorVersion) {
+ option (google.api.http) = {
+ get: "/v1/{name=projects/*/locations/*/processors/*/processorVersions/*}"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // Lists all versions of a processor.
+ rpc ListProcessorVersions(ListProcessorVersionsRequest) returns (ListProcessorVersionsResponse) {
+ option (google.api.http) = {
+ get: "/v1/{parent=projects/*/locations/*/processors/*}/processorVersions"
+ };
+ option (google.api.method_signature) = "parent";
+ }
+
+ // Deletes the processor version, all artifacts under the processor version
+ // will be deleted.
+ rpc DeleteProcessorVersion(DeleteProcessorVersionRequest) returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ delete: "/v1/{name=projects/*/locations/*/processors/*/processorVersions/*}"
+ };
+ option (google.api.method_signature) = "name";
+ option (google.longrunning.operation_info) = {
+ response_type: "google.protobuf.Empty"
+ metadata_type: "DeleteProcessorVersionMetadata"
+ };
+ }
+
+ // Deploys the processor version.
+ rpc DeployProcessorVersion(DeployProcessorVersionRequest) returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ post: "/v1/{name=projects/*/locations/*/processors/*/processorVersions/*}:deploy"
+ body: "*"
+ };
+ option (google.api.method_signature) = "name";
+ option (google.longrunning.operation_info) = {
+ response_type: "DeployProcessorVersionResponse"
+ metadata_type: "DeployProcessorVersionMetadata"
+ };
+ }
+
+ // Undeploys the processor version.
+ rpc UndeployProcessorVersion(UndeployProcessorVersionRequest) returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ post: "/v1/{name=projects/*/locations/*/processors/*/processorVersions/*}:undeploy"
+ body: "*"
+ };
+ option (google.api.method_signature) = "name";
+ option (google.longrunning.operation_info) = {
+ response_type: "UndeployProcessorVersionResponse"
+ metadata_type: "UndeployProcessorVersionMetadata"
+ };
+ }
+
+ // Creates a processor from the type processor that the user chose.
+ // The processor will be at "ENABLED" state by default after its creation.
+ rpc CreateProcessor(CreateProcessorRequest) returns (Processor) {
+ option (google.api.http) = {
+ post: "/v1/{parent=projects/*/locations/*}/processors"
+ body: "processor"
+ };
+ option (google.api.method_signature) = "parent,processor";
+ }
+
+ // Deletes the processor, unloads all deployed model artifacts if it was
+ // enabled and then deletes all artifacts associated with this processor.
+ rpc DeleteProcessor(DeleteProcessorRequest) returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ delete: "/v1/{name=projects/*/locations/*/processors/*}"
+ };
+ option (google.api.method_signature) = "name";
+ option (google.longrunning.operation_info) = {
+ response_type: "google.protobuf.Empty"
+ metadata_type: "DeleteProcessorMetadata"
+ };
+ }
+
+ // Enables a processor
+ rpc EnableProcessor(EnableProcessorRequest) returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ post: "/v1/{name=projects/*/locations/*/processors/*}:enable"
+ body: "*"
+ };
+ option (google.longrunning.operation_info) = {
+ response_type: "EnableProcessorResponse"
+ metadata_type: "EnableProcessorMetadata"
+ };
+ }
+
+ // Disables a processor
+ rpc DisableProcessor(DisableProcessorRequest) returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ post: "/v1/{name=projects/*/locations/*/processors/*}:disable"
+ body: "*"
+ };
+ option (google.longrunning.operation_info) = {
+ response_type: "DisableProcessorResponse"
+ metadata_type: "DisableProcessorMetadata"
+ };
+ }
+
+ // Set the default (active) version of a [Processor][google.cloud.documentai.v1.Processor] that will be used in
+ // [ProcessDocument][google.cloud.documentai.v1.DocumentProcessorService.ProcessDocument] and
+ // [BatchProcessDocuments][google.cloud.documentai.v1.DocumentProcessorService.BatchProcessDocuments].
+ rpc SetDefaultProcessorVersion(SetDefaultProcessorVersionRequest) returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ post: "/v1/{processor=projects/*/locations/*/processors/*}:setDefaultProcessorVersion"
+ body: "*"
+ };
+ option (google.longrunning.operation_info) = {
+ response_type: "SetDefaultProcessorVersionResponse"
+ metadata_type: "SetDefaultProcessorVersionMetadata"
+ };
+ }
+
+ // Send a document for Human Review. The input document should be processed by
+ // the specified processor.
+ rpc ReviewDocument(ReviewDocumentRequest) returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ post: "/v1/{human_review_config=projects/*/locations/*/processors/*/humanReviewConfig}:reviewDocument"
+ body: "*"
+ };
+ option (google.api.method_signature) = "human_review_config";
+ option (google.longrunning.operation_info) = {
+ response_type: "ReviewDocumentResponse"
+ metadata_type: "ReviewDocumentOperationMetadata"
+ };
+ }
+}
+
+// Request message for the process document method.
+message ProcessRequest {
+ // The document payload.
+ oneof source {
+ // An inline document proto.
+ Document inline_document = 4;
+
+ // A raw document content (bytes).
+ RawDocument raw_document = 5;
+ }
+
+ // Required. The resource name of the [Processor][google.cloud.documentai.v1.Processor] or
+ // [ProcessorVersion][google.cloud.documentai.v1.ProcessorVersion]
+ // to use for processing. If a [Processor][google.cloud.documentai.v1.Processor] is specified, the server will use
+ // its [default version][google.cloud.documentai.v1.Processor.default_processor_version]. Format:
+ // `projects/{project}/locations/{location}/processors/{processor}`, or
+ // `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}`
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "*"
+ }
+ ];
+
+ // Whether Human Review feature should be skipped for this request. Default to
+ // false.
+ bool skip_human_review = 3;
+
+ // Specifies which fields to include in ProcessResponse's document.
+ // Only supports top level document and pages field so it must be in the form
+ // of `{document_field_name}` or `pages.{page_field_name}`.
+ google.protobuf.FieldMask field_mask = 6;
+}
+
+// The status of human review on a processed document.
+message HumanReviewStatus {
+ // The final state of human review on a processed document.
+ enum State {
+ // Human review state is unspecified. Most likely due to an internal error.
+ STATE_UNSPECIFIED = 0;
+
+ // Human review is skipped for the document. This can happen because human
+ // review is not enabled on the processor or the processing request has
+ // been set to skip this document.
+ SKIPPED = 1;
+
+ // Human review validation is triggered and passed, so no review is needed.
+ VALIDATION_PASSED = 2;
+
+ // Human review validation is triggered and the document is under review.
+ IN_PROGRESS = 3;
+
+ // Some error happened during triggering human review, see the
+ // [state_message] for details.
+ ERROR = 4;
+ }
+
+ // The state of human review on the processing request.
+ State state = 1;
+
+ // A message providing more details about the human review state.
+ string state_message = 2;
+
+ // The name of the operation triggered by the processed document. This field
+ // is populated only when the [state] is [HUMAN_REVIEW_IN_PROGRESS]. It has
+ // the same response type and metadata as the long running operation returned
+ // by [ReviewDocument] method.
+ string human_review_operation = 3;
+}
+
+// Response message for the process document method.
+message ProcessResponse {
+ // The document payload, will populate fields based on the processor's
+ // behavior.
+ Document document = 1;
+
+ // The status of human review on the processed document.
+ HumanReviewStatus human_review_status = 3;
+}
+
+// Request message for batch process document method.
+message BatchProcessRequest {
+ // Required. The resource name of [Processor][google.cloud.documentai.v1.Processor] or
+ // [ProcessorVersion][google.cloud.documentai.v1.ProcessorVersion].
+ // Format: `projects/{project}/locations/{location}/processors/{processor}`,
+ // or
+ // `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}`
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "*"
+ }
+ ];
+
+ // The input documents for batch process.
+ BatchDocumentsInputConfig input_documents = 5;
+
+ // The overall output config for batch process.
+ DocumentOutputConfig document_output_config = 6;
+
+ // Whether Human Review feature should be skipped for this request. Default to
+ // false.
+ bool skip_human_review = 4;
+}
+
+// Response message for batch process document method.
+message BatchProcessResponse {
+
+}
+
+// The long running operation metadata for batch process method.
+message BatchProcessMetadata {
+ // The status of a each individual document in the batch process.
+ message IndividualProcessStatus {
+ // The source of the document, same as the [input_gcs_source] field in the
+ // request when the batch process started. The batch process is started by
+ // take snapshot of that document, since a user can move or change that
+ // document during the process.
+ string input_gcs_source = 1;
+
+ // The status processing the document.
+ google.rpc.Status status = 2;
+
+ // The output_gcs_destination (in the request as `output_gcs_destination`)
+ // of the processed document if it was successful, otherwise empty.
+ string output_gcs_destination = 3;
+
+ // The status of human review on the processed document.
+ HumanReviewStatus human_review_status = 5;
+ }
+
+ // Possible states of the batch processing operation.
+ enum State {
+ // The default value. This value is used if the state is omitted.
+ STATE_UNSPECIFIED = 0;
+
+ // Request operation is waiting for scheduling.
+ WAITING = 1;
+
+ // Request is being processed.
+ RUNNING = 2;
+
+ // The batch processing completed successfully.
+ SUCCEEDED = 3;
+
+ // The batch processing was being cancelled.
+ CANCELLING = 4;
+
+ // The batch processing was cancelled.
+ CANCELLED = 5;
+
+ // The batch processing has failed.
+ FAILED = 6;
+ }
+
+ // The state of the current batch processing.
+ State state = 1;
+
+ // A message providing more details about the current state of processing.
+ // For example, the error message if the operation is failed.
+ string state_message = 2;
+
+ // The creation time of the operation.
+ google.protobuf.Timestamp create_time = 3;
+
+ // The last update time of the operation.
+ google.protobuf.Timestamp update_time = 4;
+
+ // The list of response details of each document.
+ repeated IndividualProcessStatus individual_process_statuses = 5;
+}
+
+// Request message for fetch processor types.
+message FetchProcessorTypesRequest {
+ // Required. The project of processor type to list.
+ // The available processor types may depend on the allow-listing on projects.
+ // Format: `projects/{project}/locations/{location}`
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ child_type: "documentai.googleapis.com/ProcessorType"
+ }
+ ];
+}
+
+// Response message for fetch processor types.
+message FetchProcessorTypesResponse {
+ // The list of processor types.
+ repeated ProcessorType processor_types = 1;
+}
+
+// Request message for list processor types.
+message ListProcessorTypesRequest {
+ // Required. The location of processor type to list.
+ // The available processor types may depend on the allow-listing on projects.
+ // Format: `projects/{project}/locations/{location}`
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ child_type: "documentai.googleapis.com/ProcessorType"
+ }
+ ];
+
+ // The maximum number of processor types to return.
+ // If unspecified, at most 100 processor types will be returned.
+ // The maximum value is 500; values above 500 will be coerced to 500.
+ int32 page_size = 2;
+
+ // Used to retrieve the next page of results, empty if at the end of the list.
+ string page_token = 3;
+}
+
+// Response message for list processor types.
+message ListProcessorTypesResponse {
+ // The processor types.
+ repeated ProcessorType processor_types = 1;
+
+ // Points to the next page, otherwise empty.
+ string next_page_token = 2;
+}
+
+// Request message for list all processors belongs to a project.
+message ListProcessorsRequest {
+ // Required. The parent (project and location) which owns this collection of Processors.
+ // Format: `projects/{project}/locations/{location}`
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ child_type: "documentai.googleapis.com/Processor"
+ }
+ ];
+
+ // The maximum number of processors to return.
+ // If unspecified, at most 50 processors will be returned.
+ // The maximum value is 100; values above 100 will be coerced to 100.
+ int32 page_size = 2;
+
+ // We will return the processors sorted by creation time. The page token
+ // will point to the next processor.
+ string page_token = 3;
+}
+
+// Response message for list processors.
+message ListProcessorsResponse {
+ // The list of processors.
+ repeated Processor processors = 1;
+
+ // Points to the next processor, otherwise empty.
+ string next_page_token = 2;
+}
+
+// Request message for get processor.
+message GetProcessorRequest {
+ // Required. The processor resource name.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "documentai.googleapis.com/Processor"
+ }
+ ];
+}
+
+// Request message for get processor version.
+message GetProcessorVersionRequest {
+ // Required. The processor resource name.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "documentai.googleapis.com/ProcessorVersion"
+ }
+ ];
+}
+
+// Request message for list all processor versions belongs to a processor.
+message ListProcessorVersionsRequest {
+ // Required. The parent (project, location and processor) to list all versions.
+ // Format: `projects/{project}/locations/{location}/processors/{processor}`
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ child_type: "documentai.googleapis.com/ProcessorVersion"
+ }
+ ];
+
+ // The maximum number of processor versions to return.
+ // If unspecified, at most 10 processor versions will be returned.
+ // The maximum value is 20; values above 20 will be coerced to 20.
+ int32 page_size = 2;
+
+ // We will return the processor versions sorted by creation time. The page
+ // token will point to the next processor version.
+ string page_token = 3;
+}
+
+// Response message for list processors.
+message ListProcessorVersionsResponse {
+ // The list of processors.
+ repeated ProcessorVersion processor_versions = 1;
+
+ // Points to the next processor, otherwise empty.
+ string next_page_token = 2;
+}
+
+// Request message for the delete processor version method.
+message DeleteProcessorVersionRequest {
+ // Required. The processor version resource name to be deleted.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "documentai.googleapis.com/ProcessorVersion"
+ }
+ ];
+}
+
+// The long running operation metadata for delete processor version method.
+message DeleteProcessorVersionMetadata {
+ // The basic metadata of the long running operation.
+ CommonOperationMetadata common_metadata = 1;
+}
+
+// Request message for the deploy processor version method.
+message DeployProcessorVersionRequest {
+ // Required. The processor version resource name to be deployed.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "documentai.googleapis.com/ProcessorVersion"
+ }
+ ];
+}
+
+// Response message for the deploy processor version method.
+message DeployProcessorVersionResponse {
+
+}
+
+// The long running operation metadata for deploy processor version method.
+message DeployProcessorVersionMetadata {
+ // The basic metadata of the long running operation.
+ CommonOperationMetadata common_metadata = 1;
+}
+
+// Request message for the undeploy processor version method.
+message UndeployProcessorVersionRequest {
+ // Required. The processor version resource name to be undeployed.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "documentai.googleapis.com/ProcessorVersion"
+ }
+ ];
+}
+
+// Response message for the undeploy processor version method.
+message UndeployProcessorVersionResponse {
+
+}
+
+// The long running operation metadata for the undeploy processor version
+// method.
+message UndeployProcessorVersionMetadata {
+ // The basic metadata of the long running operation.
+ CommonOperationMetadata common_metadata = 1;
+}
+
+// Request message for create a processor. Notice this request is sent to
+// a regionalized backend service, and if the processor type is not available
+// on that region, the creation will fail.
+message CreateProcessorRequest {
+ // Required. The parent (project and location) under which to create the processor.
+ // Format: `projects/{project}/locations/{location}`
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ child_type: "documentai.googleapis.com/Processor"
+ }
+ ];
+
+ // Required. The processor to be created, requires [processor_type] and [display_name]
+ // to be set. Also, the processor is under CMEK if CMEK fields are set.
+ Processor processor = 2 [(google.api.field_behavior) = REQUIRED];
+}
+
+// Request message for the delete processor method.
+message DeleteProcessorRequest {
+ // Required. The processor resource name to be deleted.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "documentai.googleapis.com/Processor"
+ }
+ ];
+}
+
+// The long running operation metadata for delete processor method.
+message DeleteProcessorMetadata {
+ // The basic metadata of the long running operation.
+ CommonOperationMetadata common_metadata = 5;
+}
+
+// Request message for the enable processor method.
+message EnableProcessorRequest {
+ // Required. The processor resource name to be enabled.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "documentai.googleapis.com/Processor"
+ }
+ ];
+}
+
+// Response message for the enable processor method.
+// Intentionally empty proto for adding fields in future.
+message EnableProcessorResponse {
+
+}
+
+// The long running operation metadata for enable processor method.
+message EnableProcessorMetadata {
+ // The basic metadata of the long running operation.
+ CommonOperationMetadata common_metadata = 5;
+}
+
+// Request message for the disable processor method.
+message DisableProcessorRequest {
+ // Required. The processor resource name to be disabled.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "documentai.googleapis.com/Processor"
+ }
+ ];
+}
+
+// Response message for the disable processor method.
+// Intentionally empty proto for adding fields in future.
+message DisableProcessorResponse {
+
+}
+
+// The long running operation metadata for disable processor method.
+message DisableProcessorMetadata {
+ // The basic metadata of the long running operation.
+ CommonOperationMetadata common_metadata = 5;
+}
+
+// Request message for the set default processor version method.
+message SetDefaultProcessorVersionRequest {
+ // Required. The resource name of the [Processor][google.cloud.documentai.v1.Processor] to change default version.
+ string processor = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "documentai.googleapis.com/Processor"
+ }
+ ];
+
+ // Required. The resource name of child [ProcessorVersion][google.cloud.documentai.v1.ProcessorVersion] to use as default.
+ // Format:
+ // `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{version}`
+ string default_processor_version = 2 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "documentai.googleapis.com/ProcessorVersion"
+ }
+ ];
+}
+
+// Response message for set default processor version method.
+message SetDefaultProcessorVersionResponse {
+
+}
+
+// The long running operation metadata for set default processor version
+// method.
+message SetDefaultProcessorVersionMetadata {
+ // The basic metadata of the long running operation.
+ CommonOperationMetadata common_metadata = 1;
+}
+
+// Request message for review document method.
+message ReviewDocumentRequest {
+ // The priority level of the human review task.
+ enum Priority {
+ // The default priority level.
+ DEFAULT = 0;
+
+ // The urgent priority level. The labeling manager should allocate labeler
+ // resource to the urgent task queue to respect this priority level.
+ URGENT = 1;
+ }
+
+ // The document payload.
+ oneof source {
+ // An inline document proto.
+ Document inline_document = 4;
+ }
+
+ // Required. The resource name of the HumanReviewConfig that the document will be
+ // reviewed with.
+ string human_review_config = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "documentai.googleapis.com/HumanReviewConfig"
+ }
+ ];
+
+ // Whether the validation should be performed on the ad-hoc review request.
+ bool enable_schema_validation = 3;
+
+ // The priority of the human review task.
+ Priority priority = 5;
+
+ // The document schema of the human review task.
+ DocumentSchema document_schema = 6;
+}
+
+// Response message for review document method.
+message ReviewDocumentResponse {
+ // Possible states of the review operation.
+ enum State {
+ // The default value. This value is used if the state is omitted.
+ STATE_UNSPECIFIED = 0;
+
+ // The review operation is rejected by the reviewer.
+ REJECTED = 1;
+
+ // The review operation is succeeded.
+ SUCCEEDED = 2;
+ }
+
+ // The Cloud Storage uri for the human reviewed document if the review is
+ // succeeded.
+ string gcs_destination = 1;
+
+ // The state of the review operation.
+ State state = 2;
+
+ // The reason why the review is rejected by reviewer.
+ string rejection_reason = 3;
+}
+
+// The long running operation metadata for review document method.
+message ReviewDocumentOperationMetadata {
+ // The basic metadata of the long running operation.
+ CommonOperationMetadata common_metadata = 5;
+
+ // The Crowd Compute question ID.
+ string question_id = 6;
+}
diff --git a/packages/google-cloud-documentai/protos/google/cloud/documentai/v1/document_schema.proto b/packages/google-cloud-documentai/protos/google/cloud/documentai/v1/document_schema.proto
new file mode 100644
index 00000000000..ceb25a1d69a
--- /dev/null
+++ b/packages/google-cloud-documentai/protos/google/cloud/documentai/v1/document_schema.proto
@@ -0,0 +1,141 @@
+// Copyright 2022 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.documentai.v1;
+
+option csharp_namespace = "Google.Cloud.DocumentAI.V1";
+option go_package = "google.golang.org/genproto/googleapis/cloud/documentai/v1;documentai";
+option java_multiple_files = true;
+option java_outer_classname = "DocumentAiDocumentSchema";
+option java_package = "com.google.cloud.documentai.v1";
+option php_namespace = "Google\\Cloud\\DocumentAI\\V1";
+option ruby_package = "Google::Cloud::DocumentAI::V1";
+
+// The schema defines the output of the processed document by a processor.
+message DocumentSchema {
+ // EntityType is the wrapper of a label of the corresponding model with
+ // detailed attributes and limitations for entity-based processors. Multiple
+ // types can also compose a dependency tree to represent nested types.
+ message EntityType {
+ // Defines the a list of enum values.
+ message EnumValues {
+ // The individual values that this enum values type can include.
+ repeated string values = 1;
+ }
+
+ // Defines properties that can be part of the entity type.
+ message Property {
+ // Types of occurrences of the entity type in the document. Note: this
+ // represents the number of instances of an entity types, not number of
+ // mentions of a given entity instance.
+ enum OccurrenceType {
+ // Unspecified occurrence type.
+ OCCURRENCE_TYPE_UNSPECIFIED = 0;
+
+ // There will be zero or one instance of this entity type.
+ OPTIONAL_ONCE = 1;
+
+ // The entity type will appear zero or multiple times.
+ OPTIONAL_MULTIPLE = 2;
+
+ // The entity type will only appear exactly once.
+ REQUIRED_ONCE = 3;
+
+ // The entity type will appear once or more times.
+ REQUIRED_MULTIPLE = 4;
+ }
+
+ // The name of the property. Follows the same guidelines as the
+ // EntityType name.
+ string name = 1;
+
+ // A reference to the value type of the property. This type is subject
+ // to the same conventions as the `Entity.base_types` field.
+ string value_type = 2;
+
+ // Occurrence type limits the number of instances an entity type appears
+ // in the document.
+ OccurrenceType occurrence_type = 3;
+ }
+
+ oneof value_source {
+ // If specified, lists all the possible values for this entity. This
+ // should not be more than a handful of values. If the number of values
+ // is >10 or could change frequently use the `EntityType.value_ontology`
+ // field and specify a list of all possible values in a value ontology
+ // file.
+ EnumValues enum_values = 14;
+ }
+
+ // User defined name for the type.
+ string display_name = 13;
+
+ // Name of the type. It must be unique within the schema file and
+ // cannot be a 'Common Type'. Besides that we use the following naming
+ // conventions:
+ //
+ // - *use `snake_casing`*
+ // - name matching is case-insensitive
+ // - Maximum 64 characters.
+ // - Must start with a letter.
+ // - Allowed characters: ASCII letters `[a-z0-9_-]`. (For backward
+ // compatibility internal infrastructure and tooling can handle any ascii
+ // character)
+ // - The `/` is sometimes used to denote a property of a type. For example
+ // `line_item/amount`. This convention is deprecated, but will still be
+ // honored for backward compatibility.
+ string name = 1;
+
+ // The entity type that this type is derived from. For now, one and only
+ // one should be set.
+ repeated string base_types = 2;
+
+ // Describing the nested structure, or composition of an entity.
+ repeated Property properties = 6;
+ }
+
+ // Metadata for global schema behavior.
+ message Metadata {
+ // If true, a `document` entity type can be applied to subdocument (
+ // splitting). Otherwise, it can only be applied to the entire document
+ // (classification).
+ bool document_splitter = 1;
+
+ // If true, on a given page, there can be multiple `document` annotations
+ // covering it.
+ bool document_allow_multiple_labels = 2;
+
+ // If set, all the nested entities must be prefixed with the parents.
+ bool prefixed_naming_on_properties = 6;
+
+ // If set, we will skip the naming format validation in the schema. So the
+ // string values in `DocumentSchema.EntityType.name` and
+ // `DocumentSchema.EntityType.Property.name` will not be checked.
+ bool skip_naming_validation = 7;
+ }
+
+ // Display name to show to users.
+ string display_name = 1;
+
+ // Description of the schema.
+ string description = 2;
+
+ // Entity types of the schema.
+ repeated EntityType entity_types = 3;
+
+ // Metadata of the schema.
+ Metadata metadata = 4;
+}
diff --git a/packages/google-cloud-documentai/protos/google/cloud/documentai/v1/geometry.proto b/packages/google-cloud-documentai/protos/google/cloud/documentai/v1/geometry.proto
new file mode 100644
index 00000000000..7471ef01247
--- /dev/null
+++ b/packages/google-cloud-documentai/protos/google/cloud/documentai/v1/geometry.proto
@@ -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
+//
+// 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.documentai.v1;
+
+option csharp_namespace = "Google.Cloud.DocumentAI.V1";
+option go_package = "google.golang.org/genproto/googleapis/cloud/documentai/v1;documentai";
+option java_multiple_files = true;
+option java_outer_classname = "GeometryProto";
+option java_package = "com.google.cloud.documentai.v1";
+option php_namespace = "Google\\Cloud\\DocumentAI\\V1";
+option ruby_package = "Google::Cloud::DocumentAI::V1";
+
+// 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 (starts from the top of the image).
+ 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 (starts from the top of the image).
+ float y = 2;
+}
+
+// A bounding polygon for the detected image annotation.
+message BoundingPoly {
+ // The bounding polygon vertices.
+ repeated Vertex vertices = 1;
+
+ // The bounding polygon normalized vertices.
+ repeated NormalizedVertex normalized_vertices = 2;
+}
diff --git a/packages/google-cloud-documentai/protos/google/cloud/documentai/v1/operation_metadata.proto b/packages/google-cloud-documentai/protos/google/cloud/documentai/v1/operation_metadata.proto
new file mode 100644
index 00000000000..5698b0a4f3c
--- /dev/null
+++ b/packages/google-cloud-documentai/protos/google/cloud/documentai/v1/operation_metadata.proto
@@ -0,0 +1,66 @@
+// Copyright 2022 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.documentai.v1;
+
+import "google/protobuf/timestamp.proto";
+
+option csharp_namespace = "Google.Cloud.DocumentAI.V1";
+option go_package = "google.golang.org/genproto/googleapis/cloud/documentai/v1;documentai";
+option java_multiple_files = true;
+option java_outer_classname = "OperationMetadataProto";
+option java_package = "com.google.cloud.documentai.v1";
+option php_namespace = "Google\\Cloud\\DocumentAI\\V1";
+option ruby_package = "Google::Cloud::DocumentAI::V1";
+
+// The common metadata for long running operations.
+message CommonOperationMetadata {
+ // State of the longrunning operation.
+ enum State {
+ // Unspecified state.
+ STATE_UNSPECIFIED = 0;
+
+ // Operation is still running.
+ RUNNING = 1;
+
+ // Operation is being cancelled.
+ CANCELLING = 2;
+
+ // Operation succeeded.
+ SUCCEEDED = 3;
+
+ // Operation failed.
+ FAILED = 4;
+
+ // Operation is cancelled.
+ CANCELLED = 5;
+ }
+
+ // The state of the operation.
+ State state = 1;
+
+ // A message providing more details about the current state of processing.
+ string state_message = 2;
+
+ // A related resource to this operation.
+ string resource = 5;
+
+ // The creation time of the operation.
+ google.protobuf.Timestamp create_time = 3;
+
+ // The last update time of the operation.
+ google.protobuf.Timestamp update_time = 4;
+}
diff --git a/packages/google-cloud-documentai/protos/google/cloud/documentai/v1/processor.proto b/packages/google-cloud-documentai/protos/google/cloud/documentai/v1/processor.proto
new file mode 100644
index 00000000000..3ffe6927df9
--- /dev/null
+++ b/packages/google-cloud-documentai/protos/google/cloud/documentai/v1/processor.proto
@@ -0,0 +1,189 @@
+// Copyright 2022 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.documentai.v1;
+
+import "google/api/field_behavior.proto";
+import "google/api/resource.proto";
+import "google/cloud/documentai/v1/document_schema.proto";
+import "google/protobuf/timestamp.proto";
+
+option csharp_namespace = "Google.Cloud.DocumentAI.V1";
+option go_package = "google.golang.org/genproto/googleapis/cloud/documentai/v1;documentai";
+option java_multiple_files = true;
+option java_outer_classname = "DocumentAiProcessor";
+option java_package = "com.google.cloud.documentai.v1";
+option php_namespace = "Google\\Cloud\\DocumentAI\\V1";
+option ruby_package = "Google::Cloud::DocumentAI::V1";
+
+// A processor version is an implementation of a processor. Each processor
+// can have multiple versions, pre-trained by Google internally or up-trained
+// by the customer. At a time, a processor can only have one default version
+// version. So the processor's behavior (when processing documents) is defined
+// by a default version
+message ProcessorVersion {
+ option (google.api.resource) = {
+ type: "documentai.googleapis.com/ProcessorVersion"
+ pattern: "projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processor_version}"
+ };
+
+ // Information about the upcoming deprecation of this processor version.
+ message DeprecationInfo {
+ // The time at which this processor version will be deprecated.
+ google.protobuf.Timestamp deprecation_time = 1;
+
+ // If set, the processor version that will be used as a replacement.
+ string replacement_processor_version = 2 [(google.api.resource_reference) = {
+ type: "documentai.googleapis.com/ProcessorVersion"
+ }];
+ }
+
+ // The possible states of the processor version.
+ enum State {
+ // The processor version is in an unspecified state.
+ STATE_UNSPECIFIED = 0;
+
+ // The processor version is deployed and can be used for processing.
+ DEPLOYED = 1;
+
+ // The processor version is being deployed.
+ DEPLOYING = 2;
+
+ // The processor version is not deployed and cannot be used for processing.
+ UNDEPLOYED = 3;
+
+ // The processor version is being undeployed.
+ UNDEPLOYING = 4;
+
+ // The processor version is being created.
+ CREATING = 5;
+
+ // The processor version is being deleted.
+ DELETING = 6;
+
+ // The processor version failed and is in an indeterminate state.
+ FAILED = 7;
+ }
+
+ // The resource name of the processor version.
+ // Format:
+ // `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processor_version}`
+ string name = 1;
+
+ // The display name of the processor version.
+ string display_name = 2;
+
+ // The schema of the processor version. Describes the output.
+ DocumentSchema document_schema = 12;
+
+ // The state of the processor version.
+ State state = 6;
+
+ // The time the processor version was created.
+ google.protobuf.Timestamp create_time = 7;
+
+ // The KMS key name used for encryption.
+ string kms_key_name = 9;
+
+ // The KMS key version with which data is encrypted.
+ string kms_key_version_name = 10;
+
+ // Denotes that this ProcessorVersion is managed by google.
+ bool google_managed = 11;
+
+ // If set, information about the eventual deprecation of this version.
+ DeprecationInfo deprecation_info = 13;
+}
+
+// The first-class citizen for Document AI. Each processor defines how to
+// extract structural information from a document.
+message Processor {
+ option (google.api.resource) = {
+ type: "documentai.googleapis.com/Processor"
+ pattern: "projects/{project}/locations/{location}/processors/{processor}"
+ };
+
+ // The possible states of the processor.
+ enum State {
+ // The processor is in an unspecified state.
+ STATE_UNSPECIFIED = 0;
+
+ // The processor is enabled, i.e., has an enabled version which can
+ // currently serve processing requests and all the feature dependencies have
+ // been successfully initialized.
+ ENABLED = 1;
+
+ // The processor is disabled.
+ DISABLED = 2;
+
+ // The processor is being enabled, will become `ENABLED` if successful.
+ ENABLING = 3;
+
+ // The processor is being disabled, will become `DISABLED` if successful.
+ DISABLING = 4;
+
+ // The processor is being created, will become either `ENABLED` (for
+ // successful creation) or `FAILED` (for failed ones).
+ // Once a processor is in this state, it can then be used for document
+ // processing, but the feature dependencies of the processor might not be
+ // fully created yet.
+ CREATING = 5;
+
+ // The processor failed during creation or initialization of feature
+ // dependencies. The user should delete the processor and recreate one as
+ // all the functionalities of the processor are disabled.
+ FAILED = 6;
+
+ // The processor is being deleted, will be removed if successful.
+ DELETING = 7;
+ }
+
+ // Output only. Immutable. The resource name of the processor.
+ // Format: `projects/{project}/locations/{location}/processors/{processor}`
+ string name = 1 [
+ (google.api.field_behavior) = IMMUTABLE,
+ (google.api.field_behavior) = OUTPUT_ONLY
+ ];
+
+ // The processor type, e.g., `OCR_PROCESSOR`, `INVOICE_PROCESSOR`, etc.
+ // To get a list of processors types, see
+ // [FetchProcessorTypes][google.cloud.documentai.v1.DocumentProcessorService.FetchProcessorTypes].
+ string type = 2;
+
+ // The display name of the processor.
+ string display_name = 3;
+
+ // Output only. The state of the processor.
+ State state = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // The default processor version.
+ string default_processor_version = 9 [(google.api.resource_reference) = {
+ type: "documentai.googleapis.com/ProcessorVersion"
+ }];
+
+ // Output only. Immutable. The http endpoint that can be called to invoke processing.
+ string process_endpoint = 6 [
+ (google.api.field_behavior) = OUTPUT_ONLY,
+ (google.api.field_behavior) = IMMUTABLE
+ ];
+
+ // The time the processor was created.
+ google.protobuf.Timestamp create_time = 7;
+
+ // The KMS key used for encryption/decryption in CMEK scenarios.
+ // See https://cloud.google.com/security-key-management.
+ string kms_key_name = 8;
+}
diff --git a/packages/google-cloud-documentai/protos/google/cloud/documentai/v1/processor_type.proto b/packages/google-cloud-documentai/protos/google/cloud/documentai/v1/processor_type.proto
new file mode 100644
index 00000000000..2c9ee923051
--- /dev/null
+++ b/packages/google-cloud-documentai/protos/google/cloud/documentai/v1/processor_type.proto
@@ -0,0 +1,63 @@
+// Copyright 2022 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.documentai.v1;
+
+import "google/api/launch_stage.proto";
+import "google/api/resource.proto";
+
+option csharp_namespace = "Google.Cloud.DocumentAI.V1";
+option go_package = "google.golang.org/genproto/googleapis/cloud/documentai/v1;documentai";
+option java_multiple_files = true;
+option java_outer_classname = "DocumentAiProcessorType";
+option java_package = "com.google.cloud.documentai.v1";
+option php_namespace = "Google\\Cloud\\DocumentAI\\V1";
+option ruby_package = "Google::Cloud::DocumentAI::V1";
+
+// A processor type is responsible for performing a certain document
+// understanding task on a certain type of document.
+message ProcessorType {
+ option (google.api.resource) = {
+ type: "documentai.googleapis.com/ProcessorType"
+ pattern: "projects/{project}/locations/{location}/processorTypes/{processor_type}"
+ };
+
+ // The location information about where the processor is available.
+ message LocationInfo {
+ // The location id, currently must be one of [us, eu].
+ string location_id = 1;
+ }
+
+ // The resource name of the processor type.
+ // Format: `projects/{project}/processorTypes/{processor_type}`
+ string name = 1;
+
+ // The processor type, e.g., `OCR_PROCESSOR`, `INVOICE_PROCESSOR`, etc.
+ string type = 2;
+
+ // The processor category, used by UI to group processor types.
+ string category = 3;
+
+ // The locations in which this processor is available.
+ repeated LocationInfo available_locations = 4;
+
+ // Whether the processor type allows creation. If true, users can create a
+ // processor of this processor type. Otherwise, users need to request access.
+ bool allow_creation = 6;
+
+ // Launch stage of the processor type
+ google.api.LaunchStage launch_stage = 8;
+}
diff --git a/packages/google-cloud-documentai/protos/google/cloud/documentai/v1beta1/document.proto b/packages/google-cloud-documentai/protos/google/cloud/documentai/v1beta1/document.proto
new file mode 100644
index 00000000000..aa95ecc2995
--- /dev/null
+++ b/packages/google-cloud-documentai/protos/google/cloud/documentai/v1beta1/document.proto
@@ -0,0 +1,449 @@
+// 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.documentai.v1beta1;
+
+import "google/api/field_behavior.proto";
+import "google/cloud/documentai/v1beta1/geometry.proto";
+import "google/rpc/status.proto";
+import "google/type/color.proto";
+
+option csharp_namespace = "Google.Cloud.DocumentAI.V1Beta1";
+option go_package = "google.golang.org/genproto/googleapis/cloud/documentai/v1beta1;documentai";
+option java_multiple_files = true;
+option java_outer_classname = "DocumentProto";
+option java_package = "com.google.cloud.documentai.v1beta1";
+option php_namespace = "Google\\Cloud\\DocumentAI\\V1beta1";
+option ruby_package = "Google::Cloud::DocumentAI::V1beta1";
+
+// Document represents the canonical document resource in Document Understanding
+// AI.
+// It is an interchange format that provides insights into documents and allows
+// for collaboration between users and Document Understanding AI to iterate and
+// optimize for quality.
+message Document {
+ // For a large document, sharding may be performed to produce several
+ // document shards. Each document shard contains this field to detail which
+ // shard it is.
+ message ShardInfo {
+ // The 0-based index of this shard.
+ int64 shard_index = 1;
+
+ // Total number of shards.
+ int64 shard_count = 2;
+
+ // The index of the first character in
+ // [Document.text][google.cloud.documentai.v1beta1.Document.text] in the
+ // overall document global text.
+ int64 text_offset = 3;
+ }
+
+ // Annotation for common text style attributes. This adheres to CSS
+ // conventions as much as possible.
+ message Style {
+ // Font size with unit.
+ message FontSize {
+ // Font size for the text.
+ float size = 1;
+
+ // Unit for the font size. Follows CSS naming (in, px, pt, etc.).
+ string unit = 2;
+ }
+
+ // Text anchor indexing into the
+ // [Document.text][google.cloud.documentai.v1beta1.Document.text].
+ TextAnchor text_anchor = 1;
+
+ // Text color.
+ google.type.Color color = 2;
+
+ // Text background color.
+ google.type.Color background_color = 3;
+
+ // Font weight. Possible values are normal, bold, bolder, and lighter.
+ // https://www.w3schools.com/cssref/pr_font_weight.asp
+ string font_weight = 4;
+
+ // Text style. Possible values are normal, italic, and oblique.
+ // https://www.w3schools.com/cssref/pr_font_font-style.asp
+ string text_style = 5;
+
+ // Text decoration. Follows CSS standard.
+ //
+ // https://www.w3schools.com/cssref/pr_text_text-decoration.asp
+ string text_decoration = 6;
+
+ // Font size.
+ FontSize font_size = 7;
+ }
+
+ // A page in a [Document][google.cloud.documentai.v1beta1.Document].
+ message Page {
+ // Dimension for the page.
+ message Dimension {
+ // Page width.
+ float width = 1;
+
+ // Page height.
+ float height = 2;
+
+ // Dimension unit.
+ string unit = 3;
+ }
+
+ // Visual element describing a layout unit on a page.
+ message Layout {
+ // Detected human reading orientation.
+ enum Orientation {
+ // Unspecified orientation.
+ ORIENTATION_UNSPECIFIED = 0;
+
+ // Orientation is aligned with page up.
+ PAGE_UP = 1;
+
+ // Orientation is aligned with page right.
+ // Turn the head 90 degrees clockwise from upright to read.
+ PAGE_RIGHT = 2;
+
+ // Orientation is aligned with page down.
+ // Turn the head 180 degrees from upright to read.
+ PAGE_DOWN = 3;
+
+ // Orientation is aligned with page left.
+ // Turn the head 90 degrees counterclockwise from upright to read.
+ PAGE_LEFT = 4;
+ }
+
+ // Text anchor indexing into the
+ // [Document.text][google.cloud.documentai.v1beta1.Document.text].
+ TextAnchor text_anchor = 1;
+
+ // Confidence of the current
+ // [Layout][google.cloud.documentai.v1beta1.Document.Page.Layout] within
+ // context of the object this layout is for. e.g. confidence can be for a
+ // single token, a table, a visual element, etc. depending on context.
+ // Range [0, 1].
+ float confidence = 2;
+
+ // The bounding polygon for the
+ // [Layout][google.cloud.documentai.v1beta1.Document.Page.Layout].
+ BoundingPoly bounding_poly = 3;
+
+ // Detected orientation for the
+ // [Layout][google.cloud.documentai.v1beta1.Document.Page.Layout].
+ Orientation orientation = 4;
+ }
+
+ // A block has a set of lines (collected into paragraphs) that have a
+ // common line-spacing and orientation.
+ message Block {
+ // [Layout][google.cloud.documentai.v1beta1.Document.Page.Layout] for
+ // [Block][google.cloud.documentai.v1beta1.Document.Page.Block].
+ Layout layout = 1;
+
+ // A list of detected languages together with confidence.
+ repeated DetectedLanguage detected_languages = 2;
+ }
+
+ // A collection of lines that a human would perceive as a paragraph.
+ message Paragraph {
+ // [Layout][google.cloud.documentai.v1beta1.Document.Page.Layout] for
+ // [Paragraph][google.cloud.documentai.v1beta1.Document.Page.Paragraph].
+ Layout layout = 1;
+
+ // A list of detected languages together with confidence.
+ repeated DetectedLanguage detected_languages = 2;
+ }
+
+ // A collection of tokens that a human would perceive as a line.
+ // Does not cross column boundaries, can be horizontal, vertical, etc.
+ message Line {
+ // [Layout][google.cloud.documentai.v1beta1.Document.Page.Layout] for
+ // [Line][google.cloud.documentai.v1beta1.Document.Page.Line].
+ Layout layout = 1;
+
+ // A list of detected languages together with confidence.
+ repeated DetectedLanguage detected_languages = 2;
+ }
+
+ // A detected token.
+ message Token {
+ // Detected break at the end of a
+ // [Token][google.cloud.documentai.v1beta1.Document.Page.Token].
+ message DetectedBreak {
+ // Enum to denote the type of break found.
+ enum Type {
+ // Unspecified break type.
+ TYPE_UNSPECIFIED = 0;
+
+ // A single whitespace.
+ SPACE = 1;
+
+ // A wider whitespace.
+ WIDE_SPACE = 2;
+
+ // A hyphen that indicates that a token has been split across lines.
+ HYPHEN = 3;
+ }
+
+ // Detected break type.
+ Type type = 1;
+ }
+
+ // [Layout][google.cloud.documentai.v1beta1.Document.Page.Layout] for
+ // [Token][google.cloud.documentai.v1beta1.Document.Page.Token].
+ Layout layout = 1;
+
+ // Detected break at the end of a
+ // [Token][google.cloud.documentai.v1beta1.Document.Page.Token].
+ DetectedBreak detected_break = 2;
+
+ // A list of detected languages together with confidence.
+ repeated DetectedLanguage detected_languages = 3;
+ }
+
+ // Detected non-text visual elements e.g. checkbox, signature etc. on the
+ // page.
+ message VisualElement {
+ // [Layout][google.cloud.documentai.v1beta1.Document.Page.Layout] for
+ // [Token][google.cloud.documentai.v1beta1.Document.Page.Token].
+ Layout layout = 1;
+
+ // Type of the
+ // [VisualElement][google.cloud.documentai.v1beta1.Document.Page.VisualElement].
+ string type = 2;
+
+ // A list of detected languages together with confidence.
+ repeated DetectedLanguage detected_languages = 3;
+ }
+
+ // A table representation similar to HTML table structure.
+ message Table {
+ // A row of table cells.
+ message TableRow {
+ // Cells that make up this row.
+ repeated TableCell cells = 1;
+ }
+
+ // A cell representation inside the table.
+ message TableCell {
+ // [Layout][google.cloud.documentai.v1beta1.Document.Page.Layout] for
+ // [TableCell][google.cloud.documentai.v1beta1.Document.Page.Table.TableCell].
+ Layout layout = 1;
+
+ // How many rows this cell spans.
+ int32 row_span = 2;
+
+ // How many columns this cell spans.
+ int32 col_span = 3;
+
+ // A list of detected languages together with confidence.
+ repeated DetectedLanguage detected_languages = 4;
+ }
+
+ // [Layout][google.cloud.documentai.v1beta1.Document.Page.Layout] for
+ // [Table][google.cloud.documentai.v1beta1.Document.Page.Table].
+ Layout layout = 1;
+
+ // Header rows of the table.
+ repeated TableRow header_rows = 2;
+
+ // Body rows of the table.
+ repeated TableRow body_rows = 3;
+
+ // A list of detected languages together with confidence.
+ repeated DetectedLanguage detected_languages = 4;
+ }
+
+ // A form field detected on the page.
+ message FormField {
+ // [Layout][google.cloud.documentai.v1beta1.Document.Page.Layout] for the
+ // [FormField][google.cloud.documentai.v1beta1.Document.Page.FormField]
+ // name. e.g. `Address`, `Email`, `Grand total`, `Phone number`, etc.
+ Layout field_name = 1;
+
+ // [Layout][google.cloud.documentai.v1beta1.Document.Page.Layout] for the
+ // [FormField][google.cloud.documentai.v1beta1.Document.Page.FormField]
+ // value.
+ Layout field_value = 2;
+
+ // A list of detected languages for name together with confidence.
+ repeated DetectedLanguage name_detected_languages = 3;
+
+ // A list of detected languages for value together with confidence.
+ repeated DetectedLanguage value_detected_languages = 4;
+ }
+
+ // Detected language for a structural component.
+ message DetectedLanguage {
+ // The BCP-47 language code, such as "en-US" or "sr-Latn". For more
+ // information, see
+ // http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
+ string language_code = 1;
+
+ // Confidence of detected language. Range [0, 1].
+ float confidence = 2;
+ }
+
+ // 1-based index for current
+ // [Page][google.cloud.documentai.v1beta1.Document.Page] in a parent
+ // [Document][google.cloud.documentai.v1beta1.Document]. Useful when a page
+ // is taken out of a [Document][google.cloud.documentai.v1beta1.Document]
+ // for individual processing.
+ int32 page_number = 1;
+
+ // Physical dimension of the page.
+ Dimension dimension = 2;
+
+ // [Layout][google.cloud.documentai.v1beta1.Document.Page.Layout] for the
+ // page.
+ Layout layout = 3;
+
+ // A list of detected languages together with confidence.
+ repeated DetectedLanguage detected_languages = 4;
+
+ // A list of visually detected text blocks on the page.
+ // A block has a set of lines (collected into paragraphs) that have a common
+ // line-spacing and orientation.
+ repeated Block blocks = 5;
+
+ // A list of visually detected text paragraphs on the page.
+ // A collection of lines that a human would perceive as a paragraph.
+ repeated Paragraph paragraphs = 6;
+
+ // A list of visually detected text lines on the page.
+ // A collection of tokens that a human would perceive as a line.
+ repeated Line lines = 7;
+
+ // A list of visually detected tokens on the page.
+ repeated Token tokens = 8;
+
+ // A list of detected non-text visual elements e.g. checkbox,
+ // signature etc. on the page.
+ repeated VisualElement visual_elements = 9;
+
+ // A list of visually detected tables on the page.
+ repeated Table tables = 10;
+
+ // A list of visually detected form fields on the page.
+ repeated FormField form_fields = 11;
+ }
+
+ // A phrase in the text that is a known entity type, such as a person, an
+ // organization, or location.
+ message Entity {
+ // Provenance of the entity.
+ // Text anchor indexing into the
+ // [Document.text][google.cloud.documentai.v1beta1.Document.text].
+ TextAnchor text_anchor = 1;
+
+ // Required. Entity type from a schema e.g. `Address`.
+ string type = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // Text value in the document e.g. `1600 Amphitheatre Pkwy`.
+ string mention_text = 3;
+
+ // Canonical mention name. This will be a unique value in the entity list
+ // for this document.
+ string mention_id = 4;
+ }
+
+ // Relationship between
+ // [Entities][google.cloud.documentai.v1beta1.Document.Entity].
+ message EntityRelation {
+ // Subject entity mention_id.
+ string subject_id = 1;
+
+ // Object entity mention_id.
+ string object_id = 2;
+
+ // Relationship description.
+ string relation = 3;
+ }
+
+ // Text reference indexing into the
+ // [Document.text][google.cloud.documentai.v1beta1.Document.text].
+ message TextAnchor {
+ // A text segment in the
+ // [Document.text][google.cloud.documentai.v1beta1.Document.text]. The
+ // indices may be out of bounds which indicate that the text extends into
+ // another document shard for large sharded documents. See
+ // [ShardInfo.text_offset][google.cloud.documentai.v1beta1.Document.ShardInfo.text_offset]
+ message TextSegment {
+ // [TextSegment][google.cloud.documentai.v1beta1.Document.TextAnchor.TextSegment]
+ // start UTF-8 char index in the
+ // [Document.text][google.cloud.documentai.v1beta1.Document.text].
+ int64 start_index = 1;
+
+ // [TextSegment][google.cloud.documentai.v1beta1.Document.TextAnchor.TextSegment]
+ // half open end UTF-8 char index in the
+ // [Document.text][google.cloud.documentai.v1beta1.Document.text].
+ int64 end_index = 2;
+ }
+
+ // The text segments from the
+ // [Document.text][google.cloud.documentai.v1beta1.Document.text].
+ repeated TextSegment text_segments = 1;
+ }
+
+ // Original source document from the user.
+ oneof source {
+ // Currently supports Google Cloud Storage URI of the form
+ // `gs://bucket_name/object_name`. Object versioning is not supported.
+ // See [Google Cloud Storage Request
+ // URIs](https://cloud.google.com/storage/docs/reference-uris) for more
+ // info.
+ string uri = 1;
+
+ // Inline document content, represented as a stream of bytes.
+ // Note: As with all `bytes` fields, protobuffers use a pure binary
+ // representation, whereas JSON representations use base64.
+ bytes content = 2;
+ }
+
+ // An IANA published MIME type (also referred to as media type). For more
+ // information, see
+ // https://www.iana.org/assignments/media-types/media-types.xhtml.
+ string mime_type = 3;
+
+ // UTF-8 encoded text in reading order from the document.
+ string text = 4;
+
+ // Styles for the
+ // [Document.text][google.cloud.documentai.v1beta1.Document.text].
+ repeated Style text_styles = 5;
+
+ // Visual page layout for the
+ // [Document][google.cloud.documentai.v1beta1.Document].
+ repeated Page pages = 6;
+
+ // A list of entities detected on
+ // [Document.text][google.cloud.documentai.v1beta1.Document.text]. For
+ // document shards, entities in this list may cross shard boundaries.
+ repeated Entity entities = 7;
+
+ // Relationship among
+ // [Document.entities][google.cloud.documentai.v1beta1.Document.entities].
+ repeated EntityRelation entity_relations = 8;
+
+ // Information about the sharding if this document is sharded part of a larger
+ // document. If the document is not sharded, this message is not specified.
+ ShardInfo shard_info = 9;
+
+ // Any error that occurred while processing this document.
+ google.rpc.Status error = 10;
+}
diff --git a/packages/google-cloud-documentai/protos/google/cloud/documentai/v1beta1/document_understanding.proto b/packages/google-cloud-documentai/protos/google/cloud/documentai/v1beta1/document_understanding.proto
new file mode 100644
index 00000000000..eb17286d4d5
--- /dev/null
+++ b/packages/google-cloud-documentai/protos/google/cloud/documentai/v1beta1/document_understanding.proto
@@ -0,0 +1,302 @@
+// 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.documentai.v1beta1;
+
+import "google/api/annotations.proto";
+import "google/api/client.proto";
+import "google/api/field_behavior.proto";
+import "google/cloud/documentai/v1beta1/geometry.proto";
+import "google/longrunning/operations.proto";
+import "google/protobuf/timestamp.proto";
+
+option csharp_namespace = "Google.Cloud.DocumentAI.V1Beta1";
+option go_package = "google.golang.org/genproto/googleapis/cloud/documentai/v1beta1;documentai";
+option java_multiple_files = true;
+option java_outer_classname = "DocumentAiProto";
+option java_package = "com.google.cloud.documentai.v1beta1";
+option php_namespace = "Google\\Cloud\\DocumentAI\\V1beta1";
+option ruby_package = "Google::Cloud::DocumentAI::V1beta1";
+
+// Service to parse structured information from unstructured or semi-structured
+// documents using state-of-the-art Google AI such as natural language,
+// computer vision, and translation.
+service DocumentUnderstandingService {
+ option (google.api.default_host) = "documentai.googleapis.com";
+ option (google.api.oauth_scopes) =
+ "https://www.googleapis.com/auth/cloud-platform";
+
+ // LRO endpoint to batch process many documents.
+ rpc BatchProcessDocuments(BatchProcessDocumentsRequest)
+ returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ post: "/v1beta1/{parent=projects/*/locations/*}/documents:batchProcess"
+ body: "*"
+ additional_bindings {
+ post: "/v1beta1/{parent=projects/*}/documents:batchProcess"
+ body: "*"
+ }
+ };
+ option (google.api.method_signature) = "requests";
+ option (google.longrunning.operation_info) = {
+ response_type: "BatchProcessDocumentsResponse"
+ metadata_type: "OperationMetadata"
+ };
+ }
+}
+
+// Request to batch process documents as an asynchronous operation.
+message BatchProcessDocumentsRequest {
+ // Required. Individual requests for each document.
+ repeated ProcessDocumentRequest requests = 1
+ [(google.api.field_behavior) = REQUIRED];
+
+ // Target project and location to make a call.
+ //
+ // Format: `projects/{project-id}/locations/{location-id}`.
+ //
+ // If no location is specified, a region will be chosen automatically.
+ string parent = 2;
+}
+
+// Request to process one document.
+message ProcessDocumentRequest {
+ // Required. Information about the input file.
+ InputConfig input_config = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. The desired output location.
+ OutputConfig output_config = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // Specifies a known document type for deeper structure detection. Valid
+ // values are currently "general" and "invoice". If not provided, "general"\
+ // is used as default. If any other value is given, the request is rejected.
+ string document_type = 3;
+
+ // Controls table extraction behavior. If not specified, the system will
+ // decide reasonable defaults.
+ TableExtractionParams table_extraction_params = 4;
+
+ // Controls form extraction behavior. If not specified, the system will
+ // decide reasonable defaults.
+ FormExtractionParams form_extraction_params = 5;
+
+ // Controls entity extraction behavior. If not specified, the system will
+ // decide reasonable defaults.
+ EntityExtractionParams entity_extraction_params = 6;
+
+ // Controls OCR behavior. If not specified, the system will decide reasonable
+ // defaults.
+ OcrParams ocr_params = 7;
+}
+
+// Response to an batch document processing request. This is returned in
+// the LRO Operation after the operation is complete.
+message BatchProcessDocumentsResponse {
+ // Responses for each individual document.
+ repeated ProcessDocumentResponse responses = 1;
+}
+
+// Response to a single document processing request.
+message ProcessDocumentResponse {
+ // Information about the input file. This is the same as the corresponding
+ // input config in the request.
+ InputConfig input_config = 1;
+
+ // The output location of the parsed responses. The responses are written to
+ // this location as JSON-serialized `Document` objects.
+ OutputConfig output_config = 2;
+}
+
+// Parameters to control Optical Character Recognition (OCR) behavior.
+message OcrParams {
+ // List of languages to use for OCR. In most cases, an empty value
+ // yields the best results since it enables automatic language detection. For
+ // languages based on the Latin alphabet, setting `language_hints` is not
+ // needed. In rare cases, when the language of the text in the image is known,
+ // setting a hint will help get better results (although it will be a
+ // significant hindrance if the hint is wrong). Document processing returns an
+ // error if one or more of the specified languages is not one of the
+ // supported languages.
+ repeated string language_hints = 1;
+}
+
+// Parameters to control table extraction behavior.
+message TableExtractionParams {
+ // Whether to enable table extraction.
+ bool enabled = 1;
+
+ // Optional. Table bounding box hints that can be provided to complex cases
+ // which our algorithm cannot locate the table(s) in.
+ repeated TableBoundHint table_bound_hints = 2
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Table header hints. The extraction will bias towards producing
+ // these terms as table headers, which may improve accuracy.
+ repeated string header_hints = 3 [(google.api.field_behavior) = OPTIONAL];
+
+ // Model version of the table extraction system. Default is "builtin/stable".
+ // Specify "builtin/latest" for the latest model.
+ string model_version = 4;
+}
+
+// A hint for a table bounding box on the page for table parsing.
+message TableBoundHint {
+ // Optional. Page number for multi-paged inputs this hint applies to. If not
+ // provided, this hint will apply to all pages by default. This value is
+ // 1-based.
+ int32 page_number = 1 [(google.api.field_behavior) = OPTIONAL];
+
+ // Bounding box hint for a table on this page. The coordinates must be
+ // normalized to [0,1] and the bounding box must be an axis-aligned rectangle.
+ BoundingPoly bounding_box = 2;
+}
+
+// Parameters to control form extraction behavior.
+message FormExtractionParams {
+ // Whether to enable form extraction.
+ bool enabled = 1;
+
+ // User can provide pairs of (key text, value type) to improve the parsing
+ // result.
+ //
+ // For example, if a document has a field called "Date" that holds a date
+ // value and a field called "Amount" that may hold either a currency value
+ // (e.g., "$500.00") or a simple number value (e.g., "20"), you could use the
+ // following hints: [ {"key": "Date", value_types: [ "DATE"]}, {"key":
+ // "Amount", "value_types": [ "PRICE", "NUMBER" ]} ]
+ //
+ // If the value type is unknown, but you want to provide hints for the keys,
+ // you can leave the value_types field blank. e.g. {"key": "Date",
+ // "value_types": []}
+ repeated KeyValuePairHint key_value_pair_hints = 2;
+
+ // Model version of the form extraction system. Default is
+ // "builtin/stable". Specify "builtin/latest" for the latest model.
+ string model_version = 3;
+}
+
+// User-provided hint for key value pair.
+message KeyValuePairHint {
+ // The key text for the hint.
+ string key = 1;
+
+ // Type of the value. This is case-insensitive, and could be one of:
+ // ADDRESS, LOCATION, ORGANIZATION, PERSON, PHONE_NUMBER,
+ // ID, NUMBER, EMAIL, PRICE, TERMS, DATE, NAME. Types not in this list will
+ // be ignored.
+ repeated string value_types = 2;
+}
+
+// Parameters to control entity extraction behavior.
+message EntityExtractionParams {
+ // Whether to enable entity extraction.
+ bool enabled = 1;
+
+ // Model version of the entity extraction. Default is
+ // "builtin/stable". Specify "builtin/latest" for the latest model.
+ string model_version = 2;
+}
+
+// The desired input location and metadata.
+message InputConfig {
+ // Required.
+ oneof source {
+ // The Google Cloud Storage location to read the input from. This must be a
+ // single file.
+ GcsSource gcs_source = 1;
+ }
+
+ // Required. Mimetype of the input. Current supported mimetypes are
+ // application/pdf, image/tiff, and image/gif.
+ string mime_type = 2 [(google.api.field_behavior) = REQUIRED];
+}
+
+// The desired output location and metadata.
+message OutputConfig {
+ // Required.
+ oneof destination {
+ // The Google Cloud Storage location to write the output to.
+ GcsDestination gcs_destination = 1;
+ }
+
+ // The max number of pages to include into each output Document shard JSON on
+ // Google Cloud Storage.
+ //
+ // The valid range is [1, 100]. If not specified, the default value is 20.
+ //
+ // For example, for one pdf file with 100 pages, 100 parsed pages will be
+ // produced. If `pages_per_shard` = 20, then 5 Document shard JSON files each
+ // containing 20 parsed pages will be written under the prefix
+ // [OutputConfig.gcs_destination.uri][] and suffix pages-x-to-y.json where
+ // x and y are 1-indexed page numbers.
+ //
+ // Example GCS outputs with 157 pages and pages_per_shard = 50:
+ //
+ // pages-001-to-050.json
+ // pages-051-to-100.json
+ // pages-101-to-150.json
+ // pages-151-to-157.json
+ int32 pages_per_shard = 2;
+}
+
+// The Google Cloud Storage location where the input file will be read from.
+message GcsSource {
+ string uri = 1 [(google.api.field_behavior) = REQUIRED];
+}
+
+// The Google Cloud Storage location where the output file will be written to.
+message GcsDestination {
+ string uri = 1 [(google.api.field_behavior) = REQUIRED];
+}
+
+// Contains metadata for the BatchProcessDocuments operation.
+message OperationMetadata {
+ enum State {
+ // The default value. This value is used if the state is omitted.
+ STATE_UNSPECIFIED = 0;
+
+ // Request is received.
+ ACCEPTED = 1;
+
+ // Request operation is waiting for scheduling.
+ WAITING = 2;
+
+ // Request is being processed.
+ RUNNING = 3;
+
+ // The batch processing completed successfully.
+ SUCCEEDED = 4;
+
+ // The batch processing was cancelled.
+ CANCELLED = 5;
+
+ // The batch processing has failed.
+ FAILED = 6;
+ }
+
+ // The state of the current batch processing.
+ State state = 1;
+
+ // A message providing more details about the current state of processing.
+ string state_message = 2;
+
+ // The creation time of the operation.
+ google.protobuf.Timestamp create_time = 3;
+
+ // The last update time of the operation.
+ google.protobuf.Timestamp update_time = 4;
+}
diff --git a/packages/google-cloud-documentai/protos/google/cloud/documentai/v1beta1/geometry.proto b/packages/google-cloud-documentai/protos/google/cloud/documentai/v1beta1/geometry.proto
new file mode 100644
index 00000000000..5772db74511
--- /dev/null
+++ b/packages/google-cloud-documentai/protos/google/cloud/documentai/v1beta1/geometry.proto
@@ -0,0 +1,57 @@
+// 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.documentai.v1beta1;
+
+
+option csharp_namespace = "Google.Cloud.DocumentAI.V1Beta1";
+option go_package = "google.golang.org/genproto/googleapis/cloud/documentai/v1beta1;documentai";
+option java_multiple_files = true;
+option java_outer_classname = "GeometryProto";
+option java_package = "com.google.cloud.documentai.v1beta1";
+option php_namespace = "Google\\Cloud\\DocumentAI\\V1beta1";
+option ruby_package = "Google::Cloud::DocumentAI::V1beta1";
+
+// 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 for the detected image annotation.
+message BoundingPoly {
+ // The bounding polygon vertices.
+ repeated Vertex vertices = 1;
+
+ // The bounding polygon normalized vertices.
+ repeated NormalizedVertex normalized_vertices = 2;
+}
diff --git a/packages/google-cloud-documentai/protos/google/cloud/documentai/v1beta2/document.proto b/packages/google-cloud-documentai/protos/google/cloud/documentai/v1beta2/document.proto
new file mode 100644
index 00000000000..a7255d7c1b9
--- /dev/null
+++ b/packages/google-cloud-documentai/protos/google/cloud/documentai/v1beta2/document.proto
@@ -0,0 +1,518 @@
+// Copyright 2020 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.documentai.v1beta2;
+
+import "google/api/field_behavior.proto";
+import "google/cloud/documentai/v1beta2/geometry.proto";
+import "google/rpc/status.proto";
+import "google/type/color.proto";
+
+option csharp_namespace = "Google.Cloud.DocumentAI.V1Beta2";
+option go_package = "google.golang.org/genproto/googleapis/cloud/documentai/v1beta2;documentai";
+option java_multiple_files = true;
+option java_outer_classname = "DocumentProto";
+option java_package = "com.google.cloud.documentai.v1beta2";
+option php_namespace = "Google\\Cloud\\DocumentAI\\V1beta2";
+option ruby_package = "Google::Cloud::DocumentAI::V1beta2";
+
+// Document represents the canonical document resource in Document Understanding
+// AI.
+// It is an interchange format that provides insights into documents and allows
+// for collaboration between users and Document Understanding AI to iterate and
+// optimize for quality.
+message Document {
+ // For a large document, sharding may be performed to produce several
+ // document shards. Each document shard contains this field to detail which
+ // shard it is.
+ message ShardInfo {
+ // The 0-based index of this shard.
+ int64 shard_index = 1;
+
+ // Total number of shards.
+ int64 shard_count = 2;
+
+ // The index of the first character in [Document.text][google.cloud.documentai.v1beta2.Document.text] in the overall
+ // document global text.
+ int64 text_offset = 3;
+ }
+
+ // Label attaches schema information and/or other metadata to segments within
+ // a [Document][google.cloud.documentai.v1beta2.Document]. Multiple [Label][google.cloud.documentai.v1beta2.Document.Label]s on a single field can denote either
+ // different labels, different instances of the same label created at
+ // different times, or some combination of both.
+ message Label {
+ // Provenance of the label.
+ oneof source {
+ // Label is generated AutoML model. This field stores the full resource
+ // name of the AutoML model.
+ //
+ // Format:
+ // `projects/{project-id}/locations/{location-id}/models/{model-id}`
+ string automl_model = 2;
+ }
+
+ // Name of the label.
+ //
+ // When the label is generated from AutoML Text Classification model, this
+ // field represents the name of the category.
+ string name = 1;
+
+ // Confidence score between 0 and 1 for label assignment.
+ float confidence = 3;
+ }
+
+ // Annotation for common text style attributes. This adheres to CSS
+ // conventions as much as possible.
+ message Style {
+ // Font size with unit.
+ message FontSize {
+ // Font size for the text.
+ float size = 1;
+
+ // Unit for the font size. Follows CSS naming (in, px, pt, etc.).
+ string unit = 2;
+ }
+
+ // Text anchor indexing into the [Document.text][google.cloud.documentai.v1beta2.Document.text].
+ TextAnchor text_anchor = 1;
+
+ // Text color.
+ google.type.Color color = 2;
+
+ // Text background color.
+ google.type.Color background_color = 3;
+
+ // Font weight. Possible values are normal, bold, bolder, and lighter.
+ // https://www.w3schools.com/cssref/pr_font_weight.asp
+ string font_weight = 4;
+
+ // Text style. Possible values are normal, italic, and oblique.
+ // https://www.w3schools.com/cssref/pr_font_font-style.asp
+ string text_style = 5;
+
+ // Text decoration. Follows CSS standard.
+ //
+ // https://www.w3schools.com/cssref/pr_text_text-decoration.asp
+ string text_decoration = 6;
+
+ // Font size.
+ FontSize font_size = 7;
+ }
+
+ // A page in a [Document][google.cloud.documentai.v1beta2.Document].
+ message Page {
+ // Dimension for the page.
+ message Dimension {
+ // Page width.
+ float width = 1;
+
+ // Page height.
+ float height = 2;
+
+ // Dimension unit.
+ string unit = 3;
+ }
+
+ // Visual element describing a layout unit on a page.
+ message Layout {
+ // Detected human reading orientation.
+ enum Orientation {
+ // Unspecified orientation.
+ ORIENTATION_UNSPECIFIED = 0;
+
+ // Orientation is aligned with page up.
+ PAGE_UP = 1;
+
+ // Orientation is aligned with page right.
+ // Turn the head 90 degrees clockwise from upright to read.
+ PAGE_RIGHT = 2;
+
+ // Orientation is aligned with page down.
+ // Turn the head 180 degrees from upright to read.
+ PAGE_DOWN = 3;
+
+ // Orientation is aligned with page left.
+ // Turn the head 90 degrees counterclockwise from upright to read.
+ PAGE_LEFT = 4;
+ }
+
+ // Text anchor indexing into the [Document.text][google.cloud.documentai.v1beta2.Document.text].
+ TextAnchor text_anchor = 1;
+
+ // Confidence of the current [Layout][google.cloud.documentai.v1beta2.Document.Page.Layout] within context of the object this
+ // layout is for. e.g. confidence can be for a single token, a table,
+ // a visual element, etc. depending on context. Range [0, 1].
+ float confidence = 2;
+
+ // The bounding polygon for the [Layout][google.cloud.documentai.v1beta2.Document.Page.Layout].
+ BoundingPoly bounding_poly = 3;
+
+ // Detected orientation for the [Layout][google.cloud.documentai.v1beta2.Document.Page.Layout].
+ Orientation orientation = 4;
+
+ // Optional. This is the identifier used by referencing [PageAnchor][google.cloud.documentai.v1beta2.Document.PageAnchor]s.
+ string id = 5 [(google.api.field_behavior) = OPTIONAL];
+ }
+
+ // A block has a set of lines (collected into paragraphs) that have a
+ // common line-spacing and orientation.
+ message Block {
+ // [Layout][google.cloud.documentai.v1beta2.Document.Page.Layout] for [Block][google.cloud.documentai.v1beta2.Document.Page.Block].
+ Layout layout = 1;
+
+ // A list of detected languages together with confidence.
+ repeated DetectedLanguage detected_languages = 2;
+ }
+
+ // A collection of lines that a human would perceive as a paragraph.
+ message Paragraph {
+ // [Layout][google.cloud.documentai.v1beta2.Document.Page.Layout] for [Paragraph][google.cloud.documentai.v1beta2.Document.Page.Paragraph].
+ Layout layout = 1;
+
+ // A list of detected languages together with confidence.
+ repeated DetectedLanguage detected_languages = 2;
+ }
+
+ // A collection of tokens that a human would perceive as a line.
+ // Does not cross column boundaries, can be horizontal, vertical, etc.
+ message Line {
+ // [Layout][google.cloud.documentai.v1beta2.Document.Page.Layout] for [Line][google.cloud.documentai.v1beta2.Document.Page.Line].
+ Layout layout = 1;
+
+ // A list of detected languages together with confidence.
+ repeated DetectedLanguage detected_languages = 2;
+ }
+
+ // A detected token.
+ message Token {
+ // Detected break at the end of a [Token][google.cloud.documentai.v1beta2.Document.Page.Token].
+ message DetectedBreak {
+ // Enum to denote the type of break found.
+ enum Type {
+ // Unspecified break type.
+ TYPE_UNSPECIFIED = 0;
+
+ // A single whitespace.
+ SPACE = 1;
+
+ // A wider whitespace.
+ WIDE_SPACE = 2;
+
+ // A hyphen that indicates that a token has been split across lines.
+ HYPHEN = 3;
+ }
+
+ // Detected break type.
+ Type type = 1;
+ }
+
+ // [Layout][google.cloud.documentai.v1beta2.Document.Page.Layout] for [Token][google.cloud.documentai.v1beta2.Document.Page.Token].
+ Layout layout = 1;
+
+ // Detected break at the end of a [Token][google.cloud.documentai.v1beta2.Document.Page.Token].
+ DetectedBreak detected_break = 2;
+
+ // A list of detected languages together with confidence.
+ repeated DetectedLanguage detected_languages = 3;
+ }
+
+ // Detected non-text visual elements e.g. checkbox, signature etc. on the
+ // page.
+ message VisualElement {
+ // [Layout][google.cloud.documentai.v1beta2.Document.Page.Layout] for [VisualElement][google.cloud.documentai.v1beta2.Document.Page.VisualElement].
+ Layout layout = 1;
+
+ // Type of the [VisualElement][google.cloud.documentai.v1beta2.Document.Page.VisualElement].
+ string type = 2;
+
+ // A list of detected languages together with confidence.
+ repeated DetectedLanguage detected_languages = 3;
+ }
+
+ // A table representation similar to HTML table structure.
+ message Table {
+ // A row of table cells.
+ message TableRow {
+ // Cells that make up this row.
+ repeated TableCell cells = 1;
+ }
+
+ // A cell representation inside the table.
+ message TableCell {
+ // [Layout][google.cloud.documentai.v1beta2.Document.Page.Layout] for [TableCell][google.cloud.documentai.v1beta2.Document.Page.Table.TableCell].
+ Layout layout = 1;
+
+ // How many rows this cell spans.
+ int32 row_span = 2;
+
+ // How many columns this cell spans.
+ int32 col_span = 3;
+
+ // A list of detected languages together with confidence.
+ repeated DetectedLanguage detected_languages = 4;
+ }
+
+ // [Layout][google.cloud.documentai.v1beta2.Document.Page.Layout] for [Table][google.cloud.documentai.v1beta2.Document.Page.Table].
+ Layout layout = 1;
+
+ // Header rows of the table.
+ repeated TableRow header_rows = 2;
+
+ // Body rows of the table.
+ repeated TableRow body_rows = 3;
+
+ // A list of detected languages together with confidence.
+ repeated DetectedLanguage detected_languages = 4;
+ }
+
+ // A form field detected on the page.
+ message FormField {
+ // [Layout][google.cloud.documentai.v1beta2.Document.Page.Layout] for the [FormField][google.cloud.documentai.v1beta2.Document.Page.FormField] name. e.g. `Address`, `Email`,
+ // `Grand total`, `Phone number`, etc.
+ Layout field_name = 1;
+
+ // [Layout][google.cloud.documentai.v1beta2.Document.Page.Layout] for the [FormField][google.cloud.documentai.v1beta2.Document.Page.FormField] value.
+ Layout field_value = 2;
+
+ // A list of detected languages for name together with confidence.
+ repeated DetectedLanguage name_detected_languages = 3;
+
+ // A list of detected languages for value together with confidence.
+ repeated DetectedLanguage value_detected_languages = 4;
+
+ // If the value is non-textual, this field represents the type. Current
+ // valid values are:
+ // - blank (this indicates the field_value is normal text)
+ // - "unfilled_checkbox"
+ // - "filled_checkbox"
+ string value_type = 5;
+
+ // An internal field, created for Labeling UI to export key text.
+ string corrected_key_text = 6;
+
+ // An internal field, created for Labeling UI to export value text.
+ string corrected_value_text = 7;
+ }
+
+ // Detected language for a structural component.
+ message DetectedLanguage {
+ // The BCP-47 language code, such as "en-US" or "sr-Latn". For more
+ // information, see
+ // http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
+ string language_code = 1;
+
+ // Confidence of detected language. Range [0, 1].
+ float confidence = 2;
+ }
+
+ // 1-based index for current [Page][google.cloud.documentai.v1beta2.Document.Page] in a parent [Document][google.cloud.documentai.v1beta2.Document].
+ // Useful when a page is taken out of a [Document][google.cloud.documentai.v1beta2.Document] for individual
+ // processing.
+ int32 page_number = 1;
+
+ // Physical dimension of the page.
+ Dimension dimension = 2;
+
+ // [Layout][google.cloud.documentai.v1beta2.Document.Page.Layout] for the page.
+ Layout layout = 3;
+
+ // A list of detected languages together with confidence.
+ repeated DetectedLanguage detected_languages = 4;
+
+ // A list of visually detected text blocks on the page.
+ // A block has a set of lines (collected into paragraphs) that have a common
+ // line-spacing and orientation.
+ repeated Block blocks = 5;
+
+ // A list of visually detected text paragraphs on the page.
+ // A collection of lines that a human would perceive as a paragraph.
+ repeated Paragraph paragraphs = 6;
+
+ // A list of visually detected text lines on the page.
+ // A collection of tokens that a human would perceive as a line.
+ repeated Line lines = 7;
+
+ // A list of visually detected tokens on the page.
+ repeated Token tokens = 8;
+
+ // A list of detected non-text visual elements e.g. checkbox,
+ // signature etc. on the page.
+ repeated VisualElement visual_elements = 9;
+
+ // A list of visually detected tables on the page.
+ repeated Table tables = 10;
+
+ // A list of visually detected form fields on the page.
+ repeated FormField form_fields = 11;
+ }
+
+ // A phrase in the text that is a known entity type, such as a person, an
+ // organization, or location.
+ message Entity {
+ // Provenance of the entity.
+ // Text anchor indexing into the [Document.text][google.cloud.documentai.v1beta2.Document.text].
+ TextAnchor text_anchor = 1;
+
+ // Required. Entity type from a schema e.g. `Address`.
+ string type = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // Text value in the document e.g. `1600 Amphitheatre Pkwy`.
+ string mention_text = 3;
+
+ // Deprecated. Use `id` field instead.
+ string mention_id = 4;
+
+ // Optional. Confidence of detected Schema entity. Range [0, 1].
+ float confidence = 5 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Represents the provenance of this entity wrt. the location on the
+ // page where it was found.
+ PageAnchor page_anchor = 6 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Canonical id. This will be a unique value in the entity list
+ // for this document.
+ string id = 7 [(google.api.field_behavior) = OPTIONAL];
+ }
+
+ // Relationship between [Entities][google.cloud.documentai.v1beta2.Document.Entity].
+ message EntityRelation {
+ // Subject entity id.
+ string subject_id = 1;
+
+ // Object entity id.
+ string object_id = 2;
+
+ // Relationship description.
+ string relation = 3;
+ }
+
+ // Text reference indexing into the [Document.text][google.cloud.documentai.v1beta2.Document.text].
+ message TextAnchor {
+ // A text segment in the [Document.text][google.cloud.documentai.v1beta2.Document.text]. The indices may be out of bounds
+ // which indicate that the text extends into another document shard for
+ // large sharded documents. See [ShardInfo.text_offset][google.cloud.documentai.v1beta2.Document.ShardInfo.text_offset]
+ message TextSegment {
+ // [TextSegment][google.cloud.documentai.v1beta2.Document.TextAnchor.TextSegment] start UTF-8 char index in the [Document.text][google.cloud.documentai.v1beta2.Document.text].
+ int64 start_index = 1;
+
+ // [TextSegment][google.cloud.documentai.v1beta2.Document.TextAnchor.TextSegment] half open end UTF-8 char index in the
+ // [Document.text][google.cloud.documentai.v1beta2.Document.text].
+ int64 end_index = 2;
+ }
+
+ // The text segments from the [Document.text][google.cloud.documentai.v1beta2.Document.text].
+ repeated TextSegment text_segments = 1;
+
+ // Contains the content of the text span so that users do
+ // not have to look it up in the text_segments.
+ string content = 2;
+ }
+
+ // Referencing elements in [Document.pages][google.cloud.documentai.v1beta2.Document.pages].
+ message PageAnchor {
+ // Represents a weak reference to a page element within a document.
+ message PageRef {
+ // The type of layout that is being referenced.
+ enum LayoutType {
+ // Layout Unspecified.
+ LAYOUT_TYPE_UNSPECIFIED = 0;
+
+ // References a [Page.blocks][google.cloud.documentai.v1beta2.Document.Page.blocks] element.
+ BLOCK = 1;
+
+ // References a [Page.paragraphs][google.cloud.documentai.v1beta2.Document.Page.paragraphs] element.
+ PARAGRAPH = 2;
+
+ // References a [Page.lines][google.cloud.documentai.v1beta2.Document.Page.lines] element.
+ LINE = 3;
+
+ // References a [Page.tokens][google.cloud.documentai.v1beta2.Document.Page.tokens] element.
+ TOKEN = 4;
+
+ // References a [Page.visual_elements][google.cloud.documentai.v1beta2.Document.Page.visual_elements] element.
+ VISUAL_ELEMENT = 5;
+
+ // Refrrences a [Page.tables][google.cloud.documentai.v1beta2.Document.Page.tables] element.
+ TABLE = 6;
+
+ // References a [Page.form_fields][google.cloud.documentai.v1beta2.Document.Page.form_fields] element.
+ FORM_FIELD = 7;
+ }
+
+ // Required. Index into the [Document.pages][google.cloud.documentai.v1beta2.Document.pages] element
+ int64 page = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Optional. The type of the layout element that is being referenced. If not
+ // specified the whole page is assumed to be referenced.
+ LayoutType layout_type = 2 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The [Page.Layout.id][google.cloud.documentai.v1beta2.Document.Page.Layout.id] on the page that this element
+ // references. If [LayoutRef.type][] is specified this id must also be
+ // specified.
+ string layout_id = 3 [(google.api.field_behavior) = OPTIONAL];
+ }
+
+ // One or more references to visual page elements
+ repeated PageRef page_refs = 1;
+ }
+
+ // Original source document from the user.
+ oneof source {
+ // Currently supports Google Cloud Storage URI of the form
+ // `gs://bucket_name/object_name`. Object versioning is not supported.
+ // See [Google Cloud Storage Request
+ // URIs](https://cloud.google.com/storage/docs/reference-uris) for more
+ // info.
+ string uri = 1;
+
+ // Inline document content, represented as a stream of bytes.
+ // Note: As with all `bytes` fields, protobuffers use a pure binary
+ // representation, whereas JSON representations use base64.
+ bytes content = 2;
+ }
+
+ // An IANA published MIME type (also referred to as media type). For more
+ // information, see
+ // https://www.iana.org/assignments/media-types/media-types.xhtml.
+ string mime_type = 3;
+
+ // UTF-8 encoded text in reading order from the document.
+ string text = 4;
+
+ // Styles for the [Document.text][google.cloud.documentai.v1beta2.Document.text].
+ repeated Style text_styles = 5;
+
+ // Visual page layout for the [Document][google.cloud.documentai.v1beta2.Document].
+ repeated Page pages = 6;
+
+ // A list of entities detected on [Document.text][google.cloud.documentai.v1beta2.Document.text]. For document shards,
+ // entities in this list may cross shard boundaries.
+ repeated Entity entities = 7;
+
+ // Relationship among [Document.entities][google.cloud.documentai.v1beta2.Document.entities].
+ repeated EntityRelation entity_relations = 8;
+
+ // Information about the sharding if this document is sharded part of a larger
+ // document. If the document is not sharded, this message is not specified.
+ ShardInfo shard_info = 9;
+
+ // [Label][google.cloud.documentai.v1beta2.Document.Label]s for this document.
+ repeated Label labels = 11;
+
+ // Any error that occurred while processing this document.
+ google.rpc.Status error = 10;
+}
diff --git a/packages/google-cloud-documentai/protos/google/cloud/documentai/v1beta2/document_understanding.proto b/packages/google-cloud-documentai/protos/google/cloud/documentai/v1beta2/document_understanding.proto
new file mode 100644
index 00000000000..137ba5e3116
--- /dev/null
+++ b/packages/google-cloud-documentai/protos/google/cloud/documentai/v1beta2/document_understanding.proto
@@ -0,0 +1,346 @@
+// Copyright 2020 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.documentai.v1beta2;
+
+import "google/api/annotations.proto";
+import "google/api/client.proto";
+import "google/api/field_behavior.proto";
+import "google/cloud/documentai/v1beta2/document.proto";
+import "google/cloud/documentai/v1beta2/geometry.proto";
+import "google/longrunning/operations.proto";
+import "google/protobuf/timestamp.proto";
+
+option csharp_namespace = "Google.Cloud.DocumentAI.V1Beta2";
+option go_package = "google.golang.org/genproto/googleapis/cloud/documentai/v1beta2;documentai";
+option java_multiple_files = true;
+option java_outer_classname = "DocumentAiProto";
+option java_package = "com.google.cloud.documentai.v1beta2";
+option php_namespace = "Google\\Cloud\\DocumentAI\\V1beta2";
+option ruby_package = "Google::Cloud::DocumentAI::V1beta2";
+
+// Service to parse structured information from unstructured or semi-structured
+// documents using state-of-the-art Google AI such as natural language,
+// computer vision, and translation.
+service DocumentUnderstandingService {
+ option (google.api.default_host) = "documentai.googleapis.com";
+ option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform";
+
+ // LRO endpoint to batch process many documents. The output is written
+ // to Cloud Storage as JSON in the [Document] format.
+ rpc BatchProcessDocuments(BatchProcessDocumentsRequest) returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ post: "/v1beta2/{parent=projects/*/locations/*}/documents:batchProcess"
+ body: "*"
+ additional_bindings {
+ post: "/v1beta2/{parent=projects/*}/documents:batchProcess"
+ body: "*"
+ }
+ };
+ option (google.api.method_signature) = "requests";
+ option (google.longrunning.operation_info) = {
+ response_type: "BatchProcessDocumentsResponse"
+ metadata_type: "OperationMetadata"
+ };
+ }
+
+ // Processes a single document.
+ rpc ProcessDocument(ProcessDocumentRequest) returns (Document) {
+ option (google.api.http) = {
+ post: "/v1beta2/{parent=projects/*/locations/*}/documents:process"
+ body: "*"
+ additional_bindings {
+ post: "/v1beta2/{parent=projects/*}/documents:process"
+ body: "*"
+ }
+ };
+ }
+}
+
+// Request to batch process documents as an asynchronous operation. The output
+// is written to Cloud Storage as JSON in the [Document] format.
+message BatchProcessDocumentsRequest {
+ // Required. Individual requests for each document.
+ repeated ProcessDocumentRequest requests = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Target project and location to make a call.
+ //
+ // Format: `projects/{project-id}/locations/{location-id}`.
+ //
+ // If no location is specified, a region will be chosen automatically.
+ string parent = 2;
+}
+
+// Request to process one document.
+message ProcessDocumentRequest {
+ // Target project and location to make a call.
+ //
+ // Format: `projects/{project-id}/locations/{location-id}`.
+ //
+ // If no location is specified, a region will be chosen automatically.
+ // This field is only populated when used in ProcessDocument method.
+ string parent = 9;
+
+ // Required. Information about the input file.
+ InputConfig input_config = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Optional. The desired output location. This field is only needed in
+ // BatchProcessDocumentsRequest.
+ OutputConfig output_config = 2 [(google.api.field_behavior) = OPTIONAL];
+
+ // Specifies a known document type for deeper structure detection. Valid
+ // values are currently "general" and "invoice". If not provided, "general"\
+ // is used as default. If any other value is given, the request is rejected.
+ string document_type = 3;
+
+ // Controls table extraction behavior. If not specified, the system will
+ // decide reasonable defaults.
+ TableExtractionParams table_extraction_params = 4;
+
+ // Controls form extraction behavior. If not specified, the system will
+ // decide reasonable defaults.
+ FormExtractionParams form_extraction_params = 5;
+
+ // Controls entity extraction behavior. If not specified, the system will
+ // decide reasonable defaults.
+ EntityExtractionParams entity_extraction_params = 6;
+
+ // Controls OCR behavior. If not specified, the system will decide reasonable
+ // defaults.
+ OcrParams ocr_params = 7;
+
+ // Controls AutoML model prediction behavior. AutoMlParams cannot be used
+ // together with other Params.
+ AutoMlParams automl_params = 8;
+}
+
+// Response to an batch document processing request. This is returned in
+// the LRO Operation after the operation is complete.
+message BatchProcessDocumentsResponse {
+ // Responses for each individual document.
+ repeated ProcessDocumentResponse responses = 1;
+}
+
+// Response to a single document processing request.
+message ProcessDocumentResponse {
+ // Information about the input file. This is the same as the corresponding
+ // input config in the request.
+ InputConfig input_config = 1;
+
+ // The output location of the parsed responses. The responses are written to
+ // this location as JSON-serialized `Document` objects.
+ OutputConfig output_config = 2;
+}
+
+// Parameters to control Optical Character Recognition (OCR) behavior.
+message OcrParams {
+ // List of languages to use for OCR. In most cases, an empty value
+ // yields the best results since it enables automatic language detection. For
+ // languages based on the Latin alphabet, setting `language_hints` is not
+ // needed. In rare cases, when the language of the text in the image is known,
+ // setting a hint will help get better results (although it will be a
+ // significant hindrance if the hint is wrong). Document processing returns an
+ // error if one or more of the specified languages is not one of the
+ // supported languages.
+ repeated string language_hints = 1;
+}
+
+// Parameters to control table extraction behavior.
+message TableExtractionParams {
+ // Whether to enable table extraction.
+ bool enabled = 1;
+
+ // Optional. Table bounding box hints that can be provided to complex cases
+ // which our algorithm cannot locate the table(s) in.
+ repeated TableBoundHint table_bound_hints = 2 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Table header hints. The extraction will bias towards producing
+ // these terms as table headers, which may improve accuracy.
+ repeated string header_hints = 3 [(google.api.field_behavior) = OPTIONAL];
+
+ // Model version of the table extraction system. Default is "builtin/stable".
+ // Specify "builtin/latest" for the latest model.
+ string model_version = 4;
+}
+
+// A hint for a table bounding box on the page for table parsing.
+message TableBoundHint {
+ // Optional. Page number for multi-paged inputs this hint applies to. If not
+ // provided, this hint will apply to all pages by default. This value is
+ // 1-based.
+ int32 page_number = 1 [(google.api.field_behavior) = OPTIONAL];
+
+ // Bounding box hint for a table on this page. The coordinates must be
+ // normalized to [0,1] and the bounding box must be an axis-aligned rectangle.
+ BoundingPoly bounding_box = 2;
+}
+
+// Parameters to control form extraction behavior.
+message FormExtractionParams {
+ // Whether to enable form extraction.
+ bool enabled = 1;
+
+ // User can provide pairs of (key text, value type) to improve the parsing
+ // result.
+ //
+ // For example, if a document has a field called "Date" that holds a date
+ // value and a field called "Amount" that may hold either a currency value
+ // (e.g., "$500.00") or a simple number value (e.g., "20"), you could use the
+ // following hints: [ {"key": "Date", value_types: [ "DATE"]}, {"key":
+ // "Amount", "value_types": [ "PRICE", "NUMBER" ]} ]
+ //
+ // If the value type is unknown, but you want to provide hints for the keys,
+ // you can leave the value_types field blank. e.g. {"key": "Date",
+ // "value_types": []}
+ repeated KeyValuePairHint key_value_pair_hints = 2;
+
+ // Model version of the form extraction system. Default is
+ // "builtin/stable". Specify "builtin/latest" for the latest model.
+ // For custom form models, specify: “custom/{model_name}". Model name
+ // format is "bucket_name/path/to/modeldir" corresponding to
+ // "gs://bucket_name/path/to/modeldir" where annotated examples are stored.
+ string model_version = 3;
+}
+
+// User-provided hint for key value pair.
+message KeyValuePairHint {
+ // The key text for the hint.
+ string key = 1;
+
+ // Type of the value. This is case-insensitive, and could be one of:
+ // ADDRESS, LOCATION, ORGANIZATION, PERSON, PHONE_NUMBER,
+ // ID, NUMBER, EMAIL, PRICE, TERMS, DATE, NAME. Types not in this list will
+ // be ignored.
+ repeated string value_types = 2;
+}
+
+// Parameters to control entity extraction behavior.
+message EntityExtractionParams {
+ // Whether to enable entity extraction.
+ bool enabled = 1;
+
+ // Model version of the entity extraction. Default is
+ // "builtin/stable". Specify "builtin/latest" for the latest model.
+ string model_version = 2;
+}
+
+// Parameters to control AutoML model prediction behavior.
+message AutoMlParams {
+ // Resource name of the AutoML model.
+ //
+ // Format: `projects/{project-id}/locations/{location-id}/models/{model-id}`.
+ string model = 1;
+}
+
+// The desired input location and metadata.
+message InputConfig {
+ // Required.
+ oneof source {
+ // The Google Cloud Storage location to read the input from. This must be a
+ // single file.
+ GcsSource gcs_source = 1;
+
+ // Content in bytes, represented as a stream of bytes.
+ // Note: As with all `bytes` fields, proto buffer messages use a pure binary
+ // representation, whereas JSON representations use base64.
+ //
+ // This field only works for synchronous ProcessDocument method.
+ bytes contents = 3;
+ }
+
+ // Required. Mimetype of the input. Current supported mimetypes are application/pdf,
+ // image/tiff, and image/gif.
+ // In addition, application/json type is supported for requests with
+ // [ProcessDocumentRequest.automl_params][google.cloud.documentai.v1beta2.ProcessDocumentRequest.automl_params] field set. The JSON file needs to
+ // be in [Document][google.cloud.documentai.v1beta2.Document] format.
+ string mime_type = 2 [(google.api.field_behavior) = REQUIRED];
+}
+
+// The desired output location and metadata.
+message OutputConfig {
+ // Required.
+ oneof destination {
+ // The Google Cloud Storage location to write the output to.
+ GcsDestination gcs_destination = 1;
+ }
+
+ // The max number of pages to include into each output Document shard JSON on
+ // Google Cloud Storage.
+ //
+ // The valid range is [1, 100]. If not specified, the default value is 20.
+ //
+ // For example, for one pdf file with 100 pages, 100 parsed pages will be
+ // produced. If `pages_per_shard` = 20, then 5 Document shard JSON files each
+ // containing 20 parsed pages will be written under the prefix
+ // [OutputConfig.gcs_destination.uri][] and suffix pages-x-to-y.json where
+ // x and y are 1-indexed page numbers.
+ //
+ // Example GCS outputs with 157 pages and pages_per_shard = 50:
+ //
+ // pages-001-to-050.json
+ // pages-051-to-100.json
+ // pages-101-to-150.json
+ // pages-151-to-157.json
+ int32 pages_per_shard = 2;
+}
+
+// The Google Cloud Storage location where the input file will be read from.
+message GcsSource {
+ string uri = 1 [(google.api.field_behavior) = REQUIRED];
+}
+
+// The Google Cloud Storage location where the output file will be written to.
+message GcsDestination {
+ string uri = 1 [(google.api.field_behavior) = REQUIRED];
+}
+
+// Contains metadata for the BatchProcessDocuments operation.
+message OperationMetadata {
+ enum State {
+ // The default value. This value is used if the state is omitted.
+ STATE_UNSPECIFIED = 0;
+
+ // Request is received.
+ ACCEPTED = 1;
+
+ // Request operation is waiting for scheduling.
+ WAITING = 2;
+
+ // Request is being processed.
+ RUNNING = 3;
+
+ // The batch processing completed successfully.
+ SUCCEEDED = 4;
+
+ // The batch processing was cancelled.
+ CANCELLED = 5;
+
+ // The batch processing has failed.
+ FAILED = 6;
+ }
+
+ // The state of the current batch processing.
+ State state = 1;
+
+ // A message providing more details about the current state of processing.
+ string state_message = 2;
+
+ // The creation time of the operation.
+ google.protobuf.Timestamp create_time = 3;
+
+ // The last update time of the operation.
+ google.protobuf.Timestamp update_time = 4;
+}
diff --git a/packages/google-cloud-documentai/protos/google/cloud/documentai/v1beta2/geometry.proto b/packages/google-cloud-documentai/protos/google/cloud/documentai/v1beta2/geometry.proto
new file mode 100644
index 00000000000..8c97cb995cf
--- /dev/null
+++ b/packages/google-cloud-documentai/protos/google/cloud/documentai/v1beta2/geometry.proto
@@ -0,0 +1,56 @@
+// Copyright 2020 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.documentai.v1beta2;
+
+
+option csharp_namespace = "Google.Cloud.DocumentAI.V1Beta2";
+option go_package = "google.golang.org/genproto/googleapis/cloud/documentai/v1beta2;documentai";
+option java_multiple_files = true;
+option java_outer_classname = "GeometryProto";
+option java_package = "com.google.cloud.documentai.v1beta2";
+option php_namespace = "Google\\Cloud\\DocumentAI\\V1beta2";
+option ruby_package = "Google::Cloud::DocumentAI::V1beta2";
+
+// 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 for the detected image annotation.
+message BoundingPoly {
+ // The bounding polygon vertices.
+ repeated Vertex vertices = 1;
+
+ // The bounding polygon normalized vertices.
+ repeated NormalizedVertex normalized_vertices = 2;
+}
diff --git a/packages/google-cloud-documentai/protos/google/cloud/documentai/v1beta3/barcode.proto b/packages/google-cloud-documentai/protos/google/cloud/documentai/v1beta3/barcode.proto
new file mode 100644
index 00000000000..7c7050a868b
--- /dev/null
+++ b/packages/google-cloud-documentai/protos/google/cloud/documentai/v1beta3/barcode.proto
@@ -0,0 +1,67 @@
+// Copyright 2022 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.documentai.v1beta3;
+
+option csharp_namespace = "Google.Cloud.DocumentAI.V1Beta3";
+option go_package = "google.golang.org/genproto/googleapis/cloud/documentai/v1beta3;documentai";
+option java_multiple_files = true;
+option java_outer_classname = "BarcodeProto";
+option java_package = "com.google.cloud.documentai.v1beta3";
+option php_namespace = "Google\\Cloud\\DocumentAI\\V1beta3";
+option ruby_package = "Google::Cloud::DocumentAI::V1beta3";
+
+// Encodes the detailed information of a barcode.
+message Barcode {
+ // Format of a barcode.
+ // The supported formats are:
+ // CODE_128: Code 128 type.
+ // CODE_39: Code 39 type.
+ // CODE_93: Code 93 type.
+ // CODABAR: Codabar type.
+ // DATA_MATRIX: 2D Data Matrix type.
+ // ITF: ITF type.
+ // EAN_13: EAN-13 type.
+ // EAN_8: EAN-8 type.
+ // QR_CODE: 2D QR code type.
+ // UPC_A: UPC-A type.
+ // UPC_E: UPC-E type.
+ // PDF417: PDF417 type.
+ // AZTEC: 2D Aztec code type.
+ // DATABAR: GS1 DataBar code type.
+ string format = 1;
+
+ // Value format describes the format of the value that a barcode
+ // encodes.
+ // The supported formats are:
+ // CONTACT_INFO: Contact information.
+ // EMAIL: Email address.
+ // ISBN: ISBN identifier.
+ // PHONE: Phone number.
+ // PRODUCT: Product.
+ // SMS: SMS message.
+ // TEXT: Text string.
+ // URL: URL address.
+ // WIFI: Wifi information.
+ // GEO: Geo-localization.
+ // CALENDAR_EVENT: Calendar event.
+ // DRIVER_LICENSE: Driver's license.
+ string value_format = 2;
+
+ // Raw value encoded in the barcode.
+ // For example, 'MEBKM:TITLE:Google;URL:https://www.google.com;;'.
+ string raw_value = 3;
+}
diff --git a/packages/google-cloud-documentai/protos/google/cloud/documentai/v1beta3/document.proto b/packages/google-cloud-documentai/protos/google/cloud/documentai/v1beta3/document.proto
new file mode 100644
index 00000000000..809a64ea4c7
--- /dev/null
+++ b/packages/google-cloud-documentai/protos/google/cloud/documentai/v1beta3/document.proto
@@ -0,0 +1,782 @@
+// Copyright 2022 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.documentai.v1beta3;
+
+import "google/api/field_behavior.proto";
+import "google/cloud/documentai/v1beta3/barcode.proto";
+import "google/cloud/documentai/v1beta3/geometry.proto";
+import "google/protobuf/timestamp.proto";
+import "google/rpc/status.proto";
+import "google/type/color.proto";
+import "google/type/date.proto";
+import "google/type/datetime.proto";
+import "google/type/money.proto";
+import "google/type/postal_address.proto";
+
+option csharp_namespace = "Google.Cloud.DocumentAI.V1Beta3";
+option go_package = "google.golang.org/genproto/googleapis/cloud/documentai/v1beta3;documentai";
+option java_multiple_files = true;
+option java_outer_classname = "DocumentProto";
+option java_package = "com.google.cloud.documentai.v1beta3";
+option php_namespace = "Google\\Cloud\\DocumentAI\\V1beta3";
+option ruby_package = "Google::Cloud::DocumentAI::V1beta3";
+
+// Document represents the canonical document resource in Document AI. It is an
+// interchange format that provides insights into documents and allows for
+// collaboration between users and Document AI to iterate and optimize for
+// quality.
+message Document {
+ // For a large document, sharding may be performed to produce several
+ // document shards. Each document shard contains this field to detail which
+ // shard it is.
+ message ShardInfo {
+ // The 0-based index of this shard.
+ int64 shard_index = 1;
+
+ // Total number of shards.
+ int64 shard_count = 2;
+
+ // The index of the first character in [Document.text][google.cloud.documentai.v1beta3.Document.text] in the overall
+ // document global text.
+ int64 text_offset = 3;
+ }
+
+ // Annotation for common text style attributes. This adheres to CSS
+ // conventions as much as possible.
+ message Style {
+ // Font size with unit.
+ message FontSize {
+ // Font size for the text.
+ float size = 1;
+
+ // Unit for the font size. Follows CSS naming (in, px, pt, etc.).
+ string unit = 2;
+ }
+
+ // Text anchor indexing into the [Document.text][google.cloud.documentai.v1beta3.Document.text].
+ TextAnchor text_anchor = 1;
+
+ // Text color.
+ google.type.Color color = 2;
+
+ // Text background color.
+ google.type.Color background_color = 3;
+
+ // Font weight. Possible values are normal, bold, bolder, and lighter.
+ // https://www.w3schools.com/cssref/pr_font_weight.asp
+ string font_weight = 4;
+
+ // Text style. Possible values are normal, italic, and oblique.
+ // https://www.w3schools.com/cssref/pr_font_font-style.asp
+ string text_style = 5;
+
+ // Text decoration. Follows CSS standard.
+ //
+ // https://www.w3schools.com/cssref/pr_text_text-decoration.asp
+ string text_decoration = 6;
+
+ // Font size.
+ FontSize font_size = 7;
+ }
+
+ // A page in a [Document][google.cloud.documentai.v1beta3.Document].
+ message Page {
+ // Dimension for the page.
+ message Dimension {
+ // Page width.
+ float width = 1;
+
+ // Page height.
+ float height = 2;
+
+ // Dimension unit.
+ string unit = 3;
+ }
+
+ // Rendered image contents for this page.
+ message Image {
+ // Raw byte content of the image.
+ bytes content = 1;
+
+ // Encoding mime type for the image.
+ string mime_type = 2;
+
+ // Width of the image in pixels.
+ int32 width = 3;
+
+ // Height of the image in pixels.
+ int32 height = 4;
+ }
+
+ // Representation for transformation matrix, intended to be compatible and
+ // used with OpenCV format for image manipulation.
+ message Matrix {
+ // Number of rows in the matrix.
+ int32 rows = 1;
+
+ // Number of columns in the matrix.
+ int32 cols = 2;
+
+ // This encodes information about what data type the matrix uses.
+ // For example, 0 (CV_8U) is an unsigned 8-bit image. For the full list
+ // of OpenCV primitive data types, please refer to
+ // https://docs.opencv.org/4.3.0/d1/d1b/group__core__hal__interface.html
+ int32 type = 3;
+
+ // The matrix data.
+ bytes data = 4;
+ }
+
+ // Visual element describing a layout unit on a page.
+ message Layout {
+ // Detected human reading orientation.
+ enum Orientation {
+ // Unspecified orientation.
+ ORIENTATION_UNSPECIFIED = 0;
+
+ // Orientation is aligned with page up.
+ PAGE_UP = 1;
+
+ // Orientation is aligned with page right.
+ // Turn the head 90 degrees clockwise from upright to read.
+ PAGE_RIGHT = 2;
+
+ // Orientation is aligned with page down.
+ // Turn the head 180 degrees from upright to read.
+ PAGE_DOWN = 3;
+
+ // Orientation is aligned with page left.
+ // Turn the head 90 degrees counterclockwise from upright to read.
+ PAGE_LEFT = 4;
+ }
+
+ // Text anchor indexing into the [Document.text][google.cloud.documentai.v1beta3.Document.text].
+ TextAnchor text_anchor = 1;
+
+ // Confidence of the current [Layout][google.cloud.documentai.v1beta3.Document.Page.Layout] within context of the object this
+ // layout is for. e.g. confidence can be for a single token, a table,
+ // a visual element, etc. depending on context. Range [0, 1].
+ float confidence = 2;
+
+ // The bounding polygon for the [Layout][google.cloud.documentai.v1beta3.Document.Page.Layout].
+ BoundingPoly bounding_poly = 3;
+
+ // Detected orientation for the [Layout][google.cloud.documentai.v1beta3.Document.Page.Layout].
+ Orientation orientation = 4;
+ }
+
+ // A block has a set of lines (collected into paragraphs) that have a
+ // common line-spacing and orientation.
+ message Block {
+ // [Layout][google.cloud.documentai.v1beta3.Document.Page.Layout] for [Block][google.cloud.documentai.v1beta3.Document.Page.Block].
+ Layout layout = 1;
+
+ // A list of detected languages together with confidence.
+ repeated DetectedLanguage detected_languages = 2;
+
+ // The history of this annotation.
+ Provenance provenance = 3;
+ }
+
+ // A collection of lines that a human would perceive as a paragraph.
+ message Paragraph {
+ // [Layout][google.cloud.documentai.v1beta3.Document.Page.Layout] for [Paragraph][google.cloud.documentai.v1beta3.Document.Page.Paragraph].
+ Layout layout = 1;
+
+ // A list of detected languages together with confidence.
+ repeated DetectedLanguage detected_languages = 2;
+
+ // The history of this annotation.
+ Provenance provenance = 3;
+ }
+
+ // A collection of tokens that a human would perceive as a line.
+ // Does not cross column boundaries, can be horizontal, vertical, etc.
+ message Line {
+ // [Layout][google.cloud.documentai.v1beta3.Document.Page.Layout] for [Line][google.cloud.documentai.v1beta3.Document.Page.Line].
+ Layout layout = 1;
+
+ // A list of detected languages together with confidence.
+ repeated DetectedLanguage detected_languages = 2;
+
+ // The history of this annotation.
+ Provenance provenance = 3;
+ }
+
+ // A detected token.
+ message Token {
+ // Detected break at the end of a [Token][google.cloud.documentai.v1beta3.Document.Page.Token].
+ message DetectedBreak {
+ // Enum to denote the type of break found.
+ enum Type {
+ // Unspecified break type.
+ TYPE_UNSPECIFIED = 0;
+
+ // A single whitespace.
+ SPACE = 1;
+
+ // A wider whitespace.
+ WIDE_SPACE = 2;
+
+ // A hyphen that indicates that a token has been split across lines.
+ HYPHEN = 3;
+ }
+
+ // Detected break type.
+ Type type = 1;
+ }
+
+ // [Layout][google.cloud.documentai.v1beta3.Document.Page.Layout] for [Token][google.cloud.documentai.v1beta3.Document.Page.Token].
+ Layout layout = 1;
+
+ // Detected break at the end of a [Token][google.cloud.documentai.v1beta3.Document.Page.Token].
+ DetectedBreak detected_break = 2;
+
+ // A list of detected languages together with confidence.
+ repeated DetectedLanguage detected_languages = 3;
+
+ // The history of this annotation.
+ Provenance provenance = 4;
+ }
+
+ // A detected symbol.
+ message Symbol {
+ // [Layout][google.cloud.documentai.v1beta3.Document.Page.Layout] for [Symbol][google.cloud.documentai.v1beta3.Document.Page.Symbol].
+ Layout layout = 1;
+
+ // A list of detected languages together with confidence.
+ repeated DetectedLanguage detected_languages = 2;
+ }
+
+ // Detected non-text visual elements e.g. checkbox, signature etc. on the
+ // page.
+ message VisualElement {
+ // [Layout][google.cloud.documentai.v1beta3.Document.Page.Layout] for [VisualElement][google.cloud.documentai.v1beta3.Document.Page.VisualElement].
+ Layout layout = 1;
+
+ // Type of the [VisualElement][google.cloud.documentai.v1beta3.Document.Page.VisualElement].
+ string type = 2;
+
+ // A list of detected languages together with confidence.
+ repeated DetectedLanguage detected_languages = 3;
+ }
+
+ // A table representation similar to HTML table structure.
+ message Table {
+ // A row of table cells.
+ message TableRow {
+ // Cells that make up this row.
+ repeated TableCell cells = 1;
+ }
+
+ // A cell representation inside the table.
+ message TableCell {
+ // [Layout][google.cloud.documentai.v1beta3.Document.Page.Layout] for [TableCell][google.cloud.documentai.v1beta3.Document.Page.Table.TableCell].
+ Layout layout = 1;
+
+ // How many rows this cell spans.
+ int32 row_span = 2;
+
+ // How many columns this cell spans.
+ int32 col_span = 3;
+
+ // A list of detected languages together with confidence.
+ repeated DetectedLanguage detected_languages = 4;
+ }
+
+ // [Layout][google.cloud.documentai.v1beta3.Document.Page.Layout] for [Table][google.cloud.documentai.v1beta3.Document.Page.Table].
+ Layout layout = 1;
+
+ // Header rows of the table.
+ repeated TableRow header_rows = 2;
+
+ // Body rows of the table.
+ repeated TableRow body_rows = 3;
+
+ // A list of detected languages together with confidence.
+ repeated DetectedLanguage detected_languages = 4;
+ }
+
+ // A form field detected on the page.
+ message FormField {
+ // [Layout][google.cloud.documentai.v1beta3.Document.Page.Layout] for the [FormField][google.cloud.documentai.v1beta3.Document.Page.FormField] name. e.g. `Address`, `Email`,
+ // `Grand total`, `Phone number`, etc.
+ Layout field_name = 1;
+
+ // [Layout][google.cloud.documentai.v1beta3.Document.Page.Layout] for the [FormField][google.cloud.documentai.v1beta3.Document.Page.FormField] value.
+ Layout field_value = 2;
+
+ // A list of detected languages for name together with confidence.
+ repeated DetectedLanguage name_detected_languages = 3;
+
+ // A list of detected languages for value together with confidence.
+ repeated DetectedLanguage value_detected_languages = 4;
+
+ // If the value is non-textual, this field represents the type. Current
+ // valid values are:
+ // - blank (this indicates the field_value is normal text)
+ // - "unfilled_checkbox"
+ // - "filled_checkbox"
+ string value_type = 5;
+
+ // Created for Labeling UI to export key text.
+ // If corrections were made to the text identified by the
+ // `field_name.text_anchor`, this field will contain the correction.
+ string corrected_key_text = 6;
+
+ // Created for Labeling UI to export value text.
+ // If corrections were made to the text identified by the
+ // `field_value.text_anchor`, this field will contain the correction.
+ string corrected_value_text = 7;
+
+ // The history of this annotation.
+ Provenance provenance = 8;
+ }
+
+ // A detected barcode.
+ message DetectedBarcode {
+ // [Layout][google.cloud.documentai.v1beta3.Document.Page.Layout] for [DetectedBarcode][google.cloud.documentai.v1beta3.Document.Page.DetectedBarcode].
+ Layout layout = 1;
+
+ // Detailed barcode information of the [DetectedBarcode][google.cloud.documentai.v1beta3.Document.Page.DetectedBarcode].
+ Barcode barcode = 2;
+ }
+
+ // Detected language for a structural component.
+ message DetectedLanguage {
+ // The BCP-47 language code, such as "en-US" or "sr-Latn". For more
+ // information, see
+ // https://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
+ string language_code = 1;
+
+ // Confidence of detected language. Range [0, 1].
+ float confidence = 2;
+ }
+
+ // 1-based index for current [Page][google.cloud.documentai.v1beta3.Document.Page] in a parent [Document][google.cloud.documentai.v1beta3.Document].
+ // Useful when a page is taken out of a [Document][google.cloud.documentai.v1beta3.Document] for individual
+ // processing.
+ int32 page_number = 1;
+
+ // Rendered image for this page. This image is preprocessed to remove any
+ // skew, rotation, and distortions such that the annotation bounding boxes
+ // can be upright and axis-aligned.
+ Image image = 13;
+
+ // Transformation matrices that were applied to the original document image
+ // to produce [Page.image][google.cloud.documentai.v1beta3.Document.Page.image].
+ repeated Matrix transforms = 14;
+
+ // Physical dimension of the page.
+ Dimension dimension = 2;
+
+ // [Layout][google.cloud.documentai.v1beta3.Document.Page.Layout] for the page.
+ Layout layout = 3;
+
+ // A list of detected languages together with confidence.
+ repeated DetectedLanguage detected_languages = 4;
+
+ // A list of visually detected text blocks on the page.
+ // A block has a set of lines (collected into paragraphs) that have a common
+ // line-spacing and orientation.
+ repeated Block blocks = 5;
+
+ // A list of visually detected text paragraphs on the page.
+ // A collection of lines that a human would perceive as a paragraph.
+ repeated Paragraph paragraphs = 6;
+
+ // A list of visually detected text lines on the page.
+ // A collection of tokens that a human would perceive as a line.
+ repeated Line lines = 7;
+
+ // A list of visually detected tokens on the page.
+ repeated Token tokens = 8;
+
+ // A list of detected non-text visual elements e.g. checkbox,
+ // signature etc. on the page.
+ repeated VisualElement visual_elements = 9;
+
+ // A list of visually detected tables on the page.
+ repeated Table tables = 10;
+
+ // A list of visually detected form fields on the page.
+ repeated FormField form_fields = 11;
+
+ // A list of visually detected symbols on the page.
+ repeated Symbol symbols = 12;
+
+ // A list of detected barcodes.
+ repeated DetectedBarcode detected_barcodes = 15;
+
+ // The history of this page.
+ Provenance provenance = 16;
+ }
+
+ // An entity that could be a phrase in the text or a property that belongs to
+ // the document. It is a known entity type, such as a person, an organization,
+ // or location.
+ message Entity {
+ // Parsed and normalized entity value.
+ message NormalizedValue {
+ // An optional structured entity value.
+ // Must match entity type defined in schema if
+ // known. If this field is present, the `text` field could also be
+ // populated.
+ oneof structured_value {
+ // Money value. See also:
+ // https://github.com/googleapis/googleapis/blob/master/google/type/money.proto
+ google.type.Money money_value = 2;
+
+ // Date value. Includes year, month, day. See also:
+ // https://github.com/googleapis/googleapis/blob/master/google/type/date.proto
+ google.type.Date date_value = 3;
+
+ // DateTime value. Includes date, time, and timezone. See also:
+ // https://github.com/googleapis/googleapis/blob/master/google/type/datetime.proto
+ google.type.DateTime datetime_value = 4;
+
+ // Postal address. See also:
+ // https://github.com/googleapis/googleapis/blob/master/google/type/postal_address.proto
+ google.type.PostalAddress address_value = 5;
+
+ // Boolean value. Can be used for entities with binary values, or for
+ // checkboxes.
+ bool boolean_value = 6;
+
+ // Integer value.
+ int32 integer_value = 7;
+
+ // Float value.
+ float float_value = 8;
+ }
+
+ // Optional. An optional field to store a normalized string.
+ // For some entity types, one of respective `structured_value` fields may
+ // also be populated. Also not all the types of `structured_value` will be
+ // normalized. For example, some processors may not generate float
+ // or int normalized text by default.
+ //
+ // Below are sample formats mapped to structured values.
+ // - Money/Currency type (`money_value`) is in the ISO 4217 text format.
+ // - Date type (`date_value`) is in the ISO 8601 text format.
+ // - Datetime type (`datetime_value`) is in the ISO 8601 text format.
+ string text = 1 [(google.api.field_behavior) = OPTIONAL];
+ }
+
+ // Optional. Provenance of the entity.
+ // Text anchor indexing into the [Document.text][google.cloud.documentai.v1beta3.Document.text].
+ TextAnchor text_anchor = 1 [(google.api.field_behavior) = OPTIONAL];
+
+ // Required. Entity type from a schema e.g. `Address`.
+ string type = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // Optional. Text value in the document e.g. `1600 Amphitheatre Pkwy`. If the entity
+ // is not present in the document, this field will be empty.
+ string mention_text = 3 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Deprecated. Use `id` field instead.
+ string mention_id = 4 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Confidence of detected Schema entity. Range [0, 1].
+ float confidence = 5 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Represents the provenance of this entity wrt. the location on the
+ // page where it was found.
+ PageAnchor page_anchor = 6 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Canonical id. This will be a unique value in the entity list
+ // for this document.
+ string id = 7 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Normalized entity value. Absent if the extracted value could not be
+ // converted or the type (e.g. address) is not supported for certain
+ // parsers. This field is also only populated for certain supported document
+ // types.
+ NormalizedValue normalized_value = 9 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Entities can be nested to form a hierarchical data structure representing
+ // the content in the document.
+ repeated Entity properties = 10 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The history of this annotation.
+ Provenance provenance = 11 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Whether the entity will be redacted for de-identification purposes.
+ bool redacted = 12 [(google.api.field_behavior) = OPTIONAL];
+ }
+
+ // Relationship between [Entities][google.cloud.documentai.v1beta3.Document.Entity].
+ message EntityRelation {
+ // Subject entity id.
+ string subject_id = 1;
+
+ // Object entity id.
+ string object_id = 2;
+
+ // Relationship description.
+ string relation = 3;
+ }
+
+ // Text reference indexing into the [Document.text][google.cloud.documentai.v1beta3.Document.text].
+ message TextAnchor {
+ // A text segment in the [Document.text][google.cloud.documentai.v1beta3.Document.text]. The indices may be out of bounds
+ // which indicate that the text extends into another document shard for
+ // large sharded documents. See [ShardInfo.text_offset][google.cloud.documentai.v1beta3.Document.ShardInfo.text_offset]
+ message TextSegment {
+ // [TextSegment][google.cloud.documentai.v1beta3.Document.TextAnchor.TextSegment] start UTF-8 char index in the [Document.text][google.cloud.documentai.v1beta3.Document.text].
+ int64 start_index = 1;
+
+ // [TextSegment][google.cloud.documentai.v1beta3.Document.TextAnchor.TextSegment] half open end UTF-8 char index in the
+ // [Document.text][google.cloud.documentai.v1beta3.Document.text].
+ int64 end_index = 2;
+ }
+
+ // The text segments from the [Document.text][google.cloud.documentai.v1beta3.Document.text].
+ repeated TextSegment text_segments = 1;
+
+ // Contains the content of the text span so that users do
+ // not have to look it up in the text_segments. It is always
+ // populated for formFields.
+ string content = 2;
+ }
+
+ // Referencing the visual context of the entity in the [Document.pages][google.cloud.documentai.v1beta3.Document.pages].
+ // Page anchors can be cross-page, consist of multiple bounding polygons and
+ // optionally reference specific layout element types.
+ message PageAnchor {
+ // Represents a weak reference to a page element within a document.
+ message PageRef {
+ // The type of layout that is being referenced.
+ enum LayoutType {
+ // Layout Unspecified.
+ LAYOUT_TYPE_UNSPECIFIED = 0;
+
+ // References a [Page.blocks][google.cloud.documentai.v1beta3.Document.Page.blocks] element.
+ BLOCK = 1;
+
+ // References a [Page.paragraphs][google.cloud.documentai.v1beta3.Document.Page.paragraphs] element.
+ PARAGRAPH = 2;
+
+ // References a [Page.lines][google.cloud.documentai.v1beta3.Document.Page.lines] element.
+ LINE = 3;
+
+ // References a [Page.tokens][google.cloud.documentai.v1beta3.Document.Page.tokens] element.
+ TOKEN = 4;
+
+ // References a [Page.visual_elements][google.cloud.documentai.v1beta3.Document.Page.visual_elements] element.
+ VISUAL_ELEMENT = 5;
+
+ // Refrrences a [Page.tables][google.cloud.documentai.v1beta3.Document.Page.tables] element.
+ TABLE = 6;
+
+ // References a [Page.form_fields][google.cloud.documentai.v1beta3.Document.Page.form_fields] element.
+ FORM_FIELD = 7;
+ }
+
+ // Required. Index into the [Document.pages][google.cloud.documentai.v1beta3.Document.pages] element, for example using
+ // [Document.pages][page_refs.page] to locate the related page element.
+ // This field is skipped when its value is the default 0. See
+ // https://developers.google.com/protocol-buffers/docs/proto3#json.
+ int64 page = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Optional. The type of the layout element that is being referenced if any.
+ LayoutType layout_type = 2 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Deprecated. Use [PageRef.bounding_poly][google.cloud.documentai.v1beta3.Document.PageAnchor.PageRef.bounding_poly] instead.
+ string layout_id = 3 [
+ deprecated = true,
+ (google.api.field_behavior) = OPTIONAL
+ ];
+
+ // Optional. Identifies the bounding polygon of a layout element on the page.
+ BoundingPoly bounding_poly = 4 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Confidence of detected page element, if applicable. Range [0, 1].
+ float confidence = 5 [(google.api.field_behavior) = OPTIONAL];
+ }
+
+ // One or more references to visual page elements
+ repeated PageRef page_refs = 1;
+ }
+
+ // Structure to identify provenance relationships between annotations in
+ // different revisions.
+ message Provenance {
+ // The parent element the current element is based on. Used for
+ // referencing/aligning, removal and replacement operations.
+ message Parent {
+ // The index of the index into current revision's parent_ids list.
+ int32 revision = 1;
+
+ // The index of the parent item in the corresponding item list (eg. list
+ // of entities, properties within entities, etc.) in the parent revision.
+ int32 index = 3;
+
+ // The id of the parent provenance.
+ int32 id = 2 [deprecated = true];
+ }
+
+ // If a processor or agent does an explicit operation on existing elements.
+ enum OperationType {
+ // Operation type unspecified. If no operation is specified a provenance
+ // entry is simply used to match against a `parent`.
+ OPERATION_TYPE_UNSPECIFIED = 0;
+
+ // Add an element.
+ ADD = 1;
+
+ // Remove an element identified by `parent`.
+ REMOVE = 2;
+
+ // Replace an element identified by `parent`.
+ REPLACE = 3;
+
+ // Request human review for the element identified by `parent`.
+ EVAL_REQUESTED = 4;
+
+ // Element is reviewed and approved at human review, confidence will be
+ // set to 1.0.
+ EVAL_APPROVED = 5;
+
+ // Element is skipped in the validation process.
+ EVAL_SKIPPED = 6;
+ }
+
+ // The index of the revision that produced this element.
+ int32 revision = 1;
+
+ // The Id of this operation. Needs to be unique within the scope of the
+ // revision.
+ int32 id = 2 [deprecated = true];
+
+ // References to the original elements that are replaced.
+ repeated Parent parents = 3;
+
+ // The type of provenance operation.
+ OperationType type = 4;
+ }
+
+ // Contains past or forward revisions of this document.
+ message Revision {
+ // Human Review information of the document.
+ message HumanReview {
+ // Human review state. e.g. `requested`, `succeeded`, `rejected`.
+ string state = 1;
+
+ // A message providing more details about the current state of processing.
+ // For example, the rejection reason when the state is `rejected`.
+ string state_message = 2;
+ }
+
+ // Who/what made the change
+ oneof source {
+ // If the change was made by a person specify the name or id of that
+ // person.
+ string agent = 4;
+
+ // If the annotation was made by processor identify the processor by its
+ // resource name.
+ string processor = 5;
+ }
+
+ // Id of the revision. Unique within the context of the document.
+ string id = 1;
+
+ // The revisions that this revision is based on. This can include one or
+ // more parent (when documents are merged.) This field represents the
+ // index into the `revisions` field.
+ repeated int32 parent = 2 [deprecated = true];
+
+ // The revisions that this revision is based on. Must include all the ids
+ // that have anything to do with this revision - eg. there are
+ // `provenance.parent.revision` fields that index into this field.
+ repeated string parent_ids = 7;
+
+ // The time that the revision was created.
+ google.protobuf.Timestamp create_time = 3;
+
+ // Human Review information of this revision.
+ HumanReview human_review = 6;
+ }
+
+ // This message is used for text changes aka. OCR corrections.
+ message TextChange {
+ // Provenance of the correction.
+ // Text anchor indexing into the [Document.text][google.cloud.documentai.v1beta3.Document.text]. There can only be a
+ // single `TextAnchor.text_segments` element. If the start and
+ // end index of the text segment are the same, the text change is inserted
+ // before that index.
+ TextAnchor text_anchor = 1;
+
+ // The text that replaces the text identified in the `text_anchor`.
+ string changed_text = 2;
+
+ // The history of this annotation.
+ repeated Provenance provenance = 3;
+ }
+
+ // Original source document from the user.
+ oneof source {
+ // Optional. Currently supports Google Cloud Storage URI of the form
+ // `gs://bucket_name/object_name`. Object versioning is not supported.
+ // See [Google Cloud Storage Request
+ // URIs](https://cloud.google.com/storage/docs/reference-uris) for more
+ // info.
+ string uri = 1 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Inline document content, represented as a stream of bytes.
+ // Note: As with all `bytes` fields, protobuffers use a pure binary
+ // representation, whereas JSON representations use base64.
+ bytes content = 2 [(google.api.field_behavior) = OPTIONAL];
+ }
+
+ // An IANA published MIME type (also referred to as media type). For more
+ // information, see
+ // https://www.iana.org/assignments/media-types/media-types.xhtml.
+ string mime_type = 3;
+
+ // Optional. UTF-8 encoded text in reading order from the document.
+ string text = 4 [(google.api.field_behavior) = OPTIONAL];
+
+ // Placeholder. Styles for the [Document.text][google.cloud.documentai.v1beta3.Document.text].
+ repeated Style text_styles = 5;
+
+ // Visual page layout for the [Document][google.cloud.documentai.v1beta3.Document].
+ repeated Page pages = 6;
+
+ // A list of entities detected on [Document.text][google.cloud.documentai.v1beta3.Document.text]. For document shards,
+ // entities in this list may cross shard boundaries.
+ repeated Entity entities = 7;
+
+ // Placeholder. Relationship among [Document.entities][google.cloud.documentai.v1beta3.Document.entities].
+ repeated EntityRelation entity_relations = 8;
+
+ // Placeholder. A list of text corrections made to [Document.text]. This is
+ // usually used for annotating corrections to OCR mistakes. Text changes for
+ // a given revision may not overlap with each other.
+ repeated TextChange text_changes = 14;
+
+ // Information about the sharding if this document is sharded part of a larger
+ // document. If the document is not sharded, this message is not specified.
+ ShardInfo shard_info = 9;
+
+ // Any error that occurred while processing this document.
+ google.rpc.Status error = 10;
+
+ // Placeholder. Revision history of this document.
+ repeated Revision revisions = 13;
+}
diff --git a/packages/google-cloud-documentai/protos/google/cloud/documentai/v1beta3/document_io.proto b/packages/google-cloud-documentai/protos/google/cloud/documentai/v1beta3/document_io.proto
new file mode 100644
index 00000000000..a0d410c8cb4
--- /dev/null
+++ b/packages/google-cloud-documentai/protos/google/cloud/documentai/v1beta3/document_io.proto
@@ -0,0 +1,84 @@
+// Copyright 2022 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.documentai.v1beta3;
+
+option csharp_namespace = "Google.Cloud.DocumentAI.V1Beta3";
+option go_package = "google.golang.org/genproto/googleapis/cloud/documentai/v1beta3;documentai";
+option java_multiple_files = true;
+option java_outer_classname = "DocumentIoProto";
+option java_package = "com.google.cloud.documentai.v1beta3";
+option php_namespace = "Google\\Cloud\\DocumentAI\\V1beta3";
+option ruby_package = "Google::Cloud::DocumentAI::V1beta3";
+
+// Payload message of raw document content (bytes).
+message RawDocument {
+ // Inline document content.
+ bytes content = 1;
+
+ // An IANA MIME type (RFC6838) indicating the nature and format of the
+ // [content].
+ string mime_type = 2;
+}
+
+// Specifies a document stored on Cloud Storage.
+message GcsDocument {
+ // The Cloud Storage object uri.
+ string gcs_uri = 1;
+
+ // An IANA MIME type (RFC6838) of the content.
+ string mime_type = 2;
+}
+
+// Specifies a set of documents on Cloud Storage.
+message GcsDocuments {
+ // The list of documents.
+ repeated GcsDocument documents = 1;
+}
+
+// Specifies all documents on Cloud Storage with a common prefix.
+message GcsPrefix {
+ // The URI prefix.
+ string gcs_uri_prefix = 1;
+}
+
+// The common config to specify a set of documents used as input.
+message BatchDocumentsInputConfig {
+ // The source.
+ oneof source {
+ // The set of documents that match the specified Cloud Storage [gcs_prefix].
+ GcsPrefix gcs_prefix = 1;
+
+ // The set of documents individually specified on Cloud Storage.
+ GcsDocuments gcs_documents = 2;
+ }
+}
+
+// Config that controls the output of documents. All documents will be written
+// as a JSON file.
+message DocumentOutputConfig {
+ // The configuration used when outputting documents.
+ message GcsOutputConfig {
+ // The Cloud Storage uri (a directory) of the output.
+ string gcs_uri = 1;
+ }
+
+ // The destination of the results.
+ oneof destination {
+ // Output config to write the results to Cloud Storage.
+ GcsOutputConfig gcs_output_config = 1;
+ }
+}
diff --git a/packages/google-cloud-documentai/protos/google/cloud/documentai/v1beta3/document_processor_service.proto b/packages/google-cloud-documentai/protos/google/cloud/documentai/v1beta3/document_processor_service.proto
new file mode 100644
index 00000000000..952db5904d5
--- /dev/null
+++ b/packages/google-cloud-documentai/protos/google/cloud/documentai/v1beta3/document_processor_service.proto
@@ -0,0 +1,878 @@
+// Copyright 2022 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.documentai.v1beta3;
+
+import "google/api/annotations.proto";
+import "google/api/client.proto";
+import "google/api/field_behavior.proto";
+import "google/api/resource.proto";
+import "google/cloud/documentai/v1beta3/document.proto";
+import "google/cloud/documentai/v1beta3/document_io.proto";
+import "google/cloud/documentai/v1beta3/document_schema.proto";
+import "google/cloud/documentai/v1beta3/operation_metadata.proto";
+import "google/cloud/documentai/v1beta3/processor.proto";
+import "google/cloud/documentai/v1beta3/processor_type.proto";
+import "google/longrunning/operations.proto";
+import "google/protobuf/field_mask.proto";
+import "google/protobuf/timestamp.proto";
+import "google/rpc/status.proto";
+
+option csharp_namespace = "Google.Cloud.DocumentAI.V1Beta3";
+option go_package = "google.golang.org/genproto/googleapis/cloud/documentai/v1beta3;documentai";
+option java_multiple_files = true;
+option java_outer_classname = "DocumentAiProcessorService";
+option java_package = "com.google.cloud.documentai.v1beta3";
+option php_namespace = "Google\\Cloud\\DocumentAI\\V1beta3";
+option ruby_package = "Google::Cloud::DocumentAI::V1beta3";
+option (google.api.resource_definition) = {
+ type: "documentai.googleapis.com/HumanReviewConfig"
+ pattern: "projects/{project}/locations/{location}/processors/{processor}/humanReviewConfig"
+};
+option (google.api.resource_definition) = {
+ type: "documentai.googleapis.com/Location"
+ pattern: "projects/{project}/locations/{location}"
+};
+
+// Service to call Cloud DocumentAI to process documents according to the
+// processor's definition. Processors are built using state-of-the-art Google
+// AI such as natural language, computer vision, and translation to extract
+// structured information from unstructured or semi-structured documents.
+service DocumentProcessorService {
+ option (google.api.default_host) = "documentai.googleapis.com";
+ option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform";
+
+ // Processes a single document.
+ rpc ProcessDocument(ProcessRequest) returns (ProcessResponse) {
+ option (google.api.http) = {
+ post: "/v1beta3/{name=projects/*/locations/*/processors/*}:process"
+ body: "*"
+ additional_bindings {
+ post: "/v1beta3/{name=projects/*/locations/*/processors/*/processorVersions/*}:process"
+ body: "*"
+ }
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // LRO endpoint to batch process many documents. The output is written
+ // to Cloud Storage as JSON in the [Document] format.
+ rpc BatchProcessDocuments(BatchProcessRequest) returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ post: "/v1beta3/{name=projects/*/locations/*/processors/*}:batchProcess"
+ body: "*"
+ additional_bindings {
+ post: "/v1beta3/{name=projects/*/locations/*/processors/*/processorVersions/*}:batchProcess"
+ body: "*"
+ }
+ };
+ option (google.api.method_signature) = "name";
+ option (google.longrunning.operation_info) = {
+ response_type: "BatchProcessResponse"
+ metadata_type: "BatchProcessMetadata"
+ };
+ }
+
+ // Fetches processor types. Note that we do not use ListProcessorTypes here
+ // because it is not paginated.
+ rpc FetchProcessorTypes(FetchProcessorTypesRequest) returns (FetchProcessorTypesResponse) {
+ option (google.api.http) = {
+ get: "/v1beta3/{parent=projects/*/locations/*}:fetchProcessorTypes"
+ };
+ option (google.api.method_signature) = "parent";
+ }
+
+ // Lists the processor types that exist.
+ rpc ListProcessorTypes(ListProcessorTypesRequest) returns (ListProcessorTypesResponse) {
+ option (google.api.http) = {
+ get: "/v1beta3/{parent=projects/*/locations/*}/processorTypes"
+ };
+ option (google.api.method_signature) = "parent";
+ }
+
+ // Lists all processors which belong to this project.
+ rpc ListProcessors(ListProcessorsRequest) returns (ListProcessorsResponse) {
+ option (google.api.http) = {
+ get: "/v1beta3/{parent=projects/*/locations/*}/processors"
+ };
+ option (google.api.method_signature) = "parent";
+ }
+
+ // Gets a processor detail.
+ rpc GetProcessor(GetProcessorRequest) returns (Processor) {
+ option (google.api.http) = {
+ get: "/v1beta3/{name=projects/*/locations/*/processors/*}"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // Gets a processor version detail.
+ rpc GetProcessorVersion(GetProcessorVersionRequest) returns (ProcessorVersion) {
+ option (google.api.http) = {
+ get: "/v1beta3/{name=projects/*/locations/*/processors/*/processorVersions/*}"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // Lists all versions of a processor.
+ rpc ListProcessorVersions(ListProcessorVersionsRequest) returns (ListProcessorVersionsResponse) {
+ option (google.api.http) = {
+ get: "/v1beta3/{parent=projects/*/locations/*/processors/*}/processorVersions"
+ };
+ option (google.api.method_signature) = "parent";
+ }
+
+ // Deletes the processor version, all artifacts under the processor version
+ // will be deleted.
+ rpc DeleteProcessorVersion(DeleteProcessorVersionRequest) returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ delete: "/v1beta3/{name=projects/*/locations/*/processors/*/processorVersions/*}"
+ };
+ option (google.api.method_signature) = "name";
+ option (google.longrunning.operation_info) = {
+ response_type: "google.protobuf.Empty"
+ metadata_type: "DeleteProcessorVersionMetadata"
+ };
+ }
+
+ // Deploys the processor version.
+ rpc DeployProcessorVersion(DeployProcessorVersionRequest) returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ post: "/v1beta3/{name=projects/*/locations/*/processors/*/processorVersions/*}:deploy"
+ body: "*"
+ };
+ option (google.api.method_signature) = "name";
+ option (google.longrunning.operation_info) = {
+ response_type: "DeployProcessorVersionResponse"
+ metadata_type: "DeployProcessorVersionMetadata"
+ };
+ }
+
+ // Undeploys the processor version.
+ rpc UndeployProcessorVersion(UndeployProcessorVersionRequest) returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ post: "/v1beta3/{name=projects/*/locations/*/processors/*/processorVersions/*}:undeploy"
+ body: "*"
+ };
+ option (google.api.method_signature) = "name";
+ option (google.longrunning.operation_info) = {
+ response_type: "UndeployProcessorVersionResponse"
+ metadata_type: "UndeployProcessorVersionMetadata"
+ };
+ }
+
+ // Creates a processor from the type processor that the user chose.
+ // The processor will be at "ENABLED" state by default after its creation.
+ rpc CreateProcessor(CreateProcessorRequest) returns (Processor) {
+ option (google.api.http) = {
+ post: "/v1beta3/{parent=projects/*/locations/*}/processors"
+ body: "processor"
+ };
+ option (google.api.method_signature) = "parent,processor";
+ }
+
+ // Deletes the processor, unloads all deployed model artifacts if it was
+ // enabled and then deletes all artifacts associated with this processor.
+ rpc DeleteProcessor(DeleteProcessorRequest) returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ delete: "/v1beta3/{name=projects/*/locations/*/processors/*}"
+ };
+ option (google.api.method_signature) = "name";
+ option (google.longrunning.operation_info) = {
+ response_type: "google.protobuf.Empty"
+ metadata_type: "DeleteProcessorMetadata"
+ };
+ }
+
+ // Enables a processor
+ rpc EnableProcessor(EnableProcessorRequest) returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ post: "/v1beta3/{name=projects/*/locations/*/processors/*}:enable"
+ body: "*"
+ };
+ option (google.longrunning.operation_info) = {
+ response_type: "EnableProcessorResponse"
+ metadata_type: "EnableProcessorMetadata"
+ };
+ }
+
+ // Disables a processor
+ rpc DisableProcessor(DisableProcessorRequest) returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ post: "/v1beta3/{name=projects/*/locations/*/processors/*}:disable"
+ body: "*"
+ };
+ option (google.longrunning.operation_info) = {
+ response_type: "DisableProcessorResponse"
+ metadata_type: "DisableProcessorMetadata"
+ };
+ }
+
+ // Set the default (active) version of a [Processor][google.cloud.documentai.v1beta3.Processor] that will be used in
+ // [ProcessDocument][google.cloud.documentai.v1beta3.DocumentProcessorService.ProcessDocument] and
+ // [BatchProcessDocuments][google.cloud.documentai.v1beta3.DocumentProcessorService.BatchProcessDocuments].
+ rpc SetDefaultProcessorVersion(SetDefaultProcessorVersionRequest) returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ post: "/v1beta3/{processor=projects/*/locations/*/processors/*}:setDefaultProcessorVersion"
+ body: "*"
+ };
+ option (google.longrunning.operation_info) = {
+ response_type: "SetDefaultProcessorVersionResponse"
+ metadata_type: "SetDefaultProcessorVersionMetadata"
+ };
+ }
+
+ // Send a document for Human Review. The input document should be processed by
+ // the specified processor.
+ rpc ReviewDocument(ReviewDocumentRequest) returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ post: "/v1beta3/{human_review_config=projects/*/locations/*/processors/*/humanReviewConfig}:reviewDocument"
+ body: "*"
+ };
+ option (google.api.method_signature) = "human_review_config";
+ option (google.longrunning.operation_info) = {
+ response_type: "ReviewDocumentResponse"
+ metadata_type: "ReviewDocumentOperationMetadata"
+ };
+ }
+}
+
+// Request message for the process document method.
+message ProcessRequest {
+ // The document payload.
+ oneof source {
+ // An inline document proto.
+ Document inline_document = 4;
+
+ // A raw document content (bytes).
+ RawDocument raw_document = 5;
+ }
+
+ // Required. The resource name of the [Processor][google.cloud.documentai.v1beta3.Processor] or
+ // [ProcessorVersion][google.cloud.documentai.v1beta3.ProcessorVersion]
+ // to use for processing. If a [Processor][google.cloud.documentai.v1beta3.Processor] is specified, the server will use
+ // its [default version][google.cloud.documentai.v1beta3.Processor.default_processor_version]. Format:
+ // `projects/{project}/locations/{location}/processors/{processor}`, or
+ // `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}`
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "*"
+ }
+ ];
+
+ // The document payload, the [content] and [mime_type] fields must be set.
+ Document document = 2 [deprecated = true];
+
+ // Whether Human Review feature should be skipped for this request. Default to
+ // false.
+ bool skip_human_review = 3;
+
+ // Specifies which fields to include in ProcessResponse's document.
+ google.protobuf.FieldMask field_mask = 6;
+}
+
+// The status of human review on a processed document.
+message HumanReviewStatus {
+ // The final state of human review on a processed document.
+ enum State {
+ // Human review state is unspecified. Most likely due to an internal error.
+ STATE_UNSPECIFIED = 0;
+
+ // Human review is skipped for the document. This can happen because human
+ // review is not enabled on the processor or the processing request has
+ // been set to skip this document.
+ SKIPPED = 1;
+
+ // Human review validation is triggered and passed, so no review is needed.
+ VALIDATION_PASSED = 2;
+
+ // Human review validation is triggered and the document is under review.
+ IN_PROGRESS = 3;
+
+ // Some error happened during triggering human review, see the
+ // [state_message] for details.
+ ERROR = 4;
+ }
+
+ // The state of human review on the processing request.
+ State state = 1;
+
+ // A message providing more details about the human review state.
+ string state_message = 2;
+
+ // The name of the operation triggered by the processed document. This field
+ // is populated only when the [state] is [HUMAN_REVIEW_IN_PROGRESS]. It has
+ // the same response type and metadata as the long running operation returned
+ // by [ReviewDocument] method.
+ string human_review_operation = 3;
+}
+
+// Response message for the process document method.
+message ProcessResponse {
+ // The document payload, will populate fields based on the processor's
+ // behavior.
+ Document document = 1;
+
+ // The name of the operation triggered by the processed document. If the human
+ // review process is not triggered, this field will be empty. It has the same
+ // response type and metadata as the long running operation returned by
+ // ReviewDocument method.
+ string human_review_operation = 2 [deprecated = true];
+
+ // The status of human review on the processed document.
+ HumanReviewStatus human_review_status = 3;
+}
+
+// Request message for batch process document method.
+message BatchProcessRequest {
+ // The message for input config in batch process.
+ message BatchInputConfig {
+ option deprecated = true;
+
+ // The Cloud Storage location as the source of the document.
+ string gcs_source = 1;
+
+ // Mimetype of the input. If the input is a raw document, the supported
+ // mimetypes are application/pdf, image/tiff, and image/gif.
+ // If the input is a [Document] proto, the type should be application/json.
+ string mime_type = 2;
+ }
+
+ // The message for output config in batch process.
+ message BatchOutputConfig {
+ option deprecated = true;
+
+ // The output Cloud Storage directory to put the processed documents.
+ string gcs_destination = 1;
+ }
+
+ // Required. The resource name of [Processor][google.cloud.documentai.v1beta3.Processor] or
+ // [ProcessorVersion][google.cloud.documentai.v1beta3.ProcessorVersion].
+ // Format: `projects/{project}/locations/{location}/processors/{processor}`,
+ // or
+ // `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}`
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "*"
+ }
+ ];
+
+ // The input config for each single document in the batch process.
+ repeated BatchInputConfig input_configs = 2 [deprecated = true];
+
+ // The overall output config for batch process.
+ BatchOutputConfig output_config = 3 [deprecated = true];
+
+ // The input documents for batch process.
+ BatchDocumentsInputConfig input_documents = 5;
+
+ // The overall output config for batch process.
+ DocumentOutputConfig document_output_config = 6;
+
+ // Whether Human Review feature should be skipped for this request. Default to
+ // false.
+ bool skip_human_review = 4;
+}
+
+// Response message for batch process document method.
+message BatchProcessResponse {
+
+}
+
+// The long running operation metadata for batch process method.
+message BatchProcessMetadata {
+ // The status of a each individual document in the batch process.
+ message IndividualProcessStatus {
+ // The source of the document, same as the [input_gcs_source] field in the
+ // request when the batch process started. The batch process is started by
+ // take snapshot of that document, since a user can move or change that
+ // document during the process.
+ string input_gcs_source = 1;
+
+ // The status processing the document.
+ google.rpc.Status status = 2;
+
+ // The output_gcs_destination (in the request as `output_gcs_destination`)
+ // of the processed document if it was successful, otherwise empty.
+ string output_gcs_destination = 3;
+
+ // The name of the operation triggered by the processed document. If the
+ // human review process is not triggered, this field will be empty. It has
+ // the same response type and metadata as the long running operation
+ // returned by ReviewDocument method.
+ string human_review_operation = 4 [deprecated = true];
+
+ // The status of human review on the processed document.
+ HumanReviewStatus human_review_status = 5;
+ }
+
+ // Possible states of the batch processing operation.
+ enum State {
+ // The default value. This value is used if the state is omitted.
+ STATE_UNSPECIFIED = 0;
+
+ // Request operation is waiting for scheduling.
+ WAITING = 1;
+
+ // Request is being processed.
+ RUNNING = 2;
+
+ // The batch processing completed successfully.
+ SUCCEEDED = 3;
+
+ // The batch processing was being cancelled.
+ CANCELLING = 4;
+
+ // The batch processing was cancelled.
+ CANCELLED = 5;
+
+ // The batch processing has failed.
+ FAILED = 6;
+ }
+
+ // The state of the current batch processing.
+ State state = 1;
+
+ // A message providing more details about the current state of processing.
+ // For example, the error message if the operation is failed.
+ string state_message = 2;
+
+ // The creation time of the operation.
+ google.protobuf.Timestamp create_time = 3;
+
+ // The last update time of the operation.
+ google.protobuf.Timestamp update_time = 4;
+
+ // The list of response details of each document.
+ repeated IndividualProcessStatus individual_process_statuses = 5;
+}
+
+// Request message for fetch processor types.
+message FetchProcessorTypesRequest {
+ // Required. The project of processor type to list.
+ // The available processor types may depend on the allow-listing on projects.
+ // Format: `projects/{project}/locations/{location}`
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ child_type: "documentai.googleapis.com/ProcessorType"
+ }
+ ];
+}
+
+// Response message for fetch processor types.
+message FetchProcessorTypesResponse {
+ // The list of processor types.
+ repeated ProcessorType processor_types = 1;
+}
+
+// Request message for list processor types.
+message ListProcessorTypesRequest {
+ // Required. The location of processor type to list.
+ // The available processor types may depend on the allow-listing on projects.
+ // Format: `projects/{project}/locations/{location}`
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ child_type: "documentai.googleapis.com/ProcessorType"
+ }
+ ];
+
+ // The maximum number of processor types to return.
+ // If unspecified, at most 100 processor types will be returned.
+ // The maximum value is 500; values above 500 will be coerced to 500.
+ int32 page_size = 2;
+
+ // Used to retrieve the next page of results, empty if at the end of the list.
+ string page_token = 3;
+}
+
+// Response message for list processor types.
+message ListProcessorTypesResponse {
+ // The processor types.
+ repeated ProcessorType processor_types = 1;
+
+ // Points to the next page, otherwise empty.
+ string next_page_token = 2;
+}
+
+// Request message for list all processors belongs to a project.
+message ListProcessorsRequest {
+ // Required. The parent (project and location) which owns this collection of Processors.
+ // Format: `projects/{project}/locations/{location}`
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ child_type: "documentai.googleapis.com/Processor"
+ }
+ ];
+
+ // The maximum number of processors to return.
+ // If unspecified, at most 50 processors will be returned.
+ // The maximum value is 100; values above 100 will be coerced to 100.
+ int32 page_size = 2;
+
+ // We will return the processors sorted by creation time. The page token
+ // will point to the next processor.
+ string page_token = 3;
+}
+
+// Response message for list processors.
+message ListProcessorsResponse {
+ // The list of processors.
+ repeated Processor processors = 1;
+
+ // Points to the next processor, otherwise empty.
+ string next_page_token = 2;
+}
+
+// Request message for get processor.
+message GetProcessorRequest {
+ // Required. The processor resource name.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "documentai.googleapis.com/Processor"
+ }
+ ];
+}
+
+// Request message for get processor version.
+message GetProcessorVersionRequest {
+ // Required. The processor resource name.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "documentai.googleapis.com/ProcessorVersion"
+ }
+ ];
+}
+
+// Request message for list all processor versions belongs to a processor.
+message ListProcessorVersionsRequest {
+ // Required. The parent (project, location and processor) to list all versions.
+ // Format: `projects/{project}/locations/{location}/processors/{processor}`
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ child_type: "documentai.googleapis.com/ProcessorVersion"
+ }
+ ];
+
+ // The maximum number of processor versions to return.
+ // If unspecified, at most 10 processor versions will be returned.
+ // The maximum value is 20; values above 20 will be coerced to 20.
+ int32 page_size = 2;
+
+ // We will return the processor versions sorted by creation time. The page
+ // token will point to the next processor version.
+ string page_token = 3;
+}
+
+// Response message for list processors.
+message ListProcessorVersionsResponse {
+ // The list of processors.
+ repeated ProcessorVersion processor_versions = 1;
+
+ // Points to the next processor, otherwise empty.
+ string next_page_token = 2;
+}
+
+// Request message for the delete processor version method.
+message DeleteProcessorVersionRequest {
+ // Required. The processor version resource name to be deleted.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "documentai.googleapis.com/ProcessorVersion"
+ }
+ ];
+}
+
+// The long running operation metadata for delete processor version method.
+message DeleteProcessorVersionMetadata {
+ // The basic metadata of the long running operation.
+ CommonOperationMetadata common_metadata = 1;
+}
+
+// Request message for the deploy processor version method.
+message DeployProcessorVersionRequest {
+ // Required. The processor version resource name to be deployed.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "documentai.googleapis.com/ProcessorVersion"
+ }
+ ];
+}
+
+// Response message for the deploy processor version method.
+message DeployProcessorVersionResponse {
+
+}
+
+// The long running operation metadata for deploy processor version method.
+message DeployProcessorVersionMetadata {
+ // The basic metadata of the long running operation.
+ CommonOperationMetadata common_metadata = 1;
+}
+
+// Request message for the undeploy processor version method.
+message UndeployProcessorVersionRequest {
+ // Required. The processor version resource name to be undeployed.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "documentai.googleapis.com/ProcessorVersion"
+ }
+ ];
+}
+
+// Response message for the undeploy processor version method.
+message UndeployProcessorVersionResponse {
+
+}
+
+// The long running operation metadata for the undeploy processor version
+// method.
+message UndeployProcessorVersionMetadata {
+ // The basic metadata of the long running operation.
+ CommonOperationMetadata common_metadata = 1;
+}
+
+// Request message for create a processor. Notice this request is sent to
+// a regionalized backend service, and if the processor type is not available
+// on that region, the creation will fail.
+message CreateProcessorRequest {
+ // Required. The parent (project and location) under which to create the processor.
+ // Format: `projects/{project}/locations/{location}`
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ child_type: "documentai.googleapis.com/Processor"
+ }
+ ];
+
+ // Required. The processor to be created, requires [processor_type] and [display_name]
+ // to be set. Also, the processor is under CMEK if CMEK fields are set.
+ Processor processor = 2 [(google.api.field_behavior) = REQUIRED];
+}
+
+// Request message for the delete processor method.
+message DeleteProcessorRequest {
+ // Required. The processor resource name to be deleted.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "documentai.googleapis.com/Processor"
+ }
+ ];
+}
+
+// The long running operation metadata for delete processor method.
+message DeleteProcessorMetadata {
+ // The basic metadata of the long running operation.
+ CommonOperationMetadata common_metadata = 5;
+}
+
+// Request message for the enable processor method.
+message EnableProcessorRequest {
+ // Required. The processor resource name to be enabled.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "documentai.googleapis.com/Processor"
+ }
+ ];
+}
+
+// Response message for the enable processor method.
+// Intentionally empty proto for adding fields in future.
+message EnableProcessorResponse {
+
+}
+
+// The long running operation metadata for enable processor method.
+message EnableProcessorMetadata {
+ // The basic metadata of the long running operation.
+ CommonOperationMetadata common_metadata = 5;
+}
+
+// Request message for the disable processor method.
+message DisableProcessorRequest {
+ // Required. The processor resource name to be disabled.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "documentai.googleapis.com/Processor"
+ }
+ ];
+}
+
+// Response message for the disable processor method.
+// Intentionally empty proto for adding fields in future.
+message DisableProcessorResponse {
+
+}
+
+// The long running operation metadata for disable processor method.
+message DisableProcessorMetadata {
+ // The basic metadata of the long running operation.
+ CommonOperationMetadata common_metadata = 5;
+}
+
+// Request message for the set default processor version method.
+message SetDefaultProcessorVersionRequest {
+ // Required. The resource name of the [Processor][google.cloud.documentai.v1beta3.Processor] to change default version.
+ string processor = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "documentai.googleapis.com/Processor"
+ }
+ ];
+
+ // Required. The resource name of child [ProcessorVersion][google.cloud.documentai.v1beta3.ProcessorVersion] to use as default.
+ // Format:
+ // `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{version}`
+ string default_processor_version = 2 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "documentai.googleapis.com/ProcessorVersion"
+ }
+ ];
+}
+
+// Response message for set default processor version method.
+message SetDefaultProcessorVersionResponse {
+
+}
+
+// The long running operation metadata for set default processor version
+// method.
+message SetDefaultProcessorVersionMetadata {
+ // The basic metadata of the long running operation.
+ CommonOperationMetadata common_metadata = 1;
+}
+
+// Request message for review document method.
+message ReviewDocumentRequest {
+ // The priority level of the human review task.
+ enum Priority {
+ // The default priority level.
+ DEFAULT = 0;
+
+ // The urgent priority level. The labeling manager should allocate labeler
+ // resource to the urgent task queue to respect this priority level.
+ URGENT = 1;
+ }
+
+ // The document payload.
+ oneof source {
+ // An inline document proto.
+ Document inline_document = 4;
+ }
+
+ // Required. The resource name of the HumanReviewConfig that the document will be
+ // reviewed with.
+ string human_review_config = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "documentai.googleapis.com/HumanReviewConfig"
+ }
+ ];
+
+ // The document that needs human review.
+ Document document = 2 [deprecated = true];
+
+ // Whether the validation should be performed on the ad-hoc review request.
+ bool enable_schema_validation = 3;
+
+ // The priority of the human review task.
+ Priority priority = 5;
+
+ // The document schema of the human review task.
+ DocumentSchema document_schema = 6;
+}
+
+// Response message for review document method.
+message ReviewDocumentResponse {
+ // Possible states of the review operation.
+ enum State {
+ // The default value. This value is used if the state is omitted.
+ STATE_UNSPECIFIED = 0;
+
+ // The review operation is rejected by the reviewer.
+ REJECTED = 1;
+
+ // The review operation is succeeded.
+ SUCCEEDED = 2;
+ }
+
+ // The Cloud Storage uri for the human reviewed document if the review is
+ // succeeded.
+ string gcs_destination = 1;
+
+ // The state of the review operation.
+ State state = 2;
+
+ // The reason why the review is rejected by reviewer.
+ string rejection_reason = 3;
+}
+
+// The long running operation metadata for review document method.
+message ReviewDocumentOperationMetadata {
+ // State of the longrunning operation.
+ enum State {
+ // Unspecified state.
+ STATE_UNSPECIFIED = 0;
+
+ // Operation is still running.
+ RUNNING = 1;
+
+ // Operation is being cancelled.
+ CANCELLING = 2;
+
+ // Operation succeeded.
+ SUCCEEDED = 3;
+
+ // Operation failed.
+ FAILED = 4;
+
+ // Operation is cancelled.
+ CANCELLED = 5;
+ }
+
+ // Used only when Operation.done is false.
+ State state = 1;
+
+ // A message providing more details about the current state of processing.
+ // For example, the error message if the operation is failed.
+ string state_message = 2;
+
+ // The creation time of the operation.
+ google.protobuf.Timestamp create_time = 3;
+
+ // The last update time of the operation.
+ google.protobuf.Timestamp update_time = 4;
+
+ // The basic metadata of the long running operation.
+ CommonOperationMetadata common_metadata = 5;
+
+ // The Crowd Compute question ID.
+ string question_id = 6;
+}
diff --git a/packages/google-cloud-documentai/protos/google/cloud/documentai/v1beta3/document_schema.proto b/packages/google-cloud-documentai/protos/google/cloud/documentai/v1beta3/document_schema.proto
new file mode 100644
index 00000000000..214e56864de
--- /dev/null
+++ b/packages/google-cloud-documentai/protos/google/cloud/documentai/v1beta3/document_schema.proto
@@ -0,0 +1,140 @@
+// Copyright 2022 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.documentai.v1beta3;
+
+option csharp_namespace = "Google.Cloud.DocumentAI.V1Beta3";
+option go_package = "google.golang.org/genproto/googleapis/cloud/documentai/v1beta3;documentai";
+option java_multiple_files = true;
+option java_outer_classname = "DocumentAiDocumentSchema";
+option java_package = "com.google.cloud.documentai.v1beta3";
+option php_namespace = "Google\\Cloud\\DocumentAI\\V1beta3";
+option ruby_package = "Google::Cloud::DocumentAI::V1beta3";
+
+// The schema defines the output of the processed document by a processor.
+message DocumentSchema {
+ // EntityType is the wrapper of a label of the corresponding model with
+ // detailed attributes and limitations for entity-based processors. Multiple
+ // types can also compose a dependency tree to represent nested types.
+ message EntityType {
+ // Defines the a list of enum values.
+ message EnumValues {
+ // The individual values that this enum values type can include.
+ repeated string values = 1;
+ }
+
+ // Defines properties that can be part of the entity type.
+ message Property {
+ // Types of occurrences of the entity type in the document. Note: this
+ // represents the number of instances of an entity types, not number of
+ // mentions of a given entity instance.
+ enum OccurrenceType {
+ // Unspecified occurrence type.
+ OCCURRENCE_TYPE_UNSPECIFIED = 0;
+
+ // There will be zero or one instance of this entity type.
+ OPTIONAL_ONCE = 1;
+
+ // The entity type will appear zero or multiple times.
+ OPTIONAL_MULTIPLE = 2;
+
+ // The entity type will only appear exactly once.
+ REQUIRED_ONCE = 3;
+
+ // The entity type will appear once or more times.
+ REQUIRED_MULTIPLE = 4;
+ }
+
+ // The name of the property. Follows the same guidelines as the
+ // EntityType name.
+ string name = 1;
+
+ // A reference to the value type of the property. This type is subject
+ // to the same conventions as the `Entity.base_types` field.
+ string value_type = 2;
+
+ // Occurrence type limits the number of instances an entity type appears
+ // in the document.
+ OccurrenceType occurrence_type = 3;
+ }
+
+ oneof value_source {
+ // If specified, lists all the possible values for this entity. This
+ // should not be more than a handful of values. If the number of values
+ // is >10 or could change frequently use the `EntityType.value_ontology`
+ // field and specify a list of all possible values in a value ontology
+ // file.
+ EnumValues enum_values = 14;
+ }
+
+ // User defined name for the type.
+ string display_name = 13;
+
+ // Name of the type. It must be unique within the schema file and
+ // cannot be a 'Common Type'. Besides that we use the following naming
+ // conventions:
+ // - *use snake_casing*
+ // - name matching is case-insensitive
+ // - Maximum 64 characters.
+ // - Must start with a letter.
+ // - Allowed characters: ASCII letters `[a-z0-9_-]`. (For backward
+ // compatibility internal infrastructure and tooling can handle any ascii
+ // character)
+ // - The '/' is sometimes used to denote a property of a type. For example
+ // line_item/amount. This convention is deprecated, but will still be
+ // honored for backward compatibility.
+ string name = 1;
+
+ // The entity type that this type is derived from. For now, one and only
+ // one should be set.
+ repeated string base_types = 2;
+
+ // Describing the nested structure, or composition of an entity.
+ repeated Property properties = 6;
+ }
+
+ // Metadata for global schema behavior.
+ message Metadata {
+ // If true, a `document` entity type can be applied to subdocument (
+ // splitting). Otherwise, it can only be applied to the entire document
+ // (classification).
+ bool document_splitter = 1;
+
+ // If true, on a given page, there can be multiple `document` annotations
+ // covering it.
+ bool document_allow_multiple_labels = 2;
+
+ // If set, all the nested entities must be prefixed with the parents.
+ bool prefixed_naming_on_properties = 6;
+
+ // If set, we will skip the naming format validation in the schema. So the
+ // string values in `DocumentSchema.EntityType.name` and
+ // `DocumentSchema.EntityType.Property.name` will not be checked.
+ bool skip_naming_validation = 7;
+ }
+
+ // Display name to show to users.
+ string display_name = 1;
+
+ // Description of the schema.
+ string description = 2;
+
+ // Entity types of the schema.
+ repeated EntityType entity_types = 3;
+
+ // Metadata of the schema.
+ Metadata metadata = 4;
+}
diff --git a/packages/google-cloud-documentai/protos/google/cloud/documentai/v1beta3/geometry.proto b/packages/google-cloud-documentai/protos/google/cloud/documentai/v1beta3/geometry.proto
new file mode 100644
index 00000000000..c42e0cb7a07
--- /dev/null
+++ b/packages/google-cloud-documentai/protos/google/cloud/documentai/v1beta3/geometry.proto
@@ -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
+//
+// 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.documentai.v1beta3;
+
+option csharp_namespace = "Google.Cloud.DocumentAI.V1Beta3";
+option go_package = "google.golang.org/genproto/googleapis/cloud/documentai/v1beta3;documentai";
+option java_multiple_files = true;
+option java_outer_classname = "GeometryProto";
+option java_package = "com.google.cloud.documentai.v1beta3";
+option php_namespace = "Google\\Cloud\\DocumentAI\\V1beta3";
+option ruby_package = "Google::Cloud::DocumentAI::V1beta3";
+
+// 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 (starts from the top of the image).
+ 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 (starts from the top of the image).
+ float y = 2;
+}
+
+// A bounding polygon for the detected image annotation.
+message BoundingPoly {
+ // The bounding polygon vertices.
+ repeated Vertex vertices = 1;
+
+ // The bounding polygon normalized vertices.
+ repeated NormalizedVertex normalized_vertices = 2;
+}
diff --git a/packages/google-cloud-documentai/protos/google/cloud/documentai/v1beta3/operation_metadata.proto b/packages/google-cloud-documentai/protos/google/cloud/documentai/v1beta3/operation_metadata.proto
new file mode 100644
index 00000000000..cd573a823c4
--- /dev/null
+++ b/packages/google-cloud-documentai/protos/google/cloud/documentai/v1beta3/operation_metadata.proto
@@ -0,0 +1,66 @@
+// Copyright 2022 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.documentai.v1beta3;
+
+import "google/protobuf/timestamp.proto";
+
+option csharp_namespace = "Google.Cloud.DocumentAI.V1Beta3";
+option go_package = "google.golang.org/genproto/googleapis/cloud/documentai/v1beta3;documentai";
+option java_multiple_files = true;
+option java_outer_classname = "OperationMetadataProto";
+option java_package = "com.google.cloud.documentai.v1beta3";
+option php_namespace = "Google\\Cloud\\DocumentAI\\V1beta3";
+option ruby_package = "Google::Cloud::DocumentAI::V1beta3";
+
+// The common metadata for long running operations.
+message CommonOperationMetadata {
+ // State of the longrunning operation.
+ enum State {
+ // Unspecified state.
+ STATE_UNSPECIFIED = 0;
+
+ // Operation is still running.
+ RUNNING = 1;
+
+ // Operation is being cancelled.
+ CANCELLING = 2;
+
+ // Operation succeeded.
+ SUCCEEDED = 3;
+
+ // Operation failed.
+ FAILED = 4;
+
+ // Operation is cancelled.
+ CANCELLED = 5;
+ }
+
+ // The state of the operation.
+ State state = 1;
+
+ // A message providing more details about the current state of processing.
+ string state_message = 2;
+
+ // A related resource to this operation.
+ string resource = 5;
+
+ // The creation time of the operation.
+ google.protobuf.Timestamp create_time = 3;
+
+ // The last update time of the operation.
+ google.protobuf.Timestamp update_time = 4;
+}
diff --git a/packages/google-cloud-documentai/protos/google/cloud/documentai/v1beta3/processor.proto b/packages/google-cloud-documentai/protos/google/cloud/documentai/v1beta3/processor.proto
new file mode 100644
index 00000000000..b7019bf4d12
--- /dev/null
+++ b/packages/google-cloud-documentai/protos/google/cloud/documentai/v1beta3/processor.proto
@@ -0,0 +1,185 @@
+// Copyright 2022 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.documentai.v1beta3;
+
+import "google/api/field_behavior.proto";
+import "google/api/resource.proto";
+import "google/protobuf/timestamp.proto";
+
+option csharp_namespace = "Google.Cloud.DocumentAI.V1Beta3";
+option go_package = "google.golang.org/genproto/googleapis/cloud/documentai/v1beta3;documentai";
+option java_multiple_files = true;
+option java_outer_classname = "DocumentAiProcessor";
+option java_package = "com.google.cloud.documentai.v1beta3";
+option php_namespace = "Google\\Cloud\\DocumentAI\\V1beta3";
+option ruby_package = "Google::Cloud::DocumentAI::V1beta3";
+
+// A processor version is an implementation of a processor. Each processor
+// can have multiple versions, pre-trained by Google internally or up-trained
+// by the customer. At a time, a processor can only have one default version
+// version. So the processor's behavior (when processing documents) is defined
+// by a default version
+message ProcessorVersion {
+ option (google.api.resource) = {
+ type: "documentai.googleapis.com/ProcessorVersion"
+ pattern: "projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processor_version}"
+ };
+
+ // Information about the upcoming deprecation of this processor version.
+ message DeprecationInfo {
+ // The time at which this processor version will be deprecated.
+ google.protobuf.Timestamp deprecation_time = 1;
+
+ // If set, the processor version that will be used as a replacement.
+ string replacement_processor_version = 2 [(google.api.resource_reference) = {
+ type: "documentai.googleapis.com/ProcessorVersion"
+ }];
+ }
+
+ // The possible states of the processor version.
+ enum State {
+ // The processor version is in an unspecified state.
+ STATE_UNSPECIFIED = 0;
+
+ // The processor version is deployed and can be used for processing.
+ DEPLOYED = 1;
+
+ // The processor version is being deployed.
+ DEPLOYING = 2;
+
+ // The processor version is not deployed and cannot be used for processing.
+ UNDEPLOYED = 3;
+
+ // The processor version is being undeployed.
+ UNDEPLOYING = 4;
+
+ // The processor version is being created.
+ CREATING = 5;
+
+ // The processor version is being deleted.
+ DELETING = 6;
+
+ // The processor version failed and is in an indeterminate state.
+ FAILED = 7;
+ }
+
+ // The resource name of the processor version.
+ // Format:
+ // `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processor_version}`
+ string name = 1;
+
+ // The display name of the processor version.
+ string display_name = 2;
+
+ // The state of the processor version.
+ State state = 6;
+
+ // The time the processor version was created.
+ google.protobuf.Timestamp create_time = 7;
+
+ // The KMS key name used for encryption.
+ string kms_key_name = 9;
+
+ // The KMS key version with which data is encrypted.
+ string kms_key_version_name = 10;
+
+ // Denotes that this ProcessorVersion is managed by google.
+ bool google_managed = 11;
+
+ // If set, information about the eventual deprecation of this version.
+ DeprecationInfo deprecation_info = 13;
+}
+
+// The first-class citizen for Document AI. Each processor defines how to
+// extract structural information from a document.
+message Processor {
+ option (google.api.resource) = {
+ type: "documentai.googleapis.com/Processor"
+ pattern: "projects/{project}/locations/{location}/processors/{processor}"
+ };
+
+ // The possible states of the processor.
+ enum State {
+ // The processor is in an unspecified state.
+ STATE_UNSPECIFIED = 0;
+
+ // The processor is enabled, i.e., has an enabled version which can
+ // currently serve processing requests and all the feature dependencies have
+ // been successfully initialized.
+ ENABLED = 1;
+
+ // The processor is disabled.
+ DISABLED = 2;
+
+ // The processor is being enabled, will become ENABLED if successful.
+ ENABLING = 3;
+
+ // The processor is being disabled, will become DISABLED if successful.
+ DISABLING = 4;
+
+ // The processor is being created, will become either ENABLED (for
+ // successful creation) or FAILED (for failed ones).
+ // Once a processor is in this state, it can then be used for document
+ // processing, but the feature dependencies of the processor might not be
+ // fully created yet.
+ CREATING = 5;
+
+ // The processor failed during creation or initialization of feature
+ // dependencies. The user should delete the processor and recreate one as
+ // all the functionalities of the processor are disabled.
+ FAILED = 6;
+
+ // The processor is being deleted, will be removed if successful.
+ DELETING = 7;
+ }
+
+ // Output only. Immutable. The resource name of the processor.
+ // Format: `projects/{project}/locations/{location}/processors/{processor}`
+ string name = 1 [
+ (google.api.field_behavior) = IMMUTABLE,
+ (google.api.field_behavior) = OUTPUT_ONLY
+ ];
+
+ // The processor type, e.g., OCR_PROCESSOR, INVOICE_PROCESSOR, etc.
+ // To get a list of processors types, see
+ // [FetchProcessorTypes][google.cloud.documentai.v1beta3.DocumentProcessorService.FetchProcessorTypes].
+ string type = 2;
+
+ // The display name of the processor.
+ string display_name = 3;
+
+ // Output only. The state of the processor.
+ State state = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // The default processor version.
+ string default_processor_version = 9 [(google.api.resource_reference) = {
+ type: "documentai.googleapis.com/ProcessorVersion"
+ }];
+
+ // Output only. Immutable. The http endpoint that can be called to invoke processing.
+ string process_endpoint = 6 [
+ (google.api.field_behavior) = OUTPUT_ONLY,
+ (google.api.field_behavior) = IMMUTABLE
+ ];
+
+ // The time the processor was created.
+ google.protobuf.Timestamp create_time = 7;
+
+ // The KMS key used for encryption/decryption in CMEK scenarios.
+ // See https://cloud.google.com/security-key-management.
+ string kms_key_name = 8;
+}
diff --git a/packages/google-cloud-documentai/protos/google/cloud/documentai/v1beta3/processor_type.proto b/packages/google-cloud-documentai/protos/google/cloud/documentai/v1beta3/processor_type.proto
new file mode 100644
index 00000000000..a2799e301a9
--- /dev/null
+++ b/packages/google-cloud-documentai/protos/google/cloud/documentai/v1beta3/processor_type.proto
@@ -0,0 +1,63 @@
+// Copyright 2022 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.documentai.v1beta3;
+
+import "google/api/launch_stage.proto";
+import "google/api/resource.proto";
+
+option csharp_namespace = "Google.Cloud.DocumentAI.V1Beta3";
+option go_package = "google.golang.org/genproto/googleapis/cloud/documentai/v1beta3;documentai";
+option java_multiple_files = true;
+option java_outer_classname = "DocumentAiProcessorType";
+option java_package = "com.google.cloud.documentai.v1beta3";
+option php_namespace = "Google\\Cloud\\DocumentAI\\V1beta3";
+option ruby_package = "Google::Cloud::DocumentAI::V1beta3";
+
+// A processor type is responsible for performing a certain document
+// understanding task on a certain type of document.
+message ProcessorType {
+ option (google.api.resource) = {
+ type: "documentai.googleapis.com/ProcessorType"
+ pattern: "projects/{project}/locations/{location}/processorTypes/{processor_type}"
+ };
+
+ // The location information about where the processor is available.
+ message LocationInfo {
+ // The location id, currently must be one of [us, eu].
+ string location_id = 1;
+ }
+
+ // The resource name of the processor type.
+ // Format: projects/{project}/processorTypes/{processor_type}
+ string name = 1;
+
+ // The type of the processor, e.g., "invoice_parsing".
+ string type = 2;
+
+ // The processor category, used by UI to group processor types.
+ string category = 3;
+
+ // The locations in which this processor is available.
+ repeated LocationInfo available_locations = 4;
+
+ // Whether the processor type allows creation. If true, users can create a
+ // processor of this processor type. Otherwise, users need to request access.
+ bool allow_creation = 6;
+
+ // Launch stage of the processor type
+ google.api.LaunchStage launch_stage = 8;
+}
diff --git a/packages/google-cloud-documentai/protos/protos.d.ts b/packages/google-cloud-documentai/protos/protos.d.ts
new file mode 100644
index 00000000000..af6c5eac483
--- /dev/null
+++ b/packages/google-cloud-documentai/protos/protos.d.ts
@@ -0,0 +1,39248 @@
+// 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 documentai. */
+ namespace documentai {
+
+ /** Namespace v1. */
+ namespace v1 {
+
+ /** Properties of a Barcode. */
+ interface IBarcode {
+
+ /** Barcode format */
+ format?: (string|null);
+
+ /** Barcode valueFormat */
+ valueFormat?: (string|null);
+
+ /** Barcode rawValue */
+ rawValue?: (string|null);
+ }
+
+ /** Represents a Barcode. */
+ class Barcode implements IBarcode {
+
+ /**
+ * Constructs a new Barcode.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1.IBarcode);
+
+ /** Barcode format. */
+ public format: string;
+
+ /** Barcode valueFormat. */
+ public valueFormat: string;
+
+ /** Barcode rawValue. */
+ public rawValue: string;
+
+ /**
+ * Creates a new Barcode instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Barcode instance
+ */
+ public static create(properties?: google.cloud.documentai.v1.IBarcode): google.cloud.documentai.v1.Barcode;
+
+ /**
+ * Encodes the specified Barcode message. Does not implicitly {@link google.cloud.documentai.v1.Barcode.verify|verify} messages.
+ * @param message Barcode message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1.IBarcode, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Barcode message, length delimited. Does not implicitly {@link google.cloud.documentai.v1.Barcode.verify|verify} messages.
+ * @param message Barcode message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1.IBarcode, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Barcode message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Barcode
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1.Barcode;
+
+ /**
+ * Decodes a Barcode message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Barcode
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1.Barcode;
+
+ /**
+ * Verifies a Barcode message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Barcode message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Barcode
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1.Barcode;
+
+ /**
+ * Creates a plain object from a Barcode message. Also converts values to other types if specified.
+ * @param message Barcode
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1.Barcode, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Barcode to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Barcode
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Document. */
+ interface IDocument {
+
+ /** Document uri */
+ uri?: (string|null);
+
+ /** Document content */
+ content?: (Uint8Array|string|null);
+
+ /** Document mimeType */
+ mimeType?: (string|null);
+
+ /** Document text */
+ text?: (string|null);
+
+ /** Document textStyles */
+ textStyles?: (google.cloud.documentai.v1.Document.IStyle[]|null);
+
+ /** Document pages */
+ pages?: (google.cloud.documentai.v1.Document.IPage[]|null);
+
+ /** Document entities */
+ entities?: (google.cloud.documentai.v1.Document.IEntity[]|null);
+
+ /** Document entityRelations */
+ entityRelations?: (google.cloud.documentai.v1.Document.IEntityRelation[]|null);
+
+ /** Document textChanges */
+ textChanges?: (google.cloud.documentai.v1.Document.ITextChange[]|null);
+
+ /** Document shardInfo */
+ shardInfo?: (google.cloud.documentai.v1.Document.IShardInfo|null);
+
+ /** Document error */
+ error?: (google.rpc.IStatus|null);
+
+ /** Document revisions */
+ revisions?: (google.cloud.documentai.v1.Document.IRevision[]|null);
+ }
+
+ /** Represents a Document. */
+ class Document implements IDocument {
+
+ /**
+ * Constructs a new Document.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1.IDocument);
+
+ /** Document uri. */
+ public uri?: (string|null);
+
+ /** Document content. */
+ public content?: (Uint8Array|string|null);
+
+ /** Document mimeType. */
+ public mimeType: string;
+
+ /** Document text. */
+ public text: string;
+
+ /** Document textStyles. */
+ public textStyles: google.cloud.documentai.v1.Document.IStyle[];
+
+ /** Document pages. */
+ public pages: google.cloud.documentai.v1.Document.IPage[];
+
+ /** Document entities. */
+ public entities: google.cloud.documentai.v1.Document.IEntity[];
+
+ /** Document entityRelations. */
+ public entityRelations: google.cloud.documentai.v1.Document.IEntityRelation[];
+
+ /** Document textChanges. */
+ public textChanges: google.cloud.documentai.v1.Document.ITextChange[];
+
+ /** Document shardInfo. */
+ public shardInfo?: (google.cloud.documentai.v1.Document.IShardInfo|null);
+
+ /** Document error. */
+ public error?: (google.rpc.IStatus|null);
+
+ /** Document revisions. */
+ public revisions: google.cloud.documentai.v1.Document.IRevision[];
+
+ /** Document source. */
+ public source?: ("uri"|"content");
+
+ /**
+ * Creates a new Document instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Document instance
+ */
+ public static create(properties?: google.cloud.documentai.v1.IDocument): google.cloud.documentai.v1.Document;
+
+ /**
+ * Encodes the specified Document message. Does not implicitly {@link google.cloud.documentai.v1.Document.verify|verify} messages.
+ * @param message Document message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1.IDocument, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Document message, length delimited. Does not implicitly {@link google.cloud.documentai.v1.Document.verify|verify} messages.
+ * @param message Document message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1.IDocument, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Document message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Document
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1.Document;
+
+ /**
+ * Decodes a Document message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Document
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1.Document;
+
+ /**
+ * Verifies a Document message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Document message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Document
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1.Document;
+
+ /**
+ * Creates a plain object from a Document message. Also converts values to other types if specified.
+ * @param message Document
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1.Document, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Document to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Document
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace Document {
+
+ /** Properties of a ShardInfo. */
+ interface IShardInfo {
+
+ /** ShardInfo shardIndex */
+ shardIndex?: (number|Long|string|null);
+
+ /** ShardInfo shardCount */
+ shardCount?: (number|Long|string|null);
+
+ /** ShardInfo textOffset */
+ textOffset?: (number|Long|string|null);
+ }
+
+ /** Represents a ShardInfo. */
+ class ShardInfo implements IShardInfo {
+
+ /**
+ * Constructs a new ShardInfo.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1.Document.IShardInfo);
+
+ /** ShardInfo shardIndex. */
+ public shardIndex: (number|Long|string);
+
+ /** ShardInfo shardCount. */
+ public shardCount: (number|Long|string);
+
+ /** ShardInfo textOffset. */
+ public textOffset: (number|Long|string);
+
+ /**
+ * Creates a new ShardInfo instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ShardInfo instance
+ */
+ public static create(properties?: google.cloud.documentai.v1.Document.IShardInfo): google.cloud.documentai.v1.Document.ShardInfo;
+
+ /**
+ * Encodes the specified ShardInfo message. Does not implicitly {@link google.cloud.documentai.v1.Document.ShardInfo.verify|verify} messages.
+ * @param message ShardInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1.Document.IShardInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ShardInfo message, length delimited. Does not implicitly {@link google.cloud.documentai.v1.Document.ShardInfo.verify|verify} messages.
+ * @param message ShardInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1.Document.IShardInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ShardInfo message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ShardInfo
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1.Document.ShardInfo;
+
+ /**
+ * Decodes a ShardInfo message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ShardInfo
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1.Document.ShardInfo;
+
+ /**
+ * Verifies a ShardInfo message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ShardInfo message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ShardInfo
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1.Document.ShardInfo;
+
+ /**
+ * Creates a plain object from a ShardInfo message. Also converts values to other types if specified.
+ * @param message ShardInfo
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1.Document.ShardInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ShardInfo to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ShardInfo
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Style. */
+ interface IStyle {
+
+ /** Style textAnchor */
+ textAnchor?: (google.cloud.documentai.v1.Document.ITextAnchor|null);
+
+ /** Style color */
+ color?: (google.type.IColor|null);
+
+ /** Style backgroundColor */
+ backgroundColor?: (google.type.IColor|null);
+
+ /** Style fontWeight */
+ fontWeight?: (string|null);
+
+ /** Style textStyle */
+ textStyle?: (string|null);
+
+ /** Style textDecoration */
+ textDecoration?: (string|null);
+
+ /** Style fontSize */
+ fontSize?: (google.cloud.documentai.v1.Document.Style.IFontSize|null);
+
+ /** Style fontFamily */
+ fontFamily?: (string|null);
+ }
+
+ /** Represents a Style. */
+ class Style implements IStyle {
+
+ /**
+ * Constructs a new Style.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1.Document.IStyle);
+
+ /** Style textAnchor. */
+ public textAnchor?: (google.cloud.documentai.v1.Document.ITextAnchor|null);
+
+ /** Style color. */
+ public color?: (google.type.IColor|null);
+
+ /** Style backgroundColor. */
+ public backgroundColor?: (google.type.IColor|null);
+
+ /** Style fontWeight. */
+ public fontWeight: string;
+
+ /** Style textStyle. */
+ public textStyle: string;
+
+ /** Style textDecoration. */
+ public textDecoration: string;
+
+ /** Style fontSize. */
+ public fontSize?: (google.cloud.documentai.v1.Document.Style.IFontSize|null);
+
+ /** Style fontFamily. */
+ public fontFamily: string;
+
+ /**
+ * Creates a new Style instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Style instance
+ */
+ public static create(properties?: google.cloud.documentai.v1.Document.IStyle): google.cloud.documentai.v1.Document.Style;
+
+ /**
+ * Encodes the specified Style message. Does not implicitly {@link google.cloud.documentai.v1.Document.Style.verify|verify} messages.
+ * @param message Style message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1.Document.IStyle, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Style message, length delimited. Does not implicitly {@link google.cloud.documentai.v1.Document.Style.verify|verify} messages.
+ * @param message Style message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1.Document.IStyle, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Style message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Style
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1.Document.Style;
+
+ /**
+ * Decodes a Style message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Style
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1.Document.Style;
+
+ /**
+ * Verifies a Style message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Style message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Style
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1.Document.Style;
+
+ /**
+ * Creates a plain object from a Style message. Also converts values to other types if specified.
+ * @param message Style
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1.Document.Style, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Style to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Style
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace Style {
+
+ /** Properties of a FontSize. */
+ interface IFontSize {
+
+ /** FontSize size */
+ size?: (number|null);
+
+ /** FontSize unit */
+ unit?: (string|null);
+ }
+
+ /** Represents a FontSize. */
+ class FontSize implements IFontSize {
+
+ /**
+ * Constructs a new FontSize.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1.Document.Style.IFontSize);
+
+ /** FontSize size. */
+ public size: number;
+
+ /** FontSize unit. */
+ public unit: string;
+
+ /**
+ * Creates a new FontSize instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FontSize instance
+ */
+ public static create(properties?: google.cloud.documentai.v1.Document.Style.IFontSize): google.cloud.documentai.v1.Document.Style.FontSize;
+
+ /**
+ * Encodes the specified FontSize message. Does not implicitly {@link google.cloud.documentai.v1.Document.Style.FontSize.verify|verify} messages.
+ * @param message FontSize message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1.Document.Style.IFontSize, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FontSize message, length delimited. Does not implicitly {@link google.cloud.documentai.v1.Document.Style.FontSize.verify|verify} messages.
+ * @param message FontSize message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1.Document.Style.IFontSize, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FontSize message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FontSize
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1.Document.Style.FontSize;
+
+ /**
+ * Decodes a FontSize message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FontSize
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1.Document.Style.FontSize;
+
+ /**
+ * Verifies a FontSize message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FontSize message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FontSize
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1.Document.Style.FontSize;
+
+ /**
+ * Creates a plain object from a FontSize message. Also converts values to other types if specified.
+ * @param message FontSize
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1.Document.Style.FontSize, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FontSize to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FontSize
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of a Page. */
+ interface IPage {
+
+ /** Page pageNumber */
+ pageNumber?: (number|null);
+
+ /** Page image */
+ image?: (google.cloud.documentai.v1.Document.Page.IImage|null);
+
+ /** Page transforms */
+ transforms?: (google.cloud.documentai.v1.Document.Page.IMatrix[]|null);
+
+ /** Page dimension */
+ dimension?: (google.cloud.documentai.v1.Document.Page.IDimension|null);
+
+ /** Page layout */
+ layout?: (google.cloud.documentai.v1.Document.Page.ILayout|null);
+
+ /** Page detectedLanguages */
+ detectedLanguages?: (google.cloud.documentai.v1.Document.Page.IDetectedLanguage[]|null);
+
+ /** Page blocks */
+ blocks?: (google.cloud.documentai.v1.Document.Page.IBlock[]|null);
+
+ /** Page paragraphs */
+ paragraphs?: (google.cloud.documentai.v1.Document.Page.IParagraph[]|null);
+
+ /** Page lines */
+ lines?: (google.cloud.documentai.v1.Document.Page.ILine[]|null);
+
+ /** Page tokens */
+ tokens?: (google.cloud.documentai.v1.Document.Page.IToken[]|null);
+
+ /** Page visualElements */
+ visualElements?: (google.cloud.documentai.v1.Document.Page.IVisualElement[]|null);
+
+ /** Page tables */
+ tables?: (google.cloud.documentai.v1.Document.Page.ITable[]|null);
+
+ /** Page formFields */
+ formFields?: (google.cloud.documentai.v1.Document.Page.IFormField[]|null);
+
+ /** Page symbols */
+ symbols?: (google.cloud.documentai.v1.Document.Page.ISymbol[]|null);
+
+ /** Page detectedBarcodes */
+ detectedBarcodes?: (google.cloud.documentai.v1.Document.Page.IDetectedBarcode[]|null);
+
+ /** Page imageQualityScores */
+ imageQualityScores?: (google.cloud.documentai.v1.Document.Page.IImageQualityScores|null);
+
+ /** Page provenance */
+ provenance?: (google.cloud.documentai.v1.Document.IProvenance|null);
+ }
+
+ /** Represents a Page. */
+ class Page implements IPage {
+
+ /**
+ * Constructs a new Page.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1.Document.IPage);
+
+ /** Page pageNumber. */
+ public pageNumber: number;
+
+ /** Page image. */
+ public image?: (google.cloud.documentai.v1.Document.Page.IImage|null);
+
+ /** Page transforms. */
+ public transforms: google.cloud.documentai.v1.Document.Page.IMatrix[];
+
+ /** Page dimension. */
+ public dimension?: (google.cloud.documentai.v1.Document.Page.IDimension|null);
+
+ /** Page layout. */
+ public layout?: (google.cloud.documentai.v1.Document.Page.ILayout|null);
+
+ /** Page detectedLanguages. */
+ public detectedLanguages: google.cloud.documentai.v1.Document.Page.IDetectedLanguage[];
+
+ /** Page blocks. */
+ public blocks: google.cloud.documentai.v1.Document.Page.IBlock[];
+
+ /** Page paragraphs. */
+ public paragraphs: google.cloud.documentai.v1.Document.Page.IParagraph[];
+
+ /** Page lines. */
+ public lines: google.cloud.documentai.v1.Document.Page.ILine[];
+
+ /** Page tokens. */
+ public tokens: google.cloud.documentai.v1.Document.Page.IToken[];
+
+ /** Page visualElements. */
+ public visualElements: google.cloud.documentai.v1.Document.Page.IVisualElement[];
+
+ /** Page tables. */
+ public tables: google.cloud.documentai.v1.Document.Page.ITable[];
+
+ /** Page formFields. */
+ public formFields: google.cloud.documentai.v1.Document.Page.IFormField[];
+
+ /** Page symbols. */
+ public symbols: google.cloud.documentai.v1.Document.Page.ISymbol[];
+
+ /** Page detectedBarcodes. */
+ public detectedBarcodes: google.cloud.documentai.v1.Document.Page.IDetectedBarcode[];
+
+ /** Page imageQualityScores. */
+ public imageQualityScores?: (google.cloud.documentai.v1.Document.Page.IImageQualityScores|null);
+
+ /** Page provenance. */
+ public provenance?: (google.cloud.documentai.v1.Document.IProvenance|null);
+
+ /**
+ * Creates a new Page instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Page instance
+ */
+ public static create(properties?: google.cloud.documentai.v1.Document.IPage): google.cloud.documentai.v1.Document.Page;
+
+ /**
+ * Encodes the specified Page message. Does not implicitly {@link google.cloud.documentai.v1.Document.Page.verify|verify} messages.
+ * @param message Page message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1.Document.IPage, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Page message, length delimited. Does not implicitly {@link google.cloud.documentai.v1.Document.Page.verify|verify} messages.
+ * @param message Page message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1.Document.IPage, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Page message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Page
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1.Document.Page;
+
+ /**
+ * Decodes a Page message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Page
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1.Document.Page;
+
+ /**
+ * Verifies a Page message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Page message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Page
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1.Document.Page;
+
+ /**
+ * Creates a plain object from a Page message. Also converts values to other types if specified.
+ * @param message Page
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1.Document.Page, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Page to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Page
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace Page {
+
+ /** Properties of a Dimension. */
+ interface IDimension {
+
+ /** Dimension width */
+ width?: (number|null);
+
+ /** Dimension height */
+ height?: (number|null);
+
+ /** Dimension unit */
+ unit?: (string|null);
+ }
+
+ /** Represents a Dimension. */
+ class Dimension implements IDimension {
+
+ /**
+ * Constructs a new Dimension.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1.Document.Page.IDimension);
+
+ /** Dimension width. */
+ public width: number;
+
+ /** Dimension height. */
+ public height: number;
+
+ /** Dimension unit. */
+ public unit: string;
+
+ /**
+ * Creates a new Dimension instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Dimension instance
+ */
+ public static create(properties?: google.cloud.documentai.v1.Document.Page.IDimension): google.cloud.documentai.v1.Document.Page.Dimension;
+
+ /**
+ * Encodes the specified Dimension message. Does not implicitly {@link google.cloud.documentai.v1.Document.Page.Dimension.verify|verify} messages.
+ * @param message Dimension message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1.Document.Page.IDimension, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Dimension message, length delimited. Does not implicitly {@link google.cloud.documentai.v1.Document.Page.Dimension.verify|verify} messages.
+ * @param message Dimension message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1.Document.Page.IDimension, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Dimension message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Dimension
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1.Document.Page.Dimension;
+
+ /**
+ * Decodes a Dimension message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Dimension
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1.Document.Page.Dimension;
+
+ /**
+ * Verifies a Dimension message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Dimension message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Dimension
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1.Document.Page.Dimension;
+
+ /**
+ * Creates a plain object from a Dimension message. Also converts values to other types if specified.
+ * @param message Dimension
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1.Document.Page.Dimension, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Dimension to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Dimension
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an Image. */
+ interface IImage {
+
+ /** Image content */
+ content?: (Uint8Array|string|null);
+
+ /** Image mimeType */
+ mimeType?: (string|null);
+
+ /** Image width */
+ width?: (number|null);
+
+ /** Image height */
+ height?: (number|null);
+ }
+
+ /** Represents an Image. */
+ class Image implements IImage {
+
+ /**
+ * Constructs a new Image.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1.Document.Page.IImage);
+
+ /** Image content. */
+ public content: (Uint8Array|string);
+
+ /** Image mimeType. */
+ public mimeType: string;
+
+ /** Image width. */
+ public width: number;
+
+ /** Image height. */
+ public height: number;
+
+ /**
+ * Creates a new Image instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Image instance
+ */
+ public static create(properties?: google.cloud.documentai.v1.Document.Page.IImage): google.cloud.documentai.v1.Document.Page.Image;
+
+ /**
+ * Encodes the specified Image message. Does not implicitly {@link google.cloud.documentai.v1.Document.Page.Image.verify|verify} messages.
+ * @param message Image message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1.Document.Page.IImage, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Image message, length delimited. Does not implicitly {@link google.cloud.documentai.v1.Document.Page.Image.verify|verify} messages.
+ * @param message Image message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1.Document.Page.IImage, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an Image message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Image
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1.Document.Page.Image;
+
+ /**
+ * Decodes an Image message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Image
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1.Document.Page.Image;
+
+ /**
+ * Verifies an Image message.
+ * @param message Plain 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 Image message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Image
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1.Document.Page.Image;
+
+ /**
+ * Creates a plain object from an Image message. Also converts values to other types if specified.
+ * @param message Image
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1.Document.Page.Image, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Image to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Image
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Matrix. */
+ interface IMatrix {
+
+ /** Matrix rows */
+ rows?: (number|null);
+
+ /** Matrix cols */
+ cols?: (number|null);
+
+ /** Matrix type */
+ type?: (number|null);
+
+ /** Matrix data */
+ data?: (Uint8Array|string|null);
+ }
+
+ /** Represents a Matrix. */
+ class Matrix implements IMatrix {
+
+ /**
+ * Constructs a new Matrix.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1.Document.Page.IMatrix);
+
+ /** Matrix rows. */
+ public rows: number;
+
+ /** Matrix cols. */
+ public cols: number;
+
+ /** Matrix type. */
+ public type: number;
+
+ /** Matrix data. */
+ public data: (Uint8Array|string);
+
+ /**
+ * Creates a new Matrix instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Matrix instance
+ */
+ public static create(properties?: google.cloud.documentai.v1.Document.Page.IMatrix): google.cloud.documentai.v1.Document.Page.Matrix;
+
+ /**
+ * Encodes the specified Matrix message. Does not implicitly {@link google.cloud.documentai.v1.Document.Page.Matrix.verify|verify} messages.
+ * @param message Matrix message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1.Document.Page.IMatrix, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Matrix message, length delimited. Does not implicitly {@link google.cloud.documentai.v1.Document.Page.Matrix.verify|verify} messages.
+ * @param message Matrix message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1.Document.Page.IMatrix, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Matrix message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Matrix
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1.Document.Page.Matrix;
+
+ /**
+ * Decodes a Matrix message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Matrix
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1.Document.Page.Matrix;
+
+ /**
+ * Verifies a Matrix message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Matrix message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Matrix
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1.Document.Page.Matrix;
+
+ /**
+ * Creates a plain object from a Matrix message. Also converts values to other types if specified.
+ * @param message Matrix
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1.Document.Page.Matrix, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Matrix to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Matrix
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Layout. */
+ interface ILayout {
+
+ /** Layout textAnchor */
+ textAnchor?: (google.cloud.documentai.v1.Document.ITextAnchor|null);
+
+ /** Layout confidence */
+ confidence?: (number|null);
+
+ /** Layout boundingPoly */
+ boundingPoly?: (google.cloud.documentai.v1.IBoundingPoly|null);
+
+ /** Layout orientation */
+ orientation?: (google.cloud.documentai.v1.Document.Page.Layout.Orientation|keyof typeof google.cloud.documentai.v1.Document.Page.Layout.Orientation|null);
+ }
+
+ /** Represents a Layout. */
+ class Layout implements ILayout {
+
+ /**
+ * Constructs a new Layout.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1.Document.Page.ILayout);
+
+ /** Layout textAnchor. */
+ public textAnchor?: (google.cloud.documentai.v1.Document.ITextAnchor|null);
+
+ /** Layout confidence. */
+ public confidence: number;
+
+ /** Layout boundingPoly. */
+ public boundingPoly?: (google.cloud.documentai.v1.IBoundingPoly|null);
+
+ /** Layout orientation. */
+ public orientation: (google.cloud.documentai.v1.Document.Page.Layout.Orientation|keyof typeof google.cloud.documentai.v1.Document.Page.Layout.Orientation);
+
+ /**
+ * Creates a new Layout instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Layout instance
+ */
+ public static create(properties?: google.cloud.documentai.v1.Document.Page.ILayout): google.cloud.documentai.v1.Document.Page.Layout;
+
+ /**
+ * Encodes the specified Layout message. Does not implicitly {@link google.cloud.documentai.v1.Document.Page.Layout.verify|verify} messages.
+ * @param message Layout message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1.Document.Page.ILayout, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Layout message, length delimited. Does not implicitly {@link google.cloud.documentai.v1.Document.Page.Layout.verify|verify} messages.
+ * @param message Layout message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1.Document.Page.ILayout, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Layout message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Layout
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1.Document.Page.Layout;
+
+ /**
+ * Decodes a Layout message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Layout
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1.Document.Page.Layout;
+
+ /**
+ * Verifies a Layout message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Layout message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Layout
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1.Document.Page.Layout;
+
+ /**
+ * Creates a plain object from a Layout message. Also converts values to other types if specified.
+ * @param message Layout
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1.Document.Page.Layout, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Layout to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Layout
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace Layout {
+
+ /** Orientation enum. */
+ enum Orientation {
+ ORIENTATION_UNSPECIFIED = 0,
+ PAGE_UP = 1,
+ PAGE_RIGHT = 2,
+ PAGE_DOWN = 3,
+ PAGE_LEFT = 4
+ }
+ }
+
+ /** Properties of a Block. */
+ interface IBlock {
+
+ /** Block layout */
+ layout?: (google.cloud.documentai.v1.Document.Page.ILayout|null);
+
+ /** Block detectedLanguages */
+ detectedLanguages?: (google.cloud.documentai.v1.Document.Page.IDetectedLanguage[]|null);
+
+ /** Block provenance */
+ provenance?: (google.cloud.documentai.v1.Document.IProvenance|null);
+ }
+
+ /** Represents a Block. */
+ class Block implements IBlock {
+
+ /**
+ * Constructs a new Block.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1.Document.Page.IBlock);
+
+ /** Block layout. */
+ public layout?: (google.cloud.documentai.v1.Document.Page.ILayout|null);
+
+ /** Block detectedLanguages. */
+ public detectedLanguages: google.cloud.documentai.v1.Document.Page.IDetectedLanguage[];
+
+ /** Block provenance. */
+ public provenance?: (google.cloud.documentai.v1.Document.IProvenance|null);
+
+ /**
+ * Creates a new Block instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Block instance
+ */
+ public static create(properties?: google.cloud.documentai.v1.Document.Page.IBlock): google.cloud.documentai.v1.Document.Page.Block;
+
+ /**
+ * Encodes the specified Block message. Does not implicitly {@link google.cloud.documentai.v1.Document.Page.Block.verify|verify} messages.
+ * @param message Block message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1.Document.Page.IBlock, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Block message, length delimited. Does not implicitly {@link google.cloud.documentai.v1.Document.Page.Block.verify|verify} messages.
+ * @param message Block message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1.Document.Page.IBlock, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Block message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Block
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1.Document.Page.Block;
+
+ /**
+ * Decodes a Block message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Block
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1.Document.Page.Block;
+
+ /**
+ * Verifies a Block message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Block message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Block
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1.Document.Page.Block;
+
+ /**
+ * Creates a plain object from a Block message. Also converts values to other types if specified.
+ * @param message Block
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1.Document.Page.Block, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Block to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Block
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Paragraph. */
+ interface IParagraph {
+
+ /** Paragraph layout */
+ layout?: (google.cloud.documentai.v1.Document.Page.ILayout|null);
+
+ /** Paragraph detectedLanguages */
+ detectedLanguages?: (google.cloud.documentai.v1.Document.Page.IDetectedLanguage[]|null);
+
+ /** Paragraph provenance */
+ provenance?: (google.cloud.documentai.v1.Document.IProvenance|null);
+ }
+
+ /** Represents a Paragraph. */
+ class Paragraph implements IParagraph {
+
+ /**
+ * Constructs a new Paragraph.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1.Document.Page.IParagraph);
+
+ /** Paragraph layout. */
+ public layout?: (google.cloud.documentai.v1.Document.Page.ILayout|null);
+
+ /** Paragraph detectedLanguages. */
+ public detectedLanguages: google.cloud.documentai.v1.Document.Page.IDetectedLanguage[];
+
+ /** Paragraph provenance. */
+ public provenance?: (google.cloud.documentai.v1.Document.IProvenance|null);
+
+ /**
+ * Creates a new Paragraph instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Paragraph instance
+ */
+ public static create(properties?: google.cloud.documentai.v1.Document.Page.IParagraph): google.cloud.documentai.v1.Document.Page.Paragraph;
+
+ /**
+ * Encodes the specified Paragraph message. Does not implicitly {@link google.cloud.documentai.v1.Document.Page.Paragraph.verify|verify} messages.
+ * @param message Paragraph message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1.Document.Page.IParagraph, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Paragraph message, length delimited. Does not implicitly {@link google.cloud.documentai.v1.Document.Page.Paragraph.verify|verify} messages.
+ * @param message Paragraph message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1.Document.Page.IParagraph, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Paragraph message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Paragraph
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1.Document.Page.Paragraph;
+
+ /**
+ * Decodes a Paragraph message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Paragraph
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1.Document.Page.Paragraph;
+
+ /**
+ * Verifies a Paragraph message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Paragraph message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Paragraph
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1.Document.Page.Paragraph;
+
+ /**
+ * Creates a plain object from a Paragraph message. Also converts values to other types if specified.
+ * @param message Paragraph
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1.Document.Page.Paragraph, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Paragraph to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Paragraph
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Line. */
+ interface ILine {
+
+ /** Line layout */
+ layout?: (google.cloud.documentai.v1.Document.Page.ILayout|null);
+
+ /** Line detectedLanguages */
+ detectedLanguages?: (google.cloud.documentai.v1.Document.Page.IDetectedLanguage[]|null);
+
+ /** Line provenance */
+ provenance?: (google.cloud.documentai.v1.Document.IProvenance|null);
+ }
+
+ /** Represents a Line. */
+ class Line implements ILine {
+
+ /**
+ * Constructs a new Line.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1.Document.Page.ILine);
+
+ /** Line layout. */
+ public layout?: (google.cloud.documentai.v1.Document.Page.ILayout|null);
+
+ /** Line detectedLanguages. */
+ public detectedLanguages: google.cloud.documentai.v1.Document.Page.IDetectedLanguage[];
+
+ /** Line provenance. */
+ public provenance?: (google.cloud.documentai.v1.Document.IProvenance|null);
+
+ /**
+ * Creates a new Line instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Line instance
+ */
+ public static create(properties?: google.cloud.documentai.v1.Document.Page.ILine): google.cloud.documentai.v1.Document.Page.Line;
+
+ /**
+ * Encodes the specified Line message. Does not implicitly {@link google.cloud.documentai.v1.Document.Page.Line.verify|verify} messages.
+ * @param message Line message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1.Document.Page.ILine, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Line message, length delimited. Does not implicitly {@link google.cloud.documentai.v1.Document.Page.Line.verify|verify} messages.
+ * @param message Line message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1.Document.Page.ILine, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Line message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Line
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1.Document.Page.Line;
+
+ /**
+ * Decodes a Line message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Line
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1.Document.Page.Line;
+
+ /**
+ * Verifies a Line message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Line message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Line
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1.Document.Page.Line;
+
+ /**
+ * Creates a plain object from a Line message. Also converts values to other types if specified.
+ * @param message Line
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1.Document.Page.Line, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Line to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Line
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Token. */
+ interface IToken {
+
+ /** Token layout */
+ layout?: (google.cloud.documentai.v1.Document.Page.ILayout|null);
+
+ /** Token detectedBreak */
+ detectedBreak?: (google.cloud.documentai.v1.Document.Page.Token.IDetectedBreak|null);
+
+ /** Token detectedLanguages */
+ detectedLanguages?: (google.cloud.documentai.v1.Document.Page.IDetectedLanguage[]|null);
+
+ /** Token provenance */
+ provenance?: (google.cloud.documentai.v1.Document.IProvenance|null);
+ }
+
+ /** Represents a Token. */
+ class Token implements IToken {
+
+ /**
+ * Constructs a new Token.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1.Document.Page.IToken);
+
+ /** Token layout. */
+ public layout?: (google.cloud.documentai.v1.Document.Page.ILayout|null);
+
+ /** Token detectedBreak. */
+ public detectedBreak?: (google.cloud.documentai.v1.Document.Page.Token.IDetectedBreak|null);
+
+ /** Token detectedLanguages. */
+ public detectedLanguages: google.cloud.documentai.v1.Document.Page.IDetectedLanguage[];
+
+ /** Token provenance. */
+ public provenance?: (google.cloud.documentai.v1.Document.IProvenance|null);
+
+ /**
+ * Creates a new Token instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Token instance
+ */
+ public static create(properties?: google.cloud.documentai.v1.Document.Page.IToken): google.cloud.documentai.v1.Document.Page.Token;
+
+ /**
+ * Encodes the specified Token message. Does not implicitly {@link google.cloud.documentai.v1.Document.Page.Token.verify|verify} messages.
+ * @param message Token message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1.Document.Page.IToken, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Token message, length delimited. Does not implicitly {@link google.cloud.documentai.v1.Document.Page.Token.verify|verify} messages.
+ * @param message Token message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1.Document.Page.IToken, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Token message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Token
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1.Document.Page.Token;
+
+ /**
+ * Decodes a Token message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Token
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1.Document.Page.Token;
+
+ /**
+ * Verifies a Token message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Token message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Token
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1.Document.Page.Token;
+
+ /**
+ * Creates a plain object from a Token message. Also converts values to other types if specified.
+ * @param message Token
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1.Document.Page.Token, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Token to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Token
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace Token {
+
+ /** Properties of a DetectedBreak. */
+ interface IDetectedBreak {
+
+ /** DetectedBreak type */
+ type?: (google.cloud.documentai.v1.Document.Page.Token.DetectedBreak.Type|keyof typeof google.cloud.documentai.v1.Document.Page.Token.DetectedBreak.Type|null);
+ }
+
+ /** Represents a DetectedBreak. */
+ class DetectedBreak implements IDetectedBreak {
+
+ /**
+ * Constructs a new DetectedBreak.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1.Document.Page.Token.IDetectedBreak);
+
+ /** DetectedBreak type. */
+ public type: (google.cloud.documentai.v1.Document.Page.Token.DetectedBreak.Type|keyof typeof google.cloud.documentai.v1.Document.Page.Token.DetectedBreak.Type);
+
+ /**
+ * Creates a new DetectedBreak instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DetectedBreak instance
+ */
+ public static create(properties?: google.cloud.documentai.v1.Document.Page.Token.IDetectedBreak): google.cloud.documentai.v1.Document.Page.Token.DetectedBreak;
+
+ /**
+ * Encodes the specified DetectedBreak message. Does not implicitly {@link google.cloud.documentai.v1.Document.Page.Token.DetectedBreak.verify|verify} messages.
+ * @param message DetectedBreak message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1.Document.Page.Token.IDetectedBreak, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DetectedBreak message, length delimited. Does not implicitly {@link google.cloud.documentai.v1.Document.Page.Token.DetectedBreak.verify|verify} messages.
+ * @param message DetectedBreak message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1.Document.Page.Token.IDetectedBreak, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DetectedBreak message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DetectedBreak
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1.Document.Page.Token.DetectedBreak;
+
+ /**
+ * Decodes a DetectedBreak message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DetectedBreak
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1.Document.Page.Token.DetectedBreak;
+
+ /**
+ * Verifies a DetectedBreak message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DetectedBreak message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DetectedBreak
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1.Document.Page.Token.DetectedBreak;
+
+ /**
+ * Creates a plain object from a DetectedBreak message. Also converts values to other types if specified.
+ * @param message DetectedBreak
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1.Document.Page.Token.DetectedBreak, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DetectedBreak to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DetectedBreak
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace DetectedBreak {
+
+ /** Type enum. */
+ enum Type {
+ TYPE_UNSPECIFIED = 0,
+ SPACE = 1,
+ WIDE_SPACE = 2,
+ HYPHEN = 3
+ }
+ }
+ }
+
+ /** Properties of a Symbol. */
+ interface ISymbol {
+
+ /** Symbol layout */
+ layout?: (google.cloud.documentai.v1.Document.Page.ILayout|null);
+
+ /** Symbol detectedLanguages */
+ detectedLanguages?: (google.cloud.documentai.v1.Document.Page.IDetectedLanguage[]|null);
+ }
+
+ /** Represents a Symbol. */
+ class Symbol implements ISymbol {
+
+ /**
+ * Constructs a new Symbol.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1.Document.Page.ISymbol);
+
+ /** Symbol layout. */
+ public layout?: (google.cloud.documentai.v1.Document.Page.ILayout|null);
+
+ /** Symbol detectedLanguages. */
+ public detectedLanguages: google.cloud.documentai.v1.Document.Page.IDetectedLanguage[];
+
+ /**
+ * Creates a new Symbol instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Symbol instance
+ */
+ public static create(properties?: google.cloud.documentai.v1.Document.Page.ISymbol): google.cloud.documentai.v1.Document.Page.Symbol;
+
+ /**
+ * Encodes the specified Symbol message. Does not implicitly {@link google.cloud.documentai.v1.Document.Page.Symbol.verify|verify} messages.
+ * @param message Symbol message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1.Document.Page.ISymbol, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Symbol message, length delimited. Does not implicitly {@link google.cloud.documentai.v1.Document.Page.Symbol.verify|verify} messages.
+ * @param message Symbol message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1.Document.Page.ISymbol, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Symbol message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Symbol
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1.Document.Page.Symbol;
+
+ /**
+ * Decodes a Symbol message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Symbol
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1.Document.Page.Symbol;
+
+ /**
+ * Verifies a Symbol message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Symbol message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Symbol
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1.Document.Page.Symbol;
+
+ /**
+ * Creates a plain object from a Symbol message. Also converts values to other types if specified.
+ * @param message Symbol
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1.Document.Page.Symbol, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Symbol to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Symbol
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a VisualElement. */
+ interface IVisualElement {
+
+ /** VisualElement layout */
+ layout?: (google.cloud.documentai.v1.Document.Page.ILayout|null);
+
+ /** VisualElement type */
+ type?: (string|null);
+
+ /** VisualElement detectedLanguages */
+ detectedLanguages?: (google.cloud.documentai.v1.Document.Page.IDetectedLanguage[]|null);
+ }
+
+ /** Represents a VisualElement. */
+ class VisualElement implements IVisualElement {
+
+ /**
+ * Constructs a new VisualElement.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1.Document.Page.IVisualElement);
+
+ /** VisualElement layout. */
+ public layout?: (google.cloud.documentai.v1.Document.Page.ILayout|null);
+
+ /** VisualElement type. */
+ public type: string;
+
+ /** VisualElement detectedLanguages. */
+ public detectedLanguages: google.cloud.documentai.v1.Document.Page.IDetectedLanguage[];
+
+ /**
+ * Creates a new VisualElement instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns VisualElement instance
+ */
+ public static create(properties?: google.cloud.documentai.v1.Document.Page.IVisualElement): google.cloud.documentai.v1.Document.Page.VisualElement;
+
+ /**
+ * Encodes the specified VisualElement message. Does not implicitly {@link google.cloud.documentai.v1.Document.Page.VisualElement.verify|verify} messages.
+ * @param message VisualElement message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1.Document.Page.IVisualElement, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified VisualElement message, length delimited. Does not implicitly {@link google.cloud.documentai.v1.Document.Page.VisualElement.verify|verify} messages.
+ * @param message VisualElement message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1.Document.Page.IVisualElement, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a VisualElement message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns VisualElement
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1.Document.Page.VisualElement;
+
+ /**
+ * Decodes a VisualElement message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns VisualElement
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1.Document.Page.VisualElement;
+
+ /**
+ * Verifies a VisualElement message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a VisualElement message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns VisualElement
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1.Document.Page.VisualElement;
+
+ /**
+ * Creates a plain object from a VisualElement message. Also converts values to other types if specified.
+ * @param message VisualElement
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1.Document.Page.VisualElement, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this VisualElement to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for VisualElement
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Table. */
+ interface ITable {
+
+ /** Table layout */
+ layout?: (google.cloud.documentai.v1.Document.Page.ILayout|null);
+
+ /** Table headerRows */
+ headerRows?: (google.cloud.documentai.v1.Document.Page.Table.ITableRow[]|null);
+
+ /** Table bodyRows */
+ bodyRows?: (google.cloud.documentai.v1.Document.Page.Table.ITableRow[]|null);
+
+ /** Table detectedLanguages */
+ detectedLanguages?: (google.cloud.documentai.v1.Document.Page.IDetectedLanguage[]|null);
+
+ /** Table provenance */
+ provenance?: (google.cloud.documentai.v1.Document.IProvenance|null);
+ }
+
+ /** Represents a Table. */
+ class Table implements ITable {
+
+ /**
+ * Constructs a new Table.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1.Document.Page.ITable);
+
+ /** Table layout. */
+ public layout?: (google.cloud.documentai.v1.Document.Page.ILayout|null);
+
+ /** Table headerRows. */
+ public headerRows: google.cloud.documentai.v1.Document.Page.Table.ITableRow[];
+
+ /** Table bodyRows. */
+ public bodyRows: google.cloud.documentai.v1.Document.Page.Table.ITableRow[];
+
+ /** Table detectedLanguages. */
+ public detectedLanguages: google.cloud.documentai.v1.Document.Page.IDetectedLanguage[];
+
+ /** Table provenance. */
+ public provenance?: (google.cloud.documentai.v1.Document.IProvenance|null);
+
+ /**
+ * Creates a new Table instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Table instance
+ */
+ public static create(properties?: google.cloud.documentai.v1.Document.Page.ITable): google.cloud.documentai.v1.Document.Page.Table;
+
+ /**
+ * Encodes the specified Table message. Does not implicitly {@link google.cloud.documentai.v1.Document.Page.Table.verify|verify} messages.
+ * @param message Table message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1.Document.Page.ITable, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Table message, length delimited. Does not implicitly {@link google.cloud.documentai.v1.Document.Page.Table.verify|verify} messages.
+ * @param message Table message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1.Document.Page.ITable, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Table message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Table
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1.Document.Page.Table;
+
+ /**
+ * Decodes a Table message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Table
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1.Document.Page.Table;
+
+ /**
+ * Verifies a Table message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Table message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Table
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1.Document.Page.Table;
+
+ /**
+ * Creates a plain object from a Table message. Also converts values to other types if specified.
+ * @param message Table
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1.Document.Page.Table, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Table to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Table
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace Table {
+
+ /** Properties of a TableRow. */
+ interface ITableRow {
+
+ /** TableRow cells */
+ cells?: (google.cloud.documentai.v1.Document.Page.Table.ITableCell[]|null);
+ }
+
+ /** Represents a TableRow. */
+ class TableRow implements ITableRow {
+
+ /**
+ * Constructs a new TableRow.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1.Document.Page.Table.ITableRow);
+
+ /** TableRow cells. */
+ public cells: google.cloud.documentai.v1.Document.Page.Table.ITableCell[];
+
+ /**
+ * Creates a new TableRow instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns TableRow instance
+ */
+ public static create(properties?: google.cloud.documentai.v1.Document.Page.Table.ITableRow): google.cloud.documentai.v1.Document.Page.Table.TableRow;
+
+ /**
+ * Encodes the specified TableRow message. Does not implicitly {@link google.cloud.documentai.v1.Document.Page.Table.TableRow.verify|verify} messages.
+ * @param message TableRow message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1.Document.Page.Table.ITableRow, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified TableRow message, length delimited. Does not implicitly {@link google.cloud.documentai.v1.Document.Page.Table.TableRow.verify|verify} messages.
+ * @param message TableRow message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1.Document.Page.Table.ITableRow, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a TableRow message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns TableRow
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1.Document.Page.Table.TableRow;
+
+ /**
+ * Decodes a TableRow message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns TableRow
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1.Document.Page.Table.TableRow;
+
+ /**
+ * Verifies a TableRow message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a TableRow message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns TableRow
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1.Document.Page.Table.TableRow;
+
+ /**
+ * Creates a plain object from a TableRow message. Also converts values to other types if specified.
+ * @param message TableRow
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1.Document.Page.Table.TableRow, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this TableRow to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for TableRow
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a TableCell. */
+ interface ITableCell {
+
+ /** TableCell layout */
+ layout?: (google.cloud.documentai.v1.Document.Page.ILayout|null);
+
+ /** TableCell rowSpan */
+ rowSpan?: (number|null);
+
+ /** TableCell colSpan */
+ colSpan?: (number|null);
+
+ /** TableCell detectedLanguages */
+ detectedLanguages?: (google.cloud.documentai.v1.Document.Page.IDetectedLanguage[]|null);
+ }
+
+ /** Represents a TableCell. */
+ class TableCell implements ITableCell {
+
+ /**
+ * Constructs a new TableCell.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1.Document.Page.Table.ITableCell);
+
+ /** TableCell layout. */
+ public layout?: (google.cloud.documentai.v1.Document.Page.ILayout|null);
+
+ /** TableCell rowSpan. */
+ public rowSpan: number;
+
+ /** TableCell colSpan. */
+ public colSpan: number;
+
+ /** TableCell detectedLanguages. */
+ public detectedLanguages: google.cloud.documentai.v1.Document.Page.IDetectedLanguage[];
+
+ /**
+ * Creates a new TableCell instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns TableCell instance
+ */
+ public static create(properties?: google.cloud.documentai.v1.Document.Page.Table.ITableCell): google.cloud.documentai.v1.Document.Page.Table.TableCell;
+
+ /**
+ * Encodes the specified TableCell message. Does not implicitly {@link google.cloud.documentai.v1.Document.Page.Table.TableCell.verify|verify} messages.
+ * @param message TableCell message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1.Document.Page.Table.ITableCell, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified TableCell message, length delimited. Does not implicitly {@link google.cloud.documentai.v1.Document.Page.Table.TableCell.verify|verify} messages.
+ * @param message TableCell message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1.Document.Page.Table.ITableCell, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a TableCell message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns TableCell
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1.Document.Page.Table.TableCell;
+
+ /**
+ * Decodes a TableCell message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns TableCell
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1.Document.Page.Table.TableCell;
+
+ /**
+ * Verifies a TableCell message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a TableCell message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns TableCell
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1.Document.Page.Table.TableCell;
+
+ /**
+ * Creates a plain object from a TableCell message. Also converts values to other types if specified.
+ * @param message TableCell
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1.Document.Page.Table.TableCell, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this TableCell to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for TableCell
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of a FormField. */
+ interface IFormField {
+
+ /** FormField fieldName */
+ fieldName?: (google.cloud.documentai.v1.Document.Page.ILayout|null);
+
+ /** FormField fieldValue */
+ fieldValue?: (google.cloud.documentai.v1.Document.Page.ILayout|null);
+
+ /** FormField nameDetectedLanguages */
+ nameDetectedLanguages?: (google.cloud.documentai.v1.Document.Page.IDetectedLanguage[]|null);
+
+ /** FormField valueDetectedLanguages */
+ valueDetectedLanguages?: (google.cloud.documentai.v1.Document.Page.IDetectedLanguage[]|null);
+
+ /** FormField valueType */
+ valueType?: (string|null);
+
+ /** FormField correctedKeyText */
+ correctedKeyText?: (string|null);
+
+ /** FormField correctedValueText */
+ correctedValueText?: (string|null);
+
+ /** FormField provenance */
+ provenance?: (google.cloud.documentai.v1.Document.IProvenance|null);
+ }
+
+ /** Represents a FormField. */
+ class FormField implements IFormField {
+
+ /**
+ * Constructs a new FormField.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1.Document.Page.IFormField);
+
+ /** FormField fieldName. */
+ public fieldName?: (google.cloud.documentai.v1.Document.Page.ILayout|null);
+
+ /** FormField fieldValue. */
+ public fieldValue?: (google.cloud.documentai.v1.Document.Page.ILayout|null);
+
+ /** FormField nameDetectedLanguages. */
+ public nameDetectedLanguages: google.cloud.documentai.v1.Document.Page.IDetectedLanguage[];
+
+ /** FormField valueDetectedLanguages. */
+ public valueDetectedLanguages: google.cloud.documentai.v1.Document.Page.IDetectedLanguage[];
+
+ /** FormField valueType. */
+ public valueType: string;
+
+ /** FormField correctedKeyText. */
+ public correctedKeyText: string;
+
+ /** FormField correctedValueText. */
+ public correctedValueText: string;
+
+ /** FormField provenance. */
+ public provenance?: (google.cloud.documentai.v1.Document.IProvenance|null);
+
+ /**
+ * Creates a new FormField instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FormField instance
+ */
+ public static create(properties?: google.cloud.documentai.v1.Document.Page.IFormField): google.cloud.documentai.v1.Document.Page.FormField;
+
+ /**
+ * Encodes the specified FormField message. Does not implicitly {@link google.cloud.documentai.v1.Document.Page.FormField.verify|verify} messages.
+ * @param message FormField message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1.Document.Page.IFormField, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FormField message, length delimited. Does not implicitly {@link google.cloud.documentai.v1.Document.Page.FormField.verify|verify} messages.
+ * @param message FormField message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1.Document.Page.IFormField, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FormField message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FormField
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1.Document.Page.FormField;
+
+ /**
+ * Decodes a FormField message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FormField
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1.Document.Page.FormField;
+
+ /**
+ * Verifies a FormField message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FormField message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FormField
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1.Document.Page.FormField;
+
+ /**
+ * Creates a plain object from a FormField message. Also converts values to other types if specified.
+ * @param message FormField
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1.Document.Page.FormField, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FormField to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FormField
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DetectedBarcode. */
+ interface IDetectedBarcode {
+
+ /** DetectedBarcode layout */
+ layout?: (google.cloud.documentai.v1.Document.Page.ILayout|null);
+
+ /** DetectedBarcode barcode */
+ barcode?: (google.cloud.documentai.v1.IBarcode|null);
+ }
+
+ /** Represents a DetectedBarcode. */
+ class DetectedBarcode implements IDetectedBarcode {
+
+ /**
+ * Constructs a new DetectedBarcode.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1.Document.Page.IDetectedBarcode);
+
+ /** DetectedBarcode layout. */
+ public layout?: (google.cloud.documentai.v1.Document.Page.ILayout|null);
+
+ /** DetectedBarcode barcode. */
+ public barcode?: (google.cloud.documentai.v1.IBarcode|null);
+
+ /**
+ * Creates a new DetectedBarcode instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DetectedBarcode instance
+ */
+ public static create(properties?: google.cloud.documentai.v1.Document.Page.IDetectedBarcode): google.cloud.documentai.v1.Document.Page.DetectedBarcode;
+
+ /**
+ * Encodes the specified DetectedBarcode message. Does not implicitly {@link google.cloud.documentai.v1.Document.Page.DetectedBarcode.verify|verify} messages.
+ * @param message DetectedBarcode message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1.Document.Page.IDetectedBarcode, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DetectedBarcode message, length delimited. Does not implicitly {@link google.cloud.documentai.v1.Document.Page.DetectedBarcode.verify|verify} messages.
+ * @param message DetectedBarcode message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1.Document.Page.IDetectedBarcode, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DetectedBarcode message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DetectedBarcode
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1.Document.Page.DetectedBarcode;
+
+ /**
+ * Decodes a DetectedBarcode message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DetectedBarcode
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1.Document.Page.DetectedBarcode;
+
+ /**
+ * Verifies a DetectedBarcode message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DetectedBarcode message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DetectedBarcode
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1.Document.Page.DetectedBarcode;
+
+ /**
+ * Creates a plain object from a DetectedBarcode message. Also converts values to other types if specified.
+ * @param message DetectedBarcode
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1.Document.Page.DetectedBarcode, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DetectedBarcode to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DetectedBarcode
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DetectedLanguage. */
+ interface IDetectedLanguage {
+
+ /** DetectedLanguage languageCode */
+ languageCode?: (string|null);
+
+ /** DetectedLanguage confidence */
+ confidence?: (number|null);
+ }
+
+ /** Represents a DetectedLanguage. */
+ class DetectedLanguage implements IDetectedLanguage {
+
+ /**
+ * Constructs a new DetectedLanguage.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1.Document.Page.IDetectedLanguage);
+
+ /** DetectedLanguage languageCode. */
+ public languageCode: string;
+
+ /** DetectedLanguage confidence. */
+ public confidence: number;
+
+ /**
+ * Creates a new DetectedLanguage instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DetectedLanguage instance
+ */
+ public static create(properties?: google.cloud.documentai.v1.Document.Page.IDetectedLanguage): google.cloud.documentai.v1.Document.Page.DetectedLanguage;
+
+ /**
+ * Encodes the specified DetectedLanguage message. Does not implicitly {@link google.cloud.documentai.v1.Document.Page.DetectedLanguage.verify|verify} messages.
+ * @param message DetectedLanguage message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1.Document.Page.IDetectedLanguage, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DetectedLanguage message, length delimited. Does not implicitly {@link google.cloud.documentai.v1.Document.Page.DetectedLanguage.verify|verify} messages.
+ * @param message DetectedLanguage message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1.Document.Page.IDetectedLanguage, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DetectedLanguage message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DetectedLanguage
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1.Document.Page.DetectedLanguage;
+
+ /**
+ * Decodes a DetectedLanguage message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DetectedLanguage
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1.Document.Page.DetectedLanguage;
+
+ /**
+ * Verifies a DetectedLanguage message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DetectedLanguage message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DetectedLanguage
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1.Document.Page.DetectedLanguage;
+
+ /**
+ * Creates a plain object from a DetectedLanguage message. Also converts values to other types if specified.
+ * @param message DetectedLanguage
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1.Document.Page.DetectedLanguage, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DetectedLanguage to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DetectedLanguage
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an ImageQualityScores. */
+ interface IImageQualityScores {
+
+ /** ImageQualityScores qualityScore */
+ qualityScore?: (number|null);
+
+ /** ImageQualityScores detectedDefects */
+ detectedDefects?: (google.cloud.documentai.v1.Document.Page.ImageQualityScores.IDetectedDefect[]|null);
+ }
+
+ /** Represents an ImageQualityScores. */
+ class ImageQualityScores implements IImageQualityScores {
+
+ /**
+ * Constructs a new ImageQualityScores.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1.Document.Page.IImageQualityScores);
+
+ /** ImageQualityScores qualityScore. */
+ public qualityScore: number;
+
+ /** ImageQualityScores detectedDefects. */
+ public detectedDefects: google.cloud.documentai.v1.Document.Page.ImageQualityScores.IDetectedDefect[];
+
+ /**
+ * Creates a new ImageQualityScores instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ImageQualityScores instance
+ */
+ public static create(properties?: google.cloud.documentai.v1.Document.Page.IImageQualityScores): google.cloud.documentai.v1.Document.Page.ImageQualityScores;
+
+ /**
+ * Encodes the specified ImageQualityScores message. Does not implicitly {@link google.cloud.documentai.v1.Document.Page.ImageQualityScores.verify|verify} messages.
+ * @param message ImageQualityScores message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1.Document.Page.IImageQualityScores, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ImageQualityScores message, length delimited. Does not implicitly {@link google.cloud.documentai.v1.Document.Page.ImageQualityScores.verify|verify} messages.
+ * @param message ImageQualityScores message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1.Document.Page.IImageQualityScores, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an ImageQualityScores message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ImageQualityScores
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1.Document.Page.ImageQualityScores;
+
+ /**
+ * Decodes an ImageQualityScores message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ImageQualityScores
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1.Document.Page.ImageQualityScores;
+
+ /**
+ * Verifies an ImageQualityScores message.
+ * @param message Plain 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 ImageQualityScores message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ImageQualityScores
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1.Document.Page.ImageQualityScores;
+
+ /**
+ * Creates a plain object from an ImageQualityScores message. Also converts values to other types if specified.
+ * @param message ImageQualityScores
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1.Document.Page.ImageQualityScores, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ImageQualityScores to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ImageQualityScores
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace ImageQualityScores {
+
+ /** Properties of a DetectedDefect. */
+ interface IDetectedDefect {
+
+ /** DetectedDefect type */
+ type?: (string|null);
+
+ /** DetectedDefect confidence */
+ confidence?: (number|null);
+ }
+
+ /** Represents a DetectedDefect. */
+ class DetectedDefect implements IDetectedDefect {
+
+ /**
+ * Constructs a new DetectedDefect.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1.Document.Page.ImageQualityScores.IDetectedDefect);
+
+ /** DetectedDefect type. */
+ public type: string;
+
+ /** DetectedDefect confidence. */
+ public confidence: number;
+
+ /**
+ * Creates a new DetectedDefect instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DetectedDefect instance
+ */
+ public static create(properties?: google.cloud.documentai.v1.Document.Page.ImageQualityScores.IDetectedDefect): google.cloud.documentai.v1.Document.Page.ImageQualityScores.DetectedDefect;
+
+ /**
+ * Encodes the specified DetectedDefect message. Does not implicitly {@link google.cloud.documentai.v1.Document.Page.ImageQualityScores.DetectedDefect.verify|verify} messages.
+ * @param message DetectedDefect message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1.Document.Page.ImageQualityScores.IDetectedDefect, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DetectedDefect message, length delimited. Does not implicitly {@link google.cloud.documentai.v1.Document.Page.ImageQualityScores.DetectedDefect.verify|verify} messages.
+ * @param message DetectedDefect message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1.Document.Page.ImageQualityScores.IDetectedDefect, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DetectedDefect message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DetectedDefect
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1.Document.Page.ImageQualityScores.DetectedDefect;
+
+ /**
+ * Decodes a DetectedDefect message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DetectedDefect
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1.Document.Page.ImageQualityScores.DetectedDefect;
+
+ /**
+ * Verifies a DetectedDefect message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DetectedDefect message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DetectedDefect
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1.Document.Page.ImageQualityScores.DetectedDefect;
+
+ /**
+ * Creates a plain object from a DetectedDefect message. Also converts values to other types if specified.
+ * @param message DetectedDefect
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1.Document.Page.ImageQualityScores.DetectedDefect, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DetectedDefect to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DetectedDefect
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+ }
+
+ /** Properties of an Entity. */
+ interface IEntity {
+
+ /** Entity textAnchor */
+ textAnchor?: (google.cloud.documentai.v1.Document.ITextAnchor|null);
+
+ /** Entity type */
+ type?: (string|null);
+
+ /** Entity mentionText */
+ mentionText?: (string|null);
+
+ /** Entity mentionId */
+ mentionId?: (string|null);
+
+ /** Entity confidence */
+ confidence?: (number|null);
+
+ /** Entity pageAnchor */
+ pageAnchor?: (google.cloud.documentai.v1.Document.IPageAnchor|null);
+
+ /** Entity id */
+ id?: (string|null);
+
+ /** Entity normalizedValue */
+ normalizedValue?: (google.cloud.documentai.v1.Document.Entity.INormalizedValue|null);
+
+ /** Entity properties */
+ properties?: (google.cloud.documentai.v1.Document.IEntity[]|null);
+
+ /** Entity provenance */
+ provenance?: (google.cloud.documentai.v1.Document.IProvenance|null);
+
+ /** Entity redacted */
+ redacted?: (boolean|null);
+ }
+
+ /** Represents an Entity. */
+ class Entity implements IEntity {
+
+ /**
+ * Constructs a new Entity.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1.Document.IEntity);
+
+ /** Entity textAnchor. */
+ public textAnchor?: (google.cloud.documentai.v1.Document.ITextAnchor|null);
+
+ /** Entity type. */
+ public type: string;
+
+ /** Entity mentionText. */
+ public mentionText: string;
+
+ /** Entity mentionId. */
+ public mentionId: string;
+
+ /** Entity confidence. */
+ public confidence: number;
+
+ /** Entity pageAnchor. */
+ public pageAnchor?: (google.cloud.documentai.v1.Document.IPageAnchor|null);
+
+ /** Entity id. */
+ public id: string;
+
+ /** Entity normalizedValue. */
+ public normalizedValue?: (google.cloud.documentai.v1.Document.Entity.INormalizedValue|null);
+
+ /** Entity properties. */
+ public properties: google.cloud.documentai.v1.Document.IEntity[];
+
+ /** Entity provenance. */
+ public provenance?: (google.cloud.documentai.v1.Document.IProvenance|null);
+
+ /** Entity redacted. */
+ public redacted: boolean;
+
+ /**
+ * Creates a new Entity instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Entity instance
+ */
+ public static create(properties?: google.cloud.documentai.v1.Document.IEntity): google.cloud.documentai.v1.Document.Entity;
+
+ /**
+ * Encodes the specified Entity message. Does not implicitly {@link google.cloud.documentai.v1.Document.Entity.verify|verify} messages.
+ * @param message Entity message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1.Document.IEntity, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Entity message, length delimited. Does not implicitly {@link google.cloud.documentai.v1.Document.Entity.verify|verify} messages.
+ * @param message Entity message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1.Document.IEntity, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an Entity message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Entity
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1.Document.Entity;
+
+ /**
+ * Decodes an Entity message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Entity
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1.Document.Entity;
+
+ /**
+ * Verifies an Entity message.
+ * @param message Plain 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 Entity message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Entity
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1.Document.Entity;
+
+ /**
+ * Creates a plain object from an Entity message. Also converts values to other types if specified.
+ * @param message Entity
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1.Document.Entity, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Entity to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Entity
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace Entity {
+
+ /** Properties of a NormalizedValue. */
+ interface INormalizedValue {
+
+ /** NormalizedValue moneyValue */
+ moneyValue?: (google.type.IMoney|null);
+
+ /** NormalizedValue dateValue */
+ dateValue?: (google.type.IDate|null);
+
+ /** NormalizedValue datetimeValue */
+ datetimeValue?: (google.type.IDateTime|null);
+
+ /** NormalizedValue addressValue */
+ addressValue?: (google.type.IPostalAddress|null);
+
+ /** NormalizedValue booleanValue */
+ booleanValue?: (boolean|null);
+
+ /** NormalizedValue integerValue */
+ integerValue?: (number|null);
+
+ /** NormalizedValue floatValue */
+ floatValue?: (number|null);
+
+ /** NormalizedValue text */
+ text?: (string|null);
+ }
+
+ /** Represents a NormalizedValue. */
+ class NormalizedValue implements INormalizedValue {
+
+ /**
+ * Constructs a new NormalizedValue.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1.Document.Entity.INormalizedValue);
+
+ /** NormalizedValue moneyValue. */
+ public moneyValue?: (google.type.IMoney|null);
+
+ /** NormalizedValue dateValue. */
+ public dateValue?: (google.type.IDate|null);
+
+ /** NormalizedValue datetimeValue. */
+ public datetimeValue?: (google.type.IDateTime|null);
+
+ /** NormalizedValue addressValue. */
+ public addressValue?: (google.type.IPostalAddress|null);
+
+ /** NormalizedValue booleanValue. */
+ public booleanValue?: (boolean|null);
+
+ /** NormalizedValue integerValue. */
+ public integerValue?: (number|null);
+
+ /** NormalizedValue floatValue. */
+ public floatValue?: (number|null);
+
+ /** NormalizedValue text. */
+ public text: string;
+
+ /** NormalizedValue structuredValue. */
+ public structuredValue?: ("moneyValue"|"dateValue"|"datetimeValue"|"addressValue"|"booleanValue"|"integerValue"|"floatValue");
+
+ /**
+ * Creates a new NormalizedValue instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns NormalizedValue instance
+ */
+ public static create(properties?: google.cloud.documentai.v1.Document.Entity.INormalizedValue): google.cloud.documentai.v1.Document.Entity.NormalizedValue;
+
+ /**
+ * Encodes the specified NormalizedValue message. Does not implicitly {@link google.cloud.documentai.v1.Document.Entity.NormalizedValue.verify|verify} messages.
+ * @param message NormalizedValue message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1.Document.Entity.INormalizedValue, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified NormalizedValue message, length delimited. Does not implicitly {@link google.cloud.documentai.v1.Document.Entity.NormalizedValue.verify|verify} messages.
+ * @param message NormalizedValue message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1.Document.Entity.INormalizedValue, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a NormalizedValue message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns NormalizedValue
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1.Document.Entity.NormalizedValue;
+
+ /**
+ * Decodes a NormalizedValue message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns NormalizedValue
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1.Document.Entity.NormalizedValue;
+
+ /**
+ * Verifies a NormalizedValue message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a NormalizedValue message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns NormalizedValue
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1.Document.Entity.NormalizedValue;
+
+ /**
+ * Creates a plain object from a NormalizedValue message. Also converts values to other types if specified.
+ * @param message NormalizedValue
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1.Document.Entity.NormalizedValue, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this NormalizedValue to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for NormalizedValue
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of an EntityRelation. */
+ interface IEntityRelation {
+
+ /** EntityRelation subjectId */
+ subjectId?: (string|null);
+
+ /** EntityRelation objectId */
+ objectId?: (string|null);
+
+ /** EntityRelation relation */
+ relation?: (string|null);
+ }
+
+ /** Represents an EntityRelation. */
+ class EntityRelation implements IEntityRelation {
+
+ /**
+ * Constructs a new EntityRelation.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1.Document.IEntityRelation);
+
+ /** EntityRelation subjectId. */
+ public subjectId: string;
+
+ /** EntityRelation objectId. */
+ public objectId: string;
+
+ /** EntityRelation relation. */
+ public relation: string;
+
+ /**
+ * Creates a new EntityRelation instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns EntityRelation instance
+ */
+ public static create(properties?: google.cloud.documentai.v1.Document.IEntityRelation): google.cloud.documentai.v1.Document.EntityRelation;
+
+ /**
+ * Encodes the specified EntityRelation message. Does not implicitly {@link google.cloud.documentai.v1.Document.EntityRelation.verify|verify} messages.
+ * @param message EntityRelation message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1.Document.IEntityRelation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified EntityRelation message, length delimited. Does not implicitly {@link google.cloud.documentai.v1.Document.EntityRelation.verify|verify} messages.
+ * @param message EntityRelation message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1.Document.IEntityRelation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an EntityRelation message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns EntityRelation
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1.Document.EntityRelation;
+
+ /**
+ * Decodes an EntityRelation message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns EntityRelation
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1.Document.EntityRelation;
+
+ /**
+ * Verifies an EntityRelation message.
+ * @param message Plain 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 EntityRelation message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns EntityRelation
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1.Document.EntityRelation;
+
+ /**
+ * Creates a plain object from an EntityRelation message. Also converts values to other types if specified.
+ * @param message EntityRelation
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1.Document.EntityRelation, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this EntityRelation to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for EntityRelation
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a TextAnchor. */
+ interface ITextAnchor {
+
+ /** TextAnchor textSegments */
+ textSegments?: (google.cloud.documentai.v1.Document.TextAnchor.ITextSegment[]|null);
+
+ /** TextAnchor content */
+ content?: (string|null);
+ }
+
+ /** Represents a TextAnchor. */
+ class TextAnchor implements ITextAnchor {
+
+ /**
+ * Constructs a new TextAnchor.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1.Document.ITextAnchor);
+
+ /** TextAnchor textSegments. */
+ public textSegments: google.cloud.documentai.v1.Document.TextAnchor.ITextSegment[];
+
+ /** TextAnchor content. */
+ public content: string;
+
+ /**
+ * Creates a new TextAnchor instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns TextAnchor instance
+ */
+ public static create(properties?: google.cloud.documentai.v1.Document.ITextAnchor): google.cloud.documentai.v1.Document.TextAnchor;
+
+ /**
+ * Encodes the specified TextAnchor message. Does not implicitly {@link google.cloud.documentai.v1.Document.TextAnchor.verify|verify} messages.
+ * @param message TextAnchor message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1.Document.ITextAnchor, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified TextAnchor message, length delimited. Does not implicitly {@link google.cloud.documentai.v1.Document.TextAnchor.verify|verify} messages.
+ * @param message TextAnchor message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1.Document.ITextAnchor, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a TextAnchor message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns TextAnchor
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1.Document.TextAnchor;
+
+ /**
+ * Decodes a TextAnchor message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns TextAnchor
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1.Document.TextAnchor;
+
+ /**
+ * Verifies a TextAnchor message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a TextAnchor message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns TextAnchor
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1.Document.TextAnchor;
+
+ /**
+ * Creates a plain object from a TextAnchor message. Also converts values to other types if specified.
+ * @param message TextAnchor
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1.Document.TextAnchor, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this TextAnchor to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for TextAnchor
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace TextAnchor {
+
+ /** Properties of a TextSegment. */
+ interface ITextSegment {
+
+ /** TextSegment startIndex */
+ startIndex?: (number|Long|string|null);
+
+ /** TextSegment endIndex */
+ endIndex?: (number|Long|string|null);
+ }
+
+ /** Represents a TextSegment. */
+ class TextSegment implements ITextSegment {
+
+ /**
+ * Constructs a new TextSegment.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1.Document.TextAnchor.ITextSegment);
+
+ /** TextSegment startIndex. */
+ public startIndex: (number|Long|string);
+
+ /** TextSegment endIndex. */
+ public endIndex: (number|Long|string);
+
+ /**
+ * Creates a new TextSegment instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns TextSegment instance
+ */
+ public static create(properties?: google.cloud.documentai.v1.Document.TextAnchor.ITextSegment): google.cloud.documentai.v1.Document.TextAnchor.TextSegment;
+
+ /**
+ * Encodes the specified TextSegment message. Does not implicitly {@link google.cloud.documentai.v1.Document.TextAnchor.TextSegment.verify|verify} messages.
+ * @param message TextSegment message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1.Document.TextAnchor.ITextSegment, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified TextSegment message, length delimited. Does not implicitly {@link google.cloud.documentai.v1.Document.TextAnchor.TextSegment.verify|verify} messages.
+ * @param message TextSegment message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1.Document.TextAnchor.ITextSegment, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a TextSegment message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns TextSegment
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1.Document.TextAnchor.TextSegment;
+
+ /**
+ * Decodes a TextSegment message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns TextSegment
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1.Document.TextAnchor.TextSegment;
+
+ /**
+ * Verifies a TextSegment message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a TextSegment message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns TextSegment
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1.Document.TextAnchor.TextSegment;
+
+ /**
+ * Creates a plain object from a TextSegment message. Also converts values to other types if specified.
+ * @param message TextSegment
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1.Document.TextAnchor.TextSegment, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this TextSegment to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for TextSegment
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of a PageAnchor. */
+ interface IPageAnchor {
+
+ /** PageAnchor pageRefs */
+ pageRefs?: (google.cloud.documentai.v1.Document.PageAnchor.IPageRef[]|null);
+ }
+
+ /** Represents a PageAnchor. */
+ class PageAnchor implements IPageAnchor {
+
+ /**
+ * Constructs a new PageAnchor.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1.Document.IPageAnchor);
+
+ /** PageAnchor pageRefs. */
+ public pageRefs: google.cloud.documentai.v1.Document.PageAnchor.IPageRef[];
+
+ /**
+ * Creates a new PageAnchor instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns PageAnchor instance
+ */
+ public static create(properties?: google.cloud.documentai.v1.Document.IPageAnchor): google.cloud.documentai.v1.Document.PageAnchor;
+
+ /**
+ * Encodes the specified PageAnchor message. Does not implicitly {@link google.cloud.documentai.v1.Document.PageAnchor.verify|verify} messages.
+ * @param message PageAnchor message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1.Document.IPageAnchor, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified PageAnchor message, length delimited. Does not implicitly {@link google.cloud.documentai.v1.Document.PageAnchor.verify|verify} messages.
+ * @param message PageAnchor message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1.Document.IPageAnchor, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a PageAnchor message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns PageAnchor
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1.Document.PageAnchor;
+
+ /**
+ * Decodes a PageAnchor message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns PageAnchor
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1.Document.PageAnchor;
+
+ /**
+ * Verifies a PageAnchor message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a PageAnchor message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns PageAnchor
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1.Document.PageAnchor;
+
+ /**
+ * Creates a plain object from a PageAnchor message. Also converts values to other types if specified.
+ * @param message PageAnchor
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1.Document.PageAnchor, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this PageAnchor to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for PageAnchor
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace PageAnchor {
+
+ /** Properties of a PageRef. */
+ interface IPageRef {
+
+ /** PageRef page */
+ page?: (number|Long|string|null);
+
+ /** PageRef layoutType */
+ layoutType?: (google.cloud.documentai.v1.Document.PageAnchor.PageRef.LayoutType|keyof typeof google.cloud.documentai.v1.Document.PageAnchor.PageRef.LayoutType|null);
+
+ /** PageRef layoutId */
+ layoutId?: (string|null);
+
+ /** PageRef boundingPoly */
+ boundingPoly?: (google.cloud.documentai.v1.IBoundingPoly|null);
+
+ /** PageRef confidence */
+ confidence?: (number|null);
+ }
+
+ /** Represents a PageRef. */
+ class PageRef implements IPageRef {
+
+ /**
+ * Constructs a new PageRef.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1.Document.PageAnchor.IPageRef);
+
+ /** PageRef page. */
+ public page: (number|Long|string);
+
+ /** PageRef layoutType. */
+ public layoutType: (google.cloud.documentai.v1.Document.PageAnchor.PageRef.LayoutType|keyof typeof google.cloud.documentai.v1.Document.PageAnchor.PageRef.LayoutType);
+
+ /** PageRef layoutId. */
+ public layoutId: string;
+
+ /** PageRef boundingPoly. */
+ public boundingPoly?: (google.cloud.documentai.v1.IBoundingPoly|null);
+
+ /** PageRef confidence. */
+ public confidence: number;
+
+ /**
+ * Creates a new PageRef instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns PageRef instance
+ */
+ public static create(properties?: google.cloud.documentai.v1.Document.PageAnchor.IPageRef): google.cloud.documentai.v1.Document.PageAnchor.PageRef;
+
+ /**
+ * Encodes the specified PageRef message. Does not implicitly {@link google.cloud.documentai.v1.Document.PageAnchor.PageRef.verify|verify} messages.
+ * @param message PageRef message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1.Document.PageAnchor.IPageRef, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified PageRef message, length delimited. Does not implicitly {@link google.cloud.documentai.v1.Document.PageAnchor.PageRef.verify|verify} messages.
+ * @param message PageRef message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1.Document.PageAnchor.IPageRef, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a PageRef message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns PageRef
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1.Document.PageAnchor.PageRef;
+
+ /**
+ * Decodes a PageRef message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns PageRef
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1.Document.PageAnchor.PageRef;
+
+ /**
+ * Verifies a PageRef message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a PageRef message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns PageRef
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1.Document.PageAnchor.PageRef;
+
+ /**
+ * Creates a plain object from a PageRef message. Also converts values to other types if specified.
+ * @param message PageRef
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1.Document.PageAnchor.PageRef, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this PageRef to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for PageRef
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace PageRef {
+
+ /** LayoutType enum. */
+ enum LayoutType {
+ LAYOUT_TYPE_UNSPECIFIED = 0,
+ BLOCK = 1,
+ PARAGRAPH = 2,
+ LINE = 3,
+ TOKEN = 4,
+ VISUAL_ELEMENT = 5,
+ TABLE = 6,
+ FORM_FIELD = 7
+ }
+ }
+ }
+
+ /** Properties of a Provenance. */
+ interface IProvenance {
+
+ /** Provenance revision */
+ revision?: (number|null);
+
+ /** Provenance id */
+ id?: (number|null);
+
+ /** Provenance parents */
+ parents?: (google.cloud.documentai.v1.Document.Provenance.IParent[]|null);
+
+ /** Provenance type */
+ type?: (google.cloud.documentai.v1.Document.Provenance.OperationType|keyof typeof google.cloud.documentai.v1.Document.Provenance.OperationType|null);
+ }
+
+ /** Represents a Provenance. */
+ class Provenance implements IProvenance {
+
+ /**
+ * Constructs a new Provenance.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1.Document.IProvenance);
+
+ /** Provenance revision. */
+ public revision: number;
+
+ /** Provenance id. */
+ public id: number;
+
+ /** Provenance parents. */
+ public parents: google.cloud.documentai.v1.Document.Provenance.IParent[];
+
+ /** Provenance type. */
+ public type: (google.cloud.documentai.v1.Document.Provenance.OperationType|keyof typeof google.cloud.documentai.v1.Document.Provenance.OperationType);
+
+ /**
+ * Creates a new Provenance instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Provenance instance
+ */
+ public static create(properties?: google.cloud.documentai.v1.Document.IProvenance): google.cloud.documentai.v1.Document.Provenance;
+
+ /**
+ * Encodes the specified Provenance message. Does not implicitly {@link google.cloud.documentai.v1.Document.Provenance.verify|verify} messages.
+ * @param message Provenance message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1.Document.IProvenance, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Provenance message, length delimited. Does not implicitly {@link google.cloud.documentai.v1.Document.Provenance.verify|verify} messages.
+ * @param message Provenance message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1.Document.IProvenance, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Provenance message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Provenance
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1.Document.Provenance;
+
+ /**
+ * Decodes a Provenance message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Provenance
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1.Document.Provenance;
+
+ /**
+ * Verifies a Provenance message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Provenance message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Provenance
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1.Document.Provenance;
+
+ /**
+ * Creates a plain object from a Provenance message. Also converts values to other types if specified.
+ * @param message Provenance
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1.Document.Provenance, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Provenance to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Provenance
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace Provenance {
+
+ /** Properties of a Parent. */
+ interface IParent {
+
+ /** Parent revision */
+ revision?: (number|null);
+
+ /** Parent index */
+ index?: (number|null);
+
+ /** Parent id */
+ id?: (number|null);
+ }
+
+ /** Represents a Parent. */
+ class Parent implements IParent {
+
+ /**
+ * Constructs a new Parent.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1.Document.Provenance.IParent);
+
+ /** Parent revision. */
+ public revision: number;
+
+ /** Parent index. */
+ public index: number;
+
+ /** Parent id. */
+ public id: number;
+
+ /**
+ * Creates a new Parent instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Parent instance
+ */
+ public static create(properties?: google.cloud.documentai.v1.Document.Provenance.IParent): google.cloud.documentai.v1.Document.Provenance.Parent;
+
+ /**
+ * Encodes the specified Parent message. Does not implicitly {@link google.cloud.documentai.v1.Document.Provenance.Parent.verify|verify} messages.
+ * @param message Parent message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1.Document.Provenance.IParent, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Parent message, length delimited. Does not implicitly {@link google.cloud.documentai.v1.Document.Provenance.Parent.verify|verify} messages.
+ * @param message Parent message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1.Document.Provenance.IParent, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Parent message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Parent
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1.Document.Provenance.Parent;
+
+ /**
+ * Decodes a Parent message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Parent
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1.Document.Provenance.Parent;
+
+ /**
+ * Verifies a Parent message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Parent message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Parent
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1.Document.Provenance.Parent;
+
+ /**
+ * Creates a plain object from a Parent message. Also converts values to other types if specified.
+ * @param message Parent
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1.Document.Provenance.Parent, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Parent to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Parent
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** OperationType enum. */
+ enum OperationType {
+ OPERATION_TYPE_UNSPECIFIED = 0,
+ ADD = 1,
+ REMOVE = 2,
+ REPLACE = 3,
+ EVAL_REQUESTED = 4,
+ EVAL_APPROVED = 5,
+ EVAL_SKIPPED = 6
+ }
+ }
+
+ /** Properties of a Revision. */
+ interface IRevision {
+
+ /** Revision agent */
+ agent?: (string|null);
+
+ /** Revision processor */
+ processor?: (string|null);
+
+ /** Revision id */
+ id?: (string|null);
+
+ /** Revision parent */
+ parent?: (number[]|null);
+
+ /** Revision parentIds */
+ parentIds?: (string[]|null);
+
+ /** Revision createTime */
+ createTime?: (google.protobuf.ITimestamp|null);
+
+ /** Revision humanReview */
+ humanReview?: (google.cloud.documentai.v1.Document.Revision.IHumanReview|null);
+ }
+
+ /** Represents a Revision. */
+ class Revision implements IRevision {
+
+ /**
+ * Constructs a new Revision.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1.Document.IRevision);
+
+ /** Revision agent. */
+ public agent?: (string|null);
+
+ /** Revision processor. */
+ public processor?: (string|null);
+
+ /** Revision id. */
+ public id: string;
+
+ /** Revision parent. */
+ public parent: number[];
+
+ /** Revision parentIds. */
+ public parentIds: string[];
+
+ /** Revision createTime. */
+ public createTime?: (google.protobuf.ITimestamp|null);
+
+ /** Revision humanReview. */
+ public humanReview?: (google.cloud.documentai.v1.Document.Revision.IHumanReview|null);
+
+ /** Revision source. */
+ public source?: ("agent"|"processor");
+
+ /**
+ * Creates a new Revision instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Revision instance
+ */
+ public static create(properties?: google.cloud.documentai.v1.Document.IRevision): google.cloud.documentai.v1.Document.Revision;
+
+ /**
+ * Encodes the specified Revision message. Does not implicitly {@link google.cloud.documentai.v1.Document.Revision.verify|verify} messages.
+ * @param message Revision message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1.Document.IRevision, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Revision message, length delimited. Does not implicitly {@link google.cloud.documentai.v1.Document.Revision.verify|verify} messages.
+ * @param message Revision message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1.Document.IRevision, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Revision message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Revision
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1.Document.Revision;
+
+ /**
+ * Decodes a Revision message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Revision
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1.Document.Revision;
+
+ /**
+ * Verifies a Revision message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Revision message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Revision
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1.Document.Revision;
+
+ /**
+ * Creates a plain object from a Revision message. Also converts values to other types if specified.
+ * @param message Revision
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1.Document.Revision, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Revision to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Revision
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace Revision {
+
+ /** Properties of a HumanReview. */
+ interface IHumanReview {
+
+ /** HumanReview state */
+ state?: (string|null);
+
+ /** HumanReview stateMessage */
+ stateMessage?: (string|null);
+ }
+
+ /** Represents a HumanReview. */
+ class HumanReview implements IHumanReview {
+
+ /**
+ * Constructs a new HumanReview.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1.Document.Revision.IHumanReview);
+
+ /** HumanReview state. */
+ public state: string;
+
+ /** HumanReview stateMessage. */
+ public stateMessage: string;
+
+ /**
+ * Creates a new HumanReview instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns HumanReview instance
+ */
+ public static create(properties?: google.cloud.documentai.v1.Document.Revision.IHumanReview): google.cloud.documentai.v1.Document.Revision.HumanReview;
+
+ /**
+ * Encodes the specified HumanReview message. Does not implicitly {@link google.cloud.documentai.v1.Document.Revision.HumanReview.verify|verify} messages.
+ * @param message HumanReview message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1.Document.Revision.IHumanReview, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified HumanReview message, length delimited. Does not implicitly {@link google.cloud.documentai.v1.Document.Revision.HumanReview.verify|verify} messages.
+ * @param message HumanReview message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1.Document.Revision.IHumanReview, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a HumanReview message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns HumanReview
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1.Document.Revision.HumanReview;
+
+ /**
+ * Decodes a HumanReview message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns HumanReview
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1.Document.Revision.HumanReview;
+
+ /**
+ * Verifies a HumanReview message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a HumanReview message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns HumanReview
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1.Document.Revision.HumanReview;
+
+ /**
+ * Creates a plain object from a HumanReview message. Also converts values to other types if specified.
+ * @param message HumanReview
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1.Document.Revision.HumanReview, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this HumanReview to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for HumanReview
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of a TextChange. */
+ interface ITextChange {
+
+ /** TextChange textAnchor */
+ textAnchor?: (google.cloud.documentai.v1.Document.ITextAnchor|null);
+
+ /** TextChange changedText */
+ changedText?: (string|null);
+
+ /** TextChange provenance */
+ provenance?: (google.cloud.documentai.v1.Document.IProvenance[]|null);
+ }
+
+ /** Represents a TextChange. */
+ class TextChange implements ITextChange {
+
+ /**
+ * Constructs a new TextChange.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1.Document.ITextChange);
+
+ /** TextChange textAnchor. */
+ public textAnchor?: (google.cloud.documentai.v1.Document.ITextAnchor|null);
+
+ /** TextChange changedText. */
+ public changedText: string;
+
+ /** TextChange provenance. */
+ public provenance: google.cloud.documentai.v1.Document.IProvenance[];
+
+ /**
+ * Creates a new TextChange instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns TextChange instance
+ */
+ public static create(properties?: google.cloud.documentai.v1.Document.ITextChange): google.cloud.documentai.v1.Document.TextChange;
+
+ /**
+ * Encodes the specified TextChange message. Does not implicitly {@link google.cloud.documentai.v1.Document.TextChange.verify|verify} messages.
+ * @param message TextChange message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1.Document.ITextChange, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified TextChange message, length delimited. Does not implicitly {@link google.cloud.documentai.v1.Document.TextChange.verify|verify} messages.
+ * @param message TextChange message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1.Document.ITextChange, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a TextChange message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns TextChange
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1.Document.TextChange;
+
+ /**
+ * Decodes a TextChange message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns TextChange
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1.Document.TextChange;
+
+ /**
+ * Verifies a TextChange message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a TextChange message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns TextChange
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1.Document.TextChange;
+
+ /**
+ * Creates a plain object from a TextChange message. Also converts values to other types if specified.
+ * @param message TextChange
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1.Document.TextChange, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this TextChange to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for TextChange
+ * @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.documentai.v1.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.documentai.v1.IVertex): google.cloud.documentai.v1.Vertex;
+
+ /**
+ * Encodes the specified Vertex message. Does not implicitly {@link google.cloud.documentai.v1.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.documentai.v1.IVertex, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Vertex message, length delimited. Does not implicitly {@link google.cloud.documentai.v1.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.documentai.v1.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.documentai.v1.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.documentai.v1.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.documentai.v1.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.documentai.v1.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.documentai.v1.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.documentai.v1.INormalizedVertex): google.cloud.documentai.v1.NormalizedVertex;
+
+ /**
+ * Encodes the specified NormalizedVertex message. Does not implicitly {@link google.cloud.documentai.v1.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.documentai.v1.INormalizedVertex, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified NormalizedVertex message, length delimited. Does not implicitly {@link google.cloud.documentai.v1.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.documentai.v1.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.documentai.v1.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.documentai.v1.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.documentai.v1.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.documentai.v1.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.documentai.v1.IVertex[]|null);
+
+ /** BoundingPoly normalizedVertices */
+ normalizedVertices?: (google.cloud.documentai.v1.INormalizedVertex[]|null);
+ }
+
+ /** Represents a BoundingPoly. */
+ class BoundingPoly implements IBoundingPoly {
+
+ /**
+ * Constructs a new BoundingPoly.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1.IBoundingPoly);
+
+ /** BoundingPoly vertices. */
+ public vertices: google.cloud.documentai.v1.IVertex[];
+
+ /** BoundingPoly normalizedVertices. */
+ public normalizedVertices: google.cloud.documentai.v1.INormalizedVertex[];
+
+ /**
+ * Creates a new BoundingPoly instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns BoundingPoly instance
+ */
+ public static create(properties?: google.cloud.documentai.v1.IBoundingPoly): google.cloud.documentai.v1.BoundingPoly;
+
+ /**
+ * Encodes the specified BoundingPoly message. Does not implicitly {@link google.cloud.documentai.v1.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.documentai.v1.IBoundingPoly, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified BoundingPoly message, length delimited. Does not implicitly {@link google.cloud.documentai.v1.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.documentai.v1.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.documentai.v1.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.documentai.v1.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.documentai.v1.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.documentai.v1.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 RawDocument. */
+ interface IRawDocument {
+
+ /** RawDocument content */
+ content?: (Uint8Array|string|null);
+
+ /** RawDocument mimeType */
+ mimeType?: (string|null);
+ }
+
+ /** Represents a RawDocument. */
+ class RawDocument implements IRawDocument {
+
+ /**
+ * Constructs a new RawDocument.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1.IRawDocument);
+
+ /** RawDocument content. */
+ public content: (Uint8Array|string);
+
+ /** RawDocument mimeType. */
+ public mimeType: string;
+
+ /**
+ * Creates a new RawDocument instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns RawDocument instance
+ */
+ public static create(properties?: google.cloud.documentai.v1.IRawDocument): google.cloud.documentai.v1.RawDocument;
+
+ /**
+ * Encodes the specified RawDocument message. Does not implicitly {@link google.cloud.documentai.v1.RawDocument.verify|verify} messages.
+ * @param message RawDocument message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1.IRawDocument, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified RawDocument message, length delimited. Does not implicitly {@link google.cloud.documentai.v1.RawDocument.verify|verify} messages.
+ * @param message RawDocument message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1.IRawDocument, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a RawDocument message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns RawDocument
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1.RawDocument;
+
+ /**
+ * Decodes a RawDocument message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns RawDocument
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1.RawDocument;
+
+ /**
+ * Verifies a RawDocument message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a RawDocument message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns RawDocument
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1.RawDocument;
+
+ /**
+ * Creates a plain object from a RawDocument message. Also converts values to other types if specified.
+ * @param message RawDocument
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1.RawDocument, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this RawDocument to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for RawDocument
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GcsDocument. */
+ interface IGcsDocument {
+
+ /** GcsDocument gcsUri */
+ gcsUri?: (string|null);
+
+ /** GcsDocument mimeType */
+ mimeType?: (string|null);
+ }
+
+ /** Represents a GcsDocument. */
+ class GcsDocument implements IGcsDocument {
+
+ /**
+ * Constructs a new GcsDocument.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1.IGcsDocument);
+
+ /** GcsDocument gcsUri. */
+ public gcsUri: string;
+
+ /** GcsDocument mimeType. */
+ public mimeType: string;
+
+ /**
+ * Creates a new GcsDocument instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GcsDocument instance
+ */
+ public static create(properties?: google.cloud.documentai.v1.IGcsDocument): google.cloud.documentai.v1.GcsDocument;
+
+ /**
+ * Encodes the specified GcsDocument message. Does not implicitly {@link google.cloud.documentai.v1.GcsDocument.verify|verify} messages.
+ * @param message GcsDocument message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1.IGcsDocument, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GcsDocument message, length delimited. Does not implicitly {@link google.cloud.documentai.v1.GcsDocument.verify|verify} messages.
+ * @param message GcsDocument message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1.IGcsDocument, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GcsDocument message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GcsDocument
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1.GcsDocument;
+
+ /**
+ * Decodes a GcsDocument message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GcsDocument
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1.GcsDocument;
+
+ /**
+ * Verifies a GcsDocument message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GcsDocument message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GcsDocument
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1.GcsDocument;
+
+ /**
+ * Creates a plain object from a GcsDocument message. Also converts values to other types if specified.
+ * @param message GcsDocument
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1.GcsDocument, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GcsDocument to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GcsDocument
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GcsDocuments. */
+ interface IGcsDocuments {
+
+ /** GcsDocuments documents */
+ documents?: (google.cloud.documentai.v1.IGcsDocument[]|null);
+ }
+
+ /** Represents a GcsDocuments. */
+ class GcsDocuments implements IGcsDocuments {
+
+ /**
+ * Constructs a new GcsDocuments.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1.IGcsDocuments);
+
+ /** GcsDocuments documents. */
+ public documents: google.cloud.documentai.v1.IGcsDocument[];
+
+ /**
+ * Creates a new GcsDocuments instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GcsDocuments instance
+ */
+ public static create(properties?: google.cloud.documentai.v1.IGcsDocuments): google.cloud.documentai.v1.GcsDocuments;
+
+ /**
+ * Encodes the specified GcsDocuments message. Does not implicitly {@link google.cloud.documentai.v1.GcsDocuments.verify|verify} messages.
+ * @param message GcsDocuments message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1.IGcsDocuments, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GcsDocuments message, length delimited. Does not implicitly {@link google.cloud.documentai.v1.GcsDocuments.verify|verify} messages.
+ * @param message GcsDocuments message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1.IGcsDocuments, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GcsDocuments message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GcsDocuments
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1.GcsDocuments;
+
+ /**
+ * Decodes a GcsDocuments message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GcsDocuments
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1.GcsDocuments;
+
+ /**
+ * Verifies a GcsDocuments message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GcsDocuments message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GcsDocuments
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1.GcsDocuments;
+
+ /**
+ * Creates a plain object from a GcsDocuments message. Also converts values to other types if specified.
+ * @param message GcsDocuments
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1.GcsDocuments, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GcsDocuments to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GcsDocuments
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GcsPrefix. */
+ interface IGcsPrefix {
+
+ /** GcsPrefix gcsUriPrefix */
+ gcsUriPrefix?: (string|null);
+ }
+
+ /** Represents a GcsPrefix. */
+ class GcsPrefix implements IGcsPrefix {
+
+ /**
+ * Constructs a new GcsPrefix.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1.IGcsPrefix);
+
+ /** GcsPrefix gcsUriPrefix. */
+ public gcsUriPrefix: string;
+
+ /**
+ * Creates a new GcsPrefix instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GcsPrefix instance
+ */
+ public static create(properties?: google.cloud.documentai.v1.IGcsPrefix): google.cloud.documentai.v1.GcsPrefix;
+
+ /**
+ * Encodes the specified GcsPrefix message. Does not implicitly {@link google.cloud.documentai.v1.GcsPrefix.verify|verify} messages.
+ * @param message GcsPrefix message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1.IGcsPrefix, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GcsPrefix message, length delimited. Does not implicitly {@link google.cloud.documentai.v1.GcsPrefix.verify|verify} messages.
+ * @param message GcsPrefix message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1.IGcsPrefix, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GcsPrefix message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GcsPrefix
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1.GcsPrefix;
+
+ /**
+ * Decodes a GcsPrefix message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GcsPrefix
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1.GcsPrefix;
+
+ /**
+ * Verifies a GcsPrefix message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GcsPrefix message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GcsPrefix
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1.GcsPrefix;
+
+ /**
+ * Creates a plain object from a GcsPrefix message. Also converts values to other types if specified.
+ * @param message GcsPrefix
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1.GcsPrefix, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GcsPrefix to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GcsPrefix
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a BatchDocumentsInputConfig. */
+ interface IBatchDocumentsInputConfig {
+
+ /** BatchDocumentsInputConfig gcsPrefix */
+ gcsPrefix?: (google.cloud.documentai.v1.IGcsPrefix|null);
+
+ /** BatchDocumentsInputConfig gcsDocuments */
+ gcsDocuments?: (google.cloud.documentai.v1.IGcsDocuments|null);
+ }
+
+ /** Represents a BatchDocumentsInputConfig. */
+ class BatchDocumentsInputConfig implements IBatchDocumentsInputConfig {
+
+ /**
+ * Constructs a new BatchDocumentsInputConfig.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1.IBatchDocumentsInputConfig);
+
+ /** BatchDocumentsInputConfig gcsPrefix. */
+ public gcsPrefix?: (google.cloud.documentai.v1.IGcsPrefix|null);
+
+ /** BatchDocumentsInputConfig gcsDocuments. */
+ public gcsDocuments?: (google.cloud.documentai.v1.IGcsDocuments|null);
+
+ /** BatchDocumentsInputConfig source. */
+ public source?: ("gcsPrefix"|"gcsDocuments");
+
+ /**
+ * Creates a new BatchDocumentsInputConfig instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns BatchDocumentsInputConfig instance
+ */
+ public static create(properties?: google.cloud.documentai.v1.IBatchDocumentsInputConfig): google.cloud.documentai.v1.BatchDocumentsInputConfig;
+
+ /**
+ * Encodes the specified BatchDocumentsInputConfig message. Does not implicitly {@link google.cloud.documentai.v1.BatchDocumentsInputConfig.verify|verify} messages.
+ * @param message BatchDocumentsInputConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1.IBatchDocumentsInputConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified BatchDocumentsInputConfig message, length delimited. Does not implicitly {@link google.cloud.documentai.v1.BatchDocumentsInputConfig.verify|verify} messages.
+ * @param message BatchDocumentsInputConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1.IBatchDocumentsInputConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a BatchDocumentsInputConfig message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns BatchDocumentsInputConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1.BatchDocumentsInputConfig;
+
+ /**
+ * Decodes a BatchDocumentsInputConfig message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns BatchDocumentsInputConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1.BatchDocumentsInputConfig;
+
+ /**
+ * Verifies a BatchDocumentsInputConfig message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a BatchDocumentsInputConfig message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns BatchDocumentsInputConfig
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1.BatchDocumentsInputConfig;
+
+ /**
+ * Creates a plain object from a BatchDocumentsInputConfig message. Also converts values to other types if specified.
+ * @param message BatchDocumentsInputConfig
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1.BatchDocumentsInputConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this BatchDocumentsInputConfig to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for BatchDocumentsInputConfig
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DocumentOutputConfig. */
+ interface IDocumentOutputConfig {
+
+ /** DocumentOutputConfig gcsOutputConfig */
+ gcsOutputConfig?: (google.cloud.documentai.v1.DocumentOutputConfig.IGcsOutputConfig|null);
+ }
+
+ /** Represents a DocumentOutputConfig. */
+ class DocumentOutputConfig implements IDocumentOutputConfig {
+
+ /**
+ * Constructs a new DocumentOutputConfig.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1.IDocumentOutputConfig);
+
+ /** DocumentOutputConfig gcsOutputConfig. */
+ public gcsOutputConfig?: (google.cloud.documentai.v1.DocumentOutputConfig.IGcsOutputConfig|null);
+
+ /** DocumentOutputConfig destination. */
+ public destination?: "gcsOutputConfig";
+
+ /**
+ * Creates a new DocumentOutputConfig instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DocumentOutputConfig instance
+ */
+ public static create(properties?: google.cloud.documentai.v1.IDocumentOutputConfig): google.cloud.documentai.v1.DocumentOutputConfig;
+
+ /**
+ * Encodes the specified DocumentOutputConfig message. Does not implicitly {@link google.cloud.documentai.v1.DocumentOutputConfig.verify|verify} messages.
+ * @param message DocumentOutputConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1.IDocumentOutputConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DocumentOutputConfig message, length delimited. Does not implicitly {@link google.cloud.documentai.v1.DocumentOutputConfig.verify|verify} messages.
+ * @param message DocumentOutputConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1.IDocumentOutputConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DocumentOutputConfig message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DocumentOutputConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1.DocumentOutputConfig;
+
+ /**
+ * Decodes a DocumentOutputConfig message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DocumentOutputConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1.DocumentOutputConfig;
+
+ /**
+ * Verifies a DocumentOutputConfig message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DocumentOutputConfig message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DocumentOutputConfig
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1.DocumentOutputConfig;
+
+ /**
+ * Creates a plain object from a DocumentOutputConfig message. Also converts values to other types if specified.
+ * @param message DocumentOutputConfig
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1.DocumentOutputConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DocumentOutputConfig to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DocumentOutputConfig
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace DocumentOutputConfig {
+
+ /** Properties of a GcsOutputConfig. */
+ interface IGcsOutputConfig {
+
+ /** GcsOutputConfig gcsUri */
+ gcsUri?: (string|null);
+
+ /** GcsOutputConfig fieldMask */
+ fieldMask?: (google.protobuf.IFieldMask|null);
+ }
+
+ /** Represents a GcsOutputConfig. */
+ class GcsOutputConfig implements IGcsOutputConfig {
+
+ /**
+ * Constructs a new GcsOutputConfig.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1.DocumentOutputConfig.IGcsOutputConfig);
+
+ /** GcsOutputConfig gcsUri. */
+ public gcsUri: string;
+
+ /** GcsOutputConfig fieldMask. */
+ public fieldMask?: (google.protobuf.IFieldMask|null);
+
+ /**
+ * Creates a new GcsOutputConfig instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GcsOutputConfig instance
+ */
+ public static create(properties?: google.cloud.documentai.v1.DocumentOutputConfig.IGcsOutputConfig): google.cloud.documentai.v1.DocumentOutputConfig.GcsOutputConfig;
+
+ /**
+ * Encodes the specified GcsOutputConfig message. Does not implicitly {@link google.cloud.documentai.v1.DocumentOutputConfig.GcsOutputConfig.verify|verify} messages.
+ * @param message GcsOutputConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1.DocumentOutputConfig.IGcsOutputConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GcsOutputConfig message, length delimited. Does not implicitly {@link google.cloud.documentai.v1.DocumentOutputConfig.GcsOutputConfig.verify|verify} messages.
+ * @param message GcsOutputConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1.DocumentOutputConfig.IGcsOutputConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GcsOutputConfig message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GcsOutputConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1.DocumentOutputConfig.GcsOutputConfig;
+
+ /**
+ * Decodes a GcsOutputConfig message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GcsOutputConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1.DocumentOutputConfig.GcsOutputConfig;
+
+ /**
+ * Verifies a GcsOutputConfig message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GcsOutputConfig message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GcsOutputConfig
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1.DocumentOutputConfig.GcsOutputConfig;
+
+ /**
+ * Creates a plain object from a GcsOutputConfig message. Also converts values to other types if specified.
+ * @param message GcsOutputConfig
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1.DocumentOutputConfig.GcsOutputConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GcsOutputConfig to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GcsOutputConfig
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Represents a DocumentProcessorService */
+ class DocumentProcessorService extends $protobuf.rpc.Service {
+
+ /**
+ * Constructs a new DocumentProcessorService 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 DocumentProcessorService 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): DocumentProcessorService;
+
+ /**
+ * Calls ProcessDocument.
+ * @param request ProcessRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ProcessResponse
+ */
+ public processDocument(request: google.cloud.documentai.v1.IProcessRequest, callback: google.cloud.documentai.v1.DocumentProcessorService.ProcessDocumentCallback): void;
+
+ /**
+ * Calls ProcessDocument.
+ * @param request ProcessRequest message or plain object
+ * @returns Promise
+ */
+ public processDocument(request: google.cloud.documentai.v1.IProcessRequest): Promise;
+
+ /**
+ * Calls BatchProcessDocuments.
+ * @param request BatchProcessRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public batchProcessDocuments(request: google.cloud.documentai.v1.IBatchProcessRequest, callback: google.cloud.documentai.v1.DocumentProcessorService.BatchProcessDocumentsCallback): void;
+
+ /**
+ * Calls BatchProcessDocuments.
+ * @param request BatchProcessRequest message or plain object
+ * @returns Promise
+ */
+ public batchProcessDocuments(request: google.cloud.documentai.v1.IBatchProcessRequest): Promise;
+
+ /**
+ * Calls FetchProcessorTypes.
+ * @param request FetchProcessorTypesRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and FetchProcessorTypesResponse
+ */
+ public fetchProcessorTypes(request: google.cloud.documentai.v1.IFetchProcessorTypesRequest, callback: google.cloud.documentai.v1.DocumentProcessorService.FetchProcessorTypesCallback): void;
+
+ /**
+ * Calls FetchProcessorTypes.
+ * @param request FetchProcessorTypesRequest message or plain object
+ * @returns Promise
+ */
+ public fetchProcessorTypes(request: google.cloud.documentai.v1.IFetchProcessorTypesRequest): Promise;
+
+ /**
+ * Calls ListProcessorTypes.
+ * @param request ListProcessorTypesRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListProcessorTypesResponse
+ */
+ public listProcessorTypes(request: google.cloud.documentai.v1.IListProcessorTypesRequest, callback: google.cloud.documentai.v1.DocumentProcessorService.ListProcessorTypesCallback): void;
+
+ /**
+ * Calls ListProcessorTypes.
+ * @param request ListProcessorTypesRequest message or plain object
+ * @returns Promise
+ */
+ public listProcessorTypes(request: google.cloud.documentai.v1.IListProcessorTypesRequest): Promise;
+
+ /**
+ * Calls ListProcessors.
+ * @param request ListProcessorsRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListProcessorsResponse
+ */
+ public listProcessors(request: google.cloud.documentai.v1.IListProcessorsRequest, callback: google.cloud.documentai.v1.DocumentProcessorService.ListProcessorsCallback): void;
+
+ /**
+ * Calls ListProcessors.
+ * @param request ListProcessorsRequest message or plain object
+ * @returns Promise
+ */
+ public listProcessors(request: google.cloud.documentai.v1.IListProcessorsRequest): Promise;
+
+ /**
+ * Calls GetProcessor.
+ * @param request GetProcessorRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Processor
+ */
+ public getProcessor(request: google.cloud.documentai.v1.IGetProcessorRequest, callback: google.cloud.documentai.v1.DocumentProcessorService.GetProcessorCallback): void;
+
+ /**
+ * Calls GetProcessor.
+ * @param request GetProcessorRequest message or plain object
+ * @returns Promise
+ */
+ public getProcessor(request: google.cloud.documentai.v1.IGetProcessorRequest): Promise;
+
+ /**
+ * Calls GetProcessorVersion.
+ * @param request GetProcessorVersionRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ProcessorVersion
+ */
+ public getProcessorVersion(request: google.cloud.documentai.v1.IGetProcessorVersionRequest, callback: google.cloud.documentai.v1.DocumentProcessorService.GetProcessorVersionCallback): void;
+
+ /**
+ * Calls GetProcessorVersion.
+ * @param request GetProcessorVersionRequest message or plain object
+ * @returns Promise
+ */
+ public getProcessorVersion(request: google.cloud.documentai.v1.IGetProcessorVersionRequest): Promise;
+
+ /**
+ * Calls ListProcessorVersions.
+ * @param request ListProcessorVersionsRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListProcessorVersionsResponse
+ */
+ public listProcessorVersions(request: google.cloud.documentai.v1.IListProcessorVersionsRequest, callback: google.cloud.documentai.v1.DocumentProcessorService.ListProcessorVersionsCallback): void;
+
+ /**
+ * Calls ListProcessorVersions.
+ * @param request ListProcessorVersionsRequest message or plain object
+ * @returns Promise
+ */
+ public listProcessorVersions(request: google.cloud.documentai.v1.IListProcessorVersionsRequest): Promise;
+
+ /**
+ * Calls DeleteProcessorVersion.
+ * @param request DeleteProcessorVersionRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public deleteProcessorVersion(request: google.cloud.documentai.v1.IDeleteProcessorVersionRequest, callback: google.cloud.documentai.v1.DocumentProcessorService.DeleteProcessorVersionCallback): void;
+
+ /**
+ * Calls DeleteProcessorVersion.
+ * @param request DeleteProcessorVersionRequest message or plain object
+ * @returns Promise
+ */
+ public deleteProcessorVersion(request: google.cloud.documentai.v1.IDeleteProcessorVersionRequest): Promise;
+
+ /**
+ * Calls DeployProcessorVersion.
+ * @param request DeployProcessorVersionRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public deployProcessorVersion(request: google.cloud.documentai.v1.IDeployProcessorVersionRequest, callback: google.cloud.documentai.v1.DocumentProcessorService.DeployProcessorVersionCallback): void;
+
+ /**
+ * Calls DeployProcessorVersion.
+ * @param request DeployProcessorVersionRequest message or plain object
+ * @returns Promise
+ */
+ public deployProcessorVersion(request: google.cloud.documentai.v1.IDeployProcessorVersionRequest): Promise;
+
+ /**
+ * Calls UndeployProcessorVersion.
+ * @param request UndeployProcessorVersionRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public undeployProcessorVersion(request: google.cloud.documentai.v1.IUndeployProcessorVersionRequest, callback: google.cloud.documentai.v1.DocumentProcessorService.UndeployProcessorVersionCallback): void;
+
+ /**
+ * Calls UndeployProcessorVersion.
+ * @param request UndeployProcessorVersionRequest message or plain object
+ * @returns Promise
+ */
+ public undeployProcessorVersion(request: google.cloud.documentai.v1.IUndeployProcessorVersionRequest): Promise;
+
+ /**
+ * Calls CreateProcessor.
+ * @param request CreateProcessorRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Processor
+ */
+ public createProcessor(request: google.cloud.documentai.v1.ICreateProcessorRequest, callback: google.cloud.documentai.v1.DocumentProcessorService.CreateProcessorCallback): void;
+
+ /**
+ * Calls CreateProcessor.
+ * @param request CreateProcessorRequest message or plain object
+ * @returns Promise
+ */
+ public createProcessor(request: google.cloud.documentai.v1.ICreateProcessorRequest): Promise;
+
+ /**
+ * Calls DeleteProcessor.
+ * @param request DeleteProcessorRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public deleteProcessor(request: google.cloud.documentai.v1.IDeleteProcessorRequest, callback: google.cloud.documentai.v1.DocumentProcessorService.DeleteProcessorCallback): void;
+
+ /**
+ * Calls DeleteProcessor.
+ * @param request DeleteProcessorRequest message or plain object
+ * @returns Promise
+ */
+ public deleteProcessor(request: google.cloud.documentai.v1.IDeleteProcessorRequest): Promise;
+
+ /**
+ * Calls EnableProcessor.
+ * @param request EnableProcessorRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public enableProcessor(request: google.cloud.documentai.v1.IEnableProcessorRequest, callback: google.cloud.documentai.v1.DocumentProcessorService.EnableProcessorCallback): void;
+
+ /**
+ * Calls EnableProcessor.
+ * @param request EnableProcessorRequest message or plain object
+ * @returns Promise
+ */
+ public enableProcessor(request: google.cloud.documentai.v1.IEnableProcessorRequest): Promise;
+
+ /**
+ * Calls DisableProcessor.
+ * @param request DisableProcessorRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public disableProcessor(request: google.cloud.documentai.v1.IDisableProcessorRequest, callback: google.cloud.documentai.v1.DocumentProcessorService.DisableProcessorCallback): void;
+
+ /**
+ * Calls DisableProcessor.
+ * @param request DisableProcessorRequest message or plain object
+ * @returns Promise
+ */
+ public disableProcessor(request: google.cloud.documentai.v1.IDisableProcessorRequest): Promise;
+
+ /**
+ * Calls SetDefaultProcessorVersion.
+ * @param request SetDefaultProcessorVersionRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public setDefaultProcessorVersion(request: google.cloud.documentai.v1.ISetDefaultProcessorVersionRequest, callback: google.cloud.documentai.v1.DocumentProcessorService.SetDefaultProcessorVersionCallback): void;
+
+ /**
+ * Calls SetDefaultProcessorVersion.
+ * @param request SetDefaultProcessorVersionRequest message or plain object
+ * @returns Promise
+ */
+ public setDefaultProcessorVersion(request: google.cloud.documentai.v1.ISetDefaultProcessorVersionRequest): Promise;
+
+ /**
+ * Calls ReviewDocument.
+ * @param request ReviewDocumentRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public reviewDocument(request: google.cloud.documentai.v1.IReviewDocumentRequest, callback: google.cloud.documentai.v1.DocumentProcessorService.ReviewDocumentCallback): void;
+
+ /**
+ * Calls ReviewDocument.
+ * @param request ReviewDocumentRequest message or plain object
+ * @returns Promise
+ */
+ public reviewDocument(request: google.cloud.documentai.v1.IReviewDocumentRequest): Promise;
+ }
+
+ namespace DocumentProcessorService {
+
+ /**
+ * Callback as used by {@link google.cloud.documentai.v1.DocumentProcessorService|processDocument}.
+ * @param error Error, if any
+ * @param [response] ProcessResponse
+ */
+ type ProcessDocumentCallback = (error: (Error|null), response?: google.cloud.documentai.v1.ProcessResponse) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.documentai.v1.DocumentProcessorService|batchProcessDocuments}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type BatchProcessDocumentsCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.documentai.v1.DocumentProcessorService|fetchProcessorTypes}.
+ * @param error Error, if any
+ * @param [response] FetchProcessorTypesResponse
+ */
+ type FetchProcessorTypesCallback = (error: (Error|null), response?: google.cloud.documentai.v1.FetchProcessorTypesResponse) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.documentai.v1.DocumentProcessorService|listProcessorTypes}.
+ * @param error Error, if any
+ * @param [response] ListProcessorTypesResponse
+ */
+ type ListProcessorTypesCallback = (error: (Error|null), response?: google.cloud.documentai.v1.ListProcessorTypesResponse) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.documentai.v1.DocumentProcessorService|listProcessors}.
+ * @param error Error, if any
+ * @param [response] ListProcessorsResponse
+ */
+ type ListProcessorsCallback = (error: (Error|null), response?: google.cloud.documentai.v1.ListProcessorsResponse) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.documentai.v1.DocumentProcessorService|getProcessor}.
+ * @param error Error, if any
+ * @param [response] Processor
+ */
+ type GetProcessorCallback = (error: (Error|null), response?: google.cloud.documentai.v1.Processor) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.documentai.v1.DocumentProcessorService|getProcessorVersion}.
+ * @param error Error, if any
+ * @param [response] ProcessorVersion
+ */
+ type GetProcessorVersionCallback = (error: (Error|null), response?: google.cloud.documentai.v1.ProcessorVersion) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.documentai.v1.DocumentProcessorService|listProcessorVersions}.
+ * @param error Error, if any
+ * @param [response] ListProcessorVersionsResponse
+ */
+ type ListProcessorVersionsCallback = (error: (Error|null), response?: google.cloud.documentai.v1.ListProcessorVersionsResponse) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.documentai.v1.DocumentProcessorService|deleteProcessorVersion}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type DeleteProcessorVersionCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.documentai.v1.DocumentProcessorService|deployProcessorVersion}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type DeployProcessorVersionCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.documentai.v1.DocumentProcessorService|undeployProcessorVersion}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type UndeployProcessorVersionCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.documentai.v1.DocumentProcessorService|createProcessor}.
+ * @param error Error, if any
+ * @param [response] Processor
+ */
+ type CreateProcessorCallback = (error: (Error|null), response?: google.cloud.documentai.v1.Processor) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.documentai.v1.DocumentProcessorService|deleteProcessor}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type DeleteProcessorCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.documentai.v1.DocumentProcessorService|enableProcessor}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type EnableProcessorCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.documentai.v1.DocumentProcessorService|disableProcessor}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type DisableProcessorCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.documentai.v1.DocumentProcessorService|setDefaultProcessorVersion}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type SetDefaultProcessorVersionCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.documentai.v1.DocumentProcessorService|reviewDocument}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type ReviewDocumentCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+ }
+
+ /** Properties of a ProcessRequest. */
+ interface IProcessRequest {
+
+ /** ProcessRequest inlineDocument */
+ inlineDocument?: (google.cloud.documentai.v1.IDocument|null);
+
+ /** ProcessRequest rawDocument */
+ rawDocument?: (google.cloud.documentai.v1.IRawDocument|null);
+
+ /** ProcessRequest name */
+ name?: (string|null);
+
+ /** ProcessRequest skipHumanReview */
+ skipHumanReview?: (boolean|null);
+
+ /** ProcessRequest fieldMask */
+ fieldMask?: (google.protobuf.IFieldMask|null);
+ }
+
+ /** Represents a ProcessRequest. */
+ class ProcessRequest implements IProcessRequest {
+
+ /**
+ * Constructs a new ProcessRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1.IProcessRequest);
+
+ /** ProcessRequest inlineDocument. */
+ public inlineDocument?: (google.cloud.documentai.v1.IDocument|null);
+
+ /** ProcessRequest rawDocument. */
+ public rawDocument?: (google.cloud.documentai.v1.IRawDocument|null);
+
+ /** ProcessRequest name. */
+ public name: string;
+
+ /** ProcessRequest skipHumanReview. */
+ public skipHumanReview: boolean;
+
+ /** ProcessRequest fieldMask. */
+ public fieldMask?: (google.protobuf.IFieldMask|null);
+
+ /** ProcessRequest source. */
+ public source?: ("inlineDocument"|"rawDocument");
+
+ /**
+ * Creates a new ProcessRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ProcessRequest instance
+ */
+ public static create(properties?: google.cloud.documentai.v1.IProcessRequest): google.cloud.documentai.v1.ProcessRequest;
+
+ /**
+ * Encodes the specified ProcessRequest message. Does not implicitly {@link google.cloud.documentai.v1.ProcessRequest.verify|verify} messages.
+ * @param message ProcessRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1.IProcessRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ProcessRequest message, length delimited. Does not implicitly {@link google.cloud.documentai.v1.ProcessRequest.verify|verify} messages.
+ * @param message ProcessRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1.IProcessRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ProcessRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ProcessRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1.ProcessRequest;
+
+ /**
+ * Decodes a ProcessRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ProcessRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1.ProcessRequest;
+
+ /**
+ * Verifies a ProcessRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ProcessRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ProcessRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1.ProcessRequest;
+
+ /**
+ * Creates a plain object from a ProcessRequest message. Also converts values to other types if specified.
+ * @param message ProcessRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1.ProcessRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ProcessRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ProcessRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a HumanReviewStatus. */
+ interface IHumanReviewStatus {
+
+ /** HumanReviewStatus state */
+ state?: (google.cloud.documentai.v1.HumanReviewStatus.State|keyof typeof google.cloud.documentai.v1.HumanReviewStatus.State|null);
+
+ /** HumanReviewStatus stateMessage */
+ stateMessage?: (string|null);
+
+ /** HumanReviewStatus humanReviewOperation */
+ humanReviewOperation?: (string|null);
+ }
+
+ /** Represents a HumanReviewStatus. */
+ class HumanReviewStatus implements IHumanReviewStatus {
+
+ /**
+ * Constructs a new HumanReviewStatus.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1.IHumanReviewStatus);
+
+ /** HumanReviewStatus state. */
+ public state: (google.cloud.documentai.v1.HumanReviewStatus.State|keyof typeof google.cloud.documentai.v1.HumanReviewStatus.State);
+
+ /** HumanReviewStatus stateMessage. */
+ public stateMessage: string;
+
+ /** HumanReviewStatus humanReviewOperation. */
+ public humanReviewOperation: string;
+
+ /**
+ * Creates a new HumanReviewStatus instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns HumanReviewStatus instance
+ */
+ public static create(properties?: google.cloud.documentai.v1.IHumanReviewStatus): google.cloud.documentai.v1.HumanReviewStatus;
+
+ /**
+ * Encodes the specified HumanReviewStatus message. Does not implicitly {@link google.cloud.documentai.v1.HumanReviewStatus.verify|verify} messages.
+ * @param message HumanReviewStatus message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1.IHumanReviewStatus, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified HumanReviewStatus message, length delimited. Does not implicitly {@link google.cloud.documentai.v1.HumanReviewStatus.verify|verify} messages.
+ * @param message HumanReviewStatus message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1.IHumanReviewStatus, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a HumanReviewStatus message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns HumanReviewStatus
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1.HumanReviewStatus;
+
+ /**
+ * Decodes a HumanReviewStatus message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns HumanReviewStatus
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1.HumanReviewStatus;
+
+ /**
+ * Verifies a HumanReviewStatus message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a HumanReviewStatus message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns HumanReviewStatus
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1.HumanReviewStatus;
+
+ /**
+ * Creates a plain object from a HumanReviewStatus message. Also converts values to other types if specified.
+ * @param message HumanReviewStatus
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1.HumanReviewStatus, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this HumanReviewStatus to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for HumanReviewStatus
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace HumanReviewStatus {
+
+ /** State enum. */
+ enum State {
+ STATE_UNSPECIFIED = 0,
+ SKIPPED = 1,
+ VALIDATION_PASSED = 2,
+ IN_PROGRESS = 3,
+ ERROR = 4
+ }
+ }
+
+ /** Properties of a ProcessResponse. */
+ interface IProcessResponse {
+
+ /** ProcessResponse document */
+ document?: (google.cloud.documentai.v1.IDocument|null);
+
+ /** ProcessResponse humanReviewStatus */
+ humanReviewStatus?: (google.cloud.documentai.v1.IHumanReviewStatus|null);
+ }
+
+ /** Represents a ProcessResponse. */
+ class ProcessResponse implements IProcessResponse {
+
+ /**
+ * Constructs a new ProcessResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1.IProcessResponse);
+
+ /** ProcessResponse document. */
+ public document?: (google.cloud.documentai.v1.IDocument|null);
+
+ /** ProcessResponse humanReviewStatus. */
+ public humanReviewStatus?: (google.cloud.documentai.v1.IHumanReviewStatus|null);
+
+ /**
+ * Creates a new ProcessResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ProcessResponse instance
+ */
+ public static create(properties?: google.cloud.documentai.v1.IProcessResponse): google.cloud.documentai.v1.ProcessResponse;
+
+ /**
+ * Encodes the specified ProcessResponse message. Does not implicitly {@link google.cloud.documentai.v1.ProcessResponse.verify|verify} messages.
+ * @param message ProcessResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1.IProcessResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ProcessResponse message, length delimited. Does not implicitly {@link google.cloud.documentai.v1.ProcessResponse.verify|verify} messages.
+ * @param message ProcessResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1.IProcessResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ProcessResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ProcessResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1.ProcessResponse;
+
+ /**
+ * Decodes a ProcessResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ProcessResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1.ProcessResponse;
+
+ /**
+ * Verifies a ProcessResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ProcessResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ProcessResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1.ProcessResponse;
+
+ /**
+ * Creates a plain object from a ProcessResponse message. Also converts values to other types if specified.
+ * @param message ProcessResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1.ProcessResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ProcessResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ProcessResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a BatchProcessRequest. */
+ interface IBatchProcessRequest {
+
+ /** BatchProcessRequest name */
+ name?: (string|null);
+
+ /** BatchProcessRequest inputDocuments */
+ inputDocuments?: (google.cloud.documentai.v1.IBatchDocumentsInputConfig|null);
+
+ /** BatchProcessRequest documentOutputConfig */
+ documentOutputConfig?: (google.cloud.documentai.v1.IDocumentOutputConfig|null);
+
+ /** BatchProcessRequest skipHumanReview */
+ skipHumanReview?: (boolean|null);
+ }
+
+ /** Represents a BatchProcessRequest. */
+ class BatchProcessRequest implements IBatchProcessRequest {
+
+ /**
+ * Constructs a new BatchProcessRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1.IBatchProcessRequest);
+
+ /** BatchProcessRequest name. */
+ public name: string;
+
+ /** BatchProcessRequest inputDocuments. */
+ public inputDocuments?: (google.cloud.documentai.v1.IBatchDocumentsInputConfig|null);
+
+ /** BatchProcessRequest documentOutputConfig. */
+ public documentOutputConfig?: (google.cloud.documentai.v1.IDocumentOutputConfig|null);
+
+ /** BatchProcessRequest skipHumanReview. */
+ public skipHumanReview: boolean;
+
+ /**
+ * Creates a new BatchProcessRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns BatchProcessRequest instance
+ */
+ public static create(properties?: google.cloud.documentai.v1.IBatchProcessRequest): google.cloud.documentai.v1.BatchProcessRequest;
+
+ /**
+ * Encodes the specified BatchProcessRequest message. Does not implicitly {@link google.cloud.documentai.v1.BatchProcessRequest.verify|verify} messages.
+ * @param message BatchProcessRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1.IBatchProcessRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified BatchProcessRequest message, length delimited. Does not implicitly {@link google.cloud.documentai.v1.BatchProcessRequest.verify|verify} messages.
+ * @param message BatchProcessRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1.IBatchProcessRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a BatchProcessRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns BatchProcessRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1.BatchProcessRequest;
+
+ /**
+ * Decodes a BatchProcessRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns BatchProcessRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1.BatchProcessRequest;
+
+ /**
+ * Verifies a BatchProcessRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a BatchProcessRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns BatchProcessRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1.BatchProcessRequest;
+
+ /**
+ * Creates a plain object from a BatchProcessRequest message. Also converts values to other types if specified.
+ * @param message BatchProcessRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1.BatchProcessRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this BatchProcessRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for BatchProcessRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a BatchProcessResponse. */
+ interface IBatchProcessResponse {
+ }
+
+ /** Represents a BatchProcessResponse. */
+ class BatchProcessResponse implements IBatchProcessResponse {
+
+ /**
+ * Constructs a new BatchProcessResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1.IBatchProcessResponse);
+
+ /**
+ * Creates a new BatchProcessResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns BatchProcessResponse instance
+ */
+ public static create(properties?: google.cloud.documentai.v1.IBatchProcessResponse): google.cloud.documentai.v1.BatchProcessResponse;
+
+ /**
+ * Encodes the specified BatchProcessResponse message. Does not implicitly {@link google.cloud.documentai.v1.BatchProcessResponse.verify|verify} messages.
+ * @param message BatchProcessResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1.IBatchProcessResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified BatchProcessResponse message, length delimited. Does not implicitly {@link google.cloud.documentai.v1.BatchProcessResponse.verify|verify} messages.
+ * @param message BatchProcessResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1.IBatchProcessResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a BatchProcessResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns BatchProcessResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1.BatchProcessResponse;
+
+ /**
+ * Decodes a BatchProcessResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns BatchProcessResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1.BatchProcessResponse;
+
+ /**
+ * Verifies a BatchProcessResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a BatchProcessResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns BatchProcessResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1.BatchProcessResponse;
+
+ /**
+ * Creates a plain object from a BatchProcessResponse message. Also converts values to other types if specified.
+ * @param message BatchProcessResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1.BatchProcessResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this BatchProcessResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for BatchProcessResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a BatchProcessMetadata. */
+ interface IBatchProcessMetadata {
+
+ /** BatchProcessMetadata state */
+ state?: (google.cloud.documentai.v1.BatchProcessMetadata.State|keyof typeof google.cloud.documentai.v1.BatchProcessMetadata.State|null);
+
+ /** BatchProcessMetadata stateMessage */
+ stateMessage?: (string|null);
+
+ /** BatchProcessMetadata createTime */
+ createTime?: (google.protobuf.ITimestamp|null);
+
+ /** BatchProcessMetadata updateTime */
+ updateTime?: (google.protobuf.ITimestamp|null);
+
+ /** BatchProcessMetadata individualProcessStatuses */
+ individualProcessStatuses?: (google.cloud.documentai.v1.BatchProcessMetadata.IIndividualProcessStatus[]|null);
+ }
+
+ /** Represents a BatchProcessMetadata. */
+ class BatchProcessMetadata implements IBatchProcessMetadata {
+
+ /**
+ * Constructs a new BatchProcessMetadata.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1.IBatchProcessMetadata);
+
+ /** BatchProcessMetadata state. */
+ public state: (google.cloud.documentai.v1.BatchProcessMetadata.State|keyof typeof google.cloud.documentai.v1.BatchProcessMetadata.State);
+
+ /** BatchProcessMetadata stateMessage. */
+ public stateMessage: string;
+
+ /** BatchProcessMetadata createTime. */
+ public createTime?: (google.protobuf.ITimestamp|null);
+
+ /** BatchProcessMetadata updateTime. */
+ public updateTime?: (google.protobuf.ITimestamp|null);
+
+ /** BatchProcessMetadata individualProcessStatuses. */
+ public individualProcessStatuses: google.cloud.documentai.v1.BatchProcessMetadata.IIndividualProcessStatus[];
+
+ /**
+ * Creates a new BatchProcessMetadata instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns BatchProcessMetadata instance
+ */
+ public static create(properties?: google.cloud.documentai.v1.IBatchProcessMetadata): google.cloud.documentai.v1.BatchProcessMetadata;
+
+ /**
+ * Encodes the specified BatchProcessMetadata message. Does not implicitly {@link google.cloud.documentai.v1.BatchProcessMetadata.verify|verify} messages.
+ * @param message BatchProcessMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1.IBatchProcessMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified BatchProcessMetadata message, length delimited. Does not implicitly {@link google.cloud.documentai.v1.BatchProcessMetadata.verify|verify} messages.
+ * @param message BatchProcessMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1.IBatchProcessMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a BatchProcessMetadata message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns BatchProcessMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1.BatchProcessMetadata;
+
+ /**
+ * Decodes a BatchProcessMetadata message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns BatchProcessMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1.BatchProcessMetadata;
+
+ /**
+ * Verifies a BatchProcessMetadata message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a BatchProcessMetadata message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns BatchProcessMetadata
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1.BatchProcessMetadata;
+
+ /**
+ * Creates a plain object from a BatchProcessMetadata message. Also converts values to other types if specified.
+ * @param message BatchProcessMetadata
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1.BatchProcessMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this BatchProcessMetadata to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for BatchProcessMetadata
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace BatchProcessMetadata {
+
+ /** Properties of an IndividualProcessStatus. */
+ interface IIndividualProcessStatus {
+
+ /** IndividualProcessStatus inputGcsSource */
+ inputGcsSource?: (string|null);
+
+ /** IndividualProcessStatus status */
+ status?: (google.rpc.IStatus|null);
+
+ /** IndividualProcessStatus outputGcsDestination */
+ outputGcsDestination?: (string|null);
+
+ /** IndividualProcessStatus humanReviewStatus */
+ humanReviewStatus?: (google.cloud.documentai.v1.IHumanReviewStatus|null);
+ }
+
+ /** Represents an IndividualProcessStatus. */
+ class IndividualProcessStatus implements IIndividualProcessStatus {
+
+ /**
+ * Constructs a new IndividualProcessStatus.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1.BatchProcessMetadata.IIndividualProcessStatus);
+
+ /** IndividualProcessStatus inputGcsSource. */
+ public inputGcsSource: string;
+
+ /** IndividualProcessStatus status. */
+ public status?: (google.rpc.IStatus|null);
+
+ /** IndividualProcessStatus outputGcsDestination. */
+ public outputGcsDestination: string;
+
+ /** IndividualProcessStatus humanReviewStatus. */
+ public humanReviewStatus?: (google.cloud.documentai.v1.IHumanReviewStatus|null);
+
+ /**
+ * Creates a new IndividualProcessStatus instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns IndividualProcessStatus instance
+ */
+ public static create(properties?: google.cloud.documentai.v1.BatchProcessMetadata.IIndividualProcessStatus): google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus;
+
+ /**
+ * Encodes the specified IndividualProcessStatus message. Does not implicitly {@link google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus.verify|verify} messages.
+ * @param message IndividualProcessStatus message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1.BatchProcessMetadata.IIndividualProcessStatus, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified IndividualProcessStatus message, length delimited. Does not implicitly {@link google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus.verify|verify} messages.
+ * @param message IndividualProcessStatus message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1.BatchProcessMetadata.IIndividualProcessStatus, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an IndividualProcessStatus message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns IndividualProcessStatus
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus;
+
+ /**
+ * Decodes an IndividualProcessStatus message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns IndividualProcessStatus
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus;
+
+ /**
+ * Verifies an IndividualProcessStatus message.
+ * @param message Plain 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 IndividualProcessStatus message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns IndividualProcessStatus
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus;
+
+ /**
+ * Creates a plain object from an IndividualProcessStatus message. Also converts values to other types if specified.
+ * @param message IndividualProcessStatus
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this IndividualProcessStatus to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for IndividualProcessStatus
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** State enum. */
+ enum State {
+ STATE_UNSPECIFIED = 0,
+ WAITING = 1,
+ RUNNING = 2,
+ SUCCEEDED = 3,
+ CANCELLING = 4,
+ CANCELLED = 5,
+ FAILED = 6
+ }
+ }
+
+ /** Properties of a FetchProcessorTypesRequest. */
+ interface IFetchProcessorTypesRequest {
+
+ /** FetchProcessorTypesRequest parent */
+ parent?: (string|null);
+ }
+
+ /** Represents a FetchProcessorTypesRequest. */
+ class FetchProcessorTypesRequest implements IFetchProcessorTypesRequest {
+
+ /**
+ * Constructs a new FetchProcessorTypesRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1.IFetchProcessorTypesRequest);
+
+ /** FetchProcessorTypesRequest parent. */
+ public parent: string;
+
+ /**
+ * Creates a new FetchProcessorTypesRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FetchProcessorTypesRequest instance
+ */
+ public static create(properties?: google.cloud.documentai.v1.IFetchProcessorTypesRequest): google.cloud.documentai.v1.FetchProcessorTypesRequest;
+
+ /**
+ * Encodes the specified FetchProcessorTypesRequest message. Does not implicitly {@link google.cloud.documentai.v1.FetchProcessorTypesRequest.verify|verify} messages.
+ * @param message FetchProcessorTypesRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1.IFetchProcessorTypesRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FetchProcessorTypesRequest message, length delimited. Does not implicitly {@link google.cloud.documentai.v1.FetchProcessorTypesRequest.verify|verify} messages.
+ * @param message FetchProcessorTypesRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1.IFetchProcessorTypesRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FetchProcessorTypesRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FetchProcessorTypesRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1.FetchProcessorTypesRequest;
+
+ /**
+ * Decodes a FetchProcessorTypesRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FetchProcessorTypesRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1.FetchProcessorTypesRequest;
+
+ /**
+ * Verifies a FetchProcessorTypesRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FetchProcessorTypesRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FetchProcessorTypesRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1.FetchProcessorTypesRequest;
+
+ /**
+ * Creates a plain object from a FetchProcessorTypesRequest message. Also converts values to other types if specified.
+ * @param message FetchProcessorTypesRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1.FetchProcessorTypesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FetchProcessorTypesRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FetchProcessorTypesRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a FetchProcessorTypesResponse. */
+ interface IFetchProcessorTypesResponse {
+
+ /** FetchProcessorTypesResponse processorTypes */
+ processorTypes?: (google.cloud.documentai.v1.IProcessorType[]|null);
+ }
+
+ /** Represents a FetchProcessorTypesResponse. */
+ class FetchProcessorTypesResponse implements IFetchProcessorTypesResponse {
+
+ /**
+ * Constructs a new FetchProcessorTypesResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1.IFetchProcessorTypesResponse);
+
+ /** FetchProcessorTypesResponse processorTypes. */
+ public processorTypes: google.cloud.documentai.v1.IProcessorType[];
+
+ /**
+ * Creates a new FetchProcessorTypesResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FetchProcessorTypesResponse instance
+ */
+ public static create(properties?: google.cloud.documentai.v1.IFetchProcessorTypesResponse): google.cloud.documentai.v1.FetchProcessorTypesResponse;
+
+ /**
+ * Encodes the specified FetchProcessorTypesResponse message. Does not implicitly {@link google.cloud.documentai.v1.FetchProcessorTypesResponse.verify|verify} messages.
+ * @param message FetchProcessorTypesResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1.IFetchProcessorTypesResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FetchProcessorTypesResponse message, length delimited. Does not implicitly {@link google.cloud.documentai.v1.FetchProcessorTypesResponse.verify|verify} messages.
+ * @param message FetchProcessorTypesResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1.IFetchProcessorTypesResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FetchProcessorTypesResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FetchProcessorTypesResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1.FetchProcessorTypesResponse;
+
+ /**
+ * Decodes a FetchProcessorTypesResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FetchProcessorTypesResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1.FetchProcessorTypesResponse;
+
+ /**
+ * Verifies a FetchProcessorTypesResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FetchProcessorTypesResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FetchProcessorTypesResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1.FetchProcessorTypesResponse;
+
+ /**
+ * Creates a plain object from a FetchProcessorTypesResponse message. Also converts values to other types if specified.
+ * @param message FetchProcessorTypesResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1.FetchProcessorTypesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FetchProcessorTypesResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FetchProcessorTypesResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListProcessorTypesRequest. */
+ interface IListProcessorTypesRequest {
+
+ /** ListProcessorTypesRequest parent */
+ parent?: (string|null);
+
+ /** ListProcessorTypesRequest pageSize */
+ pageSize?: (number|null);
+
+ /** ListProcessorTypesRequest pageToken */
+ pageToken?: (string|null);
+ }
+
+ /** Represents a ListProcessorTypesRequest. */
+ class ListProcessorTypesRequest implements IListProcessorTypesRequest {
+
+ /**
+ * Constructs a new ListProcessorTypesRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1.IListProcessorTypesRequest);
+
+ /** ListProcessorTypesRequest parent. */
+ public parent: string;
+
+ /** ListProcessorTypesRequest pageSize. */
+ public pageSize: number;
+
+ /** ListProcessorTypesRequest pageToken. */
+ public pageToken: string;
+
+ /**
+ * Creates a new ListProcessorTypesRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListProcessorTypesRequest instance
+ */
+ public static create(properties?: google.cloud.documentai.v1.IListProcessorTypesRequest): google.cloud.documentai.v1.ListProcessorTypesRequest;
+
+ /**
+ * Encodes the specified ListProcessorTypesRequest message. Does not implicitly {@link google.cloud.documentai.v1.ListProcessorTypesRequest.verify|verify} messages.
+ * @param message ListProcessorTypesRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1.IListProcessorTypesRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListProcessorTypesRequest message, length delimited. Does not implicitly {@link google.cloud.documentai.v1.ListProcessorTypesRequest.verify|verify} messages.
+ * @param message ListProcessorTypesRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1.IListProcessorTypesRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListProcessorTypesRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListProcessorTypesRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1.ListProcessorTypesRequest;
+
+ /**
+ * Decodes a ListProcessorTypesRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListProcessorTypesRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1.ListProcessorTypesRequest;
+
+ /**
+ * Verifies a ListProcessorTypesRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListProcessorTypesRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListProcessorTypesRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1.ListProcessorTypesRequest;
+
+ /**
+ * Creates a plain object from a ListProcessorTypesRequest message. Also converts values to other types if specified.
+ * @param message ListProcessorTypesRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1.ListProcessorTypesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListProcessorTypesRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListProcessorTypesRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListProcessorTypesResponse. */
+ interface IListProcessorTypesResponse {
+
+ /** ListProcessorTypesResponse processorTypes */
+ processorTypes?: (google.cloud.documentai.v1.IProcessorType[]|null);
+
+ /** ListProcessorTypesResponse nextPageToken */
+ nextPageToken?: (string|null);
+ }
+
+ /** Represents a ListProcessorTypesResponse. */
+ class ListProcessorTypesResponse implements IListProcessorTypesResponse {
+
+ /**
+ * Constructs a new ListProcessorTypesResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1.IListProcessorTypesResponse);
+
+ /** ListProcessorTypesResponse processorTypes. */
+ public processorTypes: google.cloud.documentai.v1.IProcessorType[];
+
+ /** ListProcessorTypesResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /**
+ * Creates a new ListProcessorTypesResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListProcessorTypesResponse instance
+ */
+ public static create(properties?: google.cloud.documentai.v1.IListProcessorTypesResponse): google.cloud.documentai.v1.ListProcessorTypesResponse;
+
+ /**
+ * Encodes the specified ListProcessorTypesResponse message. Does not implicitly {@link google.cloud.documentai.v1.ListProcessorTypesResponse.verify|verify} messages.
+ * @param message ListProcessorTypesResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1.IListProcessorTypesResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListProcessorTypesResponse message, length delimited. Does not implicitly {@link google.cloud.documentai.v1.ListProcessorTypesResponse.verify|verify} messages.
+ * @param message ListProcessorTypesResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1.IListProcessorTypesResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListProcessorTypesResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListProcessorTypesResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1.ListProcessorTypesResponse;
+
+ /**
+ * Decodes a ListProcessorTypesResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListProcessorTypesResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1.ListProcessorTypesResponse;
+
+ /**
+ * Verifies a ListProcessorTypesResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListProcessorTypesResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListProcessorTypesResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1.ListProcessorTypesResponse;
+
+ /**
+ * Creates a plain object from a ListProcessorTypesResponse message. Also converts values to other types if specified.
+ * @param message ListProcessorTypesResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1.ListProcessorTypesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListProcessorTypesResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListProcessorTypesResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListProcessorsRequest. */
+ interface IListProcessorsRequest {
+
+ /** ListProcessorsRequest parent */
+ parent?: (string|null);
+
+ /** ListProcessorsRequest pageSize */
+ pageSize?: (number|null);
+
+ /** ListProcessorsRequest pageToken */
+ pageToken?: (string|null);
+ }
+
+ /** Represents a ListProcessorsRequest. */
+ class ListProcessorsRequest implements IListProcessorsRequest {
+
+ /**
+ * Constructs a new ListProcessorsRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1.IListProcessorsRequest);
+
+ /** ListProcessorsRequest parent. */
+ public parent: string;
+
+ /** ListProcessorsRequest pageSize. */
+ public pageSize: number;
+
+ /** ListProcessorsRequest pageToken. */
+ public pageToken: string;
+
+ /**
+ * Creates a new ListProcessorsRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListProcessorsRequest instance
+ */
+ public static create(properties?: google.cloud.documentai.v1.IListProcessorsRequest): google.cloud.documentai.v1.ListProcessorsRequest;
+
+ /**
+ * Encodes the specified ListProcessorsRequest message. Does not implicitly {@link google.cloud.documentai.v1.ListProcessorsRequest.verify|verify} messages.
+ * @param message ListProcessorsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1.IListProcessorsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListProcessorsRequest message, length delimited. Does not implicitly {@link google.cloud.documentai.v1.ListProcessorsRequest.verify|verify} messages.
+ * @param message ListProcessorsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1.IListProcessorsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListProcessorsRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListProcessorsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1.ListProcessorsRequest;
+
+ /**
+ * Decodes a ListProcessorsRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListProcessorsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1.ListProcessorsRequest;
+
+ /**
+ * Verifies a ListProcessorsRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListProcessorsRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListProcessorsRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1.ListProcessorsRequest;
+
+ /**
+ * Creates a plain object from a ListProcessorsRequest message. Also converts values to other types if specified.
+ * @param message ListProcessorsRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1.ListProcessorsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListProcessorsRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListProcessorsRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListProcessorsResponse. */
+ interface IListProcessorsResponse {
+
+ /** ListProcessorsResponse processors */
+ processors?: (google.cloud.documentai.v1.IProcessor[]|null);
+
+ /** ListProcessorsResponse nextPageToken */
+ nextPageToken?: (string|null);
+ }
+
+ /** Represents a ListProcessorsResponse. */
+ class ListProcessorsResponse implements IListProcessorsResponse {
+
+ /**
+ * Constructs a new ListProcessorsResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1.IListProcessorsResponse);
+
+ /** ListProcessorsResponse processors. */
+ public processors: google.cloud.documentai.v1.IProcessor[];
+
+ /** ListProcessorsResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /**
+ * Creates a new ListProcessorsResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListProcessorsResponse instance
+ */
+ public static create(properties?: google.cloud.documentai.v1.IListProcessorsResponse): google.cloud.documentai.v1.ListProcessorsResponse;
+
+ /**
+ * Encodes the specified ListProcessorsResponse message. Does not implicitly {@link google.cloud.documentai.v1.ListProcessorsResponse.verify|verify} messages.
+ * @param message ListProcessorsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1.IListProcessorsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListProcessorsResponse message, length delimited. Does not implicitly {@link google.cloud.documentai.v1.ListProcessorsResponse.verify|verify} messages.
+ * @param message ListProcessorsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1.IListProcessorsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListProcessorsResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListProcessorsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1.ListProcessorsResponse;
+
+ /**
+ * Decodes a ListProcessorsResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListProcessorsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1.ListProcessorsResponse;
+
+ /**
+ * Verifies a ListProcessorsResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListProcessorsResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListProcessorsResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1.ListProcessorsResponse;
+
+ /**
+ * Creates a plain object from a ListProcessorsResponse message. Also converts values to other types if specified.
+ * @param message ListProcessorsResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1.ListProcessorsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListProcessorsResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListProcessorsResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GetProcessorRequest. */
+ interface IGetProcessorRequest {
+
+ /** GetProcessorRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a GetProcessorRequest. */
+ class GetProcessorRequest implements IGetProcessorRequest {
+
+ /**
+ * Constructs a new GetProcessorRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1.IGetProcessorRequest);
+
+ /** GetProcessorRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new GetProcessorRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetProcessorRequest instance
+ */
+ public static create(properties?: google.cloud.documentai.v1.IGetProcessorRequest): google.cloud.documentai.v1.GetProcessorRequest;
+
+ /**
+ * Encodes the specified GetProcessorRequest message. Does not implicitly {@link google.cloud.documentai.v1.GetProcessorRequest.verify|verify} messages.
+ * @param message GetProcessorRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1.IGetProcessorRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetProcessorRequest message, length delimited. Does not implicitly {@link google.cloud.documentai.v1.GetProcessorRequest.verify|verify} messages.
+ * @param message GetProcessorRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1.IGetProcessorRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetProcessorRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetProcessorRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1.GetProcessorRequest;
+
+ /**
+ * Decodes a GetProcessorRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetProcessorRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1.GetProcessorRequest;
+
+ /**
+ * Verifies a GetProcessorRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GetProcessorRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetProcessorRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1.GetProcessorRequest;
+
+ /**
+ * Creates a plain object from a GetProcessorRequest message. Also converts values to other types if specified.
+ * @param message GetProcessorRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1.GetProcessorRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetProcessorRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetProcessorRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GetProcessorVersionRequest. */
+ interface IGetProcessorVersionRequest {
+
+ /** GetProcessorVersionRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a GetProcessorVersionRequest. */
+ class GetProcessorVersionRequest implements IGetProcessorVersionRequest {
+
+ /**
+ * Constructs a new GetProcessorVersionRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1.IGetProcessorVersionRequest);
+
+ /** GetProcessorVersionRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new GetProcessorVersionRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetProcessorVersionRequest instance
+ */
+ public static create(properties?: google.cloud.documentai.v1.IGetProcessorVersionRequest): google.cloud.documentai.v1.GetProcessorVersionRequest;
+
+ /**
+ * Encodes the specified GetProcessorVersionRequest message. Does not implicitly {@link google.cloud.documentai.v1.GetProcessorVersionRequest.verify|verify} messages.
+ * @param message GetProcessorVersionRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1.IGetProcessorVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetProcessorVersionRequest message, length delimited. Does not implicitly {@link google.cloud.documentai.v1.GetProcessorVersionRequest.verify|verify} messages.
+ * @param message GetProcessorVersionRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1.IGetProcessorVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetProcessorVersionRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetProcessorVersionRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1.GetProcessorVersionRequest;
+
+ /**
+ * Decodes a GetProcessorVersionRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetProcessorVersionRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1.GetProcessorVersionRequest;
+
+ /**
+ * Verifies a GetProcessorVersionRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GetProcessorVersionRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetProcessorVersionRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1.GetProcessorVersionRequest;
+
+ /**
+ * Creates a plain object from a GetProcessorVersionRequest message. Also converts values to other types if specified.
+ * @param message GetProcessorVersionRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1.GetProcessorVersionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetProcessorVersionRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetProcessorVersionRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListProcessorVersionsRequest. */
+ interface IListProcessorVersionsRequest {
+
+ /** ListProcessorVersionsRequest parent */
+ parent?: (string|null);
+
+ /** ListProcessorVersionsRequest pageSize */
+ pageSize?: (number|null);
+
+ /** ListProcessorVersionsRequest pageToken */
+ pageToken?: (string|null);
+ }
+
+ /** Represents a ListProcessorVersionsRequest. */
+ class ListProcessorVersionsRequest implements IListProcessorVersionsRequest {
+
+ /**
+ * Constructs a new ListProcessorVersionsRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1.IListProcessorVersionsRequest);
+
+ /** ListProcessorVersionsRequest parent. */
+ public parent: string;
+
+ /** ListProcessorVersionsRequest pageSize. */
+ public pageSize: number;
+
+ /** ListProcessorVersionsRequest pageToken. */
+ public pageToken: string;
+
+ /**
+ * Creates a new ListProcessorVersionsRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListProcessorVersionsRequest instance
+ */
+ public static create(properties?: google.cloud.documentai.v1.IListProcessorVersionsRequest): google.cloud.documentai.v1.ListProcessorVersionsRequest;
+
+ /**
+ * Encodes the specified ListProcessorVersionsRequest message. Does not implicitly {@link google.cloud.documentai.v1.ListProcessorVersionsRequest.verify|verify} messages.
+ * @param message ListProcessorVersionsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1.IListProcessorVersionsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListProcessorVersionsRequest message, length delimited. Does not implicitly {@link google.cloud.documentai.v1.ListProcessorVersionsRequest.verify|verify} messages.
+ * @param message ListProcessorVersionsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1.IListProcessorVersionsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListProcessorVersionsRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListProcessorVersionsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1.ListProcessorVersionsRequest;
+
+ /**
+ * Decodes a ListProcessorVersionsRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListProcessorVersionsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1.ListProcessorVersionsRequest;
+
+ /**
+ * Verifies a ListProcessorVersionsRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListProcessorVersionsRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListProcessorVersionsRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1.ListProcessorVersionsRequest;
+
+ /**
+ * Creates a plain object from a ListProcessorVersionsRequest message. Also converts values to other types if specified.
+ * @param message ListProcessorVersionsRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1.ListProcessorVersionsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListProcessorVersionsRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListProcessorVersionsRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListProcessorVersionsResponse. */
+ interface IListProcessorVersionsResponse {
+
+ /** ListProcessorVersionsResponse processorVersions */
+ processorVersions?: (google.cloud.documentai.v1.IProcessorVersion[]|null);
+
+ /** ListProcessorVersionsResponse nextPageToken */
+ nextPageToken?: (string|null);
+ }
+
+ /** Represents a ListProcessorVersionsResponse. */
+ class ListProcessorVersionsResponse implements IListProcessorVersionsResponse {
+
+ /**
+ * Constructs a new ListProcessorVersionsResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1.IListProcessorVersionsResponse);
+
+ /** ListProcessorVersionsResponse processorVersions. */
+ public processorVersions: google.cloud.documentai.v1.IProcessorVersion[];
+
+ /** ListProcessorVersionsResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /**
+ * Creates a new ListProcessorVersionsResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListProcessorVersionsResponse instance
+ */
+ public static create(properties?: google.cloud.documentai.v1.IListProcessorVersionsResponse): google.cloud.documentai.v1.ListProcessorVersionsResponse;
+
+ /**
+ * Encodes the specified ListProcessorVersionsResponse message. Does not implicitly {@link google.cloud.documentai.v1.ListProcessorVersionsResponse.verify|verify} messages.
+ * @param message ListProcessorVersionsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1.IListProcessorVersionsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListProcessorVersionsResponse message, length delimited. Does not implicitly {@link google.cloud.documentai.v1.ListProcessorVersionsResponse.verify|verify} messages.
+ * @param message ListProcessorVersionsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1.IListProcessorVersionsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListProcessorVersionsResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListProcessorVersionsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1.ListProcessorVersionsResponse;
+
+ /**
+ * Decodes a ListProcessorVersionsResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListProcessorVersionsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1.ListProcessorVersionsResponse;
+
+ /**
+ * Verifies a ListProcessorVersionsResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListProcessorVersionsResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListProcessorVersionsResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1.ListProcessorVersionsResponse;
+
+ /**
+ * Creates a plain object from a ListProcessorVersionsResponse message. Also converts values to other types if specified.
+ * @param message ListProcessorVersionsResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1.ListProcessorVersionsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListProcessorVersionsResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListProcessorVersionsResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DeleteProcessorVersionRequest. */
+ interface IDeleteProcessorVersionRequest {
+
+ /** DeleteProcessorVersionRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a DeleteProcessorVersionRequest. */
+ class DeleteProcessorVersionRequest implements IDeleteProcessorVersionRequest {
+
+ /**
+ * Constructs a new DeleteProcessorVersionRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1.IDeleteProcessorVersionRequest);
+
+ /** DeleteProcessorVersionRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new DeleteProcessorVersionRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DeleteProcessorVersionRequest instance
+ */
+ public static create(properties?: google.cloud.documentai.v1.IDeleteProcessorVersionRequest): google.cloud.documentai.v1.DeleteProcessorVersionRequest;
+
+ /**
+ * Encodes the specified DeleteProcessorVersionRequest message. Does not implicitly {@link google.cloud.documentai.v1.DeleteProcessorVersionRequest.verify|verify} messages.
+ * @param message DeleteProcessorVersionRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1.IDeleteProcessorVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DeleteProcessorVersionRequest message, length delimited. Does not implicitly {@link google.cloud.documentai.v1.DeleteProcessorVersionRequest.verify|verify} messages.
+ * @param message DeleteProcessorVersionRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1.IDeleteProcessorVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DeleteProcessorVersionRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DeleteProcessorVersionRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1.DeleteProcessorVersionRequest;
+
+ /**
+ * Decodes a DeleteProcessorVersionRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DeleteProcessorVersionRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1.DeleteProcessorVersionRequest;
+
+ /**
+ * Verifies a DeleteProcessorVersionRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DeleteProcessorVersionRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DeleteProcessorVersionRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1.DeleteProcessorVersionRequest;
+
+ /**
+ * Creates a plain object from a DeleteProcessorVersionRequest message. Also converts values to other types if specified.
+ * @param message DeleteProcessorVersionRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1.DeleteProcessorVersionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DeleteProcessorVersionRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DeleteProcessorVersionRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DeleteProcessorVersionMetadata. */
+ interface IDeleteProcessorVersionMetadata {
+
+ /** DeleteProcessorVersionMetadata commonMetadata */
+ commonMetadata?: (google.cloud.documentai.v1.ICommonOperationMetadata|null);
+ }
+
+ /** Represents a DeleteProcessorVersionMetadata. */
+ class DeleteProcessorVersionMetadata implements IDeleteProcessorVersionMetadata {
+
+ /**
+ * Constructs a new DeleteProcessorVersionMetadata.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1.IDeleteProcessorVersionMetadata);
+
+ /** DeleteProcessorVersionMetadata commonMetadata. */
+ public commonMetadata?: (google.cloud.documentai.v1.ICommonOperationMetadata|null);
+
+ /**
+ * Creates a new DeleteProcessorVersionMetadata instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DeleteProcessorVersionMetadata instance
+ */
+ public static create(properties?: google.cloud.documentai.v1.IDeleteProcessorVersionMetadata): google.cloud.documentai.v1.DeleteProcessorVersionMetadata;
+
+ /**
+ * Encodes the specified DeleteProcessorVersionMetadata message. Does not implicitly {@link google.cloud.documentai.v1.DeleteProcessorVersionMetadata.verify|verify} messages.
+ * @param message DeleteProcessorVersionMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1.IDeleteProcessorVersionMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DeleteProcessorVersionMetadata message, length delimited. Does not implicitly {@link google.cloud.documentai.v1.DeleteProcessorVersionMetadata.verify|verify} messages.
+ * @param message DeleteProcessorVersionMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1.IDeleteProcessorVersionMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DeleteProcessorVersionMetadata message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DeleteProcessorVersionMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1.DeleteProcessorVersionMetadata;
+
+ /**
+ * Decodes a DeleteProcessorVersionMetadata message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DeleteProcessorVersionMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1.DeleteProcessorVersionMetadata;
+
+ /**
+ * Verifies a DeleteProcessorVersionMetadata message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DeleteProcessorVersionMetadata message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DeleteProcessorVersionMetadata
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1.DeleteProcessorVersionMetadata;
+
+ /**
+ * Creates a plain object from a DeleteProcessorVersionMetadata message. Also converts values to other types if specified.
+ * @param message DeleteProcessorVersionMetadata
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1.DeleteProcessorVersionMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DeleteProcessorVersionMetadata to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DeleteProcessorVersionMetadata
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DeployProcessorVersionRequest. */
+ interface IDeployProcessorVersionRequest {
+
+ /** DeployProcessorVersionRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a DeployProcessorVersionRequest. */
+ class DeployProcessorVersionRequest implements IDeployProcessorVersionRequest {
+
+ /**
+ * Constructs a new DeployProcessorVersionRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1.IDeployProcessorVersionRequest);
+
+ /** DeployProcessorVersionRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new DeployProcessorVersionRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DeployProcessorVersionRequest instance
+ */
+ public static create(properties?: google.cloud.documentai.v1.IDeployProcessorVersionRequest): google.cloud.documentai.v1.DeployProcessorVersionRequest;
+
+ /**
+ * Encodes the specified DeployProcessorVersionRequest message. Does not implicitly {@link google.cloud.documentai.v1.DeployProcessorVersionRequest.verify|verify} messages.
+ * @param message DeployProcessorVersionRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1.IDeployProcessorVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DeployProcessorVersionRequest message, length delimited. Does not implicitly {@link google.cloud.documentai.v1.DeployProcessorVersionRequest.verify|verify} messages.
+ * @param message DeployProcessorVersionRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1.IDeployProcessorVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DeployProcessorVersionRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DeployProcessorVersionRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1.DeployProcessorVersionRequest;
+
+ /**
+ * Decodes a DeployProcessorVersionRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DeployProcessorVersionRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1.DeployProcessorVersionRequest;
+
+ /**
+ * Verifies a DeployProcessorVersionRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DeployProcessorVersionRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DeployProcessorVersionRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1.DeployProcessorVersionRequest;
+
+ /**
+ * Creates a plain object from a DeployProcessorVersionRequest message. Also converts values to other types if specified.
+ * @param message DeployProcessorVersionRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1.DeployProcessorVersionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DeployProcessorVersionRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DeployProcessorVersionRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DeployProcessorVersionResponse. */
+ interface IDeployProcessorVersionResponse {
+ }
+
+ /** Represents a DeployProcessorVersionResponse. */
+ class DeployProcessorVersionResponse implements IDeployProcessorVersionResponse {
+
+ /**
+ * Constructs a new DeployProcessorVersionResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1.IDeployProcessorVersionResponse);
+
+ /**
+ * Creates a new DeployProcessorVersionResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DeployProcessorVersionResponse instance
+ */
+ public static create(properties?: google.cloud.documentai.v1.IDeployProcessorVersionResponse): google.cloud.documentai.v1.DeployProcessorVersionResponse;
+
+ /**
+ * Encodes the specified DeployProcessorVersionResponse message. Does not implicitly {@link google.cloud.documentai.v1.DeployProcessorVersionResponse.verify|verify} messages.
+ * @param message DeployProcessorVersionResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1.IDeployProcessorVersionResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DeployProcessorVersionResponse message, length delimited. Does not implicitly {@link google.cloud.documentai.v1.DeployProcessorVersionResponse.verify|verify} messages.
+ * @param message DeployProcessorVersionResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1.IDeployProcessorVersionResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DeployProcessorVersionResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DeployProcessorVersionResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1.DeployProcessorVersionResponse;
+
+ /**
+ * Decodes a DeployProcessorVersionResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DeployProcessorVersionResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1.DeployProcessorVersionResponse;
+
+ /**
+ * Verifies a DeployProcessorVersionResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DeployProcessorVersionResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DeployProcessorVersionResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1.DeployProcessorVersionResponse;
+
+ /**
+ * Creates a plain object from a DeployProcessorVersionResponse message. Also converts values to other types if specified.
+ * @param message DeployProcessorVersionResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1.DeployProcessorVersionResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DeployProcessorVersionResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DeployProcessorVersionResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DeployProcessorVersionMetadata. */
+ interface IDeployProcessorVersionMetadata {
+
+ /** DeployProcessorVersionMetadata commonMetadata */
+ commonMetadata?: (google.cloud.documentai.v1.ICommonOperationMetadata|null);
+ }
+
+ /** Represents a DeployProcessorVersionMetadata. */
+ class DeployProcessorVersionMetadata implements IDeployProcessorVersionMetadata {
+
+ /**
+ * Constructs a new DeployProcessorVersionMetadata.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1.IDeployProcessorVersionMetadata);
+
+ /** DeployProcessorVersionMetadata commonMetadata. */
+ public commonMetadata?: (google.cloud.documentai.v1.ICommonOperationMetadata|null);
+
+ /**
+ * Creates a new DeployProcessorVersionMetadata instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DeployProcessorVersionMetadata instance
+ */
+ public static create(properties?: google.cloud.documentai.v1.IDeployProcessorVersionMetadata): google.cloud.documentai.v1.DeployProcessorVersionMetadata;
+
+ /**
+ * Encodes the specified DeployProcessorVersionMetadata message. Does not implicitly {@link google.cloud.documentai.v1.DeployProcessorVersionMetadata.verify|verify} messages.
+ * @param message DeployProcessorVersionMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1.IDeployProcessorVersionMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DeployProcessorVersionMetadata message, length delimited. Does not implicitly {@link google.cloud.documentai.v1.DeployProcessorVersionMetadata.verify|verify} messages.
+ * @param message DeployProcessorVersionMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1.IDeployProcessorVersionMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DeployProcessorVersionMetadata message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DeployProcessorVersionMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1.DeployProcessorVersionMetadata;
+
+ /**
+ * Decodes a DeployProcessorVersionMetadata message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DeployProcessorVersionMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1.DeployProcessorVersionMetadata;
+
+ /**
+ * Verifies a DeployProcessorVersionMetadata message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DeployProcessorVersionMetadata message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DeployProcessorVersionMetadata
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1.DeployProcessorVersionMetadata;
+
+ /**
+ * Creates a plain object from a DeployProcessorVersionMetadata message. Also converts values to other types if specified.
+ * @param message DeployProcessorVersionMetadata
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1.DeployProcessorVersionMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DeployProcessorVersionMetadata to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DeployProcessorVersionMetadata
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an UndeployProcessorVersionRequest. */
+ interface IUndeployProcessorVersionRequest {
+
+ /** UndeployProcessorVersionRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents an UndeployProcessorVersionRequest. */
+ class UndeployProcessorVersionRequest implements IUndeployProcessorVersionRequest {
+
+ /**
+ * Constructs a new UndeployProcessorVersionRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1.IUndeployProcessorVersionRequest);
+
+ /** UndeployProcessorVersionRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new UndeployProcessorVersionRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns UndeployProcessorVersionRequest instance
+ */
+ public static create(properties?: google.cloud.documentai.v1.IUndeployProcessorVersionRequest): google.cloud.documentai.v1.UndeployProcessorVersionRequest;
+
+ /**
+ * Encodes the specified UndeployProcessorVersionRequest message. Does not implicitly {@link google.cloud.documentai.v1.UndeployProcessorVersionRequest.verify|verify} messages.
+ * @param message UndeployProcessorVersionRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1.IUndeployProcessorVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified UndeployProcessorVersionRequest message, length delimited. Does not implicitly {@link google.cloud.documentai.v1.UndeployProcessorVersionRequest.verify|verify} messages.
+ * @param message UndeployProcessorVersionRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1.IUndeployProcessorVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an UndeployProcessorVersionRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns UndeployProcessorVersionRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1.UndeployProcessorVersionRequest;
+
+ /**
+ * Decodes an UndeployProcessorVersionRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns UndeployProcessorVersionRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1.UndeployProcessorVersionRequest;
+
+ /**
+ * Verifies an UndeployProcessorVersionRequest message.
+ * @param message Plain 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 UndeployProcessorVersionRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns UndeployProcessorVersionRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1.UndeployProcessorVersionRequest;
+
+ /**
+ * Creates a plain object from an UndeployProcessorVersionRequest message. Also converts values to other types if specified.
+ * @param message UndeployProcessorVersionRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1.UndeployProcessorVersionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this UndeployProcessorVersionRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for UndeployProcessorVersionRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an UndeployProcessorVersionResponse. */
+ interface IUndeployProcessorVersionResponse {
+ }
+
+ /** Represents an UndeployProcessorVersionResponse. */
+ class UndeployProcessorVersionResponse implements IUndeployProcessorVersionResponse {
+
+ /**
+ * Constructs a new UndeployProcessorVersionResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1.IUndeployProcessorVersionResponse);
+
+ /**
+ * Creates a new UndeployProcessorVersionResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns UndeployProcessorVersionResponse instance
+ */
+ public static create(properties?: google.cloud.documentai.v1.IUndeployProcessorVersionResponse): google.cloud.documentai.v1.UndeployProcessorVersionResponse;
+
+ /**
+ * Encodes the specified UndeployProcessorVersionResponse message. Does not implicitly {@link google.cloud.documentai.v1.UndeployProcessorVersionResponse.verify|verify} messages.
+ * @param message UndeployProcessorVersionResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1.IUndeployProcessorVersionResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified UndeployProcessorVersionResponse message, length delimited. Does not implicitly {@link google.cloud.documentai.v1.UndeployProcessorVersionResponse.verify|verify} messages.
+ * @param message UndeployProcessorVersionResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1.IUndeployProcessorVersionResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an UndeployProcessorVersionResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns UndeployProcessorVersionResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1.UndeployProcessorVersionResponse;
+
+ /**
+ * Decodes an UndeployProcessorVersionResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns UndeployProcessorVersionResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1.UndeployProcessorVersionResponse;
+
+ /**
+ * Verifies an UndeployProcessorVersionResponse message.
+ * @param message Plain 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 UndeployProcessorVersionResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns UndeployProcessorVersionResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1.UndeployProcessorVersionResponse;
+
+ /**
+ * Creates a plain object from an UndeployProcessorVersionResponse message. Also converts values to other types if specified.
+ * @param message UndeployProcessorVersionResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1.UndeployProcessorVersionResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this UndeployProcessorVersionResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for UndeployProcessorVersionResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an UndeployProcessorVersionMetadata. */
+ interface IUndeployProcessorVersionMetadata {
+
+ /** UndeployProcessorVersionMetadata commonMetadata */
+ commonMetadata?: (google.cloud.documentai.v1.ICommonOperationMetadata|null);
+ }
+
+ /** Represents an UndeployProcessorVersionMetadata. */
+ class UndeployProcessorVersionMetadata implements IUndeployProcessorVersionMetadata {
+
+ /**
+ * Constructs a new UndeployProcessorVersionMetadata.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1.IUndeployProcessorVersionMetadata);
+
+ /** UndeployProcessorVersionMetadata commonMetadata. */
+ public commonMetadata?: (google.cloud.documentai.v1.ICommonOperationMetadata|null);
+
+ /**
+ * Creates a new UndeployProcessorVersionMetadata instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns UndeployProcessorVersionMetadata instance
+ */
+ public static create(properties?: google.cloud.documentai.v1.IUndeployProcessorVersionMetadata): google.cloud.documentai.v1.UndeployProcessorVersionMetadata;
+
+ /**
+ * Encodes the specified UndeployProcessorVersionMetadata message. Does not implicitly {@link google.cloud.documentai.v1.UndeployProcessorVersionMetadata.verify|verify} messages.
+ * @param message UndeployProcessorVersionMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1.IUndeployProcessorVersionMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified UndeployProcessorVersionMetadata message, length delimited. Does not implicitly {@link google.cloud.documentai.v1.UndeployProcessorVersionMetadata.verify|verify} messages.
+ * @param message UndeployProcessorVersionMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1.IUndeployProcessorVersionMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an UndeployProcessorVersionMetadata message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns UndeployProcessorVersionMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1.UndeployProcessorVersionMetadata;
+
+ /**
+ * Decodes an UndeployProcessorVersionMetadata message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns UndeployProcessorVersionMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1.UndeployProcessorVersionMetadata;
+
+ /**
+ * Verifies an UndeployProcessorVersionMetadata message.
+ * @param message Plain 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 UndeployProcessorVersionMetadata message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns UndeployProcessorVersionMetadata
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1.UndeployProcessorVersionMetadata;
+
+ /**
+ * Creates a plain object from an UndeployProcessorVersionMetadata message. Also converts values to other types if specified.
+ * @param message UndeployProcessorVersionMetadata
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1.UndeployProcessorVersionMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this UndeployProcessorVersionMetadata to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for UndeployProcessorVersionMetadata
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CreateProcessorRequest. */
+ interface ICreateProcessorRequest {
+
+ /** CreateProcessorRequest parent */
+ parent?: (string|null);
+
+ /** CreateProcessorRequest processor */
+ processor?: (google.cloud.documentai.v1.IProcessor|null);
+ }
+
+ /** Represents a CreateProcessorRequest. */
+ class CreateProcessorRequest implements ICreateProcessorRequest {
+
+ /**
+ * Constructs a new CreateProcessorRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1.ICreateProcessorRequest);
+
+ /** CreateProcessorRequest parent. */
+ public parent: string;
+
+ /** CreateProcessorRequest processor. */
+ public processor?: (google.cloud.documentai.v1.IProcessor|null);
+
+ /**
+ * Creates a new CreateProcessorRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CreateProcessorRequest instance
+ */
+ public static create(properties?: google.cloud.documentai.v1.ICreateProcessorRequest): google.cloud.documentai.v1.CreateProcessorRequest;
+
+ /**
+ * Encodes the specified CreateProcessorRequest message. Does not implicitly {@link google.cloud.documentai.v1.CreateProcessorRequest.verify|verify} messages.
+ * @param message CreateProcessorRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1.ICreateProcessorRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CreateProcessorRequest message, length delimited. Does not implicitly {@link google.cloud.documentai.v1.CreateProcessorRequest.verify|verify} messages.
+ * @param message CreateProcessorRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1.ICreateProcessorRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CreateProcessorRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CreateProcessorRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1.CreateProcessorRequest;
+
+ /**
+ * Decodes a CreateProcessorRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CreateProcessorRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1.CreateProcessorRequest;
+
+ /**
+ * Verifies a CreateProcessorRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a CreateProcessorRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CreateProcessorRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1.CreateProcessorRequest;
+
+ /**
+ * Creates a plain object from a CreateProcessorRequest message. Also converts values to other types if specified.
+ * @param message CreateProcessorRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1.CreateProcessorRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CreateProcessorRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CreateProcessorRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DeleteProcessorRequest. */
+ interface IDeleteProcessorRequest {
+
+ /** DeleteProcessorRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a DeleteProcessorRequest. */
+ class DeleteProcessorRequest implements IDeleteProcessorRequest {
+
+ /**
+ * Constructs a new DeleteProcessorRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1.IDeleteProcessorRequest);
+
+ /** DeleteProcessorRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new DeleteProcessorRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DeleteProcessorRequest instance
+ */
+ public static create(properties?: google.cloud.documentai.v1.IDeleteProcessorRequest): google.cloud.documentai.v1.DeleteProcessorRequest;
+
+ /**
+ * Encodes the specified DeleteProcessorRequest message. Does not implicitly {@link google.cloud.documentai.v1.DeleteProcessorRequest.verify|verify} messages.
+ * @param message DeleteProcessorRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1.IDeleteProcessorRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DeleteProcessorRequest message, length delimited. Does not implicitly {@link google.cloud.documentai.v1.DeleteProcessorRequest.verify|verify} messages.
+ * @param message DeleteProcessorRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1.IDeleteProcessorRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DeleteProcessorRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DeleteProcessorRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1.DeleteProcessorRequest;
+
+ /**
+ * Decodes a DeleteProcessorRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DeleteProcessorRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1.DeleteProcessorRequest;
+
+ /**
+ * Verifies a DeleteProcessorRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DeleteProcessorRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DeleteProcessorRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1.DeleteProcessorRequest;
+
+ /**
+ * Creates a plain object from a DeleteProcessorRequest message. Also converts values to other types if specified.
+ * @param message DeleteProcessorRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1.DeleteProcessorRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DeleteProcessorRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DeleteProcessorRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DeleteProcessorMetadata. */
+ interface IDeleteProcessorMetadata {
+
+ /** DeleteProcessorMetadata commonMetadata */
+ commonMetadata?: (google.cloud.documentai.v1.ICommonOperationMetadata|null);
+ }
+
+ /** Represents a DeleteProcessorMetadata. */
+ class DeleteProcessorMetadata implements IDeleteProcessorMetadata {
+
+ /**
+ * Constructs a new DeleteProcessorMetadata.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1.IDeleteProcessorMetadata);
+
+ /** DeleteProcessorMetadata commonMetadata. */
+ public commonMetadata?: (google.cloud.documentai.v1.ICommonOperationMetadata|null);
+
+ /**
+ * Creates a new DeleteProcessorMetadata instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DeleteProcessorMetadata instance
+ */
+ public static create(properties?: google.cloud.documentai.v1.IDeleteProcessorMetadata): google.cloud.documentai.v1.DeleteProcessorMetadata;
+
+ /**
+ * Encodes the specified DeleteProcessorMetadata message. Does not implicitly {@link google.cloud.documentai.v1.DeleteProcessorMetadata.verify|verify} messages.
+ * @param message DeleteProcessorMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1.IDeleteProcessorMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DeleteProcessorMetadata message, length delimited. Does not implicitly {@link google.cloud.documentai.v1.DeleteProcessorMetadata.verify|verify} messages.
+ * @param message DeleteProcessorMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1.IDeleteProcessorMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DeleteProcessorMetadata message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DeleteProcessorMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1.DeleteProcessorMetadata;
+
+ /**
+ * Decodes a DeleteProcessorMetadata message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DeleteProcessorMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1.DeleteProcessorMetadata;
+
+ /**
+ * Verifies a DeleteProcessorMetadata message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DeleteProcessorMetadata message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DeleteProcessorMetadata
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1.DeleteProcessorMetadata;
+
+ /**
+ * Creates a plain object from a DeleteProcessorMetadata message. Also converts values to other types if specified.
+ * @param message DeleteProcessorMetadata
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1.DeleteProcessorMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DeleteProcessorMetadata to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DeleteProcessorMetadata
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an EnableProcessorRequest. */
+ interface IEnableProcessorRequest {
+
+ /** EnableProcessorRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents an EnableProcessorRequest. */
+ class EnableProcessorRequest implements IEnableProcessorRequest {
+
+ /**
+ * Constructs a new EnableProcessorRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1.IEnableProcessorRequest);
+
+ /** EnableProcessorRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new EnableProcessorRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns EnableProcessorRequest instance
+ */
+ public static create(properties?: google.cloud.documentai.v1.IEnableProcessorRequest): google.cloud.documentai.v1.EnableProcessorRequest;
+
+ /**
+ * Encodes the specified EnableProcessorRequest message. Does not implicitly {@link google.cloud.documentai.v1.EnableProcessorRequest.verify|verify} messages.
+ * @param message EnableProcessorRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1.IEnableProcessorRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified EnableProcessorRequest message, length delimited. Does not implicitly {@link google.cloud.documentai.v1.EnableProcessorRequest.verify|verify} messages.
+ * @param message EnableProcessorRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1.IEnableProcessorRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an EnableProcessorRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns EnableProcessorRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1.EnableProcessorRequest;
+
+ /**
+ * Decodes an EnableProcessorRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns EnableProcessorRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1.EnableProcessorRequest;
+
+ /**
+ * Verifies an EnableProcessorRequest message.
+ * @param message Plain 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 EnableProcessorRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns EnableProcessorRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1.EnableProcessorRequest;
+
+ /**
+ * Creates a plain object from an EnableProcessorRequest message. Also converts values to other types if specified.
+ * @param message EnableProcessorRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1.EnableProcessorRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this EnableProcessorRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for EnableProcessorRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an EnableProcessorResponse. */
+ interface IEnableProcessorResponse {
+ }
+
+ /** Represents an EnableProcessorResponse. */
+ class EnableProcessorResponse implements IEnableProcessorResponse {
+
+ /**
+ * Constructs a new EnableProcessorResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1.IEnableProcessorResponse);
+
+ /**
+ * Creates a new EnableProcessorResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns EnableProcessorResponse instance
+ */
+ public static create(properties?: google.cloud.documentai.v1.IEnableProcessorResponse): google.cloud.documentai.v1.EnableProcessorResponse;
+
+ /**
+ * Encodes the specified EnableProcessorResponse message. Does not implicitly {@link google.cloud.documentai.v1.EnableProcessorResponse.verify|verify} messages.
+ * @param message EnableProcessorResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1.IEnableProcessorResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified EnableProcessorResponse message, length delimited. Does not implicitly {@link google.cloud.documentai.v1.EnableProcessorResponse.verify|verify} messages.
+ * @param message EnableProcessorResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1.IEnableProcessorResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an EnableProcessorResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns EnableProcessorResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1.EnableProcessorResponse;
+
+ /**
+ * Decodes an EnableProcessorResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns EnableProcessorResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1.EnableProcessorResponse;
+
+ /**
+ * Verifies an EnableProcessorResponse message.
+ * @param message Plain 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 EnableProcessorResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns EnableProcessorResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1.EnableProcessorResponse;
+
+ /**
+ * Creates a plain object from an EnableProcessorResponse message. Also converts values to other types if specified.
+ * @param message EnableProcessorResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1.EnableProcessorResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this EnableProcessorResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for EnableProcessorResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an EnableProcessorMetadata. */
+ interface IEnableProcessorMetadata {
+
+ /** EnableProcessorMetadata commonMetadata */
+ commonMetadata?: (google.cloud.documentai.v1.ICommonOperationMetadata|null);
+ }
+
+ /** Represents an EnableProcessorMetadata. */
+ class EnableProcessorMetadata implements IEnableProcessorMetadata {
+
+ /**
+ * Constructs a new EnableProcessorMetadata.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1.IEnableProcessorMetadata);
+
+ /** EnableProcessorMetadata commonMetadata. */
+ public commonMetadata?: (google.cloud.documentai.v1.ICommonOperationMetadata|null);
+
+ /**
+ * Creates a new EnableProcessorMetadata instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns EnableProcessorMetadata instance
+ */
+ public static create(properties?: google.cloud.documentai.v1.IEnableProcessorMetadata): google.cloud.documentai.v1.EnableProcessorMetadata;
+
+ /**
+ * Encodes the specified EnableProcessorMetadata message. Does not implicitly {@link google.cloud.documentai.v1.EnableProcessorMetadata.verify|verify} messages.
+ * @param message EnableProcessorMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1.IEnableProcessorMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified EnableProcessorMetadata message, length delimited. Does not implicitly {@link google.cloud.documentai.v1.EnableProcessorMetadata.verify|verify} messages.
+ * @param message EnableProcessorMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1.IEnableProcessorMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an EnableProcessorMetadata message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns EnableProcessorMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1.EnableProcessorMetadata;
+
+ /**
+ * Decodes an EnableProcessorMetadata message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns EnableProcessorMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1.EnableProcessorMetadata;
+
+ /**
+ * Verifies an EnableProcessorMetadata message.
+ * @param message Plain 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 EnableProcessorMetadata message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns EnableProcessorMetadata
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1.EnableProcessorMetadata;
+
+ /**
+ * Creates a plain object from an EnableProcessorMetadata message. Also converts values to other types if specified.
+ * @param message EnableProcessorMetadata
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1.EnableProcessorMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this EnableProcessorMetadata to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for EnableProcessorMetadata
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DisableProcessorRequest. */
+ interface IDisableProcessorRequest {
+
+ /** DisableProcessorRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a DisableProcessorRequest. */
+ class DisableProcessorRequest implements IDisableProcessorRequest {
+
+ /**
+ * Constructs a new DisableProcessorRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1.IDisableProcessorRequest);
+
+ /** DisableProcessorRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new DisableProcessorRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DisableProcessorRequest instance
+ */
+ public static create(properties?: google.cloud.documentai.v1.IDisableProcessorRequest): google.cloud.documentai.v1.DisableProcessorRequest;
+
+ /**
+ * Encodes the specified DisableProcessorRequest message. Does not implicitly {@link google.cloud.documentai.v1.DisableProcessorRequest.verify|verify} messages.
+ * @param message DisableProcessorRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1.IDisableProcessorRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DisableProcessorRequest message, length delimited. Does not implicitly {@link google.cloud.documentai.v1.DisableProcessorRequest.verify|verify} messages.
+ * @param message DisableProcessorRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1.IDisableProcessorRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DisableProcessorRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DisableProcessorRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1.DisableProcessorRequest;
+
+ /**
+ * Decodes a DisableProcessorRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DisableProcessorRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1.DisableProcessorRequest;
+
+ /**
+ * Verifies a DisableProcessorRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DisableProcessorRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DisableProcessorRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1.DisableProcessorRequest;
+
+ /**
+ * Creates a plain object from a DisableProcessorRequest message. Also converts values to other types if specified.
+ * @param message DisableProcessorRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1.DisableProcessorRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DisableProcessorRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DisableProcessorRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DisableProcessorResponse. */
+ interface IDisableProcessorResponse {
+ }
+
+ /** Represents a DisableProcessorResponse. */
+ class DisableProcessorResponse implements IDisableProcessorResponse {
+
+ /**
+ * Constructs a new DisableProcessorResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1.IDisableProcessorResponse);
+
+ /**
+ * Creates a new DisableProcessorResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DisableProcessorResponse instance
+ */
+ public static create(properties?: google.cloud.documentai.v1.IDisableProcessorResponse): google.cloud.documentai.v1.DisableProcessorResponse;
+
+ /**
+ * Encodes the specified DisableProcessorResponse message. Does not implicitly {@link google.cloud.documentai.v1.DisableProcessorResponse.verify|verify} messages.
+ * @param message DisableProcessorResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1.IDisableProcessorResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DisableProcessorResponse message, length delimited. Does not implicitly {@link google.cloud.documentai.v1.DisableProcessorResponse.verify|verify} messages.
+ * @param message DisableProcessorResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1.IDisableProcessorResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DisableProcessorResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DisableProcessorResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1.DisableProcessorResponse;
+
+ /**
+ * Decodes a DisableProcessorResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DisableProcessorResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1.DisableProcessorResponse;
+
+ /**
+ * Verifies a DisableProcessorResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DisableProcessorResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DisableProcessorResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1.DisableProcessorResponse;
+
+ /**
+ * Creates a plain object from a DisableProcessorResponse message. Also converts values to other types if specified.
+ * @param message DisableProcessorResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1.DisableProcessorResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DisableProcessorResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DisableProcessorResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DisableProcessorMetadata. */
+ interface IDisableProcessorMetadata {
+
+ /** DisableProcessorMetadata commonMetadata */
+ commonMetadata?: (google.cloud.documentai.v1.ICommonOperationMetadata|null);
+ }
+
+ /** Represents a DisableProcessorMetadata. */
+ class DisableProcessorMetadata implements IDisableProcessorMetadata {
+
+ /**
+ * Constructs a new DisableProcessorMetadata.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1.IDisableProcessorMetadata);
+
+ /** DisableProcessorMetadata commonMetadata. */
+ public commonMetadata?: (google.cloud.documentai.v1.ICommonOperationMetadata|null);
+
+ /**
+ * Creates a new DisableProcessorMetadata instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DisableProcessorMetadata instance
+ */
+ public static create(properties?: google.cloud.documentai.v1.IDisableProcessorMetadata): google.cloud.documentai.v1.DisableProcessorMetadata;
+
+ /**
+ * Encodes the specified DisableProcessorMetadata message. Does not implicitly {@link google.cloud.documentai.v1.DisableProcessorMetadata.verify|verify} messages.
+ * @param message DisableProcessorMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1.IDisableProcessorMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DisableProcessorMetadata message, length delimited. Does not implicitly {@link google.cloud.documentai.v1.DisableProcessorMetadata.verify|verify} messages.
+ * @param message DisableProcessorMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1.IDisableProcessorMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DisableProcessorMetadata message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DisableProcessorMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1.DisableProcessorMetadata;
+
+ /**
+ * Decodes a DisableProcessorMetadata message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DisableProcessorMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1.DisableProcessorMetadata;
+
+ /**
+ * Verifies a DisableProcessorMetadata message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DisableProcessorMetadata message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DisableProcessorMetadata
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1.DisableProcessorMetadata;
+
+ /**
+ * Creates a plain object from a DisableProcessorMetadata message. Also converts values to other types if specified.
+ * @param message DisableProcessorMetadata
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1.DisableProcessorMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DisableProcessorMetadata to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DisableProcessorMetadata
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a SetDefaultProcessorVersionRequest. */
+ interface ISetDefaultProcessorVersionRequest {
+
+ /** SetDefaultProcessorVersionRequest processor */
+ processor?: (string|null);
+
+ /** SetDefaultProcessorVersionRequest defaultProcessorVersion */
+ defaultProcessorVersion?: (string|null);
+ }
+
+ /** Represents a SetDefaultProcessorVersionRequest. */
+ class SetDefaultProcessorVersionRequest implements ISetDefaultProcessorVersionRequest {
+
+ /**
+ * Constructs a new SetDefaultProcessorVersionRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1.ISetDefaultProcessorVersionRequest);
+
+ /** SetDefaultProcessorVersionRequest processor. */
+ public processor: string;
+
+ /** SetDefaultProcessorVersionRequest defaultProcessorVersion. */
+ public defaultProcessorVersion: string;
+
+ /**
+ * Creates a new SetDefaultProcessorVersionRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns SetDefaultProcessorVersionRequest instance
+ */
+ public static create(properties?: google.cloud.documentai.v1.ISetDefaultProcessorVersionRequest): google.cloud.documentai.v1.SetDefaultProcessorVersionRequest;
+
+ /**
+ * Encodes the specified SetDefaultProcessorVersionRequest message. Does not implicitly {@link google.cloud.documentai.v1.SetDefaultProcessorVersionRequest.verify|verify} messages.
+ * @param message SetDefaultProcessorVersionRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1.ISetDefaultProcessorVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified SetDefaultProcessorVersionRequest message, length delimited. Does not implicitly {@link google.cloud.documentai.v1.SetDefaultProcessorVersionRequest.verify|verify} messages.
+ * @param message SetDefaultProcessorVersionRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1.ISetDefaultProcessorVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a SetDefaultProcessorVersionRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns SetDefaultProcessorVersionRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1.SetDefaultProcessorVersionRequest;
+
+ /**
+ * Decodes a SetDefaultProcessorVersionRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns SetDefaultProcessorVersionRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1.SetDefaultProcessorVersionRequest;
+
+ /**
+ * Verifies a SetDefaultProcessorVersionRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a SetDefaultProcessorVersionRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns SetDefaultProcessorVersionRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1.SetDefaultProcessorVersionRequest;
+
+ /**
+ * Creates a plain object from a SetDefaultProcessorVersionRequest message. Also converts values to other types if specified.
+ * @param message SetDefaultProcessorVersionRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1.SetDefaultProcessorVersionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this SetDefaultProcessorVersionRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for SetDefaultProcessorVersionRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a SetDefaultProcessorVersionResponse. */
+ interface ISetDefaultProcessorVersionResponse {
+ }
+
+ /** Represents a SetDefaultProcessorVersionResponse. */
+ class SetDefaultProcessorVersionResponse implements ISetDefaultProcessorVersionResponse {
+
+ /**
+ * Constructs a new SetDefaultProcessorVersionResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1.ISetDefaultProcessorVersionResponse);
+
+ /**
+ * Creates a new SetDefaultProcessorVersionResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns SetDefaultProcessorVersionResponse instance
+ */
+ public static create(properties?: google.cloud.documentai.v1.ISetDefaultProcessorVersionResponse): google.cloud.documentai.v1.SetDefaultProcessorVersionResponse;
+
+ /**
+ * Encodes the specified SetDefaultProcessorVersionResponse message. Does not implicitly {@link google.cloud.documentai.v1.SetDefaultProcessorVersionResponse.verify|verify} messages.
+ * @param message SetDefaultProcessorVersionResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1.ISetDefaultProcessorVersionResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified SetDefaultProcessorVersionResponse message, length delimited. Does not implicitly {@link google.cloud.documentai.v1.SetDefaultProcessorVersionResponse.verify|verify} messages.
+ * @param message SetDefaultProcessorVersionResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1.ISetDefaultProcessorVersionResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a SetDefaultProcessorVersionResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns SetDefaultProcessorVersionResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1.SetDefaultProcessorVersionResponse;
+
+ /**
+ * Decodes a SetDefaultProcessorVersionResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns SetDefaultProcessorVersionResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1.SetDefaultProcessorVersionResponse;
+
+ /**
+ * Verifies a SetDefaultProcessorVersionResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a SetDefaultProcessorVersionResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns SetDefaultProcessorVersionResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1.SetDefaultProcessorVersionResponse;
+
+ /**
+ * Creates a plain object from a SetDefaultProcessorVersionResponse message. Also converts values to other types if specified.
+ * @param message SetDefaultProcessorVersionResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1.SetDefaultProcessorVersionResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this SetDefaultProcessorVersionResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for SetDefaultProcessorVersionResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a SetDefaultProcessorVersionMetadata. */
+ interface ISetDefaultProcessorVersionMetadata {
+
+ /** SetDefaultProcessorVersionMetadata commonMetadata */
+ commonMetadata?: (google.cloud.documentai.v1.ICommonOperationMetadata|null);
+ }
+
+ /** Represents a SetDefaultProcessorVersionMetadata. */
+ class SetDefaultProcessorVersionMetadata implements ISetDefaultProcessorVersionMetadata {
+
+ /**
+ * Constructs a new SetDefaultProcessorVersionMetadata.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1.ISetDefaultProcessorVersionMetadata);
+
+ /** SetDefaultProcessorVersionMetadata commonMetadata. */
+ public commonMetadata?: (google.cloud.documentai.v1.ICommonOperationMetadata|null);
+
+ /**
+ * Creates a new SetDefaultProcessorVersionMetadata instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns SetDefaultProcessorVersionMetadata instance
+ */
+ public static create(properties?: google.cloud.documentai.v1.ISetDefaultProcessorVersionMetadata): google.cloud.documentai.v1.SetDefaultProcessorVersionMetadata;
+
+ /**
+ * Encodes the specified SetDefaultProcessorVersionMetadata message. Does not implicitly {@link google.cloud.documentai.v1.SetDefaultProcessorVersionMetadata.verify|verify} messages.
+ * @param message SetDefaultProcessorVersionMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1.ISetDefaultProcessorVersionMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified SetDefaultProcessorVersionMetadata message, length delimited. Does not implicitly {@link google.cloud.documentai.v1.SetDefaultProcessorVersionMetadata.verify|verify} messages.
+ * @param message SetDefaultProcessorVersionMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1.ISetDefaultProcessorVersionMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a SetDefaultProcessorVersionMetadata message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns SetDefaultProcessorVersionMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1.SetDefaultProcessorVersionMetadata;
+
+ /**
+ * Decodes a SetDefaultProcessorVersionMetadata message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns SetDefaultProcessorVersionMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1.SetDefaultProcessorVersionMetadata;
+
+ /**
+ * Verifies a SetDefaultProcessorVersionMetadata message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a SetDefaultProcessorVersionMetadata message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns SetDefaultProcessorVersionMetadata
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1.SetDefaultProcessorVersionMetadata;
+
+ /**
+ * Creates a plain object from a SetDefaultProcessorVersionMetadata message. Also converts values to other types if specified.
+ * @param message SetDefaultProcessorVersionMetadata
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1.SetDefaultProcessorVersionMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this SetDefaultProcessorVersionMetadata to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for SetDefaultProcessorVersionMetadata
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ReviewDocumentRequest. */
+ interface IReviewDocumentRequest {
+
+ /** ReviewDocumentRequest inlineDocument */
+ inlineDocument?: (google.cloud.documentai.v1.IDocument|null);
+
+ /** ReviewDocumentRequest humanReviewConfig */
+ humanReviewConfig?: (string|null);
+
+ /** ReviewDocumentRequest enableSchemaValidation */
+ enableSchemaValidation?: (boolean|null);
+
+ /** ReviewDocumentRequest priority */
+ priority?: (google.cloud.documentai.v1.ReviewDocumentRequest.Priority|keyof typeof google.cloud.documentai.v1.ReviewDocumentRequest.Priority|null);
+
+ /** ReviewDocumentRequest documentSchema */
+ documentSchema?: (google.cloud.documentai.v1.IDocumentSchema|null);
+ }
+
+ /** Represents a ReviewDocumentRequest. */
+ class ReviewDocumentRequest implements IReviewDocumentRequest {
+
+ /**
+ * Constructs a new ReviewDocumentRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1.IReviewDocumentRequest);
+
+ /** ReviewDocumentRequest inlineDocument. */
+ public inlineDocument?: (google.cloud.documentai.v1.IDocument|null);
+
+ /** ReviewDocumentRequest humanReviewConfig. */
+ public humanReviewConfig: string;
+
+ /** ReviewDocumentRequest enableSchemaValidation. */
+ public enableSchemaValidation: boolean;
+
+ /** ReviewDocumentRequest priority. */
+ public priority: (google.cloud.documentai.v1.ReviewDocumentRequest.Priority|keyof typeof google.cloud.documentai.v1.ReviewDocumentRequest.Priority);
+
+ /** ReviewDocumentRequest documentSchema. */
+ public documentSchema?: (google.cloud.documentai.v1.IDocumentSchema|null);
+
+ /** ReviewDocumentRequest source. */
+ public source?: "inlineDocument";
+
+ /**
+ * Creates a new ReviewDocumentRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ReviewDocumentRequest instance
+ */
+ public static create(properties?: google.cloud.documentai.v1.IReviewDocumentRequest): google.cloud.documentai.v1.ReviewDocumentRequest;
+
+ /**
+ * Encodes the specified ReviewDocumentRequest message. Does not implicitly {@link google.cloud.documentai.v1.ReviewDocumentRequest.verify|verify} messages.
+ * @param message ReviewDocumentRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1.IReviewDocumentRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ReviewDocumentRequest message, length delimited. Does not implicitly {@link google.cloud.documentai.v1.ReviewDocumentRequest.verify|verify} messages.
+ * @param message ReviewDocumentRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1.IReviewDocumentRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ReviewDocumentRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ReviewDocumentRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1.ReviewDocumentRequest;
+
+ /**
+ * Decodes a ReviewDocumentRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ReviewDocumentRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1.ReviewDocumentRequest;
+
+ /**
+ * Verifies a ReviewDocumentRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ReviewDocumentRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ReviewDocumentRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1.ReviewDocumentRequest;
+
+ /**
+ * Creates a plain object from a ReviewDocumentRequest message. Also converts values to other types if specified.
+ * @param message ReviewDocumentRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1.ReviewDocumentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ReviewDocumentRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ReviewDocumentRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace ReviewDocumentRequest {
+
+ /** Priority enum. */
+ enum Priority {
+ DEFAULT = 0,
+ URGENT = 1
+ }
+ }
+
+ /** Properties of a ReviewDocumentResponse. */
+ interface IReviewDocumentResponse {
+
+ /** ReviewDocumentResponse gcsDestination */
+ gcsDestination?: (string|null);
+
+ /** ReviewDocumentResponse state */
+ state?: (google.cloud.documentai.v1.ReviewDocumentResponse.State|keyof typeof google.cloud.documentai.v1.ReviewDocumentResponse.State|null);
+
+ /** ReviewDocumentResponse rejectionReason */
+ rejectionReason?: (string|null);
+ }
+
+ /** Represents a ReviewDocumentResponse. */
+ class ReviewDocumentResponse implements IReviewDocumentResponse {
+
+ /**
+ * Constructs a new ReviewDocumentResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1.IReviewDocumentResponse);
+
+ /** ReviewDocumentResponse gcsDestination. */
+ public gcsDestination: string;
+
+ /** ReviewDocumentResponse state. */
+ public state: (google.cloud.documentai.v1.ReviewDocumentResponse.State|keyof typeof google.cloud.documentai.v1.ReviewDocumentResponse.State);
+
+ /** ReviewDocumentResponse rejectionReason. */
+ public rejectionReason: string;
+
+ /**
+ * Creates a new ReviewDocumentResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ReviewDocumentResponse instance
+ */
+ public static create(properties?: google.cloud.documentai.v1.IReviewDocumentResponse): google.cloud.documentai.v1.ReviewDocumentResponse;
+
+ /**
+ * Encodes the specified ReviewDocumentResponse message. Does not implicitly {@link google.cloud.documentai.v1.ReviewDocumentResponse.verify|verify} messages.
+ * @param message ReviewDocumentResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1.IReviewDocumentResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ReviewDocumentResponse message, length delimited. Does not implicitly {@link google.cloud.documentai.v1.ReviewDocumentResponse.verify|verify} messages.
+ * @param message ReviewDocumentResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1.IReviewDocumentResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ReviewDocumentResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ReviewDocumentResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1.ReviewDocumentResponse;
+
+ /**
+ * Decodes a ReviewDocumentResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ReviewDocumentResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1.ReviewDocumentResponse;
+
+ /**
+ * Verifies a ReviewDocumentResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ReviewDocumentResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ReviewDocumentResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1.ReviewDocumentResponse;
+
+ /**
+ * Creates a plain object from a ReviewDocumentResponse message. Also converts values to other types if specified.
+ * @param message ReviewDocumentResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1.ReviewDocumentResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ReviewDocumentResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ReviewDocumentResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace ReviewDocumentResponse {
+
+ /** State enum. */
+ enum State {
+ STATE_UNSPECIFIED = 0,
+ REJECTED = 1,
+ SUCCEEDED = 2
+ }
+ }
+
+ /** Properties of a ReviewDocumentOperationMetadata. */
+ interface IReviewDocumentOperationMetadata {
+
+ /** ReviewDocumentOperationMetadata commonMetadata */
+ commonMetadata?: (google.cloud.documentai.v1.ICommonOperationMetadata|null);
+
+ /** ReviewDocumentOperationMetadata questionId */
+ questionId?: (string|null);
+ }
+
+ /** Represents a ReviewDocumentOperationMetadata. */
+ class ReviewDocumentOperationMetadata implements IReviewDocumentOperationMetadata {
+
+ /**
+ * Constructs a new ReviewDocumentOperationMetadata.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1.IReviewDocumentOperationMetadata);
+
+ /** ReviewDocumentOperationMetadata commonMetadata. */
+ public commonMetadata?: (google.cloud.documentai.v1.ICommonOperationMetadata|null);
+
+ /** ReviewDocumentOperationMetadata questionId. */
+ public questionId: string;
+
+ /**
+ * Creates a new ReviewDocumentOperationMetadata instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ReviewDocumentOperationMetadata instance
+ */
+ public static create(properties?: google.cloud.documentai.v1.IReviewDocumentOperationMetadata): google.cloud.documentai.v1.ReviewDocumentOperationMetadata;
+
+ /**
+ * Encodes the specified ReviewDocumentOperationMetadata message. Does not implicitly {@link google.cloud.documentai.v1.ReviewDocumentOperationMetadata.verify|verify} messages.
+ * @param message ReviewDocumentOperationMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1.IReviewDocumentOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ReviewDocumentOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.documentai.v1.ReviewDocumentOperationMetadata.verify|verify} messages.
+ * @param message ReviewDocumentOperationMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1.IReviewDocumentOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ReviewDocumentOperationMetadata message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ReviewDocumentOperationMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1.ReviewDocumentOperationMetadata;
+
+ /**
+ * Decodes a ReviewDocumentOperationMetadata message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ReviewDocumentOperationMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1.ReviewDocumentOperationMetadata;
+
+ /**
+ * Verifies a ReviewDocumentOperationMetadata message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ReviewDocumentOperationMetadata message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ReviewDocumentOperationMetadata
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1.ReviewDocumentOperationMetadata;
+
+ /**
+ * Creates a plain object from a ReviewDocumentOperationMetadata message. Also converts values to other types if specified.
+ * @param message ReviewDocumentOperationMetadata
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1.ReviewDocumentOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ReviewDocumentOperationMetadata to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ReviewDocumentOperationMetadata
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DocumentSchema. */
+ interface IDocumentSchema {
+
+ /** DocumentSchema displayName */
+ displayName?: (string|null);
+
+ /** DocumentSchema description */
+ description?: (string|null);
+
+ /** DocumentSchema entityTypes */
+ entityTypes?: (google.cloud.documentai.v1.DocumentSchema.IEntityType[]|null);
+
+ /** DocumentSchema metadata */
+ metadata?: (google.cloud.documentai.v1.DocumentSchema.IMetadata|null);
+ }
+
+ /** Represents a DocumentSchema. */
+ class DocumentSchema implements IDocumentSchema {
+
+ /**
+ * Constructs a new DocumentSchema.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1.IDocumentSchema);
+
+ /** DocumentSchema displayName. */
+ public displayName: string;
+
+ /** DocumentSchema description. */
+ public description: string;
+
+ /** DocumentSchema entityTypes. */
+ public entityTypes: google.cloud.documentai.v1.DocumentSchema.IEntityType[];
+
+ /** DocumentSchema metadata. */
+ public metadata?: (google.cloud.documentai.v1.DocumentSchema.IMetadata|null);
+
+ /**
+ * Creates a new DocumentSchema instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DocumentSchema instance
+ */
+ public static create(properties?: google.cloud.documentai.v1.IDocumentSchema): google.cloud.documentai.v1.DocumentSchema;
+
+ /**
+ * Encodes the specified DocumentSchema message. Does not implicitly {@link google.cloud.documentai.v1.DocumentSchema.verify|verify} messages.
+ * @param message DocumentSchema message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1.IDocumentSchema, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DocumentSchema message, length delimited. Does not implicitly {@link google.cloud.documentai.v1.DocumentSchema.verify|verify} messages.
+ * @param message DocumentSchema message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1.IDocumentSchema, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DocumentSchema message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DocumentSchema
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1.DocumentSchema;
+
+ /**
+ * Decodes a DocumentSchema message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DocumentSchema
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1.DocumentSchema;
+
+ /**
+ * Verifies a DocumentSchema message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DocumentSchema message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DocumentSchema
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1.DocumentSchema;
+
+ /**
+ * Creates a plain object from a DocumentSchema message. Also converts values to other types if specified.
+ * @param message DocumentSchema
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1.DocumentSchema, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DocumentSchema to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DocumentSchema
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace DocumentSchema {
+
+ /** Properties of an EntityType. */
+ interface IEntityType {
+
+ /** EntityType enumValues */
+ enumValues?: (google.cloud.documentai.v1.DocumentSchema.EntityType.IEnumValues|null);
+
+ /** EntityType displayName */
+ displayName?: (string|null);
+
+ /** EntityType name */
+ name?: (string|null);
+
+ /** EntityType baseTypes */
+ baseTypes?: (string[]|null);
+
+ /** EntityType properties */
+ properties?: (google.cloud.documentai.v1.DocumentSchema.EntityType.IProperty[]|null);
+ }
+
+ /** Represents an EntityType. */
+ class EntityType implements IEntityType {
+
+ /**
+ * Constructs a new EntityType.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1.DocumentSchema.IEntityType);
+
+ /** EntityType enumValues. */
+ public enumValues?: (google.cloud.documentai.v1.DocumentSchema.EntityType.IEnumValues|null);
+
+ /** EntityType displayName. */
+ public displayName: string;
+
+ /** EntityType name. */
+ public name: string;
+
+ /** EntityType baseTypes. */
+ public baseTypes: string[];
+
+ /** EntityType properties. */
+ public properties: google.cloud.documentai.v1.DocumentSchema.EntityType.IProperty[];
+
+ /** EntityType valueSource. */
+ public valueSource?: "enumValues";
+
+ /**
+ * Creates a new EntityType instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns EntityType instance
+ */
+ public static create(properties?: google.cloud.documentai.v1.DocumentSchema.IEntityType): google.cloud.documentai.v1.DocumentSchema.EntityType;
+
+ /**
+ * Encodes the specified EntityType message. Does not implicitly {@link google.cloud.documentai.v1.DocumentSchema.EntityType.verify|verify} messages.
+ * @param message EntityType message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1.DocumentSchema.IEntityType, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified EntityType message, length delimited. Does not implicitly {@link google.cloud.documentai.v1.DocumentSchema.EntityType.verify|verify} messages.
+ * @param message EntityType message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1.DocumentSchema.IEntityType, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an EntityType message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns EntityType
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1.DocumentSchema.EntityType;
+
+ /**
+ * Decodes an EntityType message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns EntityType
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1.DocumentSchema.EntityType;
+
+ /**
+ * Verifies an EntityType message.
+ * @param message Plain 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 EntityType message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns EntityType
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1.DocumentSchema.EntityType;
+
+ /**
+ * Creates a plain object from an EntityType message. Also converts values to other types if specified.
+ * @param message EntityType
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1.DocumentSchema.EntityType, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this EntityType to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for EntityType
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace EntityType {
+
+ /** Properties of an EnumValues. */
+ interface IEnumValues {
+
+ /** EnumValues values */
+ values?: (string[]|null);
+ }
+
+ /** Represents an EnumValues. */
+ class EnumValues implements IEnumValues {
+
+ /**
+ * Constructs a new EnumValues.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1.DocumentSchema.EntityType.IEnumValues);
+
+ /** EnumValues values. */
+ public values: string[];
+
+ /**
+ * Creates a new EnumValues instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns EnumValues instance
+ */
+ public static create(properties?: google.cloud.documentai.v1.DocumentSchema.EntityType.IEnumValues): google.cloud.documentai.v1.DocumentSchema.EntityType.EnumValues;
+
+ /**
+ * Encodes the specified EnumValues message. Does not implicitly {@link google.cloud.documentai.v1.DocumentSchema.EntityType.EnumValues.verify|verify} messages.
+ * @param message EnumValues message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1.DocumentSchema.EntityType.IEnumValues, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified EnumValues message, length delimited. Does not implicitly {@link google.cloud.documentai.v1.DocumentSchema.EntityType.EnumValues.verify|verify} messages.
+ * @param message EnumValues message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1.DocumentSchema.EntityType.IEnumValues, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an EnumValues message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns EnumValues
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1.DocumentSchema.EntityType.EnumValues;
+
+ /**
+ * Decodes an EnumValues message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns EnumValues
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1.DocumentSchema.EntityType.EnumValues;
+
+ /**
+ * Verifies an EnumValues message.
+ * @param message Plain 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 EnumValues message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns EnumValues
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1.DocumentSchema.EntityType.EnumValues;
+
+ /**
+ * Creates a plain object from an EnumValues message. Also converts values to other types if specified.
+ * @param message EnumValues
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1.DocumentSchema.EntityType.EnumValues, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this EnumValues to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for EnumValues
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Property. */
+ interface IProperty {
+
+ /** Property name */
+ name?: (string|null);
+
+ /** Property valueType */
+ valueType?: (string|null);
+
+ /** Property occurrenceType */
+ occurrenceType?: (google.cloud.documentai.v1.DocumentSchema.EntityType.Property.OccurrenceType|keyof typeof google.cloud.documentai.v1.DocumentSchema.EntityType.Property.OccurrenceType|null);
+ }
+
+ /** Represents a Property. */
+ class Property implements IProperty {
+
+ /**
+ * Constructs a new Property.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1.DocumentSchema.EntityType.IProperty);
+
+ /** Property name. */
+ public name: string;
+
+ /** Property valueType. */
+ public valueType: string;
+
+ /** Property occurrenceType. */
+ public occurrenceType: (google.cloud.documentai.v1.DocumentSchema.EntityType.Property.OccurrenceType|keyof typeof google.cloud.documentai.v1.DocumentSchema.EntityType.Property.OccurrenceType);
+
+ /**
+ * Creates a new Property instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Property instance
+ */
+ public static create(properties?: google.cloud.documentai.v1.DocumentSchema.EntityType.IProperty): google.cloud.documentai.v1.DocumentSchema.EntityType.Property;
+
+ /**
+ * Encodes the specified Property message. Does not implicitly {@link google.cloud.documentai.v1.DocumentSchema.EntityType.Property.verify|verify} messages.
+ * @param message Property message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1.DocumentSchema.EntityType.IProperty, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Property message, length delimited. Does not implicitly {@link google.cloud.documentai.v1.DocumentSchema.EntityType.Property.verify|verify} messages.
+ * @param message Property message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1.DocumentSchema.EntityType.IProperty, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Property message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Property
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1.DocumentSchema.EntityType.Property;
+
+ /**
+ * Decodes a Property message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Property
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1.DocumentSchema.EntityType.Property;
+
+ /**
+ * Verifies a Property message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Property message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Property
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1.DocumentSchema.EntityType.Property;
+
+ /**
+ * Creates a plain object from a Property message. Also converts values to other types if specified.
+ * @param message Property
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1.DocumentSchema.EntityType.Property, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Property to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Property
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace Property {
+
+ /** OccurrenceType enum. */
+ enum OccurrenceType {
+ OCCURRENCE_TYPE_UNSPECIFIED = 0,
+ OPTIONAL_ONCE = 1,
+ OPTIONAL_MULTIPLE = 2,
+ REQUIRED_ONCE = 3,
+ REQUIRED_MULTIPLE = 4
+ }
+ }
+ }
+
+ /** Properties of a Metadata. */
+ interface IMetadata {
+
+ /** Metadata documentSplitter */
+ documentSplitter?: (boolean|null);
+
+ /** Metadata documentAllowMultipleLabels */
+ documentAllowMultipleLabels?: (boolean|null);
+
+ /** Metadata prefixedNamingOnProperties */
+ prefixedNamingOnProperties?: (boolean|null);
+
+ /** Metadata skipNamingValidation */
+ skipNamingValidation?: (boolean|null);
+ }
+
+ /** Represents a Metadata. */
+ class Metadata implements IMetadata {
+
+ /**
+ * Constructs a new Metadata.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1.DocumentSchema.IMetadata);
+
+ /** Metadata documentSplitter. */
+ public documentSplitter: boolean;
+
+ /** Metadata documentAllowMultipleLabels. */
+ public documentAllowMultipleLabels: boolean;
+
+ /** Metadata prefixedNamingOnProperties. */
+ public prefixedNamingOnProperties: boolean;
+
+ /** Metadata skipNamingValidation. */
+ public skipNamingValidation: boolean;
+
+ /**
+ * Creates a new Metadata instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Metadata instance
+ */
+ public static create(properties?: google.cloud.documentai.v1.DocumentSchema.IMetadata): google.cloud.documentai.v1.DocumentSchema.Metadata;
+
+ /**
+ * Encodes the specified Metadata message. Does not implicitly {@link google.cloud.documentai.v1.DocumentSchema.Metadata.verify|verify} messages.
+ * @param message Metadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1.DocumentSchema.IMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Metadata message, length delimited. Does not implicitly {@link google.cloud.documentai.v1.DocumentSchema.Metadata.verify|verify} messages.
+ * @param message Metadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1.DocumentSchema.IMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Metadata message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Metadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1.DocumentSchema.Metadata;
+
+ /**
+ * Decodes a Metadata message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Metadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1.DocumentSchema.Metadata;
+
+ /**
+ * Verifies a Metadata message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Metadata message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Metadata
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1.DocumentSchema.Metadata;
+
+ /**
+ * Creates a plain object from a Metadata message. Also converts values to other types if specified.
+ * @param message Metadata
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1.DocumentSchema.Metadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Metadata to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Metadata
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of a CommonOperationMetadata. */
+ interface ICommonOperationMetadata {
+
+ /** CommonOperationMetadata state */
+ state?: (google.cloud.documentai.v1.CommonOperationMetadata.State|keyof typeof google.cloud.documentai.v1.CommonOperationMetadata.State|null);
+
+ /** CommonOperationMetadata stateMessage */
+ stateMessage?: (string|null);
+
+ /** CommonOperationMetadata resource */
+ resource?: (string|null);
+
+ /** CommonOperationMetadata createTime */
+ createTime?: (google.protobuf.ITimestamp|null);
+
+ /** CommonOperationMetadata updateTime */
+ updateTime?: (google.protobuf.ITimestamp|null);
+ }
+
+ /** Represents a CommonOperationMetadata. */
+ class CommonOperationMetadata implements ICommonOperationMetadata {
+
+ /**
+ * Constructs a new CommonOperationMetadata.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1.ICommonOperationMetadata);
+
+ /** CommonOperationMetadata state. */
+ public state: (google.cloud.documentai.v1.CommonOperationMetadata.State|keyof typeof google.cloud.documentai.v1.CommonOperationMetadata.State);
+
+ /** CommonOperationMetadata stateMessage. */
+ public stateMessage: string;
+
+ /** CommonOperationMetadata resource. */
+ public resource: string;
+
+ /** CommonOperationMetadata createTime. */
+ public createTime?: (google.protobuf.ITimestamp|null);
+
+ /** CommonOperationMetadata updateTime. */
+ public updateTime?: (google.protobuf.ITimestamp|null);
+
+ /**
+ * Creates a new CommonOperationMetadata instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CommonOperationMetadata instance
+ */
+ public static create(properties?: google.cloud.documentai.v1.ICommonOperationMetadata): google.cloud.documentai.v1.CommonOperationMetadata;
+
+ /**
+ * Encodes the specified CommonOperationMetadata message. Does not implicitly {@link google.cloud.documentai.v1.CommonOperationMetadata.verify|verify} messages.
+ * @param message CommonOperationMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1.ICommonOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CommonOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.documentai.v1.CommonOperationMetadata.verify|verify} messages.
+ * @param message CommonOperationMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1.ICommonOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CommonOperationMetadata message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CommonOperationMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1.CommonOperationMetadata;
+
+ /**
+ * Decodes a CommonOperationMetadata message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CommonOperationMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1.CommonOperationMetadata;
+
+ /**
+ * Verifies a CommonOperationMetadata message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a CommonOperationMetadata message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CommonOperationMetadata
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1.CommonOperationMetadata;
+
+ /**
+ * Creates a plain object from a CommonOperationMetadata message. Also converts values to other types if specified.
+ * @param message CommonOperationMetadata
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1.CommonOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CommonOperationMetadata to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CommonOperationMetadata
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace CommonOperationMetadata {
+
+ /** State enum. */
+ enum State {
+ STATE_UNSPECIFIED = 0,
+ RUNNING = 1,
+ CANCELLING = 2,
+ SUCCEEDED = 3,
+ FAILED = 4,
+ CANCELLED = 5
+ }
+ }
+
+ /** Properties of a ProcessorVersion. */
+ interface IProcessorVersion {
+
+ /** ProcessorVersion name */
+ name?: (string|null);
+
+ /** ProcessorVersion displayName */
+ displayName?: (string|null);
+
+ /** ProcessorVersion documentSchema */
+ documentSchema?: (google.cloud.documentai.v1.IDocumentSchema|null);
+
+ /** ProcessorVersion state */
+ state?: (google.cloud.documentai.v1.ProcessorVersion.State|keyof typeof google.cloud.documentai.v1.ProcessorVersion.State|null);
+
+ /** ProcessorVersion createTime */
+ createTime?: (google.protobuf.ITimestamp|null);
+
+ /** ProcessorVersion kmsKeyName */
+ kmsKeyName?: (string|null);
+
+ /** ProcessorVersion kmsKeyVersionName */
+ kmsKeyVersionName?: (string|null);
+
+ /** ProcessorVersion googleManaged */
+ googleManaged?: (boolean|null);
+
+ /** ProcessorVersion deprecationInfo */
+ deprecationInfo?: (google.cloud.documentai.v1.ProcessorVersion.IDeprecationInfo|null);
+ }
+
+ /** Represents a ProcessorVersion. */
+ class ProcessorVersion implements IProcessorVersion {
+
+ /**
+ * Constructs a new ProcessorVersion.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1.IProcessorVersion);
+
+ /** ProcessorVersion name. */
+ public name: string;
+
+ /** ProcessorVersion displayName. */
+ public displayName: string;
+
+ /** ProcessorVersion documentSchema. */
+ public documentSchema?: (google.cloud.documentai.v1.IDocumentSchema|null);
+
+ /** ProcessorVersion state. */
+ public state: (google.cloud.documentai.v1.ProcessorVersion.State|keyof typeof google.cloud.documentai.v1.ProcessorVersion.State);
+
+ /** ProcessorVersion createTime. */
+ public createTime?: (google.protobuf.ITimestamp|null);
+
+ /** ProcessorVersion kmsKeyName. */
+ public kmsKeyName: string;
+
+ /** ProcessorVersion kmsKeyVersionName. */
+ public kmsKeyVersionName: string;
+
+ /** ProcessorVersion googleManaged. */
+ public googleManaged: boolean;
+
+ /** ProcessorVersion deprecationInfo. */
+ public deprecationInfo?: (google.cloud.documentai.v1.ProcessorVersion.IDeprecationInfo|null);
+
+ /**
+ * Creates a new ProcessorVersion instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ProcessorVersion instance
+ */
+ public static create(properties?: google.cloud.documentai.v1.IProcessorVersion): google.cloud.documentai.v1.ProcessorVersion;
+
+ /**
+ * Encodes the specified ProcessorVersion message. Does not implicitly {@link google.cloud.documentai.v1.ProcessorVersion.verify|verify} messages.
+ * @param message ProcessorVersion message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1.IProcessorVersion, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ProcessorVersion message, length delimited. Does not implicitly {@link google.cloud.documentai.v1.ProcessorVersion.verify|verify} messages.
+ * @param message ProcessorVersion message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1.IProcessorVersion, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ProcessorVersion message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ProcessorVersion
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1.ProcessorVersion;
+
+ /**
+ * Decodes a ProcessorVersion message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ProcessorVersion
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1.ProcessorVersion;
+
+ /**
+ * Verifies a ProcessorVersion message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ProcessorVersion message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ProcessorVersion
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1.ProcessorVersion;
+
+ /**
+ * Creates a plain object from a ProcessorVersion message. Also converts values to other types if specified.
+ * @param message ProcessorVersion
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1.ProcessorVersion, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ProcessorVersion to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ProcessorVersion
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace ProcessorVersion {
+
+ /** Properties of a DeprecationInfo. */
+ interface IDeprecationInfo {
+
+ /** DeprecationInfo deprecationTime */
+ deprecationTime?: (google.protobuf.ITimestamp|null);
+
+ /** DeprecationInfo replacementProcessorVersion */
+ replacementProcessorVersion?: (string|null);
+ }
+
+ /** Represents a DeprecationInfo. */
+ class DeprecationInfo implements IDeprecationInfo {
+
+ /**
+ * Constructs a new DeprecationInfo.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1.ProcessorVersion.IDeprecationInfo);
+
+ /** DeprecationInfo deprecationTime. */
+ public deprecationTime?: (google.protobuf.ITimestamp|null);
+
+ /** DeprecationInfo replacementProcessorVersion. */
+ public replacementProcessorVersion: string;
+
+ /**
+ * Creates a new DeprecationInfo instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DeprecationInfo instance
+ */
+ public static create(properties?: google.cloud.documentai.v1.ProcessorVersion.IDeprecationInfo): google.cloud.documentai.v1.ProcessorVersion.DeprecationInfo;
+
+ /**
+ * Encodes the specified DeprecationInfo message. Does not implicitly {@link google.cloud.documentai.v1.ProcessorVersion.DeprecationInfo.verify|verify} messages.
+ * @param message DeprecationInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1.ProcessorVersion.IDeprecationInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DeprecationInfo message, length delimited. Does not implicitly {@link google.cloud.documentai.v1.ProcessorVersion.DeprecationInfo.verify|verify} messages.
+ * @param message DeprecationInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1.ProcessorVersion.IDeprecationInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DeprecationInfo message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DeprecationInfo
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1.ProcessorVersion.DeprecationInfo;
+
+ /**
+ * Decodes a DeprecationInfo message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DeprecationInfo
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1.ProcessorVersion.DeprecationInfo;
+
+ /**
+ * Verifies a DeprecationInfo message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DeprecationInfo message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DeprecationInfo
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1.ProcessorVersion.DeprecationInfo;
+
+ /**
+ * Creates a plain object from a DeprecationInfo message. Also converts values to other types if specified.
+ * @param message DeprecationInfo
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1.ProcessorVersion.DeprecationInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DeprecationInfo to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DeprecationInfo
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** State enum. */
+ enum State {
+ STATE_UNSPECIFIED = 0,
+ DEPLOYED = 1,
+ DEPLOYING = 2,
+ UNDEPLOYED = 3,
+ UNDEPLOYING = 4,
+ CREATING = 5,
+ DELETING = 6,
+ FAILED = 7
+ }
+ }
+
+ /** Properties of a Processor. */
+ interface IProcessor {
+
+ /** Processor name */
+ name?: (string|null);
+
+ /** Processor type */
+ type?: (string|null);
+
+ /** Processor displayName */
+ displayName?: (string|null);
+
+ /** Processor state */
+ state?: (google.cloud.documentai.v1.Processor.State|keyof typeof google.cloud.documentai.v1.Processor.State|null);
+
+ /** Processor defaultProcessorVersion */
+ defaultProcessorVersion?: (string|null);
+
+ /** Processor processEndpoint */
+ processEndpoint?: (string|null);
+
+ /** Processor createTime */
+ createTime?: (google.protobuf.ITimestamp|null);
+
+ /** Processor kmsKeyName */
+ kmsKeyName?: (string|null);
+ }
+
+ /** Represents a Processor. */
+ class Processor implements IProcessor {
+
+ /**
+ * Constructs a new Processor.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1.IProcessor);
+
+ /** Processor name. */
+ public name: string;
+
+ /** Processor type. */
+ public type: string;
+
+ /** Processor displayName. */
+ public displayName: string;
+
+ /** Processor state. */
+ public state: (google.cloud.documentai.v1.Processor.State|keyof typeof google.cloud.documentai.v1.Processor.State);
+
+ /** Processor defaultProcessorVersion. */
+ public defaultProcessorVersion: string;
+
+ /** Processor processEndpoint. */
+ public processEndpoint: string;
+
+ /** Processor createTime. */
+ public createTime?: (google.protobuf.ITimestamp|null);
+
+ /** Processor kmsKeyName. */
+ public kmsKeyName: string;
+
+ /**
+ * Creates a new Processor instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Processor instance
+ */
+ public static create(properties?: google.cloud.documentai.v1.IProcessor): google.cloud.documentai.v1.Processor;
+
+ /**
+ * Encodes the specified Processor message. Does not implicitly {@link google.cloud.documentai.v1.Processor.verify|verify} messages.
+ * @param message Processor message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1.IProcessor, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Processor message, length delimited. Does not implicitly {@link google.cloud.documentai.v1.Processor.verify|verify} messages.
+ * @param message Processor message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1.IProcessor, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Processor message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Processor
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1.Processor;
+
+ /**
+ * Decodes a Processor message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Processor
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1.Processor;
+
+ /**
+ * Verifies a Processor message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Processor message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Processor
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1.Processor;
+
+ /**
+ * Creates a plain object from a Processor message. Also converts values to other types if specified.
+ * @param message Processor
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1.Processor, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Processor to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Processor
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace Processor {
+
+ /** State enum. */
+ enum State {
+ STATE_UNSPECIFIED = 0,
+ ENABLED = 1,
+ DISABLED = 2,
+ ENABLING = 3,
+ DISABLING = 4,
+ CREATING = 5,
+ FAILED = 6,
+ DELETING = 7
+ }
+ }
+
+ /** Properties of a ProcessorType. */
+ interface IProcessorType {
+
+ /** ProcessorType name */
+ name?: (string|null);
+
+ /** ProcessorType type */
+ type?: (string|null);
+
+ /** ProcessorType category */
+ category?: (string|null);
+
+ /** ProcessorType availableLocations */
+ availableLocations?: (google.cloud.documentai.v1.ProcessorType.ILocationInfo[]|null);
+
+ /** ProcessorType allowCreation */
+ allowCreation?: (boolean|null);
+
+ /** ProcessorType launchStage */
+ launchStage?: (google.api.LaunchStage|keyof typeof google.api.LaunchStage|null);
+ }
+
+ /** Represents a ProcessorType. */
+ class ProcessorType implements IProcessorType {
+
+ /**
+ * Constructs a new ProcessorType.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1.IProcessorType);
+
+ /** ProcessorType name. */
+ public name: string;
+
+ /** ProcessorType type. */
+ public type: string;
+
+ /** ProcessorType category. */
+ public category: string;
+
+ /** ProcessorType availableLocations. */
+ public availableLocations: google.cloud.documentai.v1.ProcessorType.ILocationInfo[];
+
+ /** ProcessorType allowCreation. */
+ public allowCreation: boolean;
+
+ /** ProcessorType launchStage. */
+ public launchStage: (google.api.LaunchStage|keyof typeof google.api.LaunchStage);
+
+ /**
+ * Creates a new ProcessorType instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ProcessorType instance
+ */
+ public static create(properties?: google.cloud.documentai.v1.IProcessorType): google.cloud.documentai.v1.ProcessorType;
+
+ /**
+ * Encodes the specified ProcessorType message. Does not implicitly {@link google.cloud.documentai.v1.ProcessorType.verify|verify} messages.
+ * @param message ProcessorType message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1.IProcessorType, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ProcessorType message, length delimited. Does not implicitly {@link google.cloud.documentai.v1.ProcessorType.verify|verify} messages.
+ * @param message ProcessorType message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1.IProcessorType, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ProcessorType message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ProcessorType
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1.ProcessorType;
+
+ /**
+ * Decodes a ProcessorType message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ProcessorType
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1.ProcessorType;
+
+ /**
+ * Verifies a ProcessorType message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ProcessorType message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ProcessorType
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1.ProcessorType;
+
+ /**
+ * Creates a plain object from a ProcessorType message. Also converts values to other types if specified.
+ * @param message ProcessorType
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1.ProcessorType, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ProcessorType to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ProcessorType
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace ProcessorType {
+
+ /** Properties of a LocationInfo. */
+ interface ILocationInfo {
+
+ /** LocationInfo locationId */
+ locationId?: (string|null);
+ }
+
+ /** Represents a LocationInfo. */
+ class LocationInfo implements ILocationInfo {
+
+ /**
+ * Constructs a new LocationInfo.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1.ProcessorType.ILocationInfo);
+
+ /** LocationInfo locationId. */
+ public locationId: string;
+
+ /**
+ * Creates a new LocationInfo instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns LocationInfo instance
+ */
+ public static create(properties?: google.cloud.documentai.v1.ProcessorType.ILocationInfo): google.cloud.documentai.v1.ProcessorType.LocationInfo;
+
+ /**
+ * Encodes the specified LocationInfo message. Does not implicitly {@link google.cloud.documentai.v1.ProcessorType.LocationInfo.verify|verify} messages.
+ * @param message LocationInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1.ProcessorType.ILocationInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified LocationInfo message, length delimited. Does not implicitly {@link google.cloud.documentai.v1.ProcessorType.LocationInfo.verify|verify} messages.
+ * @param message LocationInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1.ProcessorType.ILocationInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a LocationInfo message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns LocationInfo
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1.ProcessorType.LocationInfo;
+
+ /**
+ * Decodes a LocationInfo message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns LocationInfo
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1.ProcessorType.LocationInfo;
+
+ /**
+ * Verifies a LocationInfo message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a LocationInfo message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns LocationInfo
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1.ProcessorType.LocationInfo;
+
+ /**
+ * Creates a plain object from a LocationInfo message. Also converts values to other types if specified.
+ * @param message LocationInfo
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1.ProcessorType.LocationInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this LocationInfo to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for LocationInfo
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+ }
+
+ /** Namespace v1beta1. */
+ namespace v1beta1 {
+
+ /** Properties of a Document. */
+ interface IDocument {
+
+ /** Document uri */
+ uri?: (string|null);
+
+ /** Document content */
+ content?: (Uint8Array|string|null);
+
+ /** Document mimeType */
+ mimeType?: (string|null);
+
+ /** Document text */
+ text?: (string|null);
+
+ /** Document textStyles */
+ textStyles?: (google.cloud.documentai.v1beta1.Document.IStyle[]|null);
+
+ /** Document pages */
+ pages?: (google.cloud.documentai.v1beta1.Document.IPage[]|null);
+
+ /** Document entities */
+ entities?: (google.cloud.documentai.v1beta1.Document.IEntity[]|null);
+
+ /** Document entityRelations */
+ entityRelations?: (google.cloud.documentai.v1beta1.Document.IEntityRelation[]|null);
+
+ /** Document shardInfo */
+ shardInfo?: (google.cloud.documentai.v1beta1.Document.IShardInfo|null);
+
+ /** Document error */
+ error?: (google.rpc.IStatus|null);
+ }
+
+ /** Represents a Document. */
+ class Document implements IDocument {
+
+ /**
+ * Constructs a new Document.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta1.IDocument);
+
+ /** Document uri. */
+ public uri?: (string|null);
+
+ /** Document content. */
+ public content?: (Uint8Array|string|null);
+
+ /** Document mimeType. */
+ public mimeType: string;
+
+ /** Document text. */
+ public text: string;
+
+ /** Document textStyles. */
+ public textStyles: google.cloud.documentai.v1beta1.Document.IStyle[];
+
+ /** Document pages. */
+ public pages: google.cloud.documentai.v1beta1.Document.IPage[];
+
+ /** Document entities. */
+ public entities: google.cloud.documentai.v1beta1.Document.IEntity[];
+
+ /** Document entityRelations. */
+ public entityRelations: google.cloud.documentai.v1beta1.Document.IEntityRelation[];
+
+ /** Document shardInfo. */
+ public shardInfo?: (google.cloud.documentai.v1beta1.Document.IShardInfo|null);
+
+ /** Document error. */
+ public error?: (google.rpc.IStatus|null);
+
+ /** Document source. */
+ public source?: ("uri"|"content");
+
+ /**
+ * Creates a new Document instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Document instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta1.IDocument): google.cloud.documentai.v1beta1.Document;
+
+ /**
+ * Encodes the specified Document message. Does not implicitly {@link google.cloud.documentai.v1beta1.Document.verify|verify} messages.
+ * @param message Document message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1beta1.IDocument, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Document message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta1.Document.verify|verify} messages.
+ * @param message Document message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1beta1.IDocument, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Document message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Document
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1beta1.Document;
+
+ /**
+ * Decodes a Document message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Document
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1beta1.Document;
+
+ /**
+ * Verifies a Document message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Document message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Document
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1beta1.Document;
+
+ /**
+ * Creates a plain object from a Document message. Also converts values to other types if specified.
+ * @param message Document
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1beta1.Document, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Document to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Document
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace Document {
+
+ /** Properties of a ShardInfo. */
+ interface IShardInfo {
+
+ /** ShardInfo shardIndex */
+ shardIndex?: (number|Long|string|null);
+
+ /** ShardInfo shardCount */
+ shardCount?: (number|Long|string|null);
+
+ /** ShardInfo textOffset */
+ textOffset?: (number|Long|string|null);
+ }
+
+ /** Represents a ShardInfo. */
+ class ShardInfo implements IShardInfo {
+
+ /**
+ * Constructs a new ShardInfo.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta1.Document.IShardInfo);
+
+ /** ShardInfo shardIndex. */
+ public shardIndex: (number|Long|string);
+
+ /** ShardInfo shardCount. */
+ public shardCount: (number|Long|string);
+
+ /** ShardInfo textOffset. */
+ public textOffset: (number|Long|string);
+
+ /**
+ * Creates a new ShardInfo instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ShardInfo instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta1.Document.IShardInfo): google.cloud.documentai.v1beta1.Document.ShardInfo;
+
+ /**
+ * Encodes the specified ShardInfo message. Does not implicitly {@link google.cloud.documentai.v1beta1.Document.ShardInfo.verify|verify} messages.
+ * @param message ShardInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1beta1.Document.IShardInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ShardInfo message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta1.Document.ShardInfo.verify|verify} messages.
+ * @param message ShardInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1beta1.Document.IShardInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ShardInfo message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ShardInfo
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1beta1.Document.ShardInfo;
+
+ /**
+ * Decodes a ShardInfo message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ShardInfo
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1beta1.Document.ShardInfo;
+
+ /**
+ * Verifies a ShardInfo message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ShardInfo message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ShardInfo
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1beta1.Document.ShardInfo;
+
+ /**
+ * Creates a plain object from a ShardInfo message. Also converts values to other types if specified.
+ * @param message ShardInfo
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1beta1.Document.ShardInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ShardInfo to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ShardInfo
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Style. */
+ interface IStyle {
+
+ /** Style textAnchor */
+ textAnchor?: (google.cloud.documentai.v1beta1.Document.ITextAnchor|null);
+
+ /** Style color */
+ color?: (google.type.IColor|null);
+
+ /** Style backgroundColor */
+ backgroundColor?: (google.type.IColor|null);
+
+ /** Style fontWeight */
+ fontWeight?: (string|null);
+
+ /** Style textStyle */
+ textStyle?: (string|null);
+
+ /** Style textDecoration */
+ textDecoration?: (string|null);
+
+ /** Style fontSize */
+ fontSize?: (google.cloud.documentai.v1beta1.Document.Style.IFontSize|null);
+ }
+
+ /** Represents a Style. */
+ class Style implements IStyle {
+
+ /**
+ * Constructs a new Style.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta1.Document.IStyle);
+
+ /** Style textAnchor. */
+ public textAnchor?: (google.cloud.documentai.v1beta1.Document.ITextAnchor|null);
+
+ /** Style color. */
+ public color?: (google.type.IColor|null);
+
+ /** Style backgroundColor. */
+ public backgroundColor?: (google.type.IColor|null);
+
+ /** Style fontWeight. */
+ public fontWeight: string;
+
+ /** Style textStyle. */
+ public textStyle: string;
+
+ /** Style textDecoration. */
+ public textDecoration: string;
+
+ /** Style fontSize. */
+ public fontSize?: (google.cloud.documentai.v1beta1.Document.Style.IFontSize|null);
+
+ /**
+ * Creates a new Style instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Style instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta1.Document.IStyle): google.cloud.documentai.v1beta1.Document.Style;
+
+ /**
+ * Encodes the specified Style message. Does not implicitly {@link google.cloud.documentai.v1beta1.Document.Style.verify|verify} messages.
+ * @param message Style message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1beta1.Document.IStyle, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Style message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta1.Document.Style.verify|verify} messages.
+ * @param message Style message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1beta1.Document.IStyle, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Style message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Style
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1beta1.Document.Style;
+
+ /**
+ * Decodes a Style message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Style
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1beta1.Document.Style;
+
+ /**
+ * Verifies a Style message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Style message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Style
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1beta1.Document.Style;
+
+ /**
+ * Creates a plain object from a Style message. Also converts values to other types if specified.
+ * @param message Style
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1beta1.Document.Style, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Style to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Style
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace Style {
+
+ /** Properties of a FontSize. */
+ interface IFontSize {
+
+ /** FontSize size */
+ size?: (number|null);
+
+ /** FontSize unit */
+ unit?: (string|null);
+ }
+
+ /** Represents a FontSize. */
+ class FontSize implements IFontSize {
+
+ /**
+ * Constructs a new FontSize.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta1.Document.Style.IFontSize);
+
+ /** FontSize size. */
+ public size: number;
+
+ /** FontSize unit. */
+ public unit: string;
+
+ /**
+ * Creates a new FontSize instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FontSize instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta1.Document.Style.IFontSize): google.cloud.documentai.v1beta1.Document.Style.FontSize;
+
+ /**
+ * Encodes the specified FontSize message. Does not implicitly {@link google.cloud.documentai.v1beta1.Document.Style.FontSize.verify|verify} messages.
+ * @param message FontSize message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1beta1.Document.Style.IFontSize, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FontSize message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta1.Document.Style.FontSize.verify|verify} messages.
+ * @param message FontSize message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1beta1.Document.Style.IFontSize, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FontSize message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FontSize
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1beta1.Document.Style.FontSize;
+
+ /**
+ * Decodes a FontSize message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FontSize
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1beta1.Document.Style.FontSize;
+
+ /**
+ * Verifies a FontSize message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FontSize message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FontSize
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1beta1.Document.Style.FontSize;
+
+ /**
+ * Creates a plain object from a FontSize message. Also converts values to other types if specified.
+ * @param message FontSize
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1beta1.Document.Style.FontSize, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FontSize to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FontSize
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of a Page. */
+ interface IPage {
+
+ /** Page pageNumber */
+ pageNumber?: (number|null);
+
+ /** Page dimension */
+ dimension?: (google.cloud.documentai.v1beta1.Document.Page.IDimension|null);
+
+ /** Page layout */
+ layout?: (google.cloud.documentai.v1beta1.Document.Page.ILayout|null);
+
+ /** Page detectedLanguages */
+ detectedLanguages?: (google.cloud.documentai.v1beta1.Document.Page.IDetectedLanguage[]|null);
+
+ /** Page blocks */
+ blocks?: (google.cloud.documentai.v1beta1.Document.Page.IBlock[]|null);
+
+ /** Page paragraphs */
+ paragraphs?: (google.cloud.documentai.v1beta1.Document.Page.IParagraph[]|null);
+
+ /** Page lines */
+ lines?: (google.cloud.documentai.v1beta1.Document.Page.ILine[]|null);
+
+ /** Page tokens */
+ tokens?: (google.cloud.documentai.v1beta1.Document.Page.IToken[]|null);
+
+ /** Page visualElements */
+ visualElements?: (google.cloud.documentai.v1beta1.Document.Page.IVisualElement[]|null);
+
+ /** Page tables */
+ tables?: (google.cloud.documentai.v1beta1.Document.Page.ITable[]|null);
+
+ /** Page formFields */
+ formFields?: (google.cloud.documentai.v1beta1.Document.Page.IFormField[]|null);
+ }
+
+ /** Represents a Page. */
+ class Page implements IPage {
+
+ /**
+ * Constructs a new Page.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta1.Document.IPage);
+
+ /** Page pageNumber. */
+ public pageNumber: number;
+
+ /** Page dimension. */
+ public dimension?: (google.cloud.documentai.v1beta1.Document.Page.IDimension|null);
+
+ /** Page layout. */
+ public layout?: (google.cloud.documentai.v1beta1.Document.Page.ILayout|null);
+
+ /** Page detectedLanguages. */
+ public detectedLanguages: google.cloud.documentai.v1beta1.Document.Page.IDetectedLanguage[];
+
+ /** Page blocks. */
+ public blocks: google.cloud.documentai.v1beta1.Document.Page.IBlock[];
+
+ /** Page paragraphs. */
+ public paragraphs: google.cloud.documentai.v1beta1.Document.Page.IParagraph[];
+
+ /** Page lines. */
+ public lines: google.cloud.documentai.v1beta1.Document.Page.ILine[];
+
+ /** Page tokens. */
+ public tokens: google.cloud.documentai.v1beta1.Document.Page.IToken[];
+
+ /** Page visualElements. */
+ public visualElements: google.cloud.documentai.v1beta1.Document.Page.IVisualElement[];
+
+ /** Page tables. */
+ public tables: google.cloud.documentai.v1beta1.Document.Page.ITable[];
+
+ /** Page formFields. */
+ public formFields: google.cloud.documentai.v1beta1.Document.Page.IFormField[];
+
+ /**
+ * Creates a new Page instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Page instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta1.Document.IPage): google.cloud.documentai.v1beta1.Document.Page;
+
+ /**
+ * Encodes the specified Page message. Does not implicitly {@link google.cloud.documentai.v1beta1.Document.Page.verify|verify} messages.
+ * @param message Page message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1beta1.Document.IPage, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Page message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta1.Document.Page.verify|verify} messages.
+ * @param message Page message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1beta1.Document.IPage, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Page message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Page
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1beta1.Document.Page;
+
+ /**
+ * Decodes a Page message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Page
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1beta1.Document.Page;
+
+ /**
+ * Verifies a Page message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Page message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Page
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1beta1.Document.Page;
+
+ /**
+ * Creates a plain object from a Page message. Also converts values to other types if specified.
+ * @param message Page
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1beta1.Document.Page, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Page to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Page
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace Page {
+
+ /** Properties of a Dimension. */
+ interface IDimension {
+
+ /** Dimension width */
+ width?: (number|null);
+
+ /** Dimension height */
+ height?: (number|null);
+
+ /** Dimension unit */
+ unit?: (string|null);
+ }
+
+ /** Represents a Dimension. */
+ class Dimension implements IDimension {
+
+ /**
+ * Constructs a new Dimension.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta1.Document.Page.IDimension);
+
+ /** Dimension width. */
+ public width: number;
+
+ /** Dimension height. */
+ public height: number;
+
+ /** Dimension unit. */
+ public unit: string;
+
+ /**
+ * Creates a new Dimension instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Dimension instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta1.Document.Page.IDimension): google.cloud.documentai.v1beta1.Document.Page.Dimension;
+
+ /**
+ * Encodes the specified Dimension message. Does not implicitly {@link google.cloud.documentai.v1beta1.Document.Page.Dimension.verify|verify} messages.
+ * @param message Dimension message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1beta1.Document.Page.IDimension, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Dimension message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta1.Document.Page.Dimension.verify|verify} messages.
+ * @param message Dimension message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1beta1.Document.Page.IDimension, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Dimension message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Dimension
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1beta1.Document.Page.Dimension;
+
+ /**
+ * Decodes a Dimension message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Dimension
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1beta1.Document.Page.Dimension;
+
+ /**
+ * Verifies a Dimension message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Dimension message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Dimension
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1beta1.Document.Page.Dimension;
+
+ /**
+ * Creates a plain object from a Dimension message. Also converts values to other types if specified.
+ * @param message Dimension
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1beta1.Document.Page.Dimension, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Dimension to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Dimension
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Layout. */
+ interface ILayout {
+
+ /** Layout textAnchor */
+ textAnchor?: (google.cloud.documentai.v1beta1.Document.ITextAnchor|null);
+
+ /** Layout confidence */
+ confidence?: (number|null);
+
+ /** Layout boundingPoly */
+ boundingPoly?: (google.cloud.documentai.v1beta1.IBoundingPoly|null);
+
+ /** Layout orientation */
+ orientation?: (google.cloud.documentai.v1beta1.Document.Page.Layout.Orientation|keyof typeof google.cloud.documentai.v1beta1.Document.Page.Layout.Orientation|null);
+ }
+
+ /** Represents a Layout. */
+ class Layout implements ILayout {
+
+ /**
+ * Constructs a new Layout.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta1.Document.Page.ILayout);
+
+ /** Layout textAnchor. */
+ public textAnchor?: (google.cloud.documentai.v1beta1.Document.ITextAnchor|null);
+
+ /** Layout confidence. */
+ public confidence: number;
+
+ /** Layout boundingPoly. */
+ public boundingPoly?: (google.cloud.documentai.v1beta1.IBoundingPoly|null);
+
+ /** Layout orientation. */
+ public orientation: (google.cloud.documentai.v1beta1.Document.Page.Layout.Orientation|keyof typeof google.cloud.documentai.v1beta1.Document.Page.Layout.Orientation);
+
+ /**
+ * Creates a new Layout instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Layout instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta1.Document.Page.ILayout): google.cloud.documentai.v1beta1.Document.Page.Layout;
+
+ /**
+ * Encodes the specified Layout message. Does not implicitly {@link google.cloud.documentai.v1beta1.Document.Page.Layout.verify|verify} messages.
+ * @param message Layout message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1beta1.Document.Page.ILayout, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Layout message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta1.Document.Page.Layout.verify|verify} messages.
+ * @param message Layout message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1beta1.Document.Page.ILayout, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Layout message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Layout
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1beta1.Document.Page.Layout;
+
+ /**
+ * Decodes a Layout message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Layout
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1beta1.Document.Page.Layout;
+
+ /**
+ * Verifies a Layout message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Layout message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Layout
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1beta1.Document.Page.Layout;
+
+ /**
+ * Creates a plain object from a Layout message. Also converts values to other types if specified.
+ * @param message Layout
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1beta1.Document.Page.Layout, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Layout to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Layout
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace Layout {
+
+ /** Orientation enum. */
+ enum Orientation {
+ ORIENTATION_UNSPECIFIED = 0,
+ PAGE_UP = 1,
+ PAGE_RIGHT = 2,
+ PAGE_DOWN = 3,
+ PAGE_LEFT = 4
+ }
+ }
+
+ /** Properties of a Block. */
+ interface IBlock {
+
+ /** Block layout */
+ layout?: (google.cloud.documentai.v1beta1.Document.Page.ILayout|null);
+
+ /** Block detectedLanguages */
+ detectedLanguages?: (google.cloud.documentai.v1beta1.Document.Page.IDetectedLanguage[]|null);
+ }
+
+ /** Represents a Block. */
+ class Block implements IBlock {
+
+ /**
+ * Constructs a new Block.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta1.Document.Page.IBlock);
+
+ /** Block layout. */
+ public layout?: (google.cloud.documentai.v1beta1.Document.Page.ILayout|null);
+
+ /** Block detectedLanguages. */
+ public detectedLanguages: google.cloud.documentai.v1beta1.Document.Page.IDetectedLanguage[];
+
+ /**
+ * Creates a new Block instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Block instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta1.Document.Page.IBlock): google.cloud.documentai.v1beta1.Document.Page.Block;
+
+ /**
+ * Encodes the specified Block message. Does not implicitly {@link google.cloud.documentai.v1beta1.Document.Page.Block.verify|verify} messages.
+ * @param message Block message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1beta1.Document.Page.IBlock, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Block message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta1.Document.Page.Block.verify|verify} messages.
+ * @param message Block message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1beta1.Document.Page.IBlock, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Block message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Block
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1beta1.Document.Page.Block;
+
+ /**
+ * Decodes a Block message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Block
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1beta1.Document.Page.Block;
+
+ /**
+ * Verifies a Block message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Block message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Block
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1beta1.Document.Page.Block;
+
+ /**
+ * Creates a plain object from a Block message. Also converts values to other types if specified.
+ * @param message Block
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1beta1.Document.Page.Block, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Block to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Block
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Paragraph. */
+ interface IParagraph {
+
+ /** Paragraph layout */
+ layout?: (google.cloud.documentai.v1beta1.Document.Page.ILayout|null);
+
+ /** Paragraph detectedLanguages */
+ detectedLanguages?: (google.cloud.documentai.v1beta1.Document.Page.IDetectedLanguage[]|null);
+ }
+
+ /** Represents a Paragraph. */
+ class Paragraph implements IParagraph {
+
+ /**
+ * Constructs a new Paragraph.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta1.Document.Page.IParagraph);
+
+ /** Paragraph layout. */
+ public layout?: (google.cloud.documentai.v1beta1.Document.Page.ILayout|null);
+
+ /** Paragraph detectedLanguages. */
+ public detectedLanguages: google.cloud.documentai.v1beta1.Document.Page.IDetectedLanguage[];
+
+ /**
+ * Creates a new Paragraph instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Paragraph instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta1.Document.Page.IParagraph): google.cloud.documentai.v1beta1.Document.Page.Paragraph;
+
+ /**
+ * Encodes the specified Paragraph message. Does not implicitly {@link google.cloud.documentai.v1beta1.Document.Page.Paragraph.verify|verify} messages.
+ * @param message Paragraph message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1beta1.Document.Page.IParagraph, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Paragraph message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta1.Document.Page.Paragraph.verify|verify} messages.
+ * @param message Paragraph message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1beta1.Document.Page.IParagraph, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Paragraph message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Paragraph
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1beta1.Document.Page.Paragraph;
+
+ /**
+ * Decodes a Paragraph message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Paragraph
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1beta1.Document.Page.Paragraph;
+
+ /**
+ * Verifies a Paragraph message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Paragraph message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Paragraph
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1beta1.Document.Page.Paragraph;
+
+ /**
+ * Creates a plain object from a Paragraph message. Also converts values to other types if specified.
+ * @param message Paragraph
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1beta1.Document.Page.Paragraph, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Paragraph to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Paragraph
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Line. */
+ interface ILine {
+
+ /** Line layout */
+ layout?: (google.cloud.documentai.v1beta1.Document.Page.ILayout|null);
+
+ /** Line detectedLanguages */
+ detectedLanguages?: (google.cloud.documentai.v1beta1.Document.Page.IDetectedLanguage[]|null);
+ }
+
+ /** Represents a Line. */
+ class Line implements ILine {
+
+ /**
+ * Constructs a new Line.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta1.Document.Page.ILine);
+
+ /** Line layout. */
+ public layout?: (google.cloud.documentai.v1beta1.Document.Page.ILayout|null);
+
+ /** Line detectedLanguages. */
+ public detectedLanguages: google.cloud.documentai.v1beta1.Document.Page.IDetectedLanguage[];
+
+ /**
+ * Creates a new Line instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Line instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta1.Document.Page.ILine): google.cloud.documentai.v1beta1.Document.Page.Line;
+
+ /**
+ * Encodes the specified Line message. Does not implicitly {@link google.cloud.documentai.v1beta1.Document.Page.Line.verify|verify} messages.
+ * @param message Line message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1beta1.Document.Page.ILine, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Line message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta1.Document.Page.Line.verify|verify} messages.
+ * @param message Line message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1beta1.Document.Page.ILine, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Line message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Line
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1beta1.Document.Page.Line;
+
+ /**
+ * Decodes a Line message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Line
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1beta1.Document.Page.Line;
+
+ /**
+ * Verifies a Line message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Line message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Line
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1beta1.Document.Page.Line;
+
+ /**
+ * Creates a plain object from a Line message. Also converts values to other types if specified.
+ * @param message Line
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1beta1.Document.Page.Line, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Line to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Line
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Token. */
+ interface IToken {
+
+ /** Token layout */
+ layout?: (google.cloud.documentai.v1beta1.Document.Page.ILayout|null);
+
+ /** Token detectedBreak */
+ detectedBreak?: (google.cloud.documentai.v1beta1.Document.Page.Token.IDetectedBreak|null);
+
+ /** Token detectedLanguages */
+ detectedLanguages?: (google.cloud.documentai.v1beta1.Document.Page.IDetectedLanguage[]|null);
+ }
+
+ /** Represents a Token. */
+ class Token implements IToken {
+
+ /**
+ * Constructs a new Token.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta1.Document.Page.IToken);
+
+ /** Token layout. */
+ public layout?: (google.cloud.documentai.v1beta1.Document.Page.ILayout|null);
+
+ /** Token detectedBreak. */
+ public detectedBreak?: (google.cloud.documentai.v1beta1.Document.Page.Token.IDetectedBreak|null);
+
+ /** Token detectedLanguages. */
+ public detectedLanguages: google.cloud.documentai.v1beta1.Document.Page.IDetectedLanguage[];
+
+ /**
+ * Creates a new Token instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Token instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta1.Document.Page.IToken): google.cloud.documentai.v1beta1.Document.Page.Token;
+
+ /**
+ * Encodes the specified Token message. Does not implicitly {@link google.cloud.documentai.v1beta1.Document.Page.Token.verify|verify} messages.
+ * @param message Token message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1beta1.Document.Page.IToken, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Token message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta1.Document.Page.Token.verify|verify} messages.
+ * @param message Token message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1beta1.Document.Page.IToken, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Token message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Token
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1beta1.Document.Page.Token;
+
+ /**
+ * Decodes a Token message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Token
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1beta1.Document.Page.Token;
+
+ /**
+ * Verifies a Token message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Token message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Token
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1beta1.Document.Page.Token;
+
+ /**
+ * Creates a plain object from a Token message. Also converts values to other types if specified.
+ * @param message Token
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1beta1.Document.Page.Token, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Token to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Token
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace Token {
+
+ /** Properties of a DetectedBreak. */
+ interface IDetectedBreak {
+
+ /** DetectedBreak type */
+ type?: (google.cloud.documentai.v1beta1.Document.Page.Token.DetectedBreak.Type|keyof typeof google.cloud.documentai.v1beta1.Document.Page.Token.DetectedBreak.Type|null);
+ }
+
+ /** Represents a DetectedBreak. */
+ class DetectedBreak implements IDetectedBreak {
+
+ /**
+ * Constructs a new DetectedBreak.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta1.Document.Page.Token.IDetectedBreak);
+
+ /** DetectedBreak type. */
+ public type: (google.cloud.documentai.v1beta1.Document.Page.Token.DetectedBreak.Type|keyof typeof google.cloud.documentai.v1beta1.Document.Page.Token.DetectedBreak.Type);
+
+ /**
+ * Creates a new DetectedBreak instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DetectedBreak instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta1.Document.Page.Token.IDetectedBreak): google.cloud.documentai.v1beta1.Document.Page.Token.DetectedBreak;
+
+ /**
+ * Encodes the specified DetectedBreak message. Does not implicitly {@link google.cloud.documentai.v1beta1.Document.Page.Token.DetectedBreak.verify|verify} messages.
+ * @param message DetectedBreak message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1beta1.Document.Page.Token.IDetectedBreak, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DetectedBreak message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta1.Document.Page.Token.DetectedBreak.verify|verify} messages.
+ * @param message DetectedBreak message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1beta1.Document.Page.Token.IDetectedBreak, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DetectedBreak message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DetectedBreak
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1beta1.Document.Page.Token.DetectedBreak;
+
+ /**
+ * Decodes a DetectedBreak message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DetectedBreak
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1beta1.Document.Page.Token.DetectedBreak;
+
+ /**
+ * Verifies a DetectedBreak message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DetectedBreak message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DetectedBreak
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1beta1.Document.Page.Token.DetectedBreak;
+
+ /**
+ * Creates a plain object from a DetectedBreak message. Also converts values to other types if specified.
+ * @param message DetectedBreak
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1beta1.Document.Page.Token.DetectedBreak, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DetectedBreak to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DetectedBreak
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace DetectedBreak {
+
+ /** Type enum. */
+ enum Type {
+ TYPE_UNSPECIFIED = 0,
+ SPACE = 1,
+ WIDE_SPACE = 2,
+ HYPHEN = 3
+ }
+ }
+ }
+
+ /** Properties of a VisualElement. */
+ interface IVisualElement {
+
+ /** VisualElement layout */
+ layout?: (google.cloud.documentai.v1beta1.Document.Page.ILayout|null);
+
+ /** VisualElement type */
+ type?: (string|null);
+
+ /** VisualElement detectedLanguages */
+ detectedLanguages?: (google.cloud.documentai.v1beta1.Document.Page.IDetectedLanguage[]|null);
+ }
+
+ /** Represents a VisualElement. */
+ class VisualElement implements IVisualElement {
+
+ /**
+ * Constructs a new VisualElement.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta1.Document.Page.IVisualElement);
+
+ /** VisualElement layout. */
+ public layout?: (google.cloud.documentai.v1beta1.Document.Page.ILayout|null);
+
+ /** VisualElement type. */
+ public type: string;
+
+ /** VisualElement detectedLanguages. */
+ public detectedLanguages: google.cloud.documentai.v1beta1.Document.Page.IDetectedLanguage[];
+
+ /**
+ * Creates a new VisualElement instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns VisualElement instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta1.Document.Page.IVisualElement): google.cloud.documentai.v1beta1.Document.Page.VisualElement;
+
+ /**
+ * Encodes the specified VisualElement message. Does not implicitly {@link google.cloud.documentai.v1beta1.Document.Page.VisualElement.verify|verify} messages.
+ * @param message VisualElement message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1beta1.Document.Page.IVisualElement, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified VisualElement message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta1.Document.Page.VisualElement.verify|verify} messages.
+ * @param message VisualElement message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1beta1.Document.Page.IVisualElement, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a VisualElement message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns VisualElement
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1beta1.Document.Page.VisualElement;
+
+ /**
+ * Decodes a VisualElement message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns VisualElement
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1beta1.Document.Page.VisualElement;
+
+ /**
+ * Verifies a VisualElement message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a VisualElement message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns VisualElement
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1beta1.Document.Page.VisualElement;
+
+ /**
+ * Creates a plain object from a VisualElement message. Also converts values to other types if specified.
+ * @param message VisualElement
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1beta1.Document.Page.VisualElement, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this VisualElement to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for VisualElement
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Table. */
+ interface ITable {
+
+ /** Table layout */
+ layout?: (google.cloud.documentai.v1beta1.Document.Page.ILayout|null);
+
+ /** Table headerRows */
+ headerRows?: (google.cloud.documentai.v1beta1.Document.Page.Table.ITableRow[]|null);
+
+ /** Table bodyRows */
+ bodyRows?: (google.cloud.documentai.v1beta1.Document.Page.Table.ITableRow[]|null);
+
+ /** Table detectedLanguages */
+ detectedLanguages?: (google.cloud.documentai.v1beta1.Document.Page.IDetectedLanguage[]|null);
+ }
+
+ /** Represents a Table. */
+ class Table implements ITable {
+
+ /**
+ * Constructs a new Table.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta1.Document.Page.ITable);
+
+ /** Table layout. */
+ public layout?: (google.cloud.documentai.v1beta1.Document.Page.ILayout|null);
+
+ /** Table headerRows. */
+ public headerRows: google.cloud.documentai.v1beta1.Document.Page.Table.ITableRow[];
+
+ /** Table bodyRows. */
+ public bodyRows: google.cloud.documentai.v1beta1.Document.Page.Table.ITableRow[];
+
+ /** Table detectedLanguages. */
+ public detectedLanguages: google.cloud.documentai.v1beta1.Document.Page.IDetectedLanguage[];
+
+ /**
+ * Creates a new Table instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Table instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta1.Document.Page.ITable): google.cloud.documentai.v1beta1.Document.Page.Table;
+
+ /**
+ * Encodes the specified Table message. Does not implicitly {@link google.cloud.documentai.v1beta1.Document.Page.Table.verify|verify} messages.
+ * @param message Table message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1beta1.Document.Page.ITable, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Table message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta1.Document.Page.Table.verify|verify} messages.
+ * @param message Table message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1beta1.Document.Page.ITable, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Table message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Table
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1beta1.Document.Page.Table;
+
+ /**
+ * Decodes a Table message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Table
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1beta1.Document.Page.Table;
+
+ /**
+ * Verifies a Table message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Table message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Table
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1beta1.Document.Page.Table;
+
+ /**
+ * Creates a plain object from a Table message. Also converts values to other types if specified.
+ * @param message Table
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1beta1.Document.Page.Table, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Table to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Table
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace Table {
+
+ /** Properties of a TableRow. */
+ interface ITableRow {
+
+ /** TableRow cells */
+ cells?: (google.cloud.documentai.v1beta1.Document.Page.Table.ITableCell[]|null);
+ }
+
+ /** Represents a TableRow. */
+ class TableRow implements ITableRow {
+
+ /**
+ * Constructs a new TableRow.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta1.Document.Page.Table.ITableRow);
+
+ /** TableRow cells. */
+ public cells: google.cloud.documentai.v1beta1.Document.Page.Table.ITableCell[];
+
+ /**
+ * Creates a new TableRow instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns TableRow instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta1.Document.Page.Table.ITableRow): google.cloud.documentai.v1beta1.Document.Page.Table.TableRow;
+
+ /**
+ * Encodes the specified TableRow message. Does not implicitly {@link google.cloud.documentai.v1beta1.Document.Page.Table.TableRow.verify|verify} messages.
+ * @param message TableRow message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1beta1.Document.Page.Table.ITableRow, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified TableRow message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta1.Document.Page.Table.TableRow.verify|verify} messages.
+ * @param message TableRow message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1beta1.Document.Page.Table.ITableRow, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a TableRow message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns TableRow
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1beta1.Document.Page.Table.TableRow;
+
+ /**
+ * Decodes a TableRow message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns TableRow
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1beta1.Document.Page.Table.TableRow;
+
+ /**
+ * Verifies a TableRow message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a TableRow message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns TableRow
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1beta1.Document.Page.Table.TableRow;
+
+ /**
+ * Creates a plain object from a TableRow message. Also converts values to other types if specified.
+ * @param message TableRow
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1beta1.Document.Page.Table.TableRow, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this TableRow to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for TableRow
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a TableCell. */
+ interface ITableCell {
+
+ /** TableCell layout */
+ layout?: (google.cloud.documentai.v1beta1.Document.Page.ILayout|null);
+
+ /** TableCell rowSpan */
+ rowSpan?: (number|null);
+
+ /** TableCell colSpan */
+ colSpan?: (number|null);
+
+ /** TableCell detectedLanguages */
+ detectedLanguages?: (google.cloud.documentai.v1beta1.Document.Page.IDetectedLanguage[]|null);
+ }
+
+ /** Represents a TableCell. */
+ class TableCell implements ITableCell {
+
+ /**
+ * Constructs a new TableCell.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta1.Document.Page.Table.ITableCell);
+
+ /** TableCell layout. */
+ public layout?: (google.cloud.documentai.v1beta1.Document.Page.ILayout|null);
+
+ /** TableCell rowSpan. */
+ public rowSpan: number;
+
+ /** TableCell colSpan. */
+ public colSpan: number;
+
+ /** TableCell detectedLanguages. */
+ public detectedLanguages: google.cloud.documentai.v1beta1.Document.Page.IDetectedLanguage[];
+
+ /**
+ * Creates a new TableCell instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns TableCell instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta1.Document.Page.Table.ITableCell): google.cloud.documentai.v1beta1.Document.Page.Table.TableCell;
+
+ /**
+ * Encodes the specified TableCell message. Does not implicitly {@link google.cloud.documentai.v1beta1.Document.Page.Table.TableCell.verify|verify} messages.
+ * @param message TableCell message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1beta1.Document.Page.Table.ITableCell, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified TableCell message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta1.Document.Page.Table.TableCell.verify|verify} messages.
+ * @param message TableCell message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1beta1.Document.Page.Table.ITableCell, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a TableCell message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns TableCell
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1beta1.Document.Page.Table.TableCell;
+
+ /**
+ * Decodes a TableCell message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns TableCell
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1beta1.Document.Page.Table.TableCell;
+
+ /**
+ * Verifies a TableCell message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a TableCell message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns TableCell
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1beta1.Document.Page.Table.TableCell;
+
+ /**
+ * Creates a plain object from a TableCell message. Also converts values to other types if specified.
+ * @param message TableCell
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1beta1.Document.Page.Table.TableCell, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this TableCell to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for TableCell
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of a FormField. */
+ interface IFormField {
+
+ /** FormField fieldName */
+ fieldName?: (google.cloud.documentai.v1beta1.Document.Page.ILayout|null);
+
+ /** FormField fieldValue */
+ fieldValue?: (google.cloud.documentai.v1beta1.Document.Page.ILayout|null);
+
+ /** FormField nameDetectedLanguages */
+ nameDetectedLanguages?: (google.cloud.documentai.v1beta1.Document.Page.IDetectedLanguage[]|null);
+
+ /** FormField valueDetectedLanguages */
+ valueDetectedLanguages?: (google.cloud.documentai.v1beta1.Document.Page.IDetectedLanguage[]|null);
+ }
+
+ /** Represents a FormField. */
+ class FormField implements IFormField {
+
+ /**
+ * Constructs a new FormField.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta1.Document.Page.IFormField);
+
+ /** FormField fieldName. */
+ public fieldName?: (google.cloud.documentai.v1beta1.Document.Page.ILayout|null);
+
+ /** FormField fieldValue. */
+ public fieldValue?: (google.cloud.documentai.v1beta1.Document.Page.ILayout|null);
+
+ /** FormField nameDetectedLanguages. */
+ public nameDetectedLanguages: google.cloud.documentai.v1beta1.Document.Page.IDetectedLanguage[];
+
+ /** FormField valueDetectedLanguages. */
+ public valueDetectedLanguages: google.cloud.documentai.v1beta1.Document.Page.IDetectedLanguage[];
+
+ /**
+ * Creates a new FormField instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FormField instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta1.Document.Page.IFormField): google.cloud.documentai.v1beta1.Document.Page.FormField;
+
+ /**
+ * Encodes the specified FormField message. Does not implicitly {@link google.cloud.documentai.v1beta1.Document.Page.FormField.verify|verify} messages.
+ * @param message FormField message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1beta1.Document.Page.IFormField, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FormField message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta1.Document.Page.FormField.verify|verify} messages.
+ * @param message FormField message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1beta1.Document.Page.IFormField, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FormField message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FormField
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1beta1.Document.Page.FormField;
+
+ /**
+ * Decodes a FormField message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FormField
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1beta1.Document.Page.FormField;
+
+ /**
+ * Verifies a FormField message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FormField message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FormField
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1beta1.Document.Page.FormField;
+
+ /**
+ * Creates a plain object from a FormField message. Also converts values to other types if specified.
+ * @param message FormField
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1beta1.Document.Page.FormField, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FormField to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FormField
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DetectedLanguage. */
+ interface IDetectedLanguage {
+
+ /** DetectedLanguage languageCode */
+ languageCode?: (string|null);
+
+ /** DetectedLanguage confidence */
+ confidence?: (number|null);
+ }
+
+ /** Represents a DetectedLanguage. */
+ class DetectedLanguage implements IDetectedLanguage {
+
+ /**
+ * Constructs a new DetectedLanguage.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta1.Document.Page.IDetectedLanguage);
+
+ /** DetectedLanguage languageCode. */
+ public languageCode: string;
+
+ /** DetectedLanguage confidence. */
+ public confidence: number;
+
+ /**
+ * Creates a new DetectedLanguage instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DetectedLanguage instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta1.Document.Page.IDetectedLanguage): google.cloud.documentai.v1beta1.Document.Page.DetectedLanguage;
+
+ /**
+ * Encodes the specified DetectedLanguage message. Does not implicitly {@link google.cloud.documentai.v1beta1.Document.Page.DetectedLanguage.verify|verify} messages.
+ * @param message DetectedLanguage message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1beta1.Document.Page.IDetectedLanguage, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DetectedLanguage message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta1.Document.Page.DetectedLanguage.verify|verify} messages.
+ * @param message DetectedLanguage message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1beta1.Document.Page.IDetectedLanguage, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DetectedLanguage message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DetectedLanguage
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1beta1.Document.Page.DetectedLanguage;
+
+ /**
+ * Decodes a DetectedLanguage message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DetectedLanguage
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1beta1.Document.Page.DetectedLanguage;
+
+ /**
+ * Verifies a DetectedLanguage message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DetectedLanguage message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DetectedLanguage
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1beta1.Document.Page.DetectedLanguage;
+
+ /**
+ * Creates a plain object from a DetectedLanguage message. Also converts values to other types if specified.
+ * @param message DetectedLanguage
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1beta1.Document.Page.DetectedLanguage, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DetectedLanguage to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DetectedLanguage
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of an Entity. */
+ interface IEntity {
+
+ /** Entity textAnchor */
+ textAnchor?: (google.cloud.documentai.v1beta1.Document.ITextAnchor|null);
+
+ /** Entity type */
+ type?: (string|null);
+
+ /** Entity mentionText */
+ mentionText?: (string|null);
+
+ /** Entity mentionId */
+ mentionId?: (string|null);
+ }
+
+ /** Represents an Entity. */
+ class Entity implements IEntity {
+
+ /**
+ * Constructs a new Entity.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta1.Document.IEntity);
+
+ /** Entity textAnchor. */
+ public textAnchor?: (google.cloud.documentai.v1beta1.Document.ITextAnchor|null);
+
+ /** Entity type. */
+ public type: string;
+
+ /** Entity mentionText. */
+ public mentionText: string;
+
+ /** Entity mentionId. */
+ public mentionId: string;
+
+ /**
+ * Creates a new Entity instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Entity instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta1.Document.IEntity): google.cloud.documentai.v1beta1.Document.Entity;
+
+ /**
+ * Encodes the specified Entity message. Does not implicitly {@link google.cloud.documentai.v1beta1.Document.Entity.verify|verify} messages.
+ * @param message Entity message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1beta1.Document.IEntity, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Entity message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta1.Document.Entity.verify|verify} messages.
+ * @param message Entity message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1beta1.Document.IEntity, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an Entity message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Entity
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1beta1.Document.Entity;
+
+ /**
+ * Decodes an Entity message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Entity
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1beta1.Document.Entity;
+
+ /**
+ * Verifies an Entity message.
+ * @param message Plain 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 Entity message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Entity
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1beta1.Document.Entity;
+
+ /**
+ * Creates a plain object from an Entity message. Also converts values to other types if specified.
+ * @param message Entity
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1beta1.Document.Entity, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Entity to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Entity
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an EntityRelation. */
+ interface IEntityRelation {
+
+ /** EntityRelation subjectId */
+ subjectId?: (string|null);
+
+ /** EntityRelation objectId */
+ objectId?: (string|null);
+
+ /** EntityRelation relation */
+ relation?: (string|null);
+ }
+
+ /** Represents an EntityRelation. */
+ class EntityRelation implements IEntityRelation {
+
+ /**
+ * Constructs a new EntityRelation.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta1.Document.IEntityRelation);
+
+ /** EntityRelation subjectId. */
+ public subjectId: string;
+
+ /** EntityRelation objectId. */
+ public objectId: string;
+
+ /** EntityRelation relation. */
+ public relation: string;
+
+ /**
+ * Creates a new EntityRelation instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns EntityRelation instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta1.Document.IEntityRelation): google.cloud.documentai.v1beta1.Document.EntityRelation;
+
+ /**
+ * Encodes the specified EntityRelation message. Does not implicitly {@link google.cloud.documentai.v1beta1.Document.EntityRelation.verify|verify} messages.
+ * @param message EntityRelation message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1beta1.Document.IEntityRelation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified EntityRelation message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta1.Document.EntityRelation.verify|verify} messages.
+ * @param message EntityRelation message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1beta1.Document.IEntityRelation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an EntityRelation message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns EntityRelation
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1beta1.Document.EntityRelation;
+
+ /**
+ * Decodes an EntityRelation message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns EntityRelation
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1beta1.Document.EntityRelation;
+
+ /**
+ * Verifies an EntityRelation message.
+ * @param message Plain 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 EntityRelation message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns EntityRelation
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1beta1.Document.EntityRelation;
+
+ /**
+ * Creates a plain object from an EntityRelation message. Also converts values to other types if specified.
+ * @param message EntityRelation
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1beta1.Document.EntityRelation, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this EntityRelation to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for EntityRelation
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a TextAnchor. */
+ interface ITextAnchor {
+
+ /** TextAnchor textSegments */
+ textSegments?: (google.cloud.documentai.v1beta1.Document.TextAnchor.ITextSegment[]|null);
+ }
+
+ /** Represents a TextAnchor. */
+ class TextAnchor implements ITextAnchor {
+
+ /**
+ * Constructs a new TextAnchor.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta1.Document.ITextAnchor);
+
+ /** TextAnchor textSegments. */
+ public textSegments: google.cloud.documentai.v1beta1.Document.TextAnchor.ITextSegment[];
+
+ /**
+ * Creates a new TextAnchor instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns TextAnchor instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta1.Document.ITextAnchor): google.cloud.documentai.v1beta1.Document.TextAnchor;
+
+ /**
+ * Encodes the specified TextAnchor message. Does not implicitly {@link google.cloud.documentai.v1beta1.Document.TextAnchor.verify|verify} messages.
+ * @param message TextAnchor message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1beta1.Document.ITextAnchor, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified TextAnchor message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta1.Document.TextAnchor.verify|verify} messages.
+ * @param message TextAnchor message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1beta1.Document.ITextAnchor, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a TextAnchor message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns TextAnchor
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1beta1.Document.TextAnchor;
+
+ /**
+ * Decodes a TextAnchor message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns TextAnchor
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1beta1.Document.TextAnchor;
+
+ /**
+ * Verifies a TextAnchor message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a TextAnchor message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns TextAnchor
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1beta1.Document.TextAnchor;
+
+ /**
+ * Creates a plain object from a TextAnchor message. Also converts values to other types if specified.
+ * @param message TextAnchor
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1beta1.Document.TextAnchor, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this TextAnchor to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for TextAnchor
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace TextAnchor {
+
+ /** Properties of a TextSegment. */
+ interface ITextSegment {
+
+ /** TextSegment startIndex */
+ startIndex?: (number|Long|string|null);
+
+ /** TextSegment endIndex */
+ endIndex?: (number|Long|string|null);
+ }
+
+ /** Represents a TextSegment. */
+ class TextSegment implements ITextSegment {
+
+ /**
+ * Constructs a new TextSegment.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta1.Document.TextAnchor.ITextSegment);
+
+ /** TextSegment startIndex. */
+ public startIndex: (number|Long|string);
+
+ /** TextSegment endIndex. */
+ public endIndex: (number|Long|string);
+
+ /**
+ * Creates a new TextSegment instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns TextSegment instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta1.Document.TextAnchor.ITextSegment): google.cloud.documentai.v1beta1.Document.TextAnchor.TextSegment;
+
+ /**
+ * Encodes the specified TextSegment message. Does not implicitly {@link google.cloud.documentai.v1beta1.Document.TextAnchor.TextSegment.verify|verify} messages.
+ * @param message TextSegment message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1beta1.Document.TextAnchor.ITextSegment, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified TextSegment message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta1.Document.TextAnchor.TextSegment.verify|verify} messages.
+ * @param message TextSegment message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1beta1.Document.TextAnchor.ITextSegment, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a TextSegment message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns TextSegment
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1beta1.Document.TextAnchor.TextSegment;
+
+ /**
+ * Decodes a TextSegment message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns TextSegment
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1beta1.Document.TextAnchor.TextSegment;
+
+ /**
+ * Verifies a TextSegment message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a TextSegment message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns TextSegment
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1beta1.Document.TextAnchor.TextSegment;
+
+ /**
+ * Creates a plain object from a TextSegment message. Also converts values to other types if specified.
+ * @param message TextSegment
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1beta1.Document.TextAnchor.TextSegment, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this TextSegment to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for TextSegment
+ * @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.documentai.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.documentai.v1beta1.IVertex): google.cloud.documentai.v1beta1.Vertex;
+
+ /**
+ * Encodes the specified Vertex message. Does not implicitly {@link google.cloud.documentai.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.documentai.v1beta1.IVertex, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Vertex message, length delimited. Does not implicitly {@link google.cloud.documentai.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.documentai.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.documentai.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.documentai.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.documentai.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.documentai.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.documentai.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.documentai.v1beta1.INormalizedVertex): google.cloud.documentai.v1beta1.NormalizedVertex;
+
+ /**
+ * Encodes the specified NormalizedVertex message. Does not implicitly {@link google.cloud.documentai.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.documentai.v1beta1.INormalizedVertex, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified NormalizedVertex message, length delimited. Does not implicitly {@link google.cloud.documentai.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.documentai.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.documentai.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.documentai.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.documentai.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.documentai.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.documentai.v1beta1.IVertex[]|null);
+
+ /** BoundingPoly normalizedVertices */
+ normalizedVertices?: (google.cloud.documentai.v1beta1.INormalizedVertex[]|null);
+ }
+
+ /** Represents a BoundingPoly. */
+ class BoundingPoly implements IBoundingPoly {
+
+ /**
+ * Constructs a new BoundingPoly.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta1.IBoundingPoly);
+
+ /** BoundingPoly vertices. */
+ public vertices: google.cloud.documentai.v1beta1.IVertex[];
+
+ /** BoundingPoly normalizedVertices. */
+ public normalizedVertices: google.cloud.documentai.v1beta1.INormalizedVertex[];
+
+ /**
+ * Creates a new BoundingPoly instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns BoundingPoly instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta1.IBoundingPoly): google.cloud.documentai.v1beta1.BoundingPoly;
+
+ /**
+ * Encodes the specified BoundingPoly message. Does not implicitly {@link google.cloud.documentai.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.documentai.v1beta1.IBoundingPoly, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified BoundingPoly message, length delimited. Does not implicitly {@link google.cloud.documentai.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.documentai.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.documentai.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.documentai.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.documentai.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.documentai.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;
+ }
+
+ /** Represents a DocumentUnderstandingService */
+ class DocumentUnderstandingService extends $protobuf.rpc.Service {
+
+ /**
+ * Constructs a new DocumentUnderstandingService 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 DocumentUnderstandingService 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): DocumentUnderstandingService;
+
+ /**
+ * Calls BatchProcessDocuments.
+ * @param request BatchProcessDocumentsRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public batchProcessDocuments(request: google.cloud.documentai.v1beta1.IBatchProcessDocumentsRequest, callback: google.cloud.documentai.v1beta1.DocumentUnderstandingService.BatchProcessDocumentsCallback): void;
+
+ /**
+ * Calls BatchProcessDocuments.
+ * @param request BatchProcessDocumentsRequest message or plain object
+ * @returns Promise
+ */
+ public batchProcessDocuments(request: google.cloud.documentai.v1beta1.IBatchProcessDocumentsRequest): Promise;
+ }
+
+ namespace DocumentUnderstandingService {
+
+ /**
+ * Callback as used by {@link google.cloud.documentai.v1beta1.DocumentUnderstandingService|batchProcessDocuments}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type BatchProcessDocumentsCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+ }
+
+ /** Properties of a BatchProcessDocumentsRequest. */
+ interface IBatchProcessDocumentsRequest {
+
+ /** BatchProcessDocumentsRequest requests */
+ requests?: (google.cloud.documentai.v1beta1.IProcessDocumentRequest[]|null);
+
+ /** BatchProcessDocumentsRequest parent */
+ parent?: (string|null);
+ }
+
+ /** Represents a BatchProcessDocumentsRequest. */
+ class BatchProcessDocumentsRequest implements IBatchProcessDocumentsRequest {
+
+ /**
+ * Constructs a new BatchProcessDocumentsRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta1.IBatchProcessDocumentsRequest);
+
+ /** BatchProcessDocumentsRequest requests. */
+ public requests: google.cloud.documentai.v1beta1.IProcessDocumentRequest[];
+
+ /** BatchProcessDocumentsRequest parent. */
+ public parent: string;
+
+ /**
+ * Creates a new BatchProcessDocumentsRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns BatchProcessDocumentsRequest instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta1.IBatchProcessDocumentsRequest): google.cloud.documentai.v1beta1.BatchProcessDocumentsRequest;
+
+ /**
+ * Encodes the specified BatchProcessDocumentsRequest message. Does not implicitly {@link google.cloud.documentai.v1beta1.BatchProcessDocumentsRequest.verify|verify} messages.
+ * @param message BatchProcessDocumentsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1beta1.IBatchProcessDocumentsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified BatchProcessDocumentsRequest message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta1.BatchProcessDocumentsRequest.verify|verify} messages.
+ * @param message BatchProcessDocumentsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1beta1.IBatchProcessDocumentsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a BatchProcessDocumentsRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns BatchProcessDocumentsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1beta1.BatchProcessDocumentsRequest;
+
+ /**
+ * Decodes a BatchProcessDocumentsRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns BatchProcessDocumentsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1beta1.BatchProcessDocumentsRequest;
+
+ /**
+ * Verifies a BatchProcessDocumentsRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a BatchProcessDocumentsRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns BatchProcessDocumentsRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1beta1.BatchProcessDocumentsRequest;
+
+ /**
+ * Creates a plain object from a BatchProcessDocumentsRequest message. Also converts values to other types if specified.
+ * @param message BatchProcessDocumentsRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1beta1.BatchProcessDocumentsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this BatchProcessDocumentsRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for BatchProcessDocumentsRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ProcessDocumentRequest. */
+ interface IProcessDocumentRequest {
+
+ /** ProcessDocumentRequest inputConfig */
+ inputConfig?: (google.cloud.documentai.v1beta1.IInputConfig|null);
+
+ /** ProcessDocumentRequest outputConfig */
+ outputConfig?: (google.cloud.documentai.v1beta1.IOutputConfig|null);
+
+ /** ProcessDocumentRequest documentType */
+ documentType?: (string|null);
+
+ /** ProcessDocumentRequest tableExtractionParams */
+ tableExtractionParams?: (google.cloud.documentai.v1beta1.ITableExtractionParams|null);
+
+ /** ProcessDocumentRequest formExtractionParams */
+ formExtractionParams?: (google.cloud.documentai.v1beta1.IFormExtractionParams|null);
+
+ /** ProcessDocumentRequest entityExtractionParams */
+ entityExtractionParams?: (google.cloud.documentai.v1beta1.IEntityExtractionParams|null);
+
+ /** ProcessDocumentRequest ocrParams */
+ ocrParams?: (google.cloud.documentai.v1beta1.IOcrParams|null);
+ }
+
+ /** Represents a ProcessDocumentRequest. */
+ class ProcessDocumentRequest implements IProcessDocumentRequest {
+
+ /**
+ * Constructs a new ProcessDocumentRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta1.IProcessDocumentRequest);
+
+ /** ProcessDocumentRequest inputConfig. */
+ public inputConfig?: (google.cloud.documentai.v1beta1.IInputConfig|null);
+
+ /** ProcessDocumentRequest outputConfig. */
+ public outputConfig?: (google.cloud.documentai.v1beta1.IOutputConfig|null);
+
+ /** ProcessDocumentRequest documentType. */
+ public documentType: string;
+
+ /** ProcessDocumentRequest tableExtractionParams. */
+ public tableExtractionParams?: (google.cloud.documentai.v1beta1.ITableExtractionParams|null);
+
+ /** ProcessDocumentRequest formExtractionParams. */
+ public formExtractionParams?: (google.cloud.documentai.v1beta1.IFormExtractionParams|null);
+
+ /** ProcessDocumentRequest entityExtractionParams. */
+ public entityExtractionParams?: (google.cloud.documentai.v1beta1.IEntityExtractionParams|null);
+
+ /** ProcessDocumentRequest ocrParams. */
+ public ocrParams?: (google.cloud.documentai.v1beta1.IOcrParams|null);
+
+ /**
+ * Creates a new ProcessDocumentRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ProcessDocumentRequest instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta1.IProcessDocumentRequest): google.cloud.documentai.v1beta1.ProcessDocumentRequest;
+
+ /**
+ * Encodes the specified ProcessDocumentRequest message. Does not implicitly {@link google.cloud.documentai.v1beta1.ProcessDocumentRequest.verify|verify} messages.
+ * @param message ProcessDocumentRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1beta1.IProcessDocumentRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ProcessDocumentRequest message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta1.ProcessDocumentRequest.verify|verify} messages.
+ * @param message ProcessDocumentRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1beta1.IProcessDocumentRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ProcessDocumentRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ProcessDocumentRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1beta1.ProcessDocumentRequest;
+
+ /**
+ * Decodes a ProcessDocumentRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ProcessDocumentRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1beta1.ProcessDocumentRequest;
+
+ /**
+ * Verifies a ProcessDocumentRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ProcessDocumentRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ProcessDocumentRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1beta1.ProcessDocumentRequest;
+
+ /**
+ * Creates a plain object from a ProcessDocumentRequest message. Also converts values to other types if specified.
+ * @param message ProcessDocumentRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1beta1.ProcessDocumentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ProcessDocumentRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ProcessDocumentRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a BatchProcessDocumentsResponse. */
+ interface IBatchProcessDocumentsResponse {
+
+ /** BatchProcessDocumentsResponse responses */
+ responses?: (google.cloud.documentai.v1beta1.IProcessDocumentResponse[]|null);
+ }
+
+ /** Represents a BatchProcessDocumentsResponse. */
+ class BatchProcessDocumentsResponse implements IBatchProcessDocumentsResponse {
+
+ /**
+ * Constructs a new BatchProcessDocumentsResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta1.IBatchProcessDocumentsResponse);
+
+ /** BatchProcessDocumentsResponse responses. */
+ public responses: google.cloud.documentai.v1beta1.IProcessDocumentResponse[];
+
+ /**
+ * Creates a new BatchProcessDocumentsResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns BatchProcessDocumentsResponse instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta1.IBatchProcessDocumentsResponse): google.cloud.documentai.v1beta1.BatchProcessDocumentsResponse;
+
+ /**
+ * Encodes the specified BatchProcessDocumentsResponse message. Does not implicitly {@link google.cloud.documentai.v1beta1.BatchProcessDocumentsResponse.verify|verify} messages.
+ * @param message BatchProcessDocumentsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1beta1.IBatchProcessDocumentsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified BatchProcessDocumentsResponse message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta1.BatchProcessDocumentsResponse.verify|verify} messages.
+ * @param message BatchProcessDocumentsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1beta1.IBatchProcessDocumentsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a BatchProcessDocumentsResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns BatchProcessDocumentsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1beta1.BatchProcessDocumentsResponse;
+
+ /**
+ * Decodes a BatchProcessDocumentsResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns BatchProcessDocumentsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1beta1.BatchProcessDocumentsResponse;
+
+ /**
+ * Verifies a BatchProcessDocumentsResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a BatchProcessDocumentsResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns BatchProcessDocumentsResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1beta1.BatchProcessDocumentsResponse;
+
+ /**
+ * Creates a plain object from a BatchProcessDocumentsResponse message. Also converts values to other types if specified.
+ * @param message BatchProcessDocumentsResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1beta1.BatchProcessDocumentsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this BatchProcessDocumentsResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for BatchProcessDocumentsResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ProcessDocumentResponse. */
+ interface IProcessDocumentResponse {
+
+ /** ProcessDocumentResponse inputConfig */
+ inputConfig?: (google.cloud.documentai.v1beta1.IInputConfig|null);
+
+ /** ProcessDocumentResponse outputConfig */
+ outputConfig?: (google.cloud.documentai.v1beta1.IOutputConfig|null);
+ }
+
+ /** Represents a ProcessDocumentResponse. */
+ class ProcessDocumentResponse implements IProcessDocumentResponse {
+
+ /**
+ * Constructs a new ProcessDocumentResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta1.IProcessDocumentResponse);
+
+ /** ProcessDocumentResponse inputConfig. */
+ public inputConfig?: (google.cloud.documentai.v1beta1.IInputConfig|null);
+
+ /** ProcessDocumentResponse outputConfig. */
+ public outputConfig?: (google.cloud.documentai.v1beta1.IOutputConfig|null);
+
+ /**
+ * Creates a new ProcessDocumentResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ProcessDocumentResponse instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta1.IProcessDocumentResponse): google.cloud.documentai.v1beta1.ProcessDocumentResponse;
+
+ /**
+ * Encodes the specified ProcessDocumentResponse message. Does not implicitly {@link google.cloud.documentai.v1beta1.ProcessDocumentResponse.verify|verify} messages.
+ * @param message ProcessDocumentResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1beta1.IProcessDocumentResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ProcessDocumentResponse message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta1.ProcessDocumentResponse.verify|verify} messages.
+ * @param message ProcessDocumentResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1beta1.IProcessDocumentResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ProcessDocumentResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ProcessDocumentResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1beta1.ProcessDocumentResponse;
+
+ /**
+ * Decodes a ProcessDocumentResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ProcessDocumentResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1beta1.ProcessDocumentResponse;
+
+ /**
+ * Verifies a ProcessDocumentResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ProcessDocumentResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ProcessDocumentResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1beta1.ProcessDocumentResponse;
+
+ /**
+ * Creates a plain object from a ProcessDocumentResponse message. Also converts values to other types if specified.
+ * @param message ProcessDocumentResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1beta1.ProcessDocumentResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ProcessDocumentResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ProcessDocumentResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an OcrParams. */
+ interface IOcrParams {
+
+ /** OcrParams languageHints */
+ languageHints?: (string[]|null);
+ }
+
+ /** Represents an OcrParams. */
+ class OcrParams implements IOcrParams {
+
+ /**
+ * Constructs a new OcrParams.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta1.IOcrParams);
+
+ /** OcrParams languageHints. */
+ public languageHints: string[];
+
+ /**
+ * Creates a new OcrParams instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns OcrParams instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta1.IOcrParams): google.cloud.documentai.v1beta1.OcrParams;
+
+ /**
+ * Encodes the specified OcrParams message. Does not implicitly {@link google.cloud.documentai.v1beta1.OcrParams.verify|verify} messages.
+ * @param message OcrParams message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1beta1.IOcrParams, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified OcrParams message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta1.OcrParams.verify|verify} messages.
+ * @param message OcrParams message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1beta1.IOcrParams, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an OcrParams message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns OcrParams
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1beta1.OcrParams;
+
+ /**
+ * Decodes an OcrParams message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns OcrParams
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1beta1.OcrParams;
+
+ /**
+ * Verifies an OcrParams message.
+ * @param message Plain 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 OcrParams message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns OcrParams
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1beta1.OcrParams;
+
+ /**
+ * Creates a plain object from an OcrParams message. Also converts values to other types if specified.
+ * @param message OcrParams
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1beta1.OcrParams, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this OcrParams to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for OcrParams
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a TableExtractionParams. */
+ interface ITableExtractionParams {
+
+ /** TableExtractionParams enabled */
+ enabled?: (boolean|null);
+
+ /** TableExtractionParams tableBoundHints */
+ tableBoundHints?: (google.cloud.documentai.v1beta1.ITableBoundHint[]|null);
+
+ /** TableExtractionParams headerHints */
+ headerHints?: (string[]|null);
+
+ /** TableExtractionParams modelVersion */
+ modelVersion?: (string|null);
+ }
+
+ /** Represents a TableExtractionParams. */
+ class TableExtractionParams implements ITableExtractionParams {
+
+ /**
+ * Constructs a new TableExtractionParams.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta1.ITableExtractionParams);
+
+ /** TableExtractionParams enabled. */
+ public enabled: boolean;
+
+ /** TableExtractionParams tableBoundHints. */
+ public tableBoundHints: google.cloud.documentai.v1beta1.ITableBoundHint[];
+
+ /** TableExtractionParams headerHints. */
+ public headerHints: string[];
+
+ /** TableExtractionParams modelVersion. */
+ public modelVersion: string;
+
+ /**
+ * Creates a new TableExtractionParams instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns TableExtractionParams instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta1.ITableExtractionParams): google.cloud.documentai.v1beta1.TableExtractionParams;
+
+ /**
+ * Encodes the specified TableExtractionParams message. Does not implicitly {@link google.cloud.documentai.v1beta1.TableExtractionParams.verify|verify} messages.
+ * @param message TableExtractionParams message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1beta1.ITableExtractionParams, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified TableExtractionParams message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta1.TableExtractionParams.verify|verify} messages.
+ * @param message TableExtractionParams message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1beta1.ITableExtractionParams, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a TableExtractionParams message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns TableExtractionParams
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1beta1.TableExtractionParams;
+
+ /**
+ * Decodes a TableExtractionParams message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns TableExtractionParams
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1beta1.TableExtractionParams;
+
+ /**
+ * Verifies a TableExtractionParams message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a TableExtractionParams message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns TableExtractionParams
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1beta1.TableExtractionParams;
+
+ /**
+ * Creates a plain object from a TableExtractionParams message. Also converts values to other types if specified.
+ * @param message TableExtractionParams
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1beta1.TableExtractionParams, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this TableExtractionParams to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for TableExtractionParams
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a TableBoundHint. */
+ interface ITableBoundHint {
+
+ /** TableBoundHint pageNumber */
+ pageNumber?: (number|null);
+
+ /** TableBoundHint boundingBox */
+ boundingBox?: (google.cloud.documentai.v1beta1.IBoundingPoly|null);
+ }
+
+ /** Represents a TableBoundHint. */
+ class TableBoundHint implements ITableBoundHint {
+
+ /**
+ * Constructs a new TableBoundHint.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta1.ITableBoundHint);
+
+ /** TableBoundHint pageNumber. */
+ public pageNumber: number;
+
+ /** TableBoundHint boundingBox. */
+ public boundingBox?: (google.cloud.documentai.v1beta1.IBoundingPoly|null);
+
+ /**
+ * Creates a new TableBoundHint instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns TableBoundHint instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta1.ITableBoundHint): google.cloud.documentai.v1beta1.TableBoundHint;
+
+ /**
+ * Encodes the specified TableBoundHint message. Does not implicitly {@link google.cloud.documentai.v1beta1.TableBoundHint.verify|verify} messages.
+ * @param message TableBoundHint message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1beta1.ITableBoundHint, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified TableBoundHint message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta1.TableBoundHint.verify|verify} messages.
+ * @param message TableBoundHint message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1beta1.ITableBoundHint, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a TableBoundHint message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns TableBoundHint
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1beta1.TableBoundHint;
+
+ /**
+ * Decodes a TableBoundHint message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns TableBoundHint
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1beta1.TableBoundHint;
+
+ /**
+ * Verifies a TableBoundHint message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a TableBoundHint message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns TableBoundHint
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1beta1.TableBoundHint;
+
+ /**
+ * Creates a plain object from a TableBoundHint message. Also converts values to other types if specified.
+ * @param message TableBoundHint
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1beta1.TableBoundHint, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this TableBoundHint to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for TableBoundHint
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a FormExtractionParams. */
+ interface IFormExtractionParams {
+
+ /** FormExtractionParams enabled */
+ enabled?: (boolean|null);
+
+ /** FormExtractionParams keyValuePairHints */
+ keyValuePairHints?: (google.cloud.documentai.v1beta1.IKeyValuePairHint[]|null);
+
+ /** FormExtractionParams modelVersion */
+ modelVersion?: (string|null);
+ }
+
+ /** Represents a FormExtractionParams. */
+ class FormExtractionParams implements IFormExtractionParams {
+
+ /**
+ * Constructs a new FormExtractionParams.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta1.IFormExtractionParams);
+
+ /** FormExtractionParams enabled. */
+ public enabled: boolean;
+
+ /** FormExtractionParams keyValuePairHints. */
+ public keyValuePairHints: google.cloud.documentai.v1beta1.IKeyValuePairHint[];
+
+ /** FormExtractionParams modelVersion. */
+ public modelVersion: string;
+
+ /**
+ * Creates a new FormExtractionParams instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FormExtractionParams instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta1.IFormExtractionParams): google.cloud.documentai.v1beta1.FormExtractionParams;
+
+ /**
+ * Encodes the specified FormExtractionParams message. Does not implicitly {@link google.cloud.documentai.v1beta1.FormExtractionParams.verify|verify} messages.
+ * @param message FormExtractionParams message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1beta1.IFormExtractionParams, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FormExtractionParams message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta1.FormExtractionParams.verify|verify} messages.
+ * @param message FormExtractionParams message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1beta1.IFormExtractionParams, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FormExtractionParams message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FormExtractionParams
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1beta1.FormExtractionParams;
+
+ /**
+ * Decodes a FormExtractionParams message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FormExtractionParams
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1beta1.FormExtractionParams;
+
+ /**
+ * Verifies a FormExtractionParams message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FormExtractionParams message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FormExtractionParams
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1beta1.FormExtractionParams;
+
+ /**
+ * Creates a plain object from a FormExtractionParams message. Also converts values to other types if specified.
+ * @param message FormExtractionParams
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1beta1.FormExtractionParams, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FormExtractionParams to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FormExtractionParams
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a KeyValuePairHint. */
+ interface IKeyValuePairHint {
+
+ /** KeyValuePairHint key */
+ key?: (string|null);
+
+ /** KeyValuePairHint valueTypes */
+ valueTypes?: (string[]|null);
+ }
+
+ /** Represents a KeyValuePairHint. */
+ class KeyValuePairHint implements IKeyValuePairHint {
+
+ /**
+ * Constructs a new KeyValuePairHint.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta1.IKeyValuePairHint);
+
+ /** KeyValuePairHint key. */
+ public key: string;
+
+ /** KeyValuePairHint valueTypes. */
+ public valueTypes: string[];
+
+ /**
+ * Creates a new KeyValuePairHint instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns KeyValuePairHint instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta1.IKeyValuePairHint): google.cloud.documentai.v1beta1.KeyValuePairHint;
+
+ /**
+ * Encodes the specified KeyValuePairHint message. Does not implicitly {@link google.cloud.documentai.v1beta1.KeyValuePairHint.verify|verify} messages.
+ * @param message KeyValuePairHint message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1beta1.IKeyValuePairHint, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified KeyValuePairHint message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta1.KeyValuePairHint.verify|verify} messages.
+ * @param message KeyValuePairHint message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1beta1.IKeyValuePairHint, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a KeyValuePairHint message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns KeyValuePairHint
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1beta1.KeyValuePairHint;
+
+ /**
+ * Decodes a KeyValuePairHint message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns KeyValuePairHint
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1beta1.KeyValuePairHint;
+
+ /**
+ * Verifies a KeyValuePairHint message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a KeyValuePairHint message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns KeyValuePairHint
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1beta1.KeyValuePairHint;
+
+ /**
+ * Creates a plain object from a KeyValuePairHint message. Also converts values to other types if specified.
+ * @param message KeyValuePairHint
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1beta1.KeyValuePairHint, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this KeyValuePairHint to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for KeyValuePairHint
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an EntityExtractionParams. */
+ interface IEntityExtractionParams {
+
+ /** EntityExtractionParams enabled */
+ enabled?: (boolean|null);
+
+ /** EntityExtractionParams modelVersion */
+ modelVersion?: (string|null);
+ }
+
+ /** Represents an EntityExtractionParams. */
+ class EntityExtractionParams implements IEntityExtractionParams {
+
+ /**
+ * Constructs a new EntityExtractionParams.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta1.IEntityExtractionParams);
+
+ /** EntityExtractionParams enabled. */
+ public enabled: boolean;
+
+ /** EntityExtractionParams modelVersion. */
+ public modelVersion: string;
+
+ /**
+ * Creates a new EntityExtractionParams instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns EntityExtractionParams instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta1.IEntityExtractionParams): google.cloud.documentai.v1beta1.EntityExtractionParams;
+
+ /**
+ * Encodes the specified EntityExtractionParams message. Does not implicitly {@link google.cloud.documentai.v1beta1.EntityExtractionParams.verify|verify} messages.
+ * @param message EntityExtractionParams message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1beta1.IEntityExtractionParams, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified EntityExtractionParams message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta1.EntityExtractionParams.verify|verify} messages.
+ * @param message EntityExtractionParams message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1beta1.IEntityExtractionParams, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an EntityExtractionParams message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns EntityExtractionParams
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1beta1.EntityExtractionParams;
+
+ /**
+ * Decodes an EntityExtractionParams message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns EntityExtractionParams
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1beta1.EntityExtractionParams;
+
+ /**
+ * Verifies an EntityExtractionParams message.
+ * @param message Plain 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 EntityExtractionParams message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns EntityExtractionParams
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1beta1.EntityExtractionParams;
+
+ /**
+ * Creates a plain object from an EntityExtractionParams message. Also converts values to other types if specified.
+ * @param message EntityExtractionParams
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1beta1.EntityExtractionParams, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this EntityExtractionParams to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for EntityExtractionParams
+ * @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 gcsSource */
+ gcsSource?: (google.cloud.documentai.v1beta1.IGcsSource|null);
+
+ /** InputConfig mimeType */
+ mimeType?: (string|null);
+ }
+
+ /** Represents an InputConfig. */
+ class InputConfig implements IInputConfig {
+
+ /**
+ * Constructs a new InputConfig.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta1.IInputConfig);
+
+ /** InputConfig gcsSource. */
+ public gcsSource?: (google.cloud.documentai.v1beta1.IGcsSource|null);
+
+ /** InputConfig mimeType. */
+ public mimeType: string;
+
+ /** InputConfig source. */
+ public source?: "gcsSource";
+
+ /**
+ * Creates a new InputConfig instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns InputConfig instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta1.IInputConfig): google.cloud.documentai.v1beta1.InputConfig;
+
+ /**
+ * Encodes the specified InputConfig message. Does not implicitly {@link google.cloud.documentai.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.documentai.v1beta1.IInputConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified InputConfig message, length delimited. Does not implicitly {@link google.cloud.documentai.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.documentai.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.documentai.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.documentai.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.documentai.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.documentai.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 an OutputConfig. */
+ interface IOutputConfig {
+
+ /** OutputConfig gcsDestination */
+ gcsDestination?: (google.cloud.documentai.v1beta1.IGcsDestination|null);
+
+ /** OutputConfig pagesPerShard */
+ pagesPerShard?: (number|null);
+ }
+
+ /** Represents an OutputConfig. */
+ class OutputConfig implements IOutputConfig {
+
+ /**
+ * Constructs a new OutputConfig.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta1.IOutputConfig);
+
+ /** OutputConfig gcsDestination. */
+ public gcsDestination?: (google.cloud.documentai.v1beta1.IGcsDestination|null);
+
+ /** OutputConfig pagesPerShard. */
+ public pagesPerShard: number;
+
+ /** OutputConfig destination. */
+ public destination?: "gcsDestination";
+
+ /**
+ * Creates a new OutputConfig instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns OutputConfig instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta1.IOutputConfig): google.cloud.documentai.v1beta1.OutputConfig;
+
+ /**
+ * Encodes the specified OutputConfig message. Does not implicitly {@link google.cloud.documentai.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.documentai.v1beta1.IOutputConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified OutputConfig message, length delimited. Does not implicitly {@link google.cloud.documentai.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.documentai.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.documentai.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.documentai.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.documentai.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.documentai.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 GcsSource. */
+ interface IGcsSource {
+
+ /** GcsSource uri */
+ uri?: (string|null);
+ }
+
+ /** Represents a GcsSource. */
+ class GcsSource implements IGcsSource {
+
+ /**
+ * Constructs a new GcsSource.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta1.IGcsSource);
+
+ /** GcsSource uri. */
+ public uri: string;
+
+ /**
+ * Creates a new GcsSource instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GcsSource instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta1.IGcsSource): google.cloud.documentai.v1beta1.GcsSource;
+
+ /**
+ * Encodes the specified GcsSource message. Does not implicitly {@link google.cloud.documentai.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.documentai.v1beta1.IGcsSource, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GcsSource message, length delimited. Does not implicitly {@link google.cloud.documentai.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.documentai.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.documentai.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.documentai.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.documentai.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.documentai.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 GcsDestination. */
+ interface IGcsDestination {
+
+ /** GcsDestination uri */
+ uri?: (string|null);
+ }
+
+ /** Represents a GcsDestination. */
+ class GcsDestination implements IGcsDestination {
+
+ /**
+ * Constructs a new GcsDestination.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta1.IGcsDestination);
+
+ /** GcsDestination uri. */
+ public uri: string;
+
+ /**
+ * Creates a new GcsDestination instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GcsDestination instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta1.IGcsDestination): google.cloud.documentai.v1beta1.GcsDestination;
+
+ /**
+ * Encodes the specified GcsDestination message. Does not implicitly {@link google.cloud.documentai.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.documentai.v1beta1.IGcsDestination, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GcsDestination message, length delimited. Does not implicitly {@link google.cloud.documentai.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.documentai.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.documentai.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.documentai.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.documentai.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.documentai.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 an OperationMetadata. */
+ interface IOperationMetadata {
+
+ /** OperationMetadata state */
+ state?: (google.cloud.documentai.v1beta1.OperationMetadata.State|keyof typeof google.cloud.documentai.v1beta1.OperationMetadata.State|null);
+
+ /** OperationMetadata stateMessage */
+ stateMessage?: (string|null);
+
+ /** OperationMetadata createTime */
+ createTime?: (google.protobuf.ITimestamp|null);
+
+ /** OperationMetadata updateTime */
+ updateTime?: (google.protobuf.ITimestamp|null);
+ }
+
+ /** Represents an OperationMetadata. */
+ class OperationMetadata implements IOperationMetadata {
+
+ /**
+ * Constructs a new OperationMetadata.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta1.IOperationMetadata);
+
+ /** OperationMetadata state. */
+ public state: (google.cloud.documentai.v1beta1.OperationMetadata.State|keyof typeof google.cloud.documentai.v1beta1.OperationMetadata.State);
+
+ /** OperationMetadata stateMessage. */
+ public stateMessage: string;
+
+ /** OperationMetadata createTime. */
+ public createTime?: (google.protobuf.ITimestamp|null);
+
+ /** OperationMetadata updateTime. */
+ public updateTime?: (google.protobuf.ITimestamp|null);
+
+ /**
+ * Creates a new OperationMetadata instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns OperationMetadata instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta1.IOperationMetadata): google.cloud.documentai.v1beta1.OperationMetadata;
+
+ /**
+ * Encodes the specified OperationMetadata message. Does not implicitly {@link google.cloud.documentai.v1beta1.OperationMetadata.verify|verify} messages.
+ * @param message OperationMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1beta1.IOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified OperationMetadata message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta1.OperationMetadata.verify|verify} messages.
+ * @param message OperationMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1beta1.IOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an OperationMetadata message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns OperationMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1beta1.OperationMetadata;
+
+ /**
+ * Decodes an OperationMetadata message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns OperationMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1beta1.OperationMetadata;
+
+ /**
+ * Verifies an OperationMetadata message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an OperationMetadata message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns OperationMetadata
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1beta1.OperationMetadata;
+
+ /**
+ * Creates a plain object from an OperationMetadata message. Also converts values to other types if specified.
+ * @param message OperationMetadata
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1beta1.OperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this OperationMetadata to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for OperationMetadata
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace OperationMetadata {
+
+ /** State enum. */
+ enum State {
+ STATE_UNSPECIFIED = 0,
+ ACCEPTED = 1,
+ WAITING = 2,
+ RUNNING = 3,
+ SUCCEEDED = 4,
+ CANCELLED = 5,
+ FAILED = 6
+ }
+ }
+ }
+
+ /** Namespace v1beta2. */
+ namespace v1beta2 {
+
+ /** Properties of a Document. */
+ interface IDocument {
+
+ /** Document uri */
+ uri?: (string|null);
+
+ /** Document content */
+ content?: (Uint8Array|string|null);
+
+ /** Document mimeType */
+ mimeType?: (string|null);
+
+ /** Document text */
+ text?: (string|null);
+
+ /** Document textStyles */
+ textStyles?: (google.cloud.documentai.v1beta2.Document.IStyle[]|null);
+
+ /** Document pages */
+ pages?: (google.cloud.documentai.v1beta2.Document.IPage[]|null);
+
+ /** Document entities */
+ entities?: (google.cloud.documentai.v1beta2.Document.IEntity[]|null);
+
+ /** Document entityRelations */
+ entityRelations?: (google.cloud.documentai.v1beta2.Document.IEntityRelation[]|null);
+
+ /** Document shardInfo */
+ shardInfo?: (google.cloud.documentai.v1beta2.Document.IShardInfo|null);
+
+ /** Document labels */
+ labels?: (google.cloud.documentai.v1beta2.Document.ILabel[]|null);
+
+ /** Document error */
+ error?: (google.rpc.IStatus|null);
+ }
+
+ /** Represents a Document. */
+ class Document implements IDocument {
+
+ /**
+ * Constructs a new Document.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta2.IDocument);
+
+ /** Document uri. */
+ public uri?: (string|null);
+
+ /** Document content. */
+ public content?: (Uint8Array|string|null);
+
+ /** Document mimeType. */
+ public mimeType: string;
+
+ /** Document text. */
+ public text: string;
+
+ /** Document textStyles. */
+ public textStyles: google.cloud.documentai.v1beta2.Document.IStyle[];
+
+ /** Document pages. */
+ public pages: google.cloud.documentai.v1beta2.Document.IPage[];
+
+ /** Document entities. */
+ public entities: google.cloud.documentai.v1beta2.Document.IEntity[];
+
+ /** Document entityRelations. */
+ public entityRelations: google.cloud.documentai.v1beta2.Document.IEntityRelation[];
+
+ /** Document shardInfo. */
+ public shardInfo?: (google.cloud.documentai.v1beta2.Document.IShardInfo|null);
+
+ /** Document labels. */
+ public labels: google.cloud.documentai.v1beta2.Document.ILabel[];
+
+ /** Document error. */
+ public error?: (google.rpc.IStatus|null);
+
+ /** Document source. */
+ public source?: ("uri"|"content");
+
+ /**
+ * Creates a new Document instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Document instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta2.IDocument): google.cloud.documentai.v1beta2.Document;
+
+ /**
+ * Encodes the specified Document message. Does not implicitly {@link google.cloud.documentai.v1beta2.Document.verify|verify} messages.
+ * @param message Document message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1beta2.IDocument, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Document message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta2.Document.verify|verify} messages.
+ * @param message Document message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1beta2.IDocument, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Document message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Document
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1beta2.Document;
+
+ /**
+ * Decodes a Document message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Document
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1beta2.Document;
+
+ /**
+ * Verifies a Document message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Document message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Document
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1beta2.Document;
+
+ /**
+ * Creates a plain object from a Document message. Also converts values to other types if specified.
+ * @param message Document
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1beta2.Document, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Document to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Document
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace Document {
+
+ /** Properties of a ShardInfo. */
+ interface IShardInfo {
+
+ /** ShardInfo shardIndex */
+ shardIndex?: (number|Long|string|null);
+
+ /** ShardInfo shardCount */
+ shardCount?: (number|Long|string|null);
+
+ /** ShardInfo textOffset */
+ textOffset?: (number|Long|string|null);
+ }
+
+ /** Represents a ShardInfo. */
+ class ShardInfo implements IShardInfo {
+
+ /**
+ * Constructs a new ShardInfo.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta2.Document.IShardInfo);
+
+ /** ShardInfo shardIndex. */
+ public shardIndex: (number|Long|string);
+
+ /** ShardInfo shardCount. */
+ public shardCount: (number|Long|string);
+
+ /** ShardInfo textOffset. */
+ public textOffset: (number|Long|string);
+
+ /**
+ * Creates a new ShardInfo instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ShardInfo instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta2.Document.IShardInfo): google.cloud.documentai.v1beta2.Document.ShardInfo;
+
+ /**
+ * Encodes the specified ShardInfo message. Does not implicitly {@link google.cloud.documentai.v1beta2.Document.ShardInfo.verify|verify} messages.
+ * @param message ShardInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1beta2.Document.IShardInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ShardInfo message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta2.Document.ShardInfo.verify|verify} messages.
+ * @param message ShardInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1beta2.Document.IShardInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ShardInfo message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ShardInfo
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1beta2.Document.ShardInfo;
+
+ /**
+ * Decodes a ShardInfo message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ShardInfo
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1beta2.Document.ShardInfo;
+
+ /**
+ * Verifies a ShardInfo message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ShardInfo message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ShardInfo
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1beta2.Document.ShardInfo;
+
+ /**
+ * Creates a plain object from a ShardInfo message. Also converts values to other types if specified.
+ * @param message ShardInfo
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1beta2.Document.ShardInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ShardInfo to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ShardInfo
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Label. */
+ interface ILabel {
+
+ /** Label automlModel */
+ automlModel?: (string|null);
+
+ /** Label name */
+ name?: (string|null);
+
+ /** Label confidence */
+ confidence?: (number|null);
+ }
+
+ /** Represents a Label. */
+ class Label implements ILabel {
+
+ /**
+ * Constructs a new Label.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta2.Document.ILabel);
+
+ /** Label automlModel. */
+ public automlModel?: (string|null);
+
+ /** Label name. */
+ public name: string;
+
+ /** Label confidence. */
+ public confidence: number;
+
+ /** Label source. */
+ public source?: "automlModel";
+
+ /**
+ * Creates a new Label instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Label instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta2.Document.ILabel): google.cloud.documentai.v1beta2.Document.Label;
+
+ /**
+ * Encodes the specified Label message. Does not implicitly {@link google.cloud.documentai.v1beta2.Document.Label.verify|verify} messages.
+ * @param message Label message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1beta2.Document.ILabel, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Label message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta2.Document.Label.verify|verify} messages.
+ * @param message Label message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1beta2.Document.ILabel, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Label message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Label
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1beta2.Document.Label;
+
+ /**
+ * Decodes a Label message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Label
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1beta2.Document.Label;
+
+ /**
+ * Verifies a Label message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Label message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Label
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1beta2.Document.Label;
+
+ /**
+ * Creates a plain object from a Label message. Also converts values to other types if specified.
+ * @param message Label
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1beta2.Document.Label, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Label to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Label
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Style. */
+ interface IStyle {
+
+ /** Style textAnchor */
+ textAnchor?: (google.cloud.documentai.v1beta2.Document.ITextAnchor|null);
+
+ /** Style color */
+ color?: (google.type.IColor|null);
+
+ /** Style backgroundColor */
+ backgroundColor?: (google.type.IColor|null);
+
+ /** Style fontWeight */
+ fontWeight?: (string|null);
+
+ /** Style textStyle */
+ textStyle?: (string|null);
+
+ /** Style textDecoration */
+ textDecoration?: (string|null);
+
+ /** Style fontSize */
+ fontSize?: (google.cloud.documentai.v1beta2.Document.Style.IFontSize|null);
+ }
+
+ /** Represents a Style. */
+ class Style implements IStyle {
+
+ /**
+ * Constructs a new Style.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta2.Document.IStyle);
+
+ /** Style textAnchor. */
+ public textAnchor?: (google.cloud.documentai.v1beta2.Document.ITextAnchor|null);
+
+ /** Style color. */
+ public color?: (google.type.IColor|null);
+
+ /** Style backgroundColor. */
+ public backgroundColor?: (google.type.IColor|null);
+
+ /** Style fontWeight. */
+ public fontWeight: string;
+
+ /** Style textStyle. */
+ public textStyle: string;
+
+ /** Style textDecoration. */
+ public textDecoration: string;
+
+ /** Style fontSize. */
+ public fontSize?: (google.cloud.documentai.v1beta2.Document.Style.IFontSize|null);
+
+ /**
+ * Creates a new Style instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Style instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta2.Document.IStyle): google.cloud.documentai.v1beta2.Document.Style;
+
+ /**
+ * Encodes the specified Style message. Does not implicitly {@link google.cloud.documentai.v1beta2.Document.Style.verify|verify} messages.
+ * @param message Style message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1beta2.Document.IStyle, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Style message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta2.Document.Style.verify|verify} messages.
+ * @param message Style message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1beta2.Document.IStyle, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Style message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Style
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1beta2.Document.Style;
+
+ /**
+ * Decodes a Style message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Style
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1beta2.Document.Style;
+
+ /**
+ * Verifies a Style message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Style message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Style
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1beta2.Document.Style;
+
+ /**
+ * Creates a plain object from a Style message. Also converts values to other types if specified.
+ * @param message Style
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1beta2.Document.Style, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Style to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Style
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace Style {
+
+ /** Properties of a FontSize. */
+ interface IFontSize {
+
+ /** FontSize size */
+ size?: (number|null);
+
+ /** FontSize unit */
+ unit?: (string|null);
+ }
+
+ /** Represents a FontSize. */
+ class FontSize implements IFontSize {
+
+ /**
+ * Constructs a new FontSize.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta2.Document.Style.IFontSize);
+
+ /** FontSize size. */
+ public size: number;
+
+ /** FontSize unit. */
+ public unit: string;
+
+ /**
+ * Creates a new FontSize instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FontSize instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta2.Document.Style.IFontSize): google.cloud.documentai.v1beta2.Document.Style.FontSize;
+
+ /**
+ * Encodes the specified FontSize message. Does not implicitly {@link google.cloud.documentai.v1beta2.Document.Style.FontSize.verify|verify} messages.
+ * @param message FontSize message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1beta2.Document.Style.IFontSize, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FontSize message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta2.Document.Style.FontSize.verify|verify} messages.
+ * @param message FontSize message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1beta2.Document.Style.IFontSize, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FontSize message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FontSize
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1beta2.Document.Style.FontSize;
+
+ /**
+ * Decodes a FontSize message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FontSize
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1beta2.Document.Style.FontSize;
+
+ /**
+ * Verifies a FontSize message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FontSize message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FontSize
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1beta2.Document.Style.FontSize;
+
+ /**
+ * Creates a plain object from a FontSize message. Also converts values to other types if specified.
+ * @param message FontSize
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1beta2.Document.Style.FontSize, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FontSize to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FontSize
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of a Page. */
+ interface IPage {
+
+ /** Page pageNumber */
+ pageNumber?: (number|null);
+
+ /** Page dimension */
+ dimension?: (google.cloud.documentai.v1beta2.Document.Page.IDimension|null);
+
+ /** Page layout */
+ layout?: (google.cloud.documentai.v1beta2.Document.Page.ILayout|null);
+
+ /** Page detectedLanguages */
+ detectedLanguages?: (google.cloud.documentai.v1beta2.Document.Page.IDetectedLanguage[]|null);
+
+ /** Page blocks */
+ blocks?: (google.cloud.documentai.v1beta2.Document.Page.IBlock[]|null);
+
+ /** Page paragraphs */
+ paragraphs?: (google.cloud.documentai.v1beta2.Document.Page.IParagraph[]|null);
+
+ /** Page lines */
+ lines?: (google.cloud.documentai.v1beta2.Document.Page.ILine[]|null);
+
+ /** Page tokens */
+ tokens?: (google.cloud.documentai.v1beta2.Document.Page.IToken[]|null);
+
+ /** Page visualElements */
+ visualElements?: (google.cloud.documentai.v1beta2.Document.Page.IVisualElement[]|null);
+
+ /** Page tables */
+ tables?: (google.cloud.documentai.v1beta2.Document.Page.ITable[]|null);
+
+ /** Page formFields */
+ formFields?: (google.cloud.documentai.v1beta2.Document.Page.IFormField[]|null);
+ }
+
+ /** Represents a Page. */
+ class Page implements IPage {
+
+ /**
+ * Constructs a new Page.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta2.Document.IPage);
+
+ /** Page pageNumber. */
+ public pageNumber: number;
+
+ /** Page dimension. */
+ public dimension?: (google.cloud.documentai.v1beta2.Document.Page.IDimension|null);
+
+ /** Page layout. */
+ public layout?: (google.cloud.documentai.v1beta2.Document.Page.ILayout|null);
+
+ /** Page detectedLanguages. */
+ public detectedLanguages: google.cloud.documentai.v1beta2.Document.Page.IDetectedLanguage[];
+
+ /** Page blocks. */
+ public blocks: google.cloud.documentai.v1beta2.Document.Page.IBlock[];
+
+ /** Page paragraphs. */
+ public paragraphs: google.cloud.documentai.v1beta2.Document.Page.IParagraph[];
+
+ /** Page lines. */
+ public lines: google.cloud.documentai.v1beta2.Document.Page.ILine[];
+
+ /** Page tokens. */
+ public tokens: google.cloud.documentai.v1beta2.Document.Page.IToken[];
+
+ /** Page visualElements. */
+ public visualElements: google.cloud.documentai.v1beta2.Document.Page.IVisualElement[];
+
+ /** Page tables. */
+ public tables: google.cloud.documentai.v1beta2.Document.Page.ITable[];
+
+ /** Page formFields. */
+ public formFields: google.cloud.documentai.v1beta2.Document.Page.IFormField[];
+
+ /**
+ * Creates a new Page instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Page instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta2.Document.IPage): google.cloud.documentai.v1beta2.Document.Page;
+
+ /**
+ * Encodes the specified Page message. Does not implicitly {@link google.cloud.documentai.v1beta2.Document.Page.verify|verify} messages.
+ * @param message Page message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1beta2.Document.IPage, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Page message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta2.Document.Page.verify|verify} messages.
+ * @param message Page message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1beta2.Document.IPage, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Page message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Page
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1beta2.Document.Page;
+
+ /**
+ * Decodes a Page message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Page
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1beta2.Document.Page;
+
+ /**
+ * Verifies a Page message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Page message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Page
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1beta2.Document.Page;
+
+ /**
+ * Creates a plain object from a Page message. Also converts values to other types if specified.
+ * @param message Page
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1beta2.Document.Page, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Page to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Page
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace Page {
+
+ /** Properties of a Dimension. */
+ interface IDimension {
+
+ /** Dimension width */
+ width?: (number|null);
+
+ /** Dimension height */
+ height?: (number|null);
+
+ /** Dimension unit */
+ unit?: (string|null);
+ }
+
+ /** Represents a Dimension. */
+ class Dimension implements IDimension {
+
+ /**
+ * Constructs a new Dimension.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta2.Document.Page.IDimension);
+
+ /** Dimension width. */
+ public width: number;
+
+ /** Dimension height. */
+ public height: number;
+
+ /** Dimension unit. */
+ public unit: string;
+
+ /**
+ * Creates a new Dimension instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Dimension instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta2.Document.Page.IDimension): google.cloud.documentai.v1beta2.Document.Page.Dimension;
+
+ /**
+ * Encodes the specified Dimension message. Does not implicitly {@link google.cloud.documentai.v1beta2.Document.Page.Dimension.verify|verify} messages.
+ * @param message Dimension message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1beta2.Document.Page.IDimension, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Dimension message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta2.Document.Page.Dimension.verify|verify} messages.
+ * @param message Dimension message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1beta2.Document.Page.IDimension, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Dimension message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Dimension
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1beta2.Document.Page.Dimension;
+
+ /**
+ * Decodes a Dimension message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Dimension
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1beta2.Document.Page.Dimension;
+
+ /**
+ * Verifies a Dimension message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Dimension message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Dimension
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1beta2.Document.Page.Dimension;
+
+ /**
+ * Creates a plain object from a Dimension message. Also converts values to other types if specified.
+ * @param message Dimension
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1beta2.Document.Page.Dimension, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Dimension to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Dimension
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Layout. */
+ interface ILayout {
+
+ /** Layout textAnchor */
+ textAnchor?: (google.cloud.documentai.v1beta2.Document.ITextAnchor|null);
+
+ /** Layout confidence */
+ confidence?: (number|null);
+
+ /** Layout boundingPoly */
+ boundingPoly?: (google.cloud.documentai.v1beta2.IBoundingPoly|null);
+
+ /** Layout orientation */
+ orientation?: (google.cloud.documentai.v1beta2.Document.Page.Layout.Orientation|keyof typeof google.cloud.documentai.v1beta2.Document.Page.Layout.Orientation|null);
+
+ /** Layout id */
+ id?: (string|null);
+ }
+
+ /** Represents a Layout. */
+ class Layout implements ILayout {
+
+ /**
+ * Constructs a new Layout.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta2.Document.Page.ILayout);
+
+ /** Layout textAnchor. */
+ public textAnchor?: (google.cloud.documentai.v1beta2.Document.ITextAnchor|null);
+
+ /** Layout confidence. */
+ public confidence: number;
+
+ /** Layout boundingPoly. */
+ public boundingPoly?: (google.cloud.documentai.v1beta2.IBoundingPoly|null);
+
+ /** Layout orientation. */
+ public orientation: (google.cloud.documentai.v1beta2.Document.Page.Layout.Orientation|keyof typeof google.cloud.documentai.v1beta2.Document.Page.Layout.Orientation);
+
+ /** Layout id. */
+ public id: string;
+
+ /**
+ * Creates a new Layout instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Layout instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta2.Document.Page.ILayout): google.cloud.documentai.v1beta2.Document.Page.Layout;
+
+ /**
+ * Encodes the specified Layout message. Does not implicitly {@link google.cloud.documentai.v1beta2.Document.Page.Layout.verify|verify} messages.
+ * @param message Layout message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1beta2.Document.Page.ILayout, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Layout message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta2.Document.Page.Layout.verify|verify} messages.
+ * @param message Layout message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1beta2.Document.Page.ILayout, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Layout message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Layout
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1beta2.Document.Page.Layout;
+
+ /**
+ * Decodes a Layout message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Layout
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1beta2.Document.Page.Layout;
+
+ /**
+ * Verifies a Layout message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Layout message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Layout
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1beta2.Document.Page.Layout;
+
+ /**
+ * Creates a plain object from a Layout message. Also converts values to other types if specified.
+ * @param message Layout
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1beta2.Document.Page.Layout, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Layout to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Layout
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace Layout {
+
+ /** Orientation enum. */
+ enum Orientation {
+ ORIENTATION_UNSPECIFIED = 0,
+ PAGE_UP = 1,
+ PAGE_RIGHT = 2,
+ PAGE_DOWN = 3,
+ PAGE_LEFT = 4
+ }
+ }
+
+ /** Properties of a Block. */
+ interface IBlock {
+
+ /** Block layout */
+ layout?: (google.cloud.documentai.v1beta2.Document.Page.ILayout|null);
+
+ /** Block detectedLanguages */
+ detectedLanguages?: (google.cloud.documentai.v1beta2.Document.Page.IDetectedLanguage[]|null);
+ }
+
+ /** Represents a Block. */
+ class Block implements IBlock {
+
+ /**
+ * Constructs a new Block.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta2.Document.Page.IBlock);
+
+ /** Block layout. */
+ public layout?: (google.cloud.documentai.v1beta2.Document.Page.ILayout|null);
+
+ /** Block detectedLanguages. */
+ public detectedLanguages: google.cloud.documentai.v1beta2.Document.Page.IDetectedLanguage[];
+
+ /**
+ * Creates a new Block instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Block instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta2.Document.Page.IBlock): google.cloud.documentai.v1beta2.Document.Page.Block;
+
+ /**
+ * Encodes the specified Block message. Does not implicitly {@link google.cloud.documentai.v1beta2.Document.Page.Block.verify|verify} messages.
+ * @param message Block message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1beta2.Document.Page.IBlock, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Block message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta2.Document.Page.Block.verify|verify} messages.
+ * @param message Block message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1beta2.Document.Page.IBlock, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Block message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Block
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1beta2.Document.Page.Block;
+
+ /**
+ * Decodes a Block message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Block
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1beta2.Document.Page.Block;
+
+ /**
+ * Verifies a Block message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Block message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Block
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1beta2.Document.Page.Block;
+
+ /**
+ * Creates a plain object from a Block message. Also converts values to other types if specified.
+ * @param message Block
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1beta2.Document.Page.Block, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Block to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Block
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Paragraph. */
+ interface IParagraph {
+
+ /** Paragraph layout */
+ layout?: (google.cloud.documentai.v1beta2.Document.Page.ILayout|null);
+
+ /** Paragraph detectedLanguages */
+ detectedLanguages?: (google.cloud.documentai.v1beta2.Document.Page.IDetectedLanguage[]|null);
+ }
+
+ /** Represents a Paragraph. */
+ class Paragraph implements IParagraph {
+
+ /**
+ * Constructs a new Paragraph.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta2.Document.Page.IParagraph);
+
+ /** Paragraph layout. */
+ public layout?: (google.cloud.documentai.v1beta2.Document.Page.ILayout|null);
+
+ /** Paragraph detectedLanguages. */
+ public detectedLanguages: google.cloud.documentai.v1beta2.Document.Page.IDetectedLanguage[];
+
+ /**
+ * Creates a new Paragraph instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Paragraph instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta2.Document.Page.IParagraph): google.cloud.documentai.v1beta2.Document.Page.Paragraph;
+
+ /**
+ * Encodes the specified Paragraph message. Does not implicitly {@link google.cloud.documentai.v1beta2.Document.Page.Paragraph.verify|verify} messages.
+ * @param message Paragraph message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1beta2.Document.Page.IParagraph, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Paragraph message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta2.Document.Page.Paragraph.verify|verify} messages.
+ * @param message Paragraph message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1beta2.Document.Page.IParagraph, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Paragraph message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Paragraph
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1beta2.Document.Page.Paragraph;
+
+ /**
+ * Decodes a Paragraph message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Paragraph
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1beta2.Document.Page.Paragraph;
+
+ /**
+ * Verifies a Paragraph message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Paragraph message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Paragraph
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1beta2.Document.Page.Paragraph;
+
+ /**
+ * Creates a plain object from a Paragraph message. Also converts values to other types if specified.
+ * @param message Paragraph
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1beta2.Document.Page.Paragraph, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Paragraph to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Paragraph
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Line. */
+ interface ILine {
+
+ /** Line layout */
+ layout?: (google.cloud.documentai.v1beta2.Document.Page.ILayout|null);
+
+ /** Line detectedLanguages */
+ detectedLanguages?: (google.cloud.documentai.v1beta2.Document.Page.IDetectedLanguage[]|null);
+ }
+
+ /** Represents a Line. */
+ class Line implements ILine {
+
+ /**
+ * Constructs a new Line.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta2.Document.Page.ILine);
+
+ /** Line layout. */
+ public layout?: (google.cloud.documentai.v1beta2.Document.Page.ILayout|null);
+
+ /** Line detectedLanguages. */
+ public detectedLanguages: google.cloud.documentai.v1beta2.Document.Page.IDetectedLanguage[];
+
+ /**
+ * Creates a new Line instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Line instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta2.Document.Page.ILine): google.cloud.documentai.v1beta2.Document.Page.Line;
+
+ /**
+ * Encodes the specified Line message. Does not implicitly {@link google.cloud.documentai.v1beta2.Document.Page.Line.verify|verify} messages.
+ * @param message Line message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1beta2.Document.Page.ILine, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Line message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta2.Document.Page.Line.verify|verify} messages.
+ * @param message Line message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1beta2.Document.Page.ILine, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Line message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Line
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1beta2.Document.Page.Line;
+
+ /**
+ * Decodes a Line message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Line
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1beta2.Document.Page.Line;
+
+ /**
+ * Verifies a Line message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Line message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Line
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1beta2.Document.Page.Line;
+
+ /**
+ * Creates a plain object from a Line message. Also converts values to other types if specified.
+ * @param message Line
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1beta2.Document.Page.Line, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Line to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Line
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Token. */
+ interface IToken {
+
+ /** Token layout */
+ layout?: (google.cloud.documentai.v1beta2.Document.Page.ILayout|null);
+
+ /** Token detectedBreak */
+ detectedBreak?: (google.cloud.documentai.v1beta2.Document.Page.Token.IDetectedBreak|null);
+
+ /** Token detectedLanguages */
+ detectedLanguages?: (google.cloud.documentai.v1beta2.Document.Page.IDetectedLanguage[]|null);
+ }
+
+ /** Represents a Token. */
+ class Token implements IToken {
+
+ /**
+ * Constructs a new Token.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta2.Document.Page.IToken);
+
+ /** Token layout. */
+ public layout?: (google.cloud.documentai.v1beta2.Document.Page.ILayout|null);
+
+ /** Token detectedBreak. */
+ public detectedBreak?: (google.cloud.documentai.v1beta2.Document.Page.Token.IDetectedBreak|null);
+
+ /** Token detectedLanguages. */
+ public detectedLanguages: google.cloud.documentai.v1beta2.Document.Page.IDetectedLanguage[];
+
+ /**
+ * Creates a new Token instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Token instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta2.Document.Page.IToken): google.cloud.documentai.v1beta2.Document.Page.Token;
+
+ /**
+ * Encodes the specified Token message. Does not implicitly {@link google.cloud.documentai.v1beta2.Document.Page.Token.verify|verify} messages.
+ * @param message Token message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1beta2.Document.Page.IToken, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Token message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta2.Document.Page.Token.verify|verify} messages.
+ * @param message Token message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1beta2.Document.Page.IToken, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Token message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Token
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1beta2.Document.Page.Token;
+
+ /**
+ * Decodes a Token message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Token
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1beta2.Document.Page.Token;
+
+ /**
+ * Verifies a Token message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Token message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Token
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1beta2.Document.Page.Token;
+
+ /**
+ * Creates a plain object from a Token message. Also converts values to other types if specified.
+ * @param message Token
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1beta2.Document.Page.Token, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Token to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Token
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace Token {
+
+ /** Properties of a DetectedBreak. */
+ interface IDetectedBreak {
+
+ /** DetectedBreak type */
+ type?: (google.cloud.documentai.v1beta2.Document.Page.Token.DetectedBreak.Type|keyof typeof google.cloud.documentai.v1beta2.Document.Page.Token.DetectedBreak.Type|null);
+ }
+
+ /** Represents a DetectedBreak. */
+ class DetectedBreak implements IDetectedBreak {
+
+ /**
+ * Constructs a new DetectedBreak.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta2.Document.Page.Token.IDetectedBreak);
+
+ /** DetectedBreak type. */
+ public type: (google.cloud.documentai.v1beta2.Document.Page.Token.DetectedBreak.Type|keyof typeof google.cloud.documentai.v1beta2.Document.Page.Token.DetectedBreak.Type);
+
+ /**
+ * Creates a new DetectedBreak instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DetectedBreak instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta2.Document.Page.Token.IDetectedBreak): google.cloud.documentai.v1beta2.Document.Page.Token.DetectedBreak;
+
+ /**
+ * Encodes the specified DetectedBreak message. Does not implicitly {@link google.cloud.documentai.v1beta2.Document.Page.Token.DetectedBreak.verify|verify} messages.
+ * @param message DetectedBreak message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1beta2.Document.Page.Token.IDetectedBreak, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DetectedBreak message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta2.Document.Page.Token.DetectedBreak.verify|verify} messages.
+ * @param message DetectedBreak message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1beta2.Document.Page.Token.IDetectedBreak, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DetectedBreak message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DetectedBreak
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1beta2.Document.Page.Token.DetectedBreak;
+
+ /**
+ * Decodes a DetectedBreak message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DetectedBreak
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1beta2.Document.Page.Token.DetectedBreak;
+
+ /**
+ * Verifies a DetectedBreak message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DetectedBreak message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DetectedBreak
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1beta2.Document.Page.Token.DetectedBreak;
+
+ /**
+ * Creates a plain object from a DetectedBreak message. Also converts values to other types if specified.
+ * @param message DetectedBreak
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1beta2.Document.Page.Token.DetectedBreak, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DetectedBreak to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DetectedBreak
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace DetectedBreak {
+
+ /** Type enum. */
+ enum Type {
+ TYPE_UNSPECIFIED = 0,
+ SPACE = 1,
+ WIDE_SPACE = 2,
+ HYPHEN = 3
+ }
+ }
+ }
+
+ /** Properties of a VisualElement. */
+ interface IVisualElement {
+
+ /** VisualElement layout */
+ layout?: (google.cloud.documentai.v1beta2.Document.Page.ILayout|null);
+
+ /** VisualElement type */
+ type?: (string|null);
+
+ /** VisualElement detectedLanguages */
+ detectedLanguages?: (google.cloud.documentai.v1beta2.Document.Page.IDetectedLanguage[]|null);
+ }
+
+ /** Represents a VisualElement. */
+ class VisualElement implements IVisualElement {
+
+ /**
+ * Constructs a new VisualElement.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta2.Document.Page.IVisualElement);
+
+ /** VisualElement layout. */
+ public layout?: (google.cloud.documentai.v1beta2.Document.Page.ILayout|null);
+
+ /** VisualElement type. */
+ public type: string;
+
+ /** VisualElement detectedLanguages. */
+ public detectedLanguages: google.cloud.documentai.v1beta2.Document.Page.IDetectedLanguage[];
+
+ /**
+ * Creates a new VisualElement instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns VisualElement instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta2.Document.Page.IVisualElement): google.cloud.documentai.v1beta2.Document.Page.VisualElement;
+
+ /**
+ * Encodes the specified VisualElement message. Does not implicitly {@link google.cloud.documentai.v1beta2.Document.Page.VisualElement.verify|verify} messages.
+ * @param message VisualElement message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1beta2.Document.Page.IVisualElement, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified VisualElement message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta2.Document.Page.VisualElement.verify|verify} messages.
+ * @param message VisualElement message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1beta2.Document.Page.IVisualElement, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a VisualElement message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns VisualElement
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1beta2.Document.Page.VisualElement;
+
+ /**
+ * Decodes a VisualElement message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns VisualElement
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1beta2.Document.Page.VisualElement;
+
+ /**
+ * Verifies a VisualElement message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a VisualElement message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns VisualElement
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1beta2.Document.Page.VisualElement;
+
+ /**
+ * Creates a plain object from a VisualElement message. Also converts values to other types if specified.
+ * @param message VisualElement
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1beta2.Document.Page.VisualElement, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this VisualElement to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for VisualElement
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Table. */
+ interface ITable {
+
+ /** Table layout */
+ layout?: (google.cloud.documentai.v1beta2.Document.Page.ILayout|null);
+
+ /** Table headerRows */
+ headerRows?: (google.cloud.documentai.v1beta2.Document.Page.Table.ITableRow[]|null);
+
+ /** Table bodyRows */
+ bodyRows?: (google.cloud.documentai.v1beta2.Document.Page.Table.ITableRow[]|null);
+
+ /** Table detectedLanguages */
+ detectedLanguages?: (google.cloud.documentai.v1beta2.Document.Page.IDetectedLanguage[]|null);
+ }
+
+ /** Represents a Table. */
+ class Table implements ITable {
+
+ /**
+ * Constructs a new Table.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta2.Document.Page.ITable);
+
+ /** Table layout. */
+ public layout?: (google.cloud.documentai.v1beta2.Document.Page.ILayout|null);
+
+ /** Table headerRows. */
+ public headerRows: google.cloud.documentai.v1beta2.Document.Page.Table.ITableRow[];
+
+ /** Table bodyRows. */
+ public bodyRows: google.cloud.documentai.v1beta2.Document.Page.Table.ITableRow[];
+
+ /** Table detectedLanguages. */
+ public detectedLanguages: google.cloud.documentai.v1beta2.Document.Page.IDetectedLanguage[];
+
+ /**
+ * Creates a new Table instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Table instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta2.Document.Page.ITable): google.cloud.documentai.v1beta2.Document.Page.Table;
+
+ /**
+ * Encodes the specified Table message. Does not implicitly {@link google.cloud.documentai.v1beta2.Document.Page.Table.verify|verify} messages.
+ * @param message Table message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1beta2.Document.Page.ITable, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Table message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta2.Document.Page.Table.verify|verify} messages.
+ * @param message Table message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1beta2.Document.Page.ITable, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Table message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Table
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1beta2.Document.Page.Table;
+
+ /**
+ * Decodes a Table message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Table
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1beta2.Document.Page.Table;
+
+ /**
+ * Verifies a Table message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Table message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Table
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1beta2.Document.Page.Table;
+
+ /**
+ * Creates a plain object from a Table message. Also converts values to other types if specified.
+ * @param message Table
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1beta2.Document.Page.Table, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Table to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Table
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace Table {
+
+ /** Properties of a TableRow. */
+ interface ITableRow {
+
+ /** TableRow cells */
+ cells?: (google.cloud.documentai.v1beta2.Document.Page.Table.ITableCell[]|null);
+ }
+
+ /** Represents a TableRow. */
+ class TableRow implements ITableRow {
+
+ /**
+ * Constructs a new TableRow.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta2.Document.Page.Table.ITableRow);
+
+ /** TableRow cells. */
+ public cells: google.cloud.documentai.v1beta2.Document.Page.Table.ITableCell[];
+
+ /**
+ * Creates a new TableRow instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns TableRow instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta2.Document.Page.Table.ITableRow): google.cloud.documentai.v1beta2.Document.Page.Table.TableRow;
+
+ /**
+ * Encodes the specified TableRow message. Does not implicitly {@link google.cloud.documentai.v1beta2.Document.Page.Table.TableRow.verify|verify} messages.
+ * @param message TableRow message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1beta2.Document.Page.Table.ITableRow, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified TableRow message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta2.Document.Page.Table.TableRow.verify|verify} messages.
+ * @param message TableRow message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1beta2.Document.Page.Table.ITableRow, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a TableRow message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns TableRow
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1beta2.Document.Page.Table.TableRow;
+
+ /**
+ * Decodes a TableRow message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns TableRow
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1beta2.Document.Page.Table.TableRow;
+
+ /**
+ * Verifies a TableRow message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a TableRow message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns TableRow
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1beta2.Document.Page.Table.TableRow;
+
+ /**
+ * Creates a plain object from a TableRow message. Also converts values to other types if specified.
+ * @param message TableRow
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1beta2.Document.Page.Table.TableRow, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this TableRow to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for TableRow
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a TableCell. */
+ interface ITableCell {
+
+ /** TableCell layout */
+ layout?: (google.cloud.documentai.v1beta2.Document.Page.ILayout|null);
+
+ /** TableCell rowSpan */
+ rowSpan?: (number|null);
+
+ /** TableCell colSpan */
+ colSpan?: (number|null);
+
+ /** TableCell detectedLanguages */
+ detectedLanguages?: (google.cloud.documentai.v1beta2.Document.Page.IDetectedLanguage[]|null);
+ }
+
+ /** Represents a TableCell. */
+ class TableCell implements ITableCell {
+
+ /**
+ * Constructs a new TableCell.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta2.Document.Page.Table.ITableCell);
+
+ /** TableCell layout. */
+ public layout?: (google.cloud.documentai.v1beta2.Document.Page.ILayout|null);
+
+ /** TableCell rowSpan. */
+ public rowSpan: number;
+
+ /** TableCell colSpan. */
+ public colSpan: number;
+
+ /** TableCell detectedLanguages. */
+ public detectedLanguages: google.cloud.documentai.v1beta2.Document.Page.IDetectedLanguage[];
+
+ /**
+ * Creates a new TableCell instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns TableCell instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta2.Document.Page.Table.ITableCell): google.cloud.documentai.v1beta2.Document.Page.Table.TableCell;
+
+ /**
+ * Encodes the specified TableCell message. Does not implicitly {@link google.cloud.documentai.v1beta2.Document.Page.Table.TableCell.verify|verify} messages.
+ * @param message TableCell message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1beta2.Document.Page.Table.ITableCell, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified TableCell message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta2.Document.Page.Table.TableCell.verify|verify} messages.
+ * @param message TableCell message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1beta2.Document.Page.Table.ITableCell, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a TableCell message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns TableCell
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1beta2.Document.Page.Table.TableCell;
+
+ /**
+ * Decodes a TableCell message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns TableCell
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1beta2.Document.Page.Table.TableCell;
+
+ /**
+ * Verifies a TableCell message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a TableCell message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns TableCell
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1beta2.Document.Page.Table.TableCell;
+
+ /**
+ * Creates a plain object from a TableCell message. Also converts values to other types if specified.
+ * @param message TableCell
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1beta2.Document.Page.Table.TableCell, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this TableCell to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for TableCell
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of a FormField. */
+ interface IFormField {
+
+ /** FormField fieldName */
+ fieldName?: (google.cloud.documentai.v1beta2.Document.Page.ILayout|null);
+
+ /** FormField fieldValue */
+ fieldValue?: (google.cloud.documentai.v1beta2.Document.Page.ILayout|null);
+
+ /** FormField nameDetectedLanguages */
+ nameDetectedLanguages?: (google.cloud.documentai.v1beta2.Document.Page.IDetectedLanguage[]|null);
+
+ /** FormField valueDetectedLanguages */
+ valueDetectedLanguages?: (google.cloud.documentai.v1beta2.Document.Page.IDetectedLanguage[]|null);
+
+ /** FormField valueType */
+ valueType?: (string|null);
+
+ /** FormField correctedKeyText */
+ correctedKeyText?: (string|null);
+
+ /** FormField correctedValueText */
+ correctedValueText?: (string|null);
+ }
+
+ /** Represents a FormField. */
+ class FormField implements IFormField {
+
+ /**
+ * Constructs a new FormField.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta2.Document.Page.IFormField);
+
+ /** FormField fieldName. */
+ public fieldName?: (google.cloud.documentai.v1beta2.Document.Page.ILayout|null);
+
+ /** FormField fieldValue. */
+ public fieldValue?: (google.cloud.documentai.v1beta2.Document.Page.ILayout|null);
+
+ /** FormField nameDetectedLanguages. */
+ public nameDetectedLanguages: google.cloud.documentai.v1beta2.Document.Page.IDetectedLanguage[];
+
+ /** FormField valueDetectedLanguages. */
+ public valueDetectedLanguages: google.cloud.documentai.v1beta2.Document.Page.IDetectedLanguage[];
+
+ /** FormField valueType. */
+ public valueType: string;
+
+ /** FormField correctedKeyText. */
+ public correctedKeyText: string;
+
+ /** FormField correctedValueText. */
+ public correctedValueText: string;
+
+ /**
+ * Creates a new FormField instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FormField instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta2.Document.Page.IFormField): google.cloud.documentai.v1beta2.Document.Page.FormField;
+
+ /**
+ * Encodes the specified FormField message. Does not implicitly {@link google.cloud.documentai.v1beta2.Document.Page.FormField.verify|verify} messages.
+ * @param message FormField message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1beta2.Document.Page.IFormField, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FormField message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta2.Document.Page.FormField.verify|verify} messages.
+ * @param message FormField message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1beta2.Document.Page.IFormField, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FormField message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FormField
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1beta2.Document.Page.FormField;
+
+ /**
+ * Decodes a FormField message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FormField
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1beta2.Document.Page.FormField;
+
+ /**
+ * Verifies a FormField message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FormField message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FormField
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1beta2.Document.Page.FormField;
+
+ /**
+ * Creates a plain object from a FormField message. Also converts values to other types if specified.
+ * @param message FormField
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1beta2.Document.Page.FormField, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FormField to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FormField
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DetectedLanguage. */
+ interface IDetectedLanguage {
+
+ /** DetectedLanguage languageCode */
+ languageCode?: (string|null);
+
+ /** DetectedLanguage confidence */
+ confidence?: (number|null);
+ }
+
+ /** Represents a DetectedLanguage. */
+ class DetectedLanguage implements IDetectedLanguage {
+
+ /**
+ * Constructs a new DetectedLanguage.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta2.Document.Page.IDetectedLanguage);
+
+ /** DetectedLanguage languageCode. */
+ public languageCode: string;
+
+ /** DetectedLanguage confidence. */
+ public confidence: number;
+
+ /**
+ * Creates a new DetectedLanguage instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DetectedLanguage instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta2.Document.Page.IDetectedLanguage): google.cloud.documentai.v1beta2.Document.Page.DetectedLanguage;
+
+ /**
+ * Encodes the specified DetectedLanguage message. Does not implicitly {@link google.cloud.documentai.v1beta2.Document.Page.DetectedLanguage.verify|verify} messages.
+ * @param message DetectedLanguage message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1beta2.Document.Page.IDetectedLanguage, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DetectedLanguage message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta2.Document.Page.DetectedLanguage.verify|verify} messages.
+ * @param message DetectedLanguage message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1beta2.Document.Page.IDetectedLanguage, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DetectedLanguage message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DetectedLanguage
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1beta2.Document.Page.DetectedLanguage;
+
+ /**
+ * Decodes a DetectedLanguage message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DetectedLanguage
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1beta2.Document.Page.DetectedLanguage;
+
+ /**
+ * Verifies a DetectedLanguage message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DetectedLanguage message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DetectedLanguage
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1beta2.Document.Page.DetectedLanguage;
+
+ /**
+ * Creates a plain object from a DetectedLanguage message. Also converts values to other types if specified.
+ * @param message DetectedLanguage
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1beta2.Document.Page.DetectedLanguage, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DetectedLanguage to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DetectedLanguage
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of an Entity. */
+ interface IEntity {
+
+ /** Entity textAnchor */
+ textAnchor?: (google.cloud.documentai.v1beta2.Document.ITextAnchor|null);
+
+ /** Entity type */
+ type?: (string|null);
+
+ /** Entity mentionText */
+ mentionText?: (string|null);
+
+ /** Entity mentionId */
+ mentionId?: (string|null);
+
+ /** Entity confidence */
+ confidence?: (number|null);
+
+ /** Entity pageAnchor */
+ pageAnchor?: (google.cloud.documentai.v1beta2.Document.IPageAnchor|null);
+
+ /** Entity id */
+ id?: (string|null);
+ }
+
+ /** Represents an Entity. */
+ class Entity implements IEntity {
+
+ /**
+ * Constructs a new Entity.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta2.Document.IEntity);
+
+ /** Entity textAnchor. */
+ public textAnchor?: (google.cloud.documentai.v1beta2.Document.ITextAnchor|null);
+
+ /** Entity type. */
+ public type: string;
+
+ /** Entity mentionText. */
+ public mentionText: string;
+
+ /** Entity mentionId. */
+ public mentionId: string;
+
+ /** Entity confidence. */
+ public confidence: number;
+
+ /** Entity pageAnchor. */
+ public pageAnchor?: (google.cloud.documentai.v1beta2.Document.IPageAnchor|null);
+
+ /** Entity id. */
+ public id: string;
+
+ /**
+ * Creates a new Entity instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Entity instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta2.Document.IEntity): google.cloud.documentai.v1beta2.Document.Entity;
+
+ /**
+ * Encodes the specified Entity message. Does not implicitly {@link google.cloud.documentai.v1beta2.Document.Entity.verify|verify} messages.
+ * @param message Entity message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1beta2.Document.IEntity, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Entity message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta2.Document.Entity.verify|verify} messages.
+ * @param message Entity message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1beta2.Document.IEntity, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an Entity message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Entity
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1beta2.Document.Entity;
+
+ /**
+ * Decodes an Entity message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Entity
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1beta2.Document.Entity;
+
+ /**
+ * Verifies an Entity message.
+ * @param message Plain 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 Entity message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Entity
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1beta2.Document.Entity;
+
+ /**
+ * Creates a plain object from an Entity message. Also converts values to other types if specified.
+ * @param message Entity
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1beta2.Document.Entity, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Entity to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Entity
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an EntityRelation. */
+ interface IEntityRelation {
+
+ /** EntityRelation subjectId */
+ subjectId?: (string|null);
+
+ /** EntityRelation objectId */
+ objectId?: (string|null);
+
+ /** EntityRelation relation */
+ relation?: (string|null);
+ }
+
+ /** Represents an EntityRelation. */
+ class EntityRelation implements IEntityRelation {
+
+ /**
+ * Constructs a new EntityRelation.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta2.Document.IEntityRelation);
+
+ /** EntityRelation subjectId. */
+ public subjectId: string;
+
+ /** EntityRelation objectId. */
+ public objectId: string;
+
+ /** EntityRelation relation. */
+ public relation: string;
+
+ /**
+ * Creates a new EntityRelation instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns EntityRelation instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta2.Document.IEntityRelation): google.cloud.documentai.v1beta2.Document.EntityRelation;
+
+ /**
+ * Encodes the specified EntityRelation message. Does not implicitly {@link google.cloud.documentai.v1beta2.Document.EntityRelation.verify|verify} messages.
+ * @param message EntityRelation message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1beta2.Document.IEntityRelation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified EntityRelation message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta2.Document.EntityRelation.verify|verify} messages.
+ * @param message EntityRelation message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1beta2.Document.IEntityRelation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an EntityRelation message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns EntityRelation
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1beta2.Document.EntityRelation;
+
+ /**
+ * Decodes an EntityRelation message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns EntityRelation
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1beta2.Document.EntityRelation;
+
+ /**
+ * Verifies an EntityRelation message.
+ * @param message Plain 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 EntityRelation message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns EntityRelation
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1beta2.Document.EntityRelation;
+
+ /**
+ * Creates a plain object from an EntityRelation message. Also converts values to other types if specified.
+ * @param message EntityRelation
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1beta2.Document.EntityRelation, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this EntityRelation to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for EntityRelation
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a TextAnchor. */
+ interface ITextAnchor {
+
+ /** TextAnchor textSegments */
+ textSegments?: (google.cloud.documentai.v1beta2.Document.TextAnchor.ITextSegment[]|null);
+
+ /** TextAnchor content */
+ content?: (string|null);
+ }
+
+ /** Represents a TextAnchor. */
+ class TextAnchor implements ITextAnchor {
+
+ /**
+ * Constructs a new TextAnchor.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta2.Document.ITextAnchor);
+
+ /** TextAnchor textSegments. */
+ public textSegments: google.cloud.documentai.v1beta2.Document.TextAnchor.ITextSegment[];
+
+ /** TextAnchor content. */
+ public content: string;
+
+ /**
+ * Creates a new TextAnchor instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns TextAnchor instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta2.Document.ITextAnchor): google.cloud.documentai.v1beta2.Document.TextAnchor;
+
+ /**
+ * Encodes the specified TextAnchor message. Does not implicitly {@link google.cloud.documentai.v1beta2.Document.TextAnchor.verify|verify} messages.
+ * @param message TextAnchor message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1beta2.Document.ITextAnchor, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified TextAnchor message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta2.Document.TextAnchor.verify|verify} messages.
+ * @param message TextAnchor message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1beta2.Document.ITextAnchor, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a TextAnchor message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns TextAnchor
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1beta2.Document.TextAnchor;
+
+ /**
+ * Decodes a TextAnchor message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns TextAnchor
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1beta2.Document.TextAnchor;
+
+ /**
+ * Verifies a TextAnchor message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a TextAnchor message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns TextAnchor
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1beta2.Document.TextAnchor;
+
+ /**
+ * Creates a plain object from a TextAnchor message. Also converts values to other types if specified.
+ * @param message TextAnchor
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1beta2.Document.TextAnchor, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this TextAnchor to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for TextAnchor
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace TextAnchor {
+
+ /** Properties of a TextSegment. */
+ interface ITextSegment {
+
+ /** TextSegment startIndex */
+ startIndex?: (number|Long|string|null);
+
+ /** TextSegment endIndex */
+ endIndex?: (number|Long|string|null);
+ }
+
+ /** Represents a TextSegment. */
+ class TextSegment implements ITextSegment {
+
+ /**
+ * Constructs a new TextSegment.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta2.Document.TextAnchor.ITextSegment);
+
+ /** TextSegment startIndex. */
+ public startIndex: (number|Long|string);
+
+ /** TextSegment endIndex. */
+ public endIndex: (number|Long|string);
+
+ /**
+ * Creates a new TextSegment instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns TextSegment instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta2.Document.TextAnchor.ITextSegment): google.cloud.documentai.v1beta2.Document.TextAnchor.TextSegment;
+
+ /**
+ * Encodes the specified TextSegment message. Does not implicitly {@link google.cloud.documentai.v1beta2.Document.TextAnchor.TextSegment.verify|verify} messages.
+ * @param message TextSegment message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1beta2.Document.TextAnchor.ITextSegment, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified TextSegment message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta2.Document.TextAnchor.TextSegment.verify|verify} messages.
+ * @param message TextSegment message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1beta2.Document.TextAnchor.ITextSegment, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a TextSegment message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns TextSegment
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1beta2.Document.TextAnchor.TextSegment;
+
+ /**
+ * Decodes a TextSegment message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns TextSegment
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1beta2.Document.TextAnchor.TextSegment;
+
+ /**
+ * Verifies a TextSegment message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a TextSegment message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns TextSegment
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1beta2.Document.TextAnchor.TextSegment;
+
+ /**
+ * Creates a plain object from a TextSegment message. Also converts values to other types if specified.
+ * @param message TextSegment
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1beta2.Document.TextAnchor.TextSegment, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this TextSegment to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for TextSegment
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of a PageAnchor. */
+ interface IPageAnchor {
+
+ /** PageAnchor pageRefs */
+ pageRefs?: (google.cloud.documentai.v1beta2.Document.PageAnchor.IPageRef[]|null);
+ }
+
+ /** Represents a PageAnchor. */
+ class PageAnchor implements IPageAnchor {
+
+ /**
+ * Constructs a new PageAnchor.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta2.Document.IPageAnchor);
+
+ /** PageAnchor pageRefs. */
+ public pageRefs: google.cloud.documentai.v1beta2.Document.PageAnchor.IPageRef[];
+
+ /**
+ * Creates a new PageAnchor instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns PageAnchor instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta2.Document.IPageAnchor): google.cloud.documentai.v1beta2.Document.PageAnchor;
+
+ /**
+ * Encodes the specified PageAnchor message. Does not implicitly {@link google.cloud.documentai.v1beta2.Document.PageAnchor.verify|verify} messages.
+ * @param message PageAnchor message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1beta2.Document.IPageAnchor, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified PageAnchor message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta2.Document.PageAnchor.verify|verify} messages.
+ * @param message PageAnchor message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1beta2.Document.IPageAnchor, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a PageAnchor message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns PageAnchor
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1beta2.Document.PageAnchor;
+
+ /**
+ * Decodes a PageAnchor message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns PageAnchor
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1beta2.Document.PageAnchor;
+
+ /**
+ * Verifies a PageAnchor message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a PageAnchor message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns PageAnchor
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1beta2.Document.PageAnchor;
+
+ /**
+ * Creates a plain object from a PageAnchor message. Also converts values to other types if specified.
+ * @param message PageAnchor
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1beta2.Document.PageAnchor, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this PageAnchor to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for PageAnchor
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace PageAnchor {
+
+ /** Properties of a PageRef. */
+ interface IPageRef {
+
+ /** PageRef page */
+ page?: (number|Long|string|null);
+
+ /** PageRef layoutType */
+ layoutType?: (google.cloud.documentai.v1beta2.Document.PageAnchor.PageRef.LayoutType|keyof typeof google.cloud.documentai.v1beta2.Document.PageAnchor.PageRef.LayoutType|null);
+
+ /** PageRef layoutId */
+ layoutId?: (string|null);
+ }
+
+ /** Represents a PageRef. */
+ class PageRef implements IPageRef {
+
+ /**
+ * Constructs a new PageRef.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta2.Document.PageAnchor.IPageRef);
+
+ /** PageRef page. */
+ public page: (number|Long|string);
+
+ /** PageRef layoutType. */
+ public layoutType: (google.cloud.documentai.v1beta2.Document.PageAnchor.PageRef.LayoutType|keyof typeof google.cloud.documentai.v1beta2.Document.PageAnchor.PageRef.LayoutType);
+
+ /** PageRef layoutId. */
+ public layoutId: string;
+
+ /**
+ * Creates a new PageRef instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns PageRef instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta2.Document.PageAnchor.IPageRef): google.cloud.documentai.v1beta2.Document.PageAnchor.PageRef;
+
+ /**
+ * Encodes the specified PageRef message. Does not implicitly {@link google.cloud.documentai.v1beta2.Document.PageAnchor.PageRef.verify|verify} messages.
+ * @param message PageRef message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1beta2.Document.PageAnchor.IPageRef, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified PageRef message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta2.Document.PageAnchor.PageRef.verify|verify} messages.
+ * @param message PageRef message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1beta2.Document.PageAnchor.IPageRef, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a PageRef message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns PageRef
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1beta2.Document.PageAnchor.PageRef;
+
+ /**
+ * Decodes a PageRef message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns PageRef
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1beta2.Document.PageAnchor.PageRef;
+
+ /**
+ * Verifies a PageRef message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a PageRef message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns PageRef
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1beta2.Document.PageAnchor.PageRef;
+
+ /**
+ * Creates a plain object from a PageRef message. Also converts values to other types if specified.
+ * @param message PageRef
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1beta2.Document.PageAnchor.PageRef, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this PageRef to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for PageRef
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace PageRef {
+
+ /** LayoutType enum. */
+ enum LayoutType {
+ LAYOUT_TYPE_UNSPECIFIED = 0,
+ BLOCK = 1,
+ PARAGRAPH = 2,
+ LINE = 3,
+ TOKEN = 4,
+ VISUAL_ELEMENT = 5,
+ TABLE = 6,
+ FORM_FIELD = 7
+ }
+ }
+ }
+ }
+
+ /** 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.documentai.v1beta2.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.documentai.v1beta2.IVertex): google.cloud.documentai.v1beta2.Vertex;
+
+ /**
+ * Encodes the specified Vertex message. Does not implicitly {@link google.cloud.documentai.v1beta2.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.documentai.v1beta2.IVertex, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Vertex message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta2.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.documentai.v1beta2.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.documentai.v1beta2.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.documentai.v1beta2.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.documentai.v1beta2.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.documentai.v1beta2.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.documentai.v1beta2.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.documentai.v1beta2.INormalizedVertex): google.cloud.documentai.v1beta2.NormalizedVertex;
+
+ /**
+ * Encodes the specified NormalizedVertex message. Does not implicitly {@link google.cloud.documentai.v1beta2.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.documentai.v1beta2.INormalizedVertex, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified NormalizedVertex message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta2.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.documentai.v1beta2.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.documentai.v1beta2.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.documentai.v1beta2.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.documentai.v1beta2.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.documentai.v1beta2.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.documentai.v1beta2.IVertex[]|null);
+
+ /** BoundingPoly normalizedVertices */
+ normalizedVertices?: (google.cloud.documentai.v1beta2.INormalizedVertex[]|null);
+ }
+
+ /** Represents a BoundingPoly. */
+ class BoundingPoly implements IBoundingPoly {
+
+ /**
+ * Constructs a new BoundingPoly.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta2.IBoundingPoly);
+
+ /** BoundingPoly vertices. */
+ public vertices: google.cloud.documentai.v1beta2.IVertex[];
+
+ /** BoundingPoly normalizedVertices. */
+ public normalizedVertices: google.cloud.documentai.v1beta2.INormalizedVertex[];
+
+ /**
+ * Creates a new BoundingPoly instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns BoundingPoly instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta2.IBoundingPoly): google.cloud.documentai.v1beta2.BoundingPoly;
+
+ /**
+ * Encodes the specified BoundingPoly message. Does not implicitly {@link google.cloud.documentai.v1beta2.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.documentai.v1beta2.IBoundingPoly, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified BoundingPoly message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta2.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.documentai.v1beta2.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.documentai.v1beta2.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.documentai.v1beta2.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.documentai.v1beta2.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.documentai.v1beta2.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;
+ }
+
+ /** Represents a DocumentUnderstandingService */
+ class DocumentUnderstandingService extends $protobuf.rpc.Service {
+
+ /**
+ * Constructs a new DocumentUnderstandingService 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 DocumentUnderstandingService 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): DocumentUnderstandingService;
+
+ /**
+ * Calls BatchProcessDocuments.
+ * @param request BatchProcessDocumentsRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public batchProcessDocuments(request: google.cloud.documentai.v1beta2.IBatchProcessDocumentsRequest, callback: google.cloud.documentai.v1beta2.DocumentUnderstandingService.BatchProcessDocumentsCallback): void;
+
+ /**
+ * Calls BatchProcessDocuments.
+ * @param request BatchProcessDocumentsRequest message or plain object
+ * @returns Promise
+ */
+ public batchProcessDocuments(request: google.cloud.documentai.v1beta2.IBatchProcessDocumentsRequest): Promise;
+
+ /**
+ * Calls ProcessDocument.
+ * @param request ProcessDocumentRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Document
+ */
+ public processDocument(request: google.cloud.documentai.v1beta2.IProcessDocumentRequest, callback: google.cloud.documentai.v1beta2.DocumentUnderstandingService.ProcessDocumentCallback): void;
+
+ /**
+ * Calls ProcessDocument.
+ * @param request ProcessDocumentRequest message or plain object
+ * @returns Promise
+ */
+ public processDocument(request: google.cloud.documentai.v1beta2.IProcessDocumentRequest): Promise;
+ }
+
+ namespace DocumentUnderstandingService {
+
+ /**
+ * Callback as used by {@link google.cloud.documentai.v1beta2.DocumentUnderstandingService|batchProcessDocuments}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type BatchProcessDocumentsCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.documentai.v1beta2.DocumentUnderstandingService|processDocument}.
+ * @param error Error, if any
+ * @param [response] Document
+ */
+ type ProcessDocumentCallback = (error: (Error|null), response?: google.cloud.documentai.v1beta2.Document) => void;
+ }
+
+ /** Properties of a BatchProcessDocumentsRequest. */
+ interface IBatchProcessDocumentsRequest {
+
+ /** BatchProcessDocumentsRequest requests */
+ requests?: (google.cloud.documentai.v1beta2.IProcessDocumentRequest[]|null);
+
+ /** BatchProcessDocumentsRequest parent */
+ parent?: (string|null);
+ }
+
+ /** Represents a BatchProcessDocumentsRequest. */
+ class BatchProcessDocumentsRequest implements IBatchProcessDocumentsRequest {
+
+ /**
+ * Constructs a new BatchProcessDocumentsRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta2.IBatchProcessDocumentsRequest);
+
+ /** BatchProcessDocumentsRequest requests. */
+ public requests: google.cloud.documentai.v1beta2.IProcessDocumentRequest[];
+
+ /** BatchProcessDocumentsRequest parent. */
+ public parent: string;
+
+ /**
+ * Creates a new BatchProcessDocumentsRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns BatchProcessDocumentsRequest instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta2.IBatchProcessDocumentsRequest): google.cloud.documentai.v1beta2.BatchProcessDocumentsRequest;
+
+ /**
+ * Encodes the specified BatchProcessDocumentsRequest message. Does not implicitly {@link google.cloud.documentai.v1beta2.BatchProcessDocumentsRequest.verify|verify} messages.
+ * @param message BatchProcessDocumentsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1beta2.IBatchProcessDocumentsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified BatchProcessDocumentsRequest message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta2.BatchProcessDocumentsRequest.verify|verify} messages.
+ * @param message BatchProcessDocumentsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1beta2.IBatchProcessDocumentsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a BatchProcessDocumentsRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns BatchProcessDocumentsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1beta2.BatchProcessDocumentsRequest;
+
+ /**
+ * Decodes a BatchProcessDocumentsRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns BatchProcessDocumentsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1beta2.BatchProcessDocumentsRequest;
+
+ /**
+ * Verifies a BatchProcessDocumentsRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a BatchProcessDocumentsRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns BatchProcessDocumentsRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1beta2.BatchProcessDocumentsRequest;
+
+ /**
+ * Creates a plain object from a BatchProcessDocumentsRequest message. Also converts values to other types if specified.
+ * @param message BatchProcessDocumentsRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1beta2.BatchProcessDocumentsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this BatchProcessDocumentsRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for BatchProcessDocumentsRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ProcessDocumentRequest. */
+ interface IProcessDocumentRequest {
+
+ /** ProcessDocumentRequest parent */
+ parent?: (string|null);
+
+ /** ProcessDocumentRequest inputConfig */
+ inputConfig?: (google.cloud.documentai.v1beta2.IInputConfig|null);
+
+ /** ProcessDocumentRequest outputConfig */
+ outputConfig?: (google.cloud.documentai.v1beta2.IOutputConfig|null);
+
+ /** ProcessDocumentRequest documentType */
+ documentType?: (string|null);
+
+ /** ProcessDocumentRequest tableExtractionParams */
+ tableExtractionParams?: (google.cloud.documentai.v1beta2.ITableExtractionParams|null);
+
+ /** ProcessDocumentRequest formExtractionParams */
+ formExtractionParams?: (google.cloud.documentai.v1beta2.IFormExtractionParams|null);
+
+ /** ProcessDocumentRequest entityExtractionParams */
+ entityExtractionParams?: (google.cloud.documentai.v1beta2.IEntityExtractionParams|null);
+
+ /** ProcessDocumentRequest ocrParams */
+ ocrParams?: (google.cloud.documentai.v1beta2.IOcrParams|null);
+
+ /** ProcessDocumentRequest automlParams */
+ automlParams?: (google.cloud.documentai.v1beta2.IAutoMlParams|null);
+ }
+
+ /** Represents a ProcessDocumentRequest. */
+ class ProcessDocumentRequest implements IProcessDocumentRequest {
+
+ /**
+ * Constructs a new ProcessDocumentRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta2.IProcessDocumentRequest);
+
+ /** ProcessDocumentRequest parent. */
+ public parent: string;
+
+ /** ProcessDocumentRequest inputConfig. */
+ public inputConfig?: (google.cloud.documentai.v1beta2.IInputConfig|null);
+
+ /** ProcessDocumentRequest outputConfig. */
+ public outputConfig?: (google.cloud.documentai.v1beta2.IOutputConfig|null);
+
+ /** ProcessDocumentRequest documentType. */
+ public documentType: string;
+
+ /** ProcessDocumentRequest tableExtractionParams. */
+ public tableExtractionParams?: (google.cloud.documentai.v1beta2.ITableExtractionParams|null);
+
+ /** ProcessDocumentRequest formExtractionParams. */
+ public formExtractionParams?: (google.cloud.documentai.v1beta2.IFormExtractionParams|null);
+
+ /** ProcessDocumentRequest entityExtractionParams. */
+ public entityExtractionParams?: (google.cloud.documentai.v1beta2.IEntityExtractionParams|null);
+
+ /** ProcessDocumentRequest ocrParams. */
+ public ocrParams?: (google.cloud.documentai.v1beta2.IOcrParams|null);
+
+ /** ProcessDocumentRequest automlParams. */
+ public automlParams?: (google.cloud.documentai.v1beta2.IAutoMlParams|null);
+
+ /**
+ * Creates a new ProcessDocumentRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ProcessDocumentRequest instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta2.IProcessDocumentRequest): google.cloud.documentai.v1beta2.ProcessDocumentRequest;
+
+ /**
+ * Encodes the specified ProcessDocumentRequest message. Does not implicitly {@link google.cloud.documentai.v1beta2.ProcessDocumentRequest.verify|verify} messages.
+ * @param message ProcessDocumentRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1beta2.IProcessDocumentRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ProcessDocumentRequest message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta2.ProcessDocumentRequest.verify|verify} messages.
+ * @param message ProcessDocumentRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1beta2.IProcessDocumentRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ProcessDocumentRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ProcessDocumentRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1beta2.ProcessDocumentRequest;
+
+ /**
+ * Decodes a ProcessDocumentRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ProcessDocumentRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1beta2.ProcessDocumentRequest;
+
+ /**
+ * Verifies a ProcessDocumentRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ProcessDocumentRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ProcessDocumentRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1beta2.ProcessDocumentRequest;
+
+ /**
+ * Creates a plain object from a ProcessDocumentRequest message. Also converts values to other types if specified.
+ * @param message ProcessDocumentRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1beta2.ProcessDocumentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ProcessDocumentRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ProcessDocumentRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a BatchProcessDocumentsResponse. */
+ interface IBatchProcessDocumentsResponse {
+
+ /** BatchProcessDocumentsResponse responses */
+ responses?: (google.cloud.documentai.v1beta2.IProcessDocumentResponse[]|null);
+ }
+
+ /** Represents a BatchProcessDocumentsResponse. */
+ class BatchProcessDocumentsResponse implements IBatchProcessDocumentsResponse {
+
+ /**
+ * Constructs a new BatchProcessDocumentsResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta2.IBatchProcessDocumentsResponse);
+
+ /** BatchProcessDocumentsResponse responses. */
+ public responses: google.cloud.documentai.v1beta2.IProcessDocumentResponse[];
+
+ /**
+ * Creates a new BatchProcessDocumentsResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns BatchProcessDocumentsResponse instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta2.IBatchProcessDocumentsResponse): google.cloud.documentai.v1beta2.BatchProcessDocumentsResponse;
+
+ /**
+ * Encodes the specified BatchProcessDocumentsResponse message. Does not implicitly {@link google.cloud.documentai.v1beta2.BatchProcessDocumentsResponse.verify|verify} messages.
+ * @param message BatchProcessDocumentsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1beta2.IBatchProcessDocumentsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified BatchProcessDocumentsResponse message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta2.BatchProcessDocumentsResponse.verify|verify} messages.
+ * @param message BatchProcessDocumentsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1beta2.IBatchProcessDocumentsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a BatchProcessDocumentsResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns BatchProcessDocumentsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1beta2.BatchProcessDocumentsResponse;
+
+ /**
+ * Decodes a BatchProcessDocumentsResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns BatchProcessDocumentsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1beta2.BatchProcessDocumentsResponse;
+
+ /**
+ * Verifies a BatchProcessDocumentsResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a BatchProcessDocumentsResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns BatchProcessDocumentsResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1beta2.BatchProcessDocumentsResponse;
+
+ /**
+ * Creates a plain object from a BatchProcessDocumentsResponse message. Also converts values to other types if specified.
+ * @param message BatchProcessDocumentsResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1beta2.BatchProcessDocumentsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this BatchProcessDocumentsResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for BatchProcessDocumentsResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ProcessDocumentResponse. */
+ interface IProcessDocumentResponse {
+
+ /** ProcessDocumentResponse inputConfig */
+ inputConfig?: (google.cloud.documentai.v1beta2.IInputConfig|null);
+
+ /** ProcessDocumentResponse outputConfig */
+ outputConfig?: (google.cloud.documentai.v1beta2.IOutputConfig|null);
+ }
+
+ /** Represents a ProcessDocumentResponse. */
+ class ProcessDocumentResponse implements IProcessDocumentResponse {
+
+ /**
+ * Constructs a new ProcessDocumentResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta2.IProcessDocumentResponse);
+
+ /** ProcessDocumentResponse inputConfig. */
+ public inputConfig?: (google.cloud.documentai.v1beta2.IInputConfig|null);
+
+ /** ProcessDocumentResponse outputConfig. */
+ public outputConfig?: (google.cloud.documentai.v1beta2.IOutputConfig|null);
+
+ /**
+ * Creates a new ProcessDocumentResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ProcessDocumentResponse instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta2.IProcessDocumentResponse): google.cloud.documentai.v1beta2.ProcessDocumentResponse;
+
+ /**
+ * Encodes the specified ProcessDocumentResponse message. Does not implicitly {@link google.cloud.documentai.v1beta2.ProcessDocumentResponse.verify|verify} messages.
+ * @param message ProcessDocumentResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1beta2.IProcessDocumentResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ProcessDocumentResponse message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta2.ProcessDocumentResponse.verify|verify} messages.
+ * @param message ProcessDocumentResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1beta2.IProcessDocumentResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ProcessDocumentResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ProcessDocumentResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1beta2.ProcessDocumentResponse;
+
+ /**
+ * Decodes a ProcessDocumentResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ProcessDocumentResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1beta2.ProcessDocumentResponse;
+
+ /**
+ * Verifies a ProcessDocumentResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ProcessDocumentResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ProcessDocumentResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1beta2.ProcessDocumentResponse;
+
+ /**
+ * Creates a plain object from a ProcessDocumentResponse message. Also converts values to other types if specified.
+ * @param message ProcessDocumentResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1beta2.ProcessDocumentResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ProcessDocumentResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ProcessDocumentResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an OcrParams. */
+ interface IOcrParams {
+
+ /** OcrParams languageHints */
+ languageHints?: (string[]|null);
+ }
+
+ /** Represents an OcrParams. */
+ class OcrParams implements IOcrParams {
+
+ /**
+ * Constructs a new OcrParams.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta2.IOcrParams);
+
+ /** OcrParams languageHints. */
+ public languageHints: string[];
+
+ /**
+ * Creates a new OcrParams instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns OcrParams instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta2.IOcrParams): google.cloud.documentai.v1beta2.OcrParams;
+
+ /**
+ * Encodes the specified OcrParams message. Does not implicitly {@link google.cloud.documentai.v1beta2.OcrParams.verify|verify} messages.
+ * @param message OcrParams message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1beta2.IOcrParams, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified OcrParams message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta2.OcrParams.verify|verify} messages.
+ * @param message OcrParams message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1beta2.IOcrParams, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an OcrParams message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns OcrParams
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1beta2.OcrParams;
+
+ /**
+ * Decodes an OcrParams message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns OcrParams
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1beta2.OcrParams;
+
+ /**
+ * Verifies an OcrParams message.
+ * @param message Plain 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 OcrParams message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns OcrParams
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1beta2.OcrParams;
+
+ /**
+ * Creates a plain object from an OcrParams message. Also converts values to other types if specified.
+ * @param message OcrParams
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1beta2.OcrParams, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this OcrParams to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for OcrParams
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a TableExtractionParams. */
+ interface ITableExtractionParams {
+
+ /** TableExtractionParams enabled */
+ enabled?: (boolean|null);
+
+ /** TableExtractionParams tableBoundHints */
+ tableBoundHints?: (google.cloud.documentai.v1beta2.ITableBoundHint[]|null);
+
+ /** TableExtractionParams headerHints */
+ headerHints?: (string[]|null);
+
+ /** TableExtractionParams modelVersion */
+ modelVersion?: (string|null);
+ }
+
+ /** Represents a TableExtractionParams. */
+ class TableExtractionParams implements ITableExtractionParams {
+
+ /**
+ * Constructs a new TableExtractionParams.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta2.ITableExtractionParams);
+
+ /** TableExtractionParams enabled. */
+ public enabled: boolean;
+
+ /** TableExtractionParams tableBoundHints. */
+ public tableBoundHints: google.cloud.documentai.v1beta2.ITableBoundHint[];
+
+ /** TableExtractionParams headerHints. */
+ public headerHints: string[];
+
+ /** TableExtractionParams modelVersion. */
+ public modelVersion: string;
+
+ /**
+ * Creates a new TableExtractionParams instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns TableExtractionParams instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta2.ITableExtractionParams): google.cloud.documentai.v1beta2.TableExtractionParams;
+
+ /**
+ * Encodes the specified TableExtractionParams message. Does not implicitly {@link google.cloud.documentai.v1beta2.TableExtractionParams.verify|verify} messages.
+ * @param message TableExtractionParams message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1beta2.ITableExtractionParams, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified TableExtractionParams message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta2.TableExtractionParams.verify|verify} messages.
+ * @param message TableExtractionParams message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1beta2.ITableExtractionParams, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a TableExtractionParams message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns TableExtractionParams
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1beta2.TableExtractionParams;
+
+ /**
+ * Decodes a TableExtractionParams message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns TableExtractionParams
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1beta2.TableExtractionParams;
+
+ /**
+ * Verifies a TableExtractionParams message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a TableExtractionParams message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns TableExtractionParams
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1beta2.TableExtractionParams;
+
+ /**
+ * Creates a plain object from a TableExtractionParams message. Also converts values to other types if specified.
+ * @param message TableExtractionParams
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1beta2.TableExtractionParams, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this TableExtractionParams to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for TableExtractionParams
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a TableBoundHint. */
+ interface ITableBoundHint {
+
+ /** TableBoundHint pageNumber */
+ pageNumber?: (number|null);
+
+ /** TableBoundHint boundingBox */
+ boundingBox?: (google.cloud.documentai.v1beta2.IBoundingPoly|null);
+ }
+
+ /** Represents a TableBoundHint. */
+ class TableBoundHint implements ITableBoundHint {
+
+ /**
+ * Constructs a new TableBoundHint.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta2.ITableBoundHint);
+
+ /** TableBoundHint pageNumber. */
+ public pageNumber: number;
+
+ /** TableBoundHint boundingBox. */
+ public boundingBox?: (google.cloud.documentai.v1beta2.IBoundingPoly|null);
+
+ /**
+ * Creates a new TableBoundHint instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns TableBoundHint instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta2.ITableBoundHint): google.cloud.documentai.v1beta2.TableBoundHint;
+
+ /**
+ * Encodes the specified TableBoundHint message. Does not implicitly {@link google.cloud.documentai.v1beta2.TableBoundHint.verify|verify} messages.
+ * @param message TableBoundHint message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1beta2.ITableBoundHint, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified TableBoundHint message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta2.TableBoundHint.verify|verify} messages.
+ * @param message TableBoundHint message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1beta2.ITableBoundHint, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a TableBoundHint message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns TableBoundHint
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1beta2.TableBoundHint;
+
+ /**
+ * Decodes a TableBoundHint message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns TableBoundHint
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1beta2.TableBoundHint;
+
+ /**
+ * Verifies a TableBoundHint message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a TableBoundHint message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns TableBoundHint
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1beta2.TableBoundHint;
+
+ /**
+ * Creates a plain object from a TableBoundHint message. Also converts values to other types if specified.
+ * @param message TableBoundHint
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1beta2.TableBoundHint, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this TableBoundHint to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for TableBoundHint
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a FormExtractionParams. */
+ interface IFormExtractionParams {
+
+ /** FormExtractionParams enabled */
+ enabled?: (boolean|null);
+
+ /** FormExtractionParams keyValuePairHints */
+ keyValuePairHints?: (google.cloud.documentai.v1beta2.IKeyValuePairHint[]|null);
+
+ /** FormExtractionParams modelVersion */
+ modelVersion?: (string|null);
+ }
+
+ /** Represents a FormExtractionParams. */
+ class FormExtractionParams implements IFormExtractionParams {
+
+ /**
+ * Constructs a new FormExtractionParams.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta2.IFormExtractionParams);
+
+ /** FormExtractionParams enabled. */
+ public enabled: boolean;
+
+ /** FormExtractionParams keyValuePairHints. */
+ public keyValuePairHints: google.cloud.documentai.v1beta2.IKeyValuePairHint[];
+
+ /** FormExtractionParams modelVersion. */
+ public modelVersion: string;
+
+ /**
+ * Creates a new FormExtractionParams instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FormExtractionParams instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta2.IFormExtractionParams): google.cloud.documentai.v1beta2.FormExtractionParams;
+
+ /**
+ * Encodes the specified FormExtractionParams message. Does not implicitly {@link google.cloud.documentai.v1beta2.FormExtractionParams.verify|verify} messages.
+ * @param message FormExtractionParams message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1beta2.IFormExtractionParams, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FormExtractionParams message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta2.FormExtractionParams.verify|verify} messages.
+ * @param message FormExtractionParams message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1beta2.IFormExtractionParams, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FormExtractionParams message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FormExtractionParams
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1beta2.FormExtractionParams;
+
+ /**
+ * Decodes a FormExtractionParams message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FormExtractionParams
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1beta2.FormExtractionParams;
+
+ /**
+ * Verifies a FormExtractionParams message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FormExtractionParams message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FormExtractionParams
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1beta2.FormExtractionParams;
+
+ /**
+ * Creates a plain object from a FormExtractionParams message. Also converts values to other types if specified.
+ * @param message FormExtractionParams
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1beta2.FormExtractionParams, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FormExtractionParams to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FormExtractionParams
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a KeyValuePairHint. */
+ interface IKeyValuePairHint {
+
+ /** KeyValuePairHint key */
+ key?: (string|null);
+
+ /** KeyValuePairHint valueTypes */
+ valueTypes?: (string[]|null);
+ }
+
+ /** Represents a KeyValuePairHint. */
+ class KeyValuePairHint implements IKeyValuePairHint {
+
+ /**
+ * Constructs a new KeyValuePairHint.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta2.IKeyValuePairHint);
+
+ /** KeyValuePairHint key. */
+ public key: string;
+
+ /** KeyValuePairHint valueTypes. */
+ public valueTypes: string[];
+
+ /**
+ * Creates a new KeyValuePairHint instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns KeyValuePairHint instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta2.IKeyValuePairHint): google.cloud.documentai.v1beta2.KeyValuePairHint;
+
+ /**
+ * Encodes the specified KeyValuePairHint message. Does not implicitly {@link google.cloud.documentai.v1beta2.KeyValuePairHint.verify|verify} messages.
+ * @param message KeyValuePairHint message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1beta2.IKeyValuePairHint, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified KeyValuePairHint message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta2.KeyValuePairHint.verify|verify} messages.
+ * @param message KeyValuePairHint message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1beta2.IKeyValuePairHint, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a KeyValuePairHint message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns KeyValuePairHint
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1beta2.KeyValuePairHint;
+
+ /**
+ * Decodes a KeyValuePairHint message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns KeyValuePairHint
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1beta2.KeyValuePairHint;
+
+ /**
+ * Verifies a KeyValuePairHint message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a KeyValuePairHint message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns KeyValuePairHint
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1beta2.KeyValuePairHint;
+
+ /**
+ * Creates a plain object from a KeyValuePairHint message. Also converts values to other types if specified.
+ * @param message KeyValuePairHint
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1beta2.KeyValuePairHint, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this KeyValuePairHint to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for KeyValuePairHint
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an EntityExtractionParams. */
+ interface IEntityExtractionParams {
+
+ /** EntityExtractionParams enabled */
+ enabled?: (boolean|null);
+
+ /** EntityExtractionParams modelVersion */
+ modelVersion?: (string|null);
+ }
+
+ /** Represents an EntityExtractionParams. */
+ class EntityExtractionParams implements IEntityExtractionParams {
+
+ /**
+ * Constructs a new EntityExtractionParams.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta2.IEntityExtractionParams);
+
+ /** EntityExtractionParams enabled. */
+ public enabled: boolean;
+
+ /** EntityExtractionParams modelVersion. */
+ public modelVersion: string;
+
+ /**
+ * Creates a new EntityExtractionParams instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns EntityExtractionParams instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta2.IEntityExtractionParams): google.cloud.documentai.v1beta2.EntityExtractionParams;
+
+ /**
+ * Encodes the specified EntityExtractionParams message. Does not implicitly {@link google.cloud.documentai.v1beta2.EntityExtractionParams.verify|verify} messages.
+ * @param message EntityExtractionParams message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1beta2.IEntityExtractionParams, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified EntityExtractionParams message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta2.EntityExtractionParams.verify|verify} messages.
+ * @param message EntityExtractionParams message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1beta2.IEntityExtractionParams, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an EntityExtractionParams message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns EntityExtractionParams
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1beta2.EntityExtractionParams;
+
+ /**
+ * Decodes an EntityExtractionParams message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns EntityExtractionParams
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1beta2.EntityExtractionParams;
+
+ /**
+ * Verifies an EntityExtractionParams message.
+ * @param message Plain 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 EntityExtractionParams message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns EntityExtractionParams
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1beta2.EntityExtractionParams;
+
+ /**
+ * Creates a plain object from an EntityExtractionParams message. Also converts values to other types if specified.
+ * @param message EntityExtractionParams
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1beta2.EntityExtractionParams, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this EntityExtractionParams to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for EntityExtractionParams
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an AutoMlParams. */
+ interface IAutoMlParams {
+
+ /** AutoMlParams model */
+ model?: (string|null);
+ }
+
+ /** Represents an AutoMlParams. */
+ class AutoMlParams implements IAutoMlParams {
+
+ /**
+ * Constructs a new AutoMlParams.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta2.IAutoMlParams);
+
+ /** AutoMlParams model. */
+ public model: string;
+
+ /**
+ * Creates a new AutoMlParams instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns AutoMlParams instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta2.IAutoMlParams): google.cloud.documentai.v1beta2.AutoMlParams;
+
+ /**
+ * Encodes the specified AutoMlParams message. Does not implicitly {@link google.cloud.documentai.v1beta2.AutoMlParams.verify|verify} messages.
+ * @param message AutoMlParams message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1beta2.IAutoMlParams, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified AutoMlParams message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta2.AutoMlParams.verify|verify} messages.
+ * @param message AutoMlParams message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1beta2.IAutoMlParams, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an AutoMlParams message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns AutoMlParams
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1beta2.AutoMlParams;
+
+ /**
+ * Decodes an AutoMlParams message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns AutoMlParams
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1beta2.AutoMlParams;
+
+ /**
+ * Verifies an AutoMlParams message.
+ * @param message Plain 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 AutoMlParams message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns AutoMlParams
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1beta2.AutoMlParams;
+
+ /**
+ * Creates a plain object from an AutoMlParams message. Also converts values to other types if specified.
+ * @param message AutoMlParams
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1beta2.AutoMlParams, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this AutoMlParams to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for AutoMlParams
+ * @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 gcsSource */
+ gcsSource?: (google.cloud.documentai.v1beta2.IGcsSource|null);
+
+ /** InputConfig contents */
+ contents?: (Uint8Array|string|null);
+
+ /** InputConfig mimeType */
+ mimeType?: (string|null);
+ }
+
+ /** Represents an InputConfig. */
+ class InputConfig implements IInputConfig {
+
+ /**
+ * Constructs a new InputConfig.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta2.IInputConfig);
+
+ /** InputConfig gcsSource. */
+ public gcsSource?: (google.cloud.documentai.v1beta2.IGcsSource|null);
+
+ /** InputConfig contents. */
+ public contents?: (Uint8Array|string|null);
+
+ /** InputConfig mimeType. */
+ public mimeType: string;
+
+ /** InputConfig source. */
+ public source?: ("gcsSource"|"contents");
+
+ /**
+ * Creates a new InputConfig instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns InputConfig instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta2.IInputConfig): google.cloud.documentai.v1beta2.InputConfig;
+
+ /**
+ * Encodes the specified InputConfig message. Does not implicitly {@link google.cloud.documentai.v1beta2.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.documentai.v1beta2.IInputConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified InputConfig message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta2.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.documentai.v1beta2.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.documentai.v1beta2.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.documentai.v1beta2.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.documentai.v1beta2.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.documentai.v1beta2.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 an OutputConfig. */
+ interface IOutputConfig {
+
+ /** OutputConfig gcsDestination */
+ gcsDestination?: (google.cloud.documentai.v1beta2.IGcsDestination|null);
+
+ /** OutputConfig pagesPerShard */
+ pagesPerShard?: (number|null);
+ }
+
+ /** Represents an OutputConfig. */
+ class OutputConfig implements IOutputConfig {
+
+ /**
+ * Constructs a new OutputConfig.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta2.IOutputConfig);
+
+ /** OutputConfig gcsDestination. */
+ public gcsDestination?: (google.cloud.documentai.v1beta2.IGcsDestination|null);
+
+ /** OutputConfig pagesPerShard. */
+ public pagesPerShard: number;
+
+ /** OutputConfig destination. */
+ public destination?: "gcsDestination";
+
+ /**
+ * Creates a new OutputConfig instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns OutputConfig instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta2.IOutputConfig): google.cloud.documentai.v1beta2.OutputConfig;
+
+ /**
+ * Encodes the specified OutputConfig message. Does not implicitly {@link google.cloud.documentai.v1beta2.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.documentai.v1beta2.IOutputConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified OutputConfig message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta2.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.documentai.v1beta2.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.documentai.v1beta2.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.documentai.v1beta2.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.documentai.v1beta2.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.documentai.v1beta2.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 GcsSource. */
+ interface IGcsSource {
+
+ /** GcsSource uri */
+ uri?: (string|null);
+ }
+
+ /** Represents a GcsSource. */
+ class GcsSource implements IGcsSource {
+
+ /**
+ * Constructs a new GcsSource.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta2.IGcsSource);
+
+ /** GcsSource uri. */
+ public uri: string;
+
+ /**
+ * Creates a new GcsSource instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GcsSource instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta2.IGcsSource): google.cloud.documentai.v1beta2.GcsSource;
+
+ /**
+ * Encodes the specified GcsSource message. Does not implicitly {@link google.cloud.documentai.v1beta2.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.documentai.v1beta2.IGcsSource, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GcsSource message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta2.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.documentai.v1beta2.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.documentai.v1beta2.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.documentai.v1beta2.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.documentai.v1beta2.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.documentai.v1beta2.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 GcsDestination. */
+ interface IGcsDestination {
+
+ /** GcsDestination uri */
+ uri?: (string|null);
+ }
+
+ /** Represents a GcsDestination. */
+ class GcsDestination implements IGcsDestination {
+
+ /**
+ * Constructs a new GcsDestination.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta2.IGcsDestination);
+
+ /** GcsDestination uri. */
+ public uri: string;
+
+ /**
+ * Creates a new GcsDestination instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GcsDestination instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta2.IGcsDestination): google.cloud.documentai.v1beta2.GcsDestination;
+
+ /**
+ * Encodes the specified GcsDestination message. Does not implicitly {@link google.cloud.documentai.v1beta2.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.documentai.v1beta2.IGcsDestination, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GcsDestination message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta2.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.documentai.v1beta2.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.documentai.v1beta2.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.documentai.v1beta2.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.documentai.v1beta2.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.documentai.v1beta2.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 an OperationMetadata. */
+ interface IOperationMetadata {
+
+ /** OperationMetadata state */
+ state?: (google.cloud.documentai.v1beta2.OperationMetadata.State|keyof typeof google.cloud.documentai.v1beta2.OperationMetadata.State|null);
+
+ /** OperationMetadata stateMessage */
+ stateMessage?: (string|null);
+
+ /** OperationMetadata createTime */
+ createTime?: (google.protobuf.ITimestamp|null);
+
+ /** OperationMetadata updateTime */
+ updateTime?: (google.protobuf.ITimestamp|null);
+ }
+
+ /** Represents an OperationMetadata. */
+ class OperationMetadata implements IOperationMetadata {
+
+ /**
+ * Constructs a new OperationMetadata.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta2.IOperationMetadata);
+
+ /** OperationMetadata state. */
+ public state: (google.cloud.documentai.v1beta2.OperationMetadata.State|keyof typeof google.cloud.documentai.v1beta2.OperationMetadata.State);
+
+ /** OperationMetadata stateMessage. */
+ public stateMessage: string;
+
+ /** OperationMetadata createTime. */
+ public createTime?: (google.protobuf.ITimestamp|null);
+
+ /** OperationMetadata updateTime. */
+ public updateTime?: (google.protobuf.ITimestamp|null);
+
+ /**
+ * Creates a new OperationMetadata instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns OperationMetadata instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta2.IOperationMetadata): google.cloud.documentai.v1beta2.OperationMetadata;
+
+ /**
+ * Encodes the specified OperationMetadata message. Does not implicitly {@link google.cloud.documentai.v1beta2.OperationMetadata.verify|verify} messages.
+ * @param message OperationMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1beta2.IOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified OperationMetadata message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta2.OperationMetadata.verify|verify} messages.
+ * @param message OperationMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1beta2.IOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an OperationMetadata message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns OperationMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1beta2.OperationMetadata;
+
+ /**
+ * Decodes an OperationMetadata message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns OperationMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1beta2.OperationMetadata;
+
+ /**
+ * Verifies an OperationMetadata message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an OperationMetadata message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns OperationMetadata
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1beta2.OperationMetadata;
+
+ /**
+ * Creates a plain object from an OperationMetadata message. Also converts values to other types if specified.
+ * @param message OperationMetadata
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1beta2.OperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this OperationMetadata to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for OperationMetadata
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace OperationMetadata {
+
+ /** State enum. */
+ enum State {
+ STATE_UNSPECIFIED = 0,
+ ACCEPTED = 1,
+ WAITING = 2,
+ RUNNING = 3,
+ SUCCEEDED = 4,
+ CANCELLED = 5,
+ FAILED = 6
+ }
+ }
+ }
+
+ /** Namespace v1beta3. */
+ namespace v1beta3 {
+
+ /** Properties of a Barcode. */
+ interface IBarcode {
+
+ /** Barcode format */
+ format?: (string|null);
+
+ /** Barcode valueFormat */
+ valueFormat?: (string|null);
+
+ /** Barcode rawValue */
+ rawValue?: (string|null);
+ }
+
+ /** Represents a Barcode. */
+ class Barcode implements IBarcode {
+
+ /**
+ * Constructs a new Barcode.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta3.IBarcode);
+
+ /** Barcode format. */
+ public format: string;
+
+ /** Barcode valueFormat. */
+ public valueFormat: string;
+
+ /** Barcode rawValue. */
+ public rawValue: string;
+
+ /**
+ * Creates a new Barcode instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Barcode instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta3.IBarcode): google.cloud.documentai.v1beta3.Barcode;
+
+ /**
+ * Encodes the specified Barcode message. Does not implicitly {@link google.cloud.documentai.v1beta3.Barcode.verify|verify} messages.
+ * @param message Barcode message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1beta3.IBarcode, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Barcode message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta3.Barcode.verify|verify} messages.
+ * @param message Barcode message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1beta3.IBarcode, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Barcode message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Barcode
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1beta3.Barcode;
+
+ /**
+ * Decodes a Barcode message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Barcode
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1beta3.Barcode;
+
+ /**
+ * Verifies a Barcode message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Barcode message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Barcode
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1beta3.Barcode;
+
+ /**
+ * Creates a plain object from a Barcode message. Also converts values to other types if specified.
+ * @param message Barcode
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1beta3.Barcode, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Barcode to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Barcode
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Document. */
+ interface IDocument {
+
+ /** Document uri */
+ uri?: (string|null);
+
+ /** Document content */
+ content?: (Uint8Array|string|null);
+
+ /** Document mimeType */
+ mimeType?: (string|null);
+
+ /** Document text */
+ text?: (string|null);
+
+ /** Document textStyles */
+ textStyles?: (google.cloud.documentai.v1beta3.Document.IStyle[]|null);
+
+ /** Document pages */
+ pages?: (google.cloud.documentai.v1beta3.Document.IPage[]|null);
+
+ /** Document entities */
+ entities?: (google.cloud.documentai.v1beta3.Document.IEntity[]|null);
+
+ /** Document entityRelations */
+ entityRelations?: (google.cloud.documentai.v1beta3.Document.IEntityRelation[]|null);
+
+ /** Document textChanges */
+ textChanges?: (google.cloud.documentai.v1beta3.Document.ITextChange[]|null);
+
+ /** Document shardInfo */
+ shardInfo?: (google.cloud.documentai.v1beta3.Document.IShardInfo|null);
+
+ /** Document error */
+ error?: (google.rpc.IStatus|null);
+
+ /** Document revisions */
+ revisions?: (google.cloud.documentai.v1beta3.Document.IRevision[]|null);
+ }
+
+ /** Represents a Document. */
+ class Document implements IDocument {
+
+ /**
+ * Constructs a new Document.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta3.IDocument);
+
+ /** Document uri. */
+ public uri?: (string|null);
+
+ /** Document content. */
+ public content?: (Uint8Array|string|null);
+
+ /** Document mimeType. */
+ public mimeType: string;
+
+ /** Document text. */
+ public text: string;
+
+ /** Document textStyles. */
+ public textStyles: google.cloud.documentai.v1beta3.Document.IStyle[];
+
+ /** Document pages. */
+ public pages: google.cloud.documentai.v1beta3.Document.IPage[];
+
+ /** Document entities. */
+ public entities: google.cloud.documentai.v1beta3.Document.IEntity[];
+
+ /** Document entityRelations. */
+ public entityRelations: google.cloud.documentai.v1beta3.Document.IEntityRelation[];
+
+ /** Document textChanges. */
+ public textChanges: google.cloud.documentai.v1beta3.Document.ITextChange[];
+
+ /** Document shardInfo. */
+ public shardInfo?: (google.cloud.documentai.v1beta3.Document.IShardInfo|null);
+
+ /** Document error. */
+ public error?: (google.rpc.IStatus|null);
+
+ /** Document revisions. */
+ public revisions: google.cloud.documentai.v1beta3.Document.IRevision[];
+
+ /** Document source. */
+ public source?: ("uri"|"content");
+
+ /**
+ * Creates a new Document instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Document instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta3.IDocument): google.cloud.documentai.v1beta3.Document;
+
+ /**
+ * Encodes the specified Document message. Does not implicitly {@link google.cloud.documentai.v1beta3.Document.verify|verify} messages.
+ * @param message Document message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1beta3.IDocument, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Document message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta3.Document.verify|verify} messages.
+ * @param message Document message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1beta3.IDocument, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Document message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Document
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1beta3.Document;
+
+ /**
+ * Decodes a Document message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Document
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1beta3.Document;
+
+ /**
+ * Verifies a Document message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Document message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Document
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1beta3.Document;
+
+ /**
+ * Creates a plain object from a Document message. Also converts values to other types if specified.
+ * @param message Document
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1beta3.Document, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Document to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Document
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace Document {
+
+ /** Properties of a ShardInfo. */
+ interface IShardInfo {
+
+ /** ShardInfo shardIndex */
+ shardIndex?: (number|Long|string|null);
+
+ /** ShardInfo shardCount */
+ shardCount?: (number|Long|string|null);
+
+ /** ShardInfo textOffset */
+ textOffset?: (number|Long|string|null);
+ }
+
+ /** Represents a ShardInfo. */
+ class ShardInfo implements IShardInfo {
+
+ /**
+ * Constructs a new ShardInfo.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta3.Document.IShardInfo);
+
+ /** ShardInfo shardIndex. */
+ public shardIndex: (number|Long|string);
+
+ /** ShardInfo shardCount. */
+ public shardCount: (number|Long|string);
+
+ /** ShardInfo textOffset. */
+ public textOffset: (number|Long|string);
+
+ /**
+ * Creates a new ShardInfo instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ShardInfo instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta3.Document.IShardInfo): google.cloud.documentai.v1beta3.Document.ShardInfo;
+
+ /**
+ * Encodes the specified ShardInfo message. Does not implicitly {@link google.cloud.documentai.v1beta3.Document.ShardInfo.verify|verify} messages.
+ * @param message ShardInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1beta3.Document.IShardInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ShardInfo message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta3.Document.ShardInfo.verify|verify} messages.
+ * @param message ShardInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1beta3.Document.IShardInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ShardInfo message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ShardInfo
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1beta3.Document.ShardInfo;
+
+ /**
+ * Decodes a ShardInfo message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ShardInfo
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1beta3.Document.ShardInfo;
+
+ /**
+ * Verifies a ShardInfo message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ShardInfo message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ShardInfo
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1beta3.Document.ShardInfo;
+
+ /**
+ * Creates a plain object from a ShardInfo message. Also converts values to other types if specified.
+ * @param message ShardInfo
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1beta3.Document.ShardInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ShardInfo to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ShardInfo
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Style. */
+ interface IStyle {
+
+ /** Style textAnchor */
+ textAnchor?: (google.cloud.documentai.v1beta3.Document.ITextAnchor|null);
+
+ /** Style color */
+ color?: (google.type.IColor|null);
+
+ /** Style backgroundColor */
+ backgroundColor?: (google.type.IColor|null);
+
+ /** Style fontWeight */
+ fontWeight?: (string|null);
+
+ /** Style textStyle */
+ textStyle?: (string|null);
+
+ /** Style textDecoration */
+ textDecoration?: (string|null);
+
+ /** Style fontSize */
+ fontSize?: (google.cloud.documentai.v1beta3.Document.Style.IFontSize|null);
+ }
+
+ /** Represents a Style. */
+ class Style implements IStyle {
+
+ /**
+ * Constructs a new Style.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta3.Document.IStyle);
+
+ /** Style textAnchor. */
+ public textAnchor?: (google.cloud.documentai.v1beta3.Document.ITextAnchor|null);
+
+ /** Style color. */
+ public color?: (google.type.IColor|null);
+
+ /** Style backgroundColor. */
+ public backgroundColor?: (google.type.IColor|null);
+
+ /** Style fontWeight. */
+ public fontWeight: string;
+
+ /** Style textStyle. */
+ public textStyle: string;
+
+ /** Style textDecoration. */
+ public textDecoration: string;
+
+ /** Style fontSize. */
+ public fontSize?: (google.cloud.documentai.v1beta3.Document.Style.IFontSize|null);
+
+ /**
+ * Creates a new Style instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Style instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta3.Document.IStyle): google.cloud.documentai.v1beta3.Document.Style;
+
+ /**
+ * Encodes the specified Style message. Does not implicitly {@link google.cloud.documentai.v1beta3.Document.Style.verify|verify} messages.
+ * @param message Style message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1beta3.Document.IStyle, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Style message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta3.Document.Style.verify|verify} messages.
+ * @param message Style message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1beta3.Document.IStyle, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Style message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Style
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1beta3.Document.Style;
+
+ /**
+ * Decodes a Style message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Style
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1beta3.Document.Style;
+
+ /**
+ * Verifies a Style message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Style message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Style
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1beta3.Document.Style;
+
+ /**
+ * Creates a plain object from a Style message. Also converts values to other types if specified.
+ * @param message Style
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1beta3.Document.Style, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Style to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Style
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace Style {
+
+ /** Properties of a FontSize. */
+ interface IFontSize {
+
+ /** FontSize size */
+ size?: (number|null);
+
+ /** FontSize unit */
+ unit?: (string|null);
+ }
+
+ /** Represents a FontSize. */
+ class FontSize implements IFontSize {
+
+ /**
+ * Constructs a new FontSize.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta3.Document.Style.IFontSize);
+
+ /** FontSize size. */
+ public size: number;
+
+ /** FontSize unit. */
+ public unit: string;
+
+ /**
+ * Creates a new FontSize instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FontSize instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta3.Document.Style.IFontSize): google.cloud.documentai.v1beta3.Document.Style.FontSize;
+
+ /**
+ * Encodes the specified FontSize message. Does not implicitly {@link google.cloud.documentai.v1beta3.Document.Style.FontSize.verify|verify} messages.
+ * @param message FontSize message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1beta3.Document.Style.IFontSize, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FontSize message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta3.Document.Style.FontSize.verify|verify} messages.
+ * @param message FontSize message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1beta3.Document.Style.IFontSize, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FontSize message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FontSize
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1beta3.Document.Style.FontSize;
+
+ /**
+ * Decodes a FontSize message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FontSize
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1beta3.Document.Style.FontSize;
+
+ /**
+ * Verifies a FontSize message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FontSize message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FontSize
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1beta3.Document.Style.FontSize;
+
+ /**
+ * Creates a plain object from a FontSize message. Also converts values to other types if specified.
+ * @param message FontSize
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1beta3.Document.Style.FontSize, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FontSize to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FontSize
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of a Page. */
+ interface IPage {
+
+ /** Page pageNumber */
+ pageNumber?: (number|null);
+
+ /** Page image */
+ image?: (google.cloud.documentai.v1beta3.Document.Page.IImage|null);
+
+ /** Page transforms */
+ transforms?: (google.cloud.documentai.v1beta3.Document.Page.IMatrix[]|null);
+
+ /** Page dimension */
+ dimension?: (google.cloud.documentai.v1beta3.Document.Page.IDimension|null);
+
+ /** Page layout */
+ layout?: (google.cloud.documentai.v1beta3.Document.Page.ILayout|null);
+
+ /** Page detectedLanguages */
+ detectedLanguages?: (google.cloud.documentai.v1beta3.Document.Page.IDetectedLanguage[]|null);
+
+ /** Page blocks */
+ blocks?: (google.cloud.documentai.v1beta3.Document.Page.IBlock[]|null);
+
+ /** Page paragraphs */
+ paragraphs?: (google.cloud.documentai.v1beta3.Document.Page.IParagraph[]|null);
+
+ /** Page lines */
+ lines?: (google.cloud.documentai.v1beta3.Document.Page.ILine[]|null);
+
+ /** Page tokens */
+ tokens?: (google.cloud.documentai.v1beta3.Document.Page.IToken[]|null);
+
+ /** Page visualElements */
+ visualElements?: (google.cloud.documentai.v1beta3.Document.Page.IVisualElement[]|null);
+
+ /** Page tables */
+ tables?: (google.cloud.documentai.v1beta3.Document.Page.ITable[]|null);
+
+ /** Page formFields */
+ formFields?: (google.cloud.documentai.v1beta3.Document.Page.IFormField[]|null);
+
+ /** Page symbols */
+ symbols?: (google.cloud.documentai.v1beta3.Document.Page.ISymbol[]|null);
+
+ /** Page detectedBarcodes */
+ detectedBarcodes?: (google.cloud.documentai.v1beta3.Document.Page.IDetectedBarcode[]|null);
+
+ /** Page provenance */
+ provenance?: (google.cloud.documentai.v1beta3.Document.IProvenance|null);
+ }
+
+ /** Represents a Page. */
+ class Page implements IPage {
+
+ /**
+ * Constructs a new Page.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta3.Document.IPage);
+
+ /** Page pageNumber. */
+ public pageNumber: number;
+
+ /** Page image. */
+ public image?: (google.cloud.documentai.v1beta3.Document.Page.IImage|null);
+
+ /** Page transforms. */
+ public transforms: google.cloud.documentai.v1beta3.Document.Page.IMatrix[];
+
+ /** Page dimension. */
+ public dimension?: (google.cloud.documentai.v1beta3.Document.Page.IDimension|null);
+
+ /** Page layout. */
+ public layout?: (google.cloud.documentai.v1beta3.Document.Page.ILayout|null);
+
+ /** Page detectedLanguages. */
+ public detectedLanguages: google.cloud.documentai.v1beta3.Document.Page.IDetectedLanguage[];
+
+ /** Page blocks. */
+ public blocks: google.cloud.documentai.v1beta3.Document.Page.IBlock[];
+
+ /** Page paragraphs. */
+ public paragraphs: google.cloud.documentai.v1beta3.Document.Page.IParagraph[];
+
+ /** Page lines. */
+ public lines: google.cloud.documentai.v1beta3.Document.Page.ILine[];
+
+ /** Page tokens. */
+ public tokens: google.cloud.documentai.v1beta3.Document.Page.IToken[];
+
+ /** Page visualElements. */
+ public visualElements: google.cloud.documentai.v1beta3.Document.Page.IVisualElement[];
+
+ /** Page tables. */
+ public tables: google.cloud.documentai.v1beta3.Document.Page.ITable[];
+
+ /** Page formFields. */
+ public formFields: google.cloud.documentai.v1beta3.Document.Page.IFormField[];
+
+ /** Page symbols. */
+ public symbols: google.cloud.documentai.v1beta3.Document.Page.ISymbol[];
+
+ /** Page detectedBarcodes. */
+ public detectedBarcodes: google.cloud.documentai.v1beta3.Document.Page.IDetectedBarcode[];
+
+ /** Page provenance. */
+ public provenance?: (google.cloud.documentai.v1beta3.Document.IProvenance|null);
+
+ /**
+ * Creates a new Page instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Page instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta3.Document.IPage): google.cloud.documentai.v1beta3.Document.Page;
+
+ /**
+ * Encodes the specified Page message. Does not implicitly {@link google.cloud.documentai.v1beta3.Document.Page.verify|verify} messages.
+ * @param message Page message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1beta3.Document.IPage, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Page message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta3.Document.Page.verify|verify} messages.
+ * @param message Page message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1beta3.Document.IPage, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Page message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Page
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1beta3.Document.Page;
+
+ /**
+ * Decodes a Page message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Page
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1beta3.Document.Page;
+
+ /**
+ * Verifies a Page message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Page message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Page
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1beta3.Document.Page;
+
+ /**
+ * Creates a plain object from a Page message. Also converts values to other types if specified.
+ * @param message Page
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1beta3.Document.Page, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Page to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Page
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace Page {
+
+ /** Properties of a Dimension. */
+ interface IDimension {
+
+ /** Dimension width */
+ width?: (number|null);
+
+ /** Dimension height */
+ height?: (number|null);
+
+ /** Dimension unit */
+ unit?: (string|null);
+ }
+
+ /** Represents a Dimension. */
+ class Dimension implements IDimension {
+
+ /**
+ * Constructs a new Dimension.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta3.Document.Page.IDimension);
+
+ /** Dimension width. */
+ public width: number;
+
+ /** Dimension height. */
+ public height: number;
+
+ /** Dimension unit. */
+ public unit: string;
+
+ /**
+ * Creates a new Dimension instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Dimension instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta3.Document.Page.IDimension): google.cloud.documentai.v1beta3.Document.Page.Dimension;
+
+ /**
+ * Encodes the specified Dimension message. Does not implicitly {@link google.cloud.documentai.v1beta3.Document.Page.Dimension.verify|verify} messages.
+ * @param message Dimension message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1beta3.Document.Page.IDimension, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Dimension message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta3.Document.Page.Dimension.verify|verify} messages.
+ * @param message Dimension message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1beta3.Document.Page.IDimension, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Dimension message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Dimension
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1beta3.Document.Page.Dimension;
+
+ /**
+ * Decodes a Dimension message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Dimension
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1beta3.Document.Page.Dimension;
+
+ /**
+ * Verifies a Dimension message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Dimension message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Dimension
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1beta3.Document.Page.Dimension;
+
+ /**
+ * Creates a plain object from a Dimension message. Also converts values to other types if specified.
+ * @param message Dimension
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1beta3.Document.Page.Dimension, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Dimension to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Dimension
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an Image. */
+ interface IImage {
+
+ /** Image content */
+ content?: (Uint8Array|string|null);
+
+ /** Image mimeType */
+ mimeType?: (string|null);
+
+ /** Image width */
+ width?: (number|null);
+
+ /** Image height */
+ height?: (number|null);
+ }
+
+ /** Represents an Image. */
+ class Image implements IImage {
+
+ /**
+ * Constructs a new Image.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta3.Document.Page.IImage);
+
+ /** Image content. */
+ public content: (Uint8Array|string);
+
+ /** Image mimeType. */
+ public mimeType: string;
+
+ /** Image width. */
+ public width: number;
+
+ /** Image height. */
+ public height: number;
+
+ /**
+ * Creates a new Image instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Image instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta3.Document.Page.IImage): google.cloud.documentai.v1beta3.Document.Page.Image;
+
+ /**
+ * Encodes the specified Image message. Does not implicitly {@link google.cloud.documentai.v1beta3.Document.Page.Image.verify|verify} messages.
+ * @param message Image message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1beta3.Document.Page.IImage, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Image message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta3.Document.Page.Image.verify|verify} messages.
+ * @param message Image message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1beta3.Document.Page.IImage, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an Image message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Image
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1beta3.Document.Page.Image;
+
+ /**
+ * Decodes an Image message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Image
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1beta3.Document.Page.Image;
+
+ /**
+ * Verifies an Image message.
+ * @param message Plain 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 Image message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Image
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1beta3.Document.Page.Image;
+
+ /**
+ * Creates a plain object from an Image message. Also converts values to other types if specified.
+ * @param message Image
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1beta3.Document.Page.Image, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Image to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Image
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Matrix. */
+ interface IMatrix {
+
+ /** Matrix rows */
+ rows?: (number|null);
+
+ /** Matrix cols */
+ cols?: (number|null);
+
+ /** Matrix type */
+ type?: (number|null);
+
+ /** Matrix data */
+ data?: (Uint8Array|string|null);
+ }
+
+ /** Represents a Matrix. */
+ class Matrix implements IMatrix {
+
+ /**
+ * Constructs a new Matrix.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta3.Document.Page.IMatrix);
+
+ /** Matrix rows. */
+ public rows: number;
+
+ /** Matrix cols. */
+ public cols: number;
+
+ /** Matrix type. */
+ public type: number;
+
+ /** Matrix data. */
+ public data: (Uint8Array|string);
+
+ /**
+ * Creates a new Matrix instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Matrix instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta3.Document.Page.IMatrix): google.cloud.documentai.v1beta3.Document.Page.Matrix;
+
+ /**
+ * Encodes the specified Matrix message. Does not implicitly {@link google.cloud.documentai.v1beta3.Document.Page.Matrix.verify|verify} messages.
+ * @param message Matrix message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1beta3.Document.Page.IMatrix, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Matrix message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta3.Document.Page.Matrix.verify|verify} messages.
+ * @param message Matrix message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1beta3.Document.Page.IMatrix, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Matrix message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Matrix
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1beta3.Document.Page.Matrix;
+
+ /**
+ * Decodes a Matrix message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Matrix
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1beta3.Document.Page.Matrix;
+
+ /**
+ * Verifies a Matrix message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Matrix message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Matrix
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1beta3.Document.Page.Matrix;
+
+ /**
+ * Creates a plain object from a Matrix message. Also converts values to other types if specified.
+ * @param message Matrix
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1beta3.Document.Page.Matrix, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Matrix to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Matrix
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Layout. */
+ interface ILayout {
+
+ /** Layout textAnchor */
+ textAnchor?: (google.cloud.documentai.v1beta3.Document.ITextAnchor|null);
+
+ /** Layout confidence */
+ confidence?: (number|null);
+
+ /** Layout boundingPoly */
+ boundingPoly?: (google.cloud.documentai.v1beta3.IBoundingPoly|null);
+
+ /** Layout orientation */
+ orientation?: (google.cloud.documentai.v1beta3.Document.Page.Layout.Orientation|keyof typeof google.cloud.documentai.v1beta3.Document.Page.Layout.Orientation|null);
+ }
+
+ /** Represents a Layout. */
+ class Layout implements ILayout {
+
+ /**
+ * Constructs a new Layout.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta3.Document.Page.ILayout);
+
+ /** Layout textAnchor. */
+ public textAnchor?: (google.cloud.documentai.v1beta3.Document.ITextAnchor|null);
+
+ /** Layout confidence. */
+ public confidence: number;
+
+ /** Layout boundingPoly. */
+ public boundingPoly?: (google.cloud.documentai.v1beta3.IBoundingPoly|null);
+
+ /** Layout orientation. */
+ public orientation: (google.cloud.documentai.v1beta3.Document.Page.Layout.Orientation|keyof typeof google.cloud.documentai.v1beta3.Document.Page.Layout.Orientation);
+
+ /**
+ * Creates a new Layout instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Layout instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta3.Document.Page.ILayout): google.cloud.documentai.v1beta3.Document.Page.Layout;
+
+ /**
+ * Encodes the specified Layout message. Does not implicitly {@link google.cloud.documentai.v1beta3.Document.Page.Layout.verify|verify} messages.
+ * @param message Layout message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1beta3.Document.Page.ILayout, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Layout message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta3.Document.Page.Layout.verify|verify} messages.
+ * @param message Layout message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1beta3.Document.Page.ILayout, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Layout message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Layout
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1beta3.Document.Page.Layout;
+
+ /**
+ * Decodes a Layout message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Layout
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1beta3.Document.Page.Layout;
+
+ /**
+ * Verifies a Layout message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Layout message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Layout
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1beta3.Document.Page.Layout;
+
+ /**
+ * Creates a plain object from a Layout message. Also converts values to other types if specified.
+ * @param message Layout
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1beta3.Document.Page.Layout, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Layout to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Layout
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace Layout {
+
+ /** Orientation enum. */
+ enum Orientation {
+ ORIENTATION_UNSPECIFIED = 0,
+ PAGE_UP = 1,
+ PAGE_RIGHT = 2,
+ PAGE_DOWN = 3,
+ PAGE_LEFT = 4
+ }
+ }
+
+ /** Properties of a Block. */
+ interface IBlock {
+
+ /** Block layout */
+ layout?: (google.cloud.documentai.v1beta3.Document.Page.ILayout|null);
+
+ /** Block detectedLanguages */
+ detectedLanguages?: (google.cloud.documentai.v1beta3.Document.Page.IDetectedLanguage[]|null);
+
+ /** Block provenance */
+ provenance?: (google.cloud.documentai.v1beta3.Document.IProvenance|null);
+ }
+
+ /** Represents a Block. */
+ class Block implements IBlock {
+
+ /**
+ * Constructs a new Block.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta3.Document.Page.IBlock);
+
+ /** Block layout. */
+ public layout?: (google.cloud.documentai.v1beta3.Document.Page.ILayout|null);
+
+ /** Block detectedLanguages. */
+ public detectedLanguages: google.cloud.documentai.v1beta3.Document.Page.IDetectedLanguage[];
+
+ /** Block provenance. */
+ public provenance?: (google.cloud.documentai.v1beta3.Document.IProvenance|null);
+
+ /**
+ * Creates a new Block instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Block instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta3.Document.Page.IBlock): google.cloud.documentai.v1beta3.Document.Page.Block;
+
+ /**
+ * Encodes the specified Block message. Does not implicitly {@link google.cloud.documentai.v1beta3.Document.Page.Block.verify|verify} messages.
+ * @param message Block message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1beta3.Document.Page.IBlock, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Block message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta3.Document.Page.Block.verify|verify} messages.
+ * @param message Block message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1beta3.Document.Page.IBlock, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Block message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Block
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1beta3.Document.Page.Block;
+
+ /**
+ * Decodes a Block message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Block
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1beta3.Document.Page.Block;
+
+ /**
+ * Verifies a Block message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Block message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Block
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1beta3.Document.Page.Block;
+
+ /**
+ * Creates a plain object from a Block message. Also converts values to other types if specified.
+ * @param message Block
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1beta3.Document.Page.Block, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Block to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Block
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Paragraph. */
+ interface IParagraph {
+
+ /** Paragraph layout */
+ layout?: (google.cloud.documentai.v1beta3.Document.Page.ILayout|null);
+
+ /** Paragraph detectedLanguages */
+ detectedLanguages?: (google.cloud.documentai.v1beta3.Document.Page.IDetectedLanguage[]|null);
+
+ /** Paragraph provenance */
+ provenance?: (google.cloud.documentai.v1beta3.Document.IProvenance|null);
+ }
+
+ /** Represents a Paragraph. */
+ class Paragraph implements IParagraph {
+
+ /**
+ * Constructs a new Paragraph.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta3.Document.Page.IParagraph);
+
+ /** Paragraph layout. */
+ public layout?: (google.cloud.documentai.v1beta3.Document.Page.ILayout|null);
+
+ /** Paragraph detectedLanguages. */
+ public detectedLanguages: google.cloud.documentai.v1beta3.Document.Page.IDetectedLanguage[];
+
+ /** Paragraph provenance. */
+ public provenance?: (google.cloud.documentai.v1beta3.Document.IProvenance|null);
+
+ /**
+ * Creates a new Paragraph instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Paragraph instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta3.Document.Page.IParagraph): google.cloud.documentai.v1beta3.Document.Page.Paragraph;
+
+ /**
+ * Encodes the specified Paragraph message. Does not implicitly {@link google.cloud.documentai.v1beta3.Document.Page.Paragraph.verify|verify} messages.
+ * @param message Paragraph message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1beta3.Document.Page.IParagraph, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Paragraph message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta3.Document.Page.Paragraph.verify|verify} messages.
+ * @param message Paragraph message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1beta3.Document.Page.IParagraph, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Paragraph message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Paragraph
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1beta3.Document.Page.Paragraph;
+
+ /**
+ * Decodes a Paragraph message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Paragraph
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1beta3.Document.Page.Paragraph;
+
+ /**
+ * Verifies a Paragraph message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Paragraph message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Paragraph
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1beta3.Document.Page.Paragraph;
+
+ /**
+ * Creates a plain object from a Paragraph message. Also converts values to other types if specified.
+ * @param message Paragraph
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1beta3.Document.Page.Paragraph, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Paragraph to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Paragraph
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Line. */
+ interface ILine {
+
+ /** Line layout */
+ layout?: (google.cloud.documentai.v1beta3.Document.Page.ILayout|null);
+
+ /** Line detectedLanguages */
+ detectedLanguages?: (google.cloud.documentai.v1beta3.Document.Page.IDetectedLanguage[]|null);
+
+ /** Line provenance */
+ provenance?: (google.cloud.documentai.v1beta3.Document.IProvenance|null);
+ }
+
+ /** Represents a Line. */
+ class Line implements ILine {
+
+ /**
+ * Constructs a new Line.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta3.Document.Page.ILine);
+
+ /** Line layout. */
+ public layout?: (google.cloud.documentai.v1beta3.Document.Page.ILayout|null);
+
+ /** Line detectedLanguages. */
+ public detectedLanguages: google.cloud.documentai.v1beta3.Document.Page.IDetectedLanguage[];
+
+ /** Line provenance. */
+ public provenance?: (google.cloud.documentai.v1beta3.Document.IProvenance|null);
+
+ /**
+ * Creates a new Line instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Line instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta3.Document.Page.ILine): google.cloud.documentai.v1beta3.Document.Page.Line;
+
+ /**
+ * Encodes the specified Line message. Does not implicitly {@link google.cloud.documentai.v1beta3.Document.Page.Line.verify|verify} messages.
+ * @param message Line message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1beta3.Document.Page.ILine, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Line message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta3.Document.Page.Line.verify|verify} messages.
+ * @param message Line message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1beta3.Document.Page.ILine, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Line message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Line
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1beta3.Document.Page.Line;
+
+ /**
+ * Decodes a Line message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Line
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1beta3.Document.Page.Line;
+
+ /**
+ * Verifies a Line message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Line message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Line
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1beta3.Document.Page.Line;
+
+ /**
+ * Creates a plain object from a Line message. Also converts values to other types if specified.
+ * @param message Line
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1beta3.Document.Page.Line, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Line to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Line
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Token. */
+ interface IToken {
+
+ /** Token layout */
+ layout?: (google.cloud.documentai.v1beta3.Document.Page.ILayout|null);
+
+ /** Token detectedBreak */
+ detectedBreak?: (google.cloud.documentai.v1beta3.Document.Page.Token.IDetectedBreak|null);
+
+ /** Token detectedLanguages */
+ detectedLanguages?: (google.cloud.documentai.v1beta3.Document.Page.IDetectedLanguage[]|null);
+
+ /** Token provenance */
+ provenance?: (google.cloud.documentai.v1beta3.Document.IProvenance|null);
+ }
+
+ /** Represents a Token. */
+ class Token implements IToken {
+
+ /**
+ * Constructs a new Token.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta3.Document.Page.IToken);
+
+ /** Token layout. */
+ public layout?: (google.cloud.documentai.v1beta3.Document.Page.ILayout|null);
+
+ /** Token detectedBreak. */
+ public detectedBreak?: (google.cloud.documentai.v1beta3.Document.Page.Token.IDetectedBreak|null);
+
+ /** Token detectedLanguages. */
+ public detectedLanguages: google.cloud.documentai.v1beta3.Document.Page.IDetectedLanguage[];
+
+ /** Token provenance. */
+ public provenance?: (google.cloud.documentai.v1beta3.Document.IProvenance|null);
+
+ /**
+ * Creates a new Token instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Token instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta3.Document.Page.IToken): google.cloud.documentai.v1beta3.Document.Page.Token;
+
+ /**
+ * Encodes the specified Token message. Does not implicitly {@link google.cloud.documentai.v1beta3.Document.Page.Token.verify|verify} messages.
+ * @param message Token message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1beta3.Document.Page.IToken, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Token message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta3.Document.Page.Token.verify|verify} messages.
+ * @param message Token message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1beta3.Document.Page.IToken, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Token message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Token
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1beta3.Document.Page.Token;
+
+ /**
+ * Decodes a Token message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Token
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1beta3.Document.Page.Token;
+
+ /**
+ * Verifies a Token message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Token message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Token
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1beta3.Document.Page.Token;
+
+ /**
+ * Creates a plain object from a Token message. Also converts values to other types if specified.
+ * @param message Token
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1beta3.Document.Page.Token, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Token to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Token
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace Token {
+
+ /** Properties of a DetectedBreak. */
+ interface IDetectedBreak {
+
+ /** DetectedBreak type */
+ type?: (google.cloud.documentai.v1beta3.Document.Page.Token.DetectedBreak.Type|keyof typeof google.cloud.documentai.v1beta3.Document.Page.Token.DetectedBreak.Type|null);
+ }
+
+ /** Represents a DetectedBreak. */
+ class DetectedBreak implements IDetectedBreak {
+
+ /**
+ * Constructs a new DetectedBreak.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta3.Document.Page.Token.IDetectedBreak);
+
+ /** DetectedBreak type. */
+ public type: (google.cloud.documentai.v1beta3.Document.Page.Token.DetectedBreak.Type|keyof typeof google.cloud.documentai.v1beta3.Document.Page.Token.DetectedBreak.Type);
+
+ /**
+ * Creates a new DetectedBreak instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DetectedBreak instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta3.Document.Page.Token.IDetectedBreak): google.cloud.documentai.v1beta3.Document.Page.Token.DetectedBreak;
+
+ /**
+ * Encodes the specified DetectedBreak message. Does not implicitly {@link google.cloud.documentai.v1beta3.Document.Page.Token.DetectedBreak.verify|verify} messages.
+ * @param message DetectedBreak message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1beta3.Document.Page.Token.IDetectedBreak, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DetectedBreak message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta3.Document.Page.Token.DetectedBreak.verify|verify} messages.
+ * @param message DetectedBreak message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1beta3.Document.Page.Token.IDetectedBreak, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DetectedBreak message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DetectedBreak
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1beta3.Document.Page.Token.DetectedBreak;
+
+ /**
+ * Decodes a DetectedBreak message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DetectedBreak
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1beta3.Document.Page.Token.DetectedBreak;
+
+ /**
+ * Verifies a DetectedBreak message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DetectedBreak message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DetectedBreak
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1beta3.Document.Page.Token.DetectedBreak;
+
+ /**
+ * Creates a plain object from a DetectedBreak message. Also converts values to other types if specified.
+ * @param message DetectedBreak
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1beta3.Document.Page.Token.DetectedBreak, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DetectedBreak to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DetectedBreak
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace DetectedBreak {
+
+ /** Type enum. */
+ enum Type {
+ TYPE_UNSPECIFIED = 0,
+ SPACE = 1,
+ WIDE_SPACE = 2,
+ HYPHEN = 3
+ }
+ }
+ }
+
+ /** Properties of a Symbol. */
+ interface ISymbol {
+
+ /** Symbol layout */
+ layout?: (google.cloud.documentai.v1beta3.Document.Page.ILayout|null);
+
+ /** Symbol detectedLanguages */
+ detectedLanguages?: (google.cloud.documentai.v1beta3.Document.Page.IDetectedLanguage[]|null);
+ }
+
+ /** Represents a Symbol. */
+ class Symbol implements ISymbol {
+
+ /**
+ * Constructs a new Symbol.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta3.Document.Page.ISymbol);
+
+ /** Symbol layout. */
+ public layout?: (google.cloud.documentai.v1beta3.Document.Page.ILayout|null);
+
+ /** Symbol detectedLanguages. */
+ public detectedLanguages: google.cloud.documentai.v1beta3.Document.Page.IDetectedLanguage[];
+
+ /**
+ * Creates a new Symbol instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Symbol instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta3.Document.Page.ISymbol): google.cloud.documentai.v1beta3.Document.Page.Symbol;
+
+ /**
+ * Encodes the specified Symbol message. Does not implicitly {@link google.cloud.documentai.v1beta3.Document.Page.Symbol.verify|verify} messages.
+ * @param message Symbol message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1beta3.Document.Page.ISymbol, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Symbol message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta3.Document.Page.Symbol.verify|verify} messages.
+ * @param message Symbol message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1beta3.Document.Page.ISymbol, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Symbol message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Symbol
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1beta3.Document.Page.Symbol;
+
+ /**
+ * Decodes a Symbol message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Symbol
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1beta3.Document.Page.Symbol;
+
+ /**
+ * Verifies a Symbol message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Symbol message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Symbol
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1beta3.Document.Page.Symbol;
+
+ /**
+ * Creates a plain object from a Symbol message. Also converts values to other types if specified.
+ * @param message Symbol
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1beta3.Document.Page.Symbol, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Symbol to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Symbol
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a VisualElement. */
+ interface IVisualElement {
+
+ /** VisualElement layout */
+ layout?: (google.cloud.documentai.v1beta3.Document.Page.ILayout|null);
+
+ /** VisualElement type */
+ type?: (string|null);
+
+ /** VisualElement detectedLanguages */
+ detectedLanguages?: (google.cloud.documentai.v1beta3.Document.Page.IDetectedLanguage[]|null);
+ }
+
+ /** Represents a VisualElement. */
+ class VisualElement implements IVisualElement {
+
+ /**
+ * Constructs a new VisualElement.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta3.Document.Page.IVisualElement);
+
+ /** VisualElement layout. */
+ public layout?: (google.cloud.documentai.v1beta3.Document.Page.ILayout|null);
+
+ /** VisualElement type. */
+ public type: string;
+
+ /** VisualElement detectedLanguages. */
+ public detectedLanguages: google.cloud.documentai.v1beta3.Document.Page.IDetectedLanguage[];
+
+ /**
+ * Creates a new VisualElement instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns VisualElement instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta3.Document.Page.IVisualElement): google.cloud.documentai.v1beta3.Document.Page.VisualElement;
+
+ /**
+ * Encodes the specified VisualElement message. Does not implicitly {@link google.cloud.documentai.v1beta3.Document.Page.VisualElement.verify|verify} messages.
+ * @param message VisualElement message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1beta3.Document.Page.IVisualElement, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified VisualElement message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta3.Document.Page.VisualElement.verify|verify} messages.
+ * @param message VisualElement message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1beta3.Document.Page.IVisualElement, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a VisualElement message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns VisualElement
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1beta3.Document.Page.VisualElement;
+
+ /**
+ * Decodes a VisualElement message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns VisualElement
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1beta3.Document.Page.VisualElement;
+
+ /**
+ * Verifies a VisualElement message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a VisualElement message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns VisualElement
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1beta3.Document.Page.VisualElement;
+
+ /**
+ * Creates a plain object from a VisualElement message. Also converts values to other types if specified.
+ * @param message VisualElement
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1beta3.Document.Page.VisualElement, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this VisualElement to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for VisualElement
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Table. */
+ interface ITable {
+
+ /** Table layout */
+ layout?: (google.cloud.documentai.v1beta3.Document.Page.ILayout|null);
+
+ /** Table headerRows */
+ headerRows?: (google.cloud.documentai.v1beta3.Document.Page.Table.ITableRow[]|null);
+
+ /** Table bodyRows */
+ bodyRows?: (google.cloud.documentai.v1beta3.Document.Page.Table.ITableRow[]|null);
+
+ /** Table detectedLanguages */
+ detectedLanguages?: (google.cloud.documentai.v1beta3.Document.Page.IDetectedLanguage[]|null);
+ }
+
+ /** Represents a Table. */
+ class Table implements ITable {
+
+ /**
+ * Constructs a new Table.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta3.Document.Page.ITable);
+
+ /** Table layout. */
+ public layout?: (google.cloud.documentai.v1beta3.Document.Page.ILayout|null);
+
+ /** Table headerRows. */
+ public headerRows: google.cloud.documentai.v1beta3.Document.Page.Table.ITableRow[];
+
+ /** Table bodyRows. */
+ public bodyRows: google.cloud.documentai.v1beta3.Document.Page.Table.ITableRow[];
+
+ /** Table detectedLanguages. */
+ public detectedLanguages: google.cloud.documentai.v1beta3.Document.Page.IDetectedLanguage[];
+
+ /**
+ * Creates a new Table instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Table instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta3.Document.Page.ITable): google.cloud.documentai.v1beta3.Document.Page.Table;
+
+ /**
+ * Encodes the specified Table message. Does not implicitly {@link google.cloud.documentai.v1beta3.Document.Page.Table.verify|verify} messages.
+ * @param message Table message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1beta3.Document.Page.ITable, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Table message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta3.Document.Page.Table.verify|verify} messages.
+ * @param message Table message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1beta3.Document.Page.ITable, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Table message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Table
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1beta3.Document.Page.Table;
+
+ /**
+ * Decodes a Table message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Table
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1beta3.Document.Page.Table;
+
+ /**
+ * Verifies a Table message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Table message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Table
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1beta3.Document.Page.Table;
+
+ /**
+ * Creates a plain object from a Table message. Also converts values to other types if specified.
+ * @param message Table
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1beta3.Document.Page.Table, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Table to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Table
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace Table {
+
+ /** Properties of a TableRow. */
+ interface ITableRow {
+
+ /** TableRow cells */
+ cells?: (google.cloud.documentai.v1beta3.Document.Page.Table.ITableCell[]|null);
+ }
+
+ /** Represents a TableRow. */
+ class TableRow implements ITableRow {
+
+ /**
+ * Constructs a new TableRow.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta3.Document.Page.Table.ITableRow);
+
+ /** TableRow cells. */
+ public cells: google.cloud.documentai.v1beta3.Document.Page.Table.ITableCell[];
+
+ /**
+ * Creates a new TableRow instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns TableRow instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta3.Document.Page.Table.ITableRow): google.cloud.documentai.v1beta3.Document.Page.Table.TableRow;
+
+ /**
+ * Encodes the specified TableRow message. Does not implicitly {@link google.cloud.documentai.v1beta3.Document.Page.Table.TableRow.verify|verify} messages.
+ * @param message TableRow message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1beta3.Document.Page.Table.ITableRow, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified TableRow message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta3.Document.Page.Table.TableRow.verify|verify} messages.
+ * @param message TableRow message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1beta3.Document.Page.Table.ITableRow, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a TableRow message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns TableRow
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1beta3.Document.Page.Table.TableRow;
+
+ /**
+ * Decodes a TableRow message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns TableRow
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1beta3.Document.Page.Table.TableRow;
+
+ /**
+ * Verifies a TableRow message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a TableRow message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns TableRow
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1beta3.Document.Page.Table.TableRow;
+
+ /**
+ * Creates a plain object from a TableRow message. Also converts values to other types if specified.
+ * @param message TableRow
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1beta3.Document.Page.Table.TableRow, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this TableRow to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for TableRow
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a TableCell. */
+ interface ITableCell {
+
+ /** TableCell layout */
+ layout?: (google.cloud.documentai.v1beta3.Document.Page.ILayout|null);
+
+ /** TableCell rowSpan */
+ rowSpan?: (number|null);
+
+ /** TableCell colSpan */
+ colSpan?: (number|null);
+
+ /** TableCell detectedLanguages */
+ detectedLanguages?: (google.cloud.documentai.v1beta3.Document.Page.IDetectedLanguage[]|null);
+ }
+
+ /** Represents a TableCell. */
+ class TableCell implements ITableCell {
+
+ /**
+ * Constructs a new TableCell.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta3.Document.Page.Table.ITableCell);
+
+ /** TableCell layout. */
+ public layout?: (google.cloud.documentai.v1beta3.Document.Page.ILayout|null);
+
+ /** TableCell rowSpan. */
+ public rowSpan: number;
+
+ /** TableCell colSpan. */
+ public colSpan: number;
+
+ /** TableCell detectedLanguages. */
+ public detectedLanguages: google.cloud.documentai.v1beta3.Document.Page.IDetectedLanguage[];
+
+ /**
+ * Creates a new TableCell instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns TableCell instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta3.Document.Page.Table.ITableCell): google.cloud.documentai.v1beta3.Document.Page.Table.TableCell;
+
+ /**
+ * Encodes the specified TableCell message. Does not implicitly {@link google.cloud.documentai.v1beta3.Document.Page.Table.TableCell.verify|verify} messages.
+ * @param message TableCell message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1beta3.Document.Page.Table.ITableCell, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified TableCell message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta3.Document.Page.Table.TableCell.verify|verify} messages.
+ * @param message TableCell message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1beta3.Document.Page.Table.ITableCell, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a TableCell message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns TableCell
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1beta3.Document.Page.Table.TableCell;
+
+ /**
+ * Decodes a TableCell message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns TableCell
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1beta3.Document.Page.Table.TableCell;
+
+ /**
+ * Verifies a TableCell message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a TableCell message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns TableCell
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1beta3.Document.Page.Table.TableCell;
+
+ /**
+ * Creates a plain object from a TableCell message. Also converts values to other types if specified.
+ * @param message TableCell
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1beta3.Document.Page.Table.TableCell, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this TableCell to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for TableCell
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of a FormField. */
+ interface IFormField {
+
+ /** FormField fieldName */
+ fieldName?: (google.cloud.documentai.v1beta3.Document.Page.ILayout|null);
+
+ /** FormField fieldValue */
+ fieldValue?: (google.cloud.documentai.v1beta3.Document.Page.ILayout|null);
+
+ /** FormField nameDetectedLanguages */
+ nameDetectedLanguages?: (google.cloud.documentai.v1beta3.Document.Page.IDetectedLanguage[]|null);
+
+ /** FormField valueDetectedLanguages */
+ valueDetectedLanguages?: (google.cloud.documentai.v1beta3.Document.Page.IDetectedLanguage[]|null);
+
+ /** FormField valueType */
+ valueType?: (string|null);
+
+ /** FormField correctedKeyText */
+ correctedKeyText?: (string|null);
+
+ /** FormField correctedValueText */
+ correctedValueText?: (string|null);
+
+ /** FormField provenance */
+ provenance?: (google.cloud.documentai.v1beta3.Document.IProvenance|null);
+ }
+
+ /** Represents a FormField. */
+ class FormField implements IFormField {
+
+ /**
+ * Constructs a new FormField.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta3.Document.Page.IFormField);
+
+ /** FormField fieldName. */
+ public fieldName?: (google.cloud.documentai.v1beta3.Document.Page.ILayout|null);
+
+ /** FormField fieldValue. */
+ public fieldValue?: (google.cloud.documentai.v1beta3.Document.Page.ILayout|null);
+
+ /** FormField nameDetectedLanguages. */
+ public nameDetectedLanguages: google.cloud.documentai.v1beta3.Document.Page.IDetectedLanguage[];
+
+ /** FormField valueDetectedLanguages. */
+ public valueDetectedLanguages: google.cloud.documentai.v1beta3.Document.Page.IDetectedLanguage[];
+
+ /** FormField valueType. */
+ public valueType: string;
+
+ /** FormField correctedKeyText. */
+ public correctedKeyText: string;
+
+ /** FormField correctedValueText. */
+ public correctedValueText: string;
+
+ /** FormField provenance. */
+ public provenance?: (google.cloud.documentai.v1beta3.Document.IProvenance|null);
+
+ /**
+ * Creates a new FormField instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FormField instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta3.Document.Page.IFormField): google.cloud.documentai.v1beta3.Document.Page.FormField;
+
+ /**
+ * Encodes the specified FormField message. Does not implicitly {@link google.cloud.documentai.v1beta3.Document.Page.FormField.verify|verify} messages.
+ * @param message FormField message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1beta3.Document.Page.IFormField, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FormField message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta3.Document.Page.FormField.verify|verify} messages.
+ * @param message FormField message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1beta3.Document.Page.IFormField, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FormField message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FormField
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1beta3.Document.Page.FormField;
+
+ /**
+ * Decodes a FormField message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FormField
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1beta3.Document.Page.FormField;
+
+ /**
+ * Verifies a FormField message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FormField message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FormField
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1beta3.Document.Page.FormField;
+
+ /**
+ * Creates a plain object from a FormField message. Also converts values to other types if specified.
+ * @param message FormField
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1beta3.Document.Page.FormField, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FormField to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FormField
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DetectedBarcode. */
+ interface IDetectedBarcode {
+
+ /** DetectedBarcode layout */
+ layout?: (google.cloud.documentai.v1beta3.Document.Page.ILayout|null);
+
+ /** DetectedBarcode barcode */
+ barcode?: (google.cloud.documentai.v1beta3.IBarcode|null);
+ }
+
+ /** Represents a DetectedBarcode. */
+ class DetectedBarcode implements IDetectedBarcode {
+
+ /**
+ * Constructs a new DetectedBarcode.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta3.Document.Page.IDetectedBarcode);
+
+ /** DetectedBarcode layout. */
+ public layout?: (google.cloud.documentai.v1beta3.Document.Page.ILayout|null);
+
+ /** DetectedBarcode barcode. */
+ public barcode?: (google.cloud.documentai.v1beta3.IBarcode|null);
+
+ /**
+ * Creates a new DetectedBarcode instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DetectedBarcode instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta3.Document.Page.IDetectedBarcode): google.cloud.documentai.v1beta3.Document.Page.DetectedBarcode;
+
+ /**
+ * Encodes the specified DetectedBarcode message. Does not implicitly {@link google.cloud.documentai.v1beta3.Document.Page.DetectedBarcode.verify|verify} messages.
+ * @param message DetectedBarcode message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1beta3.Document.Page.IDetectedBarcode, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DetectedBarcode message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta3.Document.Page.DetectedBarcode.verify|verify} messages.
+ * @param message DetectedBarcode message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1beta3.Document.Page.IDetectedBarcode, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DetectedBarcode message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DetectedBarcode
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1beta3.Document.Page.DetectedBarcode;
+
+ /**
+ * Decodes a DetectedBarcode message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DetectedBarcode
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1beta3.Document.Page.DetectedBarcode;
+
+ /**
+ * Verifies a DetectedBarcode message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DetectedBarcode message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DetectedBarcode
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1beta3.Document.Page.DetectedBarcode;
+
+ /**
+ * Creates a plain object from a DetectedBarcode message. Also converts values to other types if specified.
+ * @param message DetectedBarcode
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1beta3.Document.Page.DetectedBarcode, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DetectedBarcode to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DetectedBarcode
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DetectedLanguage. */
+ interface IDetectedLanguage {
+
+ /** DetectedLanguage languageCode */
+ languageCode?: (string|null);
+
+ /** DetectedLanguage confidence */
+ confidence?: (number|null);
+ }
+
+ /** Represents a DetectedLanguage. */
+ class DetectedLanguage implements IDetectedLanguage {
+
+ /**
+ * Constructs a new DetectedLanguage.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta3.Document.Page.IDetectedLanguage);
+
+ /** DetectedLanguage languageCode. */
+ public languageCode: string;
+
+ /** DetectedLanguage confidence. */
+ public confidence: number;
+
+ /**
+ * Creates a new DetectedLanguage instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DetectedLanguage instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta3.Document.Page.IDetectedLanguage): google.cloud.documentai.v1beta3.Document.Page.DetectedLanguage;
+
+ /**
+ * Encodes the specified DetectedLanguage message. Does not implicitly {@link google.cloud.documentai.v1beta3.Document.Page.DetectedLanguage.verify|verify} messages.
+ * @param message DetectedLanguage message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1beta3.Document.Page.IDetectedLanguage, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DetectedLanguage message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta3.Document.Page.DetectedLanguage.verify|verify} messages.
+ * @param message DetectedLanguage message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1beta3.Document.Page.IDetectedLanguage, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DetectedLanguage message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DetectedLanguage
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1beta3.Document.Page.DetectedLanguage;
+
+ /**
+ * Decodes a DetectedLanguage message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DetectedLanguage
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1beta3.Document.Page.DetectedLanguage;
+
+ /**
+ * Verifies a DetectedLanguage message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DetectedLanguage message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DetectedLanguage
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1beta3.Document.Page.DetectedLanguage;
+
+ /**
+ * Creates a plain object from a DetectedLanguage message. Also converts values to other types if specified.
+ * @param message DetectedLanguage
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1beta3.Document.Page.DetectedLanguage, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DetectedLanguage to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DetectedLanguage
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of an Entity. */
+ interface IEntity {
+
+ /** Entity textAnchor */
+ textAnchor?: (google.cloud.documentai.v1beta3.Document.ITextAnchor|null);
+
+ /** Entity type */
+ type?: (string|null);
+
+ /** Entity mentionText */
+ mentionText?: (string|null);
+
+ /** Entity mentionId */
+ mentionId?: (string|null);
+
+ /** Entity confidence */
+ confidence?: (number|null);
+
+ /** Entity pageAnchor */
+ pageAnchor?: (google.cloud.documentai.v1beta3.Document.IPageAnchor|null);
+
+ /** Entity id */
+ id?: (string|null);
+
+ /** Entity normalizedValue */
+ normalizedValue?: (google.cloud.documentai.v1beta3.Document.Entity.INormalizedValue|null);
+
+ /** Entity properties */
+ properties?: (google.cloud.documentai.v1beta3.Document.IEntity[]|null);
+
+ /** Entity provenance */
+ provenance?: (google.cloud.documentai.v1beta3.Document.IProvenance|null);
+
+ /** Entity redacted */
+ redacted?: (boolean|null);
+ }
+
+ /** Represents an Entity. */
+ class Entity implements IEntity {
+
+ /**
+ * Constructs a new Entity.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta3.Document.IEntity);
+
+ /** Entity textAnchor. */
+ public textAnchor?: (google.cloud.documentai.v1beta3.Document.ITextAnchor|null);
+
+ /** Entity type. */
+ public type: string;
+
+ /** Entity mentionText. */
+ public mentionText: string;
+
+ /** Entity mentionId. */
+ public mentionId: string;
+
+ /** Entity confidence. */
+ public confidence: number;
+
+ /** Entity pageAnchor. */
+ public pageAnchor?: (google.cloud.documentai.v1beta3.Document.IPageAnchor|null);
+
+ /** Entity id. */
+ public id: string;
+
+ /** Entity normalizedValue. */
+ public normalizedValue?: (google.cloud.documentai.v1beta3.Document.Entity.INormalizedValue|null);
+
+ /** Entity properties. */
+ public properties: google.cloud.documentai.v1beta3.Document.IEntity[];
+
+ /** Entity provenance. */
+ public provenance?: (google.cloud.documentai.v1beta3.Document.IProvenance|null);
+
+ /** Entity redacted. */
+ public redacted: boolean;
+
+ /**
+ * Creates a new Entity instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Entity instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta3.Document.IEntity): google.cloud.documentai.v1beta3.Document.Entity;
+
+ /**
+ * Encodes the specified Entity message. Does not implicitly {@link google.cloud.documentai.v1beta3.Document.Entity.verify|verify} messages.
+ * @param message Entity message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1beta3.Document.IEntity, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Entity message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta3.Document.Entity.verify|verify} messages.
+ * @param message Entity message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1beta3.Document.IEntity, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an Entity message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Entity
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1beta3.Document.Entity;
+
+ /**
+ * Decodes an Entity message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Entity
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1beta3.Document.Entity;
+
+ /**
+ * Verifies an Entity message.
+ * @param message Plain 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 Entity message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Entity
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1beta3.Document.Entity;
+
+ /**
+ * Creates a plain object from an Entity message. Also converts values to other types if specified.
+ * @param message Entity
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1beta3.Document.Entity, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Entity to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Entity
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace Entity {
+
+ /** Properties of a NormalizedValue. */
+ interface INormalizedValue {
+
+ /** NormalizedValue moneyValue */
+ moneyValue?: (google.type.IMoney|null);
+
+ /** NormalizedValue dateValue */
+ dateValue?: (google.type.IDate|null);
+
+ /** NormalizedValue datetimeValue */
+ datetimeValue?: (google.type.IDateTime|null);
+
+ /** NormalizedValue addressValue */
+ addressValue?: (google.type.IPostalAddress|null);
+
+ /** NormalizedValue booleanValue */
+ booleanValue?: (boolean|null);
+
+ /** NormalizedValue integerValue */
+ integerValue?: (number|null);
+
+ /** NormalizedValue floatValue */
+ floatValue?: (number|null);
+
+ /** NormalizedValue text */
+ text?: (string|null);
+ }
+
+ /** Represents a NormalizedValue. */
+ class NormalizedValue implements INormalizedValue {
+
+ /**
+ * Constructs a new NormalizedValue.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta3.Document.Entity.INormalizedValue);
+
+ /** NormalizedValue moneyValue. */
+ public moneyValue?: (google.type.IMoney|null);
+
+ /** NormalizedValue dateValue. */
+ public dateValue?: (google.type.IDate|null);
+
+ /** NormalizedValue datetimeValue. */
+ public datetimeValue?: (google.type.IDateTime|null);
+
+ /** NormalizedValue addressValue. */
+ public addressValue?: (google.type.IPostalAddress|null);
+
+ /** NormalizedValue booleanValue. */
+ public booleanValue?: (boolean|null);
+
+ /** NormalizedValue integerValue. */
+ public integerValue?: (number|null);
+
+ /** NormalizedValue floatValue. */
+ public floatValue?: (number|null);
+
+ /** NormalizedValue text. */
+ public text: string;
+
+ /** NormalizedValue structuredValue. */
+ public structuredValue?: ("moneyValue"|"dateValue"|"datetimeValue"|"addressValue"|"booleanValue"|"integerValue"|"floatValue");
+
+ /**
+ * Creates a new NormalizedValue instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns NormalizedValue instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta3.Document.Entity.INormalizedValue): google.cloud.documentai.v1beta3.Document.Entity.NormalizedValue;
+
+ /**
+ * Encodes the specified NormalizedValue message. Does not implicitly {@link google.cloud.documentai.v1beta3.Document.Entity.NormalizedValue.verify|verify} messages.
+ * @param message NormalizedValue message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1beta3.Document.Entity.INormalizedValue, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified NormalizedValue message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta3.Document.Entity.NormalizedValue.verify|verify} messages.
+ * @param message NormalizedValue message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1beta3.Document.Entity.INormalizedValue, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a NormalizedValue message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns NormalizedValue
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1beta3.Document.Entity.NormalizedValue;
+
+ /**
+ * Decodes a NormalizedValue message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns NormalizedValue
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1beta3.Document.Entity.NormalizedValue;
+
+ /**
+ * Verifies a NormalizedValue message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a NormalizedValue message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns NormalizedValue
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1beta3.Document.Entity.NormalizedValue;
+
+ /**
+ * Creates a plain object from a NormalizedValue message. Also converts values to other types if specified.
+ * @param message NormalizedValue
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1beta3.Document.Entity.NormalizedValue, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this NormalizedValue to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for NormalizedValue
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of an EntityRelation. */
+ interface IEntityRelation {
+
+ /** EntityRelation subjectId */
+ subjectId?: (string|null);
+
+ /** EntityRelation objectId */
+ objectId?: (string|null);
+
+ /** EntityRelation relation */
+ relation?: (string|null);
+ }
+
+ /** Represents an EntityRelation. */
+ class EntityRelation implements IEntityRelation {
+
+ /**
+ * Constructs a new EntityRelation.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta3.Document.IEntityRelation);
+
+ /** EntityRelation subjectId. */
+ public subjectId: string;
+
+ /** EntityRelation objectId. */
+ public objectId: string;
+
+ /** EntityRelation relation. */
+ public relation: string;
+
+ /**
+ * Creates a new EntityRelation instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns EntityRelation instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta3.Document.IEntityRelation): google.cloud.documentai.v1beta3.Document.EntityRelation;
+
+ /**
+ * Encodes the specified EntityRelation message. Does not implicitly {@link google.cloud.documentai.v1beta3.Document.EntityRelation.verify|verify} messages.
+ * @param message EntityRelation message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1beta3.Document.IEntityRelation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified EntityRelation message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta3.Document.EntityRelation.verify|verify} messages.
+ * @param message EntityRelation message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1beta3.Document.IEntityRelation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an EntityRelation message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns EntityRelation
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1beta3.Document.EntityRelation;
+
+ /**
+ * Decodes an EntityRelation message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns EntityRelation
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1beta3.Document.EntityRelation;
+
+ /**
+ * Verifies an EntityRelation message.
+ * @param message Plain 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 EntityRelation message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns EntityRelation
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1beta3.Document.EntityRelation;
+
+ /**
+ * Creates a plain object from an EntityRelation message. Also converts values to other types if specified.
+ * @param message EntityRelation
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1beta3.Document.EntityRelation, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this EntityRelation to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for EntityRelation
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a TextAnchor. */
+ interface ITextAnchor {
+
+ /** TextAnchor textSegments */
+ textSegments?: (google.cloud.documentai.v1beta3.Document.TextAnchor.ITextSegment[]|null);
+
+ /** TextAnchor content */
+ content?: (string|null);
+ }
+
+ /** Represents a TextAnchor. */
+ class TextAnchor implements ITextAnchor {
+
+ /**
+ * Constructs a new TextAnchor.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta3.Document.ITextAnchor);
+
+ /** TextAnchor textSegments. */
+ public textSegments: google.cloud.documentai.v1beta3.Document.TextAnchor.ITextSegment[];
+
+ /** TextAnchor content. */
+ public content: string;
+
+ /**
+ * Creates a new TextAnchor instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns TextAnchor instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta3.Document.ITextAnchor): google.cloud.documentai.v1beta3.Document.TextAnchor;
+
+ /**
+ * Encodes the specified TextAnchor message. Does not implicitly {@link google.cloud.documentai.v1beta3.Document.TextAnchor.verify|verify} messages.
+ * @param message TextAnchor message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1beta3.Document.ITextAnchor, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified TextAnchor message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta3.Document.TextAnchor.verify|verify} messages.
+ * @param message TextAnchor message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1beta3.Document.ITextAnchor, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a TextAnchor message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns TextAnchor
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1beta3.Document.TextAnchor;
+
+ /**
+ * Decodes a TextAnchor message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns TextAnchor
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1beta3.Document.TextAnchor;
+
+ /**
+ * Verifies a TextAnchor message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a TextAnchor message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns TextAnchor
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1beta3.Document.TextAnchor;
+
+ /**
+ * Creates a plain object from a TextAnchor message. Also converts values to other types if specified.
+ * @param message TextAnchor
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1beta3.Document.TextAnchor, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this TextAnchor to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for TextAnchor
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace TextAnchor {
+
+ /** Properties of a TextSegment. */
+ interface ITextSegment {
+
+ /** TextSegment startIndex */
+ startIndex?: (number|Long|string|null);
+
+ /** TextSegment endIndex */
+ endIndex?: (number|Long|string|null);
+ }
+
+ /** Represents a TextSegment. */
+ class TextSegment implements ITextSegment {
+
+ /**
+ * Constructs a new TextSegment.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta3.Document.TextAnchor.ITextSegment);
+
+ /** TextSegment startIndex. */
+ public startIndex: (number|Long|string);
+
+ /** TextSegment endIndex. */
+ public endIndex: (number|Long|string);
+
+ /**
+ * Creates a new TextSegment instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns TextSegment instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta3.Document.TextAnchor.ITextSegment): google.cloud.documentai.v1beta3.Document.TextAnchor.TextSegment;
+
+ /**
+ * Encodes the specified TextSegment message. Does not implicitly {@link google.cloud.documentai.v1beta3.Document.TextAnchor.TextSegment.verify|verify} messages.
+ * @param message TextSegment message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1beta3.Document.TextAnchor.ITextSegment, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified TextSegment message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta3.Document.TextAnchor.TextSegment.verify|verify} messages.
+ * @param message TextSegment message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1beta3.Document.TextAnchor.ITextSegment, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a TextSegment message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns TextSegment
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1beta3.Document.TextAnchor.TextSegment;
+
+ /**
+ * Decodes a TextSegment message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns TextSegment
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1beta3.Document.TextAnchor.TextSegment;
+
+ /**
+ * Verifies a TextSegment message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a TextSegment message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns TextSegment
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1beta3.Document.TextAnchor.TextSegment;
+
+ /**
+ * Creates a plain object from a TextSegment message. Also converts values to other types if specified.
+ * @param message TextSegment
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1beta3.Document.TextAnchor.TextSegment, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this TextSegment to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for TextSegment
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of a PageAnchor. */
+ interface IPageAnchor {
+
+ /** PageAnchor pageRefs */
+ pageRefs?: (google.cloud.documentai.v1beta3.Document.PageAnchor.IPageRef[]|null);
+ }
+
+ /** Represents a PageAnchor. */
+ class PageAnchor implements IPageAnchor {
+
+ /**
+ * Constructs a new PageAnchor.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta3.Document.IPageAnchor);
+
+ /** PageAnchor pageRefs. */
+ public pageRefs: google.cloud.documentai.v1beta3.Document.PageAnchor.IPageRef[];
+
+ /**
+ * Creates a new PageAnchor instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns PageAnchor instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta3.Document.IPageAnchor): google.cloud.documentai.v1beta3.Document.PageAnchor;
+
+ /**
+ * Encodes the specified PageAnchor message. Does not implicitly {@link google.cloud.documentai.v1beta3.Document.PageAnchor.verify|verify} messages.
+ * @param message PageAnchor message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1beta3.Document.IPageAnchor, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified PageAnchor message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta3.Document.PageAnchor.verify|verify} messages.
+ * @param message PageAnchor message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1beta3.Document.IPageAnchor, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a PageAnchor message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns PageAnchor
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1beta3.Document.PageAnchor;
+
+ /**
+ * Decodes a PageAnchor message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns PageAnchor
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1beta3.Document.PageAnchor;
+
+ /**
+ * Verifies a PageAnchor message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a PageAnchor message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns PageAnchor
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1beta3.Document.PageAnchor;
+
+ /**
+ * Creates a plain object from a PageAnchor message. Also converts values to other types if specified.
+ * @param message PageAnchor
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1beta3.Document.PageAnchor, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this PageAnchor to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for PageAnchor
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace PageAnchor {
+
+ /** Properties of a PageRef. */
+ interface IPageRef {
+
+ /** PageRef page */
+ page?: (number|Long|string|null);
+
+ /** PageRef layoutType */
+ layoutType?: (google.cloud.documentai.v1beta3.Document.PageAnchor.PageRef.LayoutType|keyof typeof google.cloud.documentai.v1beta3.Document.PageAnchor.PageRef.LayoutType|null);
+
+ /** PageRef layoutId */
+ layoutId?: (string|null);
+
+ /** PageRef boundingPoly */
+ boundingPoly?: (google.cloud.documentai.v1beta3.IBoundingPoly|null);
+
+ /** PageRef confidence */
+ confidence?: (number|null);
+ }
+
+ /** Represents a PageRef. */
+ class PageRef implements IPageRef {
+
+ /**
+ * Constructs a new PageRef.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta3.Document.PageAnchor.IPageRef);
+
+ /** PageRef page. */
+ public page: (number|Long|string);
+
+ /** PageRef layoutType. */
+ public layoutType: (google.cloud.documentai.v1beta3.Document.PageAnchor.PageRef.LayoutType|keyof typeof google.cloud.documentai.v1beta3.Document.PageAnchor.PageRef.LayoutType);
+
+ /** PageRef layoutId. */
+ public layoutId: string;
+
+ /** PageRef boundingPoly. */
+ public boundingPoly?: (google.cloud.documentai.v1beta3.IBoundingPoly|null);
+
+ /** PageRef confidence. */
+ public confidence: number;
+
+ /**
+ * Creates a new PageRef instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns PageRef instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta3.Document.PageAnchor.IPageRef): google.cloud.documentai.v1beta3.Document.PageAnchor.PageRef;
+
+ /**
+ * Encodes the specified PageRef message. Does not implicitly {@link google.cloud.documentai.v1beta3.Document.PageAnchor.PageRef.verify|verify} messages.
+ * @param message PageRef message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1beta3.Document.PageAnchor.IPageRef, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified PageRef message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta3.Document.PageAnchor.PageRef.verify|verify} messages.
+ * @param message PageRef message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1beta3.Document.PageAnchor.IPageRef, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a PageRef message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns PageRef
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1beta3.Document.PageAnchor.PageRef;
+
+ /**
+ * Decodes a PageRef message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns PageRef
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1beta3.Document.PageAnchor.PageRef;
+
+ /**
+ * Verifies a PageRef message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a PageRef message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns PageRef
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1beta3.Document.PageAnchor.PageRef;
+
+ /**
+ * Creates a plain object from a PageRef message. Also converts values to other types if specified.
+ * @param message PageRef
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1beta3.Document.PageAnchor.PageRef, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this PageRef to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for PageRef
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace PageRef {
+
+ /** LayoutType enum. */
+ enum LayoutType {
+ LAYOUT_TYPE_UNSPECIFIED = 0,
+ BLOCK = 1,
+ PARAGRAPH = 2,
+ LINE = 3,
+ TOKEN = 4,
+ VISUAL_ELEMENT = 5,
+ TABLE = 6,
+ FORM_FIELD = 7
+ }
+ }
+ }
+
+ /** Properties of a Provenance. */
+ interface IProvenance {
+
+ /** Provenance revision */
+ revision?: (number|null);
+
+ /** Provenance id */
+ id?: (number|null);
+
+ /** Provenance parents */
+ parents?: (google.cloud.documentai.v1beta3.Document.Provenance.IParent[]|null);
+
+ /** Provenance type */
+ type?: (google.cloud.documentai.v1beta3.Document.Provenance.OperationType|keyof typeof google.cloud.documentai.v1beta3.Document.Provenance.OperationType|null);
+ }
+
+ /** Represents a Provenance. */
+ class Provenance implements IProvenance {
+
+ /**
+ * Constructs a new Provenance.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta3.Document.IProvenance);
+
+ /** Provenance revision. */
+ public revision: number;
+
+ /** Provenance id. */
+ public id: number;
+
+ /** Provenance parents. */
+ public parents: google.cloud.documentai.v1beta3.Document.Provenance.IParent[];
+
+ /** Provenance type. */
+ public type: (google.cloud.documentai.v1beta3.Document.Provenance.OperationType|keyof typeof google.cloud.documentai.v1beta3.Document.Provenance.OperationType);
+
+ /**
+ * Creates a new Provenance instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Provenance instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta3.Document.IProvenance): google.cloud.documentai.v1beta3.Document.Provenance;
+
+ /**
+ * Encodes the specified Provenance message. Does not implicitly {@link google.cloud.documentai.v1beta3.Document.Provenance.verify|verify} messages.
+ * @param message Provenance message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1beta3.Document.IProvenance, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Provenance message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta3.Document.Provenance.verify|verify} messages.
+ * @param message Provenance message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1beta3.Document.IProvenance, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Provenance message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Provenance
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1beta3.Document.Provenance;
+
+ /**
+ * Decodes a Provenance message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Provenance
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1beta3.Document.Provenance;
+
+ /**
+ * Verifies a Provenance message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Provenance message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Provenance
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1beta3.Document.Provenance;
+
+ /**
+ * Creates a plain object from a Provenance message. Also converts values to other types if specified.
+ * @param message Provenance
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1beta3.Document.Provenance, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Provenance to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Provenance
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace Provenance {
+
+ /** Properties of a Parent. */
+ interface IParent {
+
+ /** Parent revision */
+ revision?: (number|null);
+
+ /** Parent index */
+ index?: (number|null);
+
+ /** Parent id */
+ id?: (number|null);
+ }
+
+ /** Represents a Parent. */
+ class Parent implements IParent {
+
+ /**
+ * Constructs a new Parent.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta3.Document.Provenance.IParent);
+
+ /** Parent revision. */
+ public revision: number;
+
+ /** Parent index. */
+ public index: number;
+
+ /** Parent id. */
+ public id: number;
+
+ /**
+ * Creates a new Parent instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Parent instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta3.Document.Provenance.IParent): google.cloud.documentai.v1beta3.Document.Provenance.Parent;
+
+ /**
+ * Encodes the specified Parent message. Does not implicitly {@link google.cloud.documentai.v1beta3.Document.Provenance.Parent.verify|verify} messages.
+ * @param message Parent message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1beta3.Document.Provenance.IParent, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Parent message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta3.Document.Provenance.Parent.verify|verify} messages.
+ * @param message Parent message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1beta3.Document.Provenance.IParent, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Parent message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Parent
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1beta3.Document.Provenance.Parent;
+
+ /**
+ * Decodes a Parent message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Parent
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1beta3.Document.Provenance.Parent;
+
+ /**
+ * Verifies a Parent message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Parent message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Parent
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1beta3.Document.Provenance.Parent;
+
+ /**
+ * Creates a plain object from a Parent message. Also converts values to other types if specified.
+ * @param message Parent
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1beta3.Document.Provenance.Parent, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Parent to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Parent
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** OperationType enum. */
+ enum OperationType {
+ OPERATION_TYPE_UNSPECIFIED = 0,
+ ADD = 1,
+ REMOVE = 2,
+ REPLACE = 3,
+ EVAL_REQUESTED = 4,
+ EVAL_APPROVED = 5,
+ EVAL_SKIPPED = 6
+ }
+ }
+
+ /** Properties of a Revision. */
+ interface IRevision {
+
+ /** Revision agent */
+ agent?: (string|null);
+
+ /** Revision processor */
+ processor?: (string|null);
+
+ /** Revision id */
+ id?: (string|null);
+
+ /** Revision parent */
+ parent?: (number[]|null);
+
+ /** Revision parentIds */
+ parentIds?: (string[]|null);
+
+ /** Revision createTime */
+ createTime?: (google.protobuf.ITimestamp|null);
+
+ /** Revision humanReview */
+ humanReview?: (google.cloud.documentai.v1beta3.Document.Revision.IHumanReview|null);
+ }
+
+ /** Represents a Revision. */
+ class Revision implements IRevision {
+
+ /**
+ * Constructs a new Revision.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta3.Document.IRevision);
+
+ /** Revision agent. */
+ public agent?: (string|null);
+
+ /** Revision processor. */
+ public processor?: (string|null);
+
+ /** Revision id. */
+ public id: string;
+
+ /** Revision parent. */
+ public parent: number[];
+
+ /** Revision parentIds. */
+ public parentIds: string[];
+
+ /** Revision createTime. */
+ public createTime?: (google.protobuf.ITimestamp|null);
+
+ /** Revision humanReview. */
+ public humanReview?: (google.cloud.documentai.v1beta3.Document.Revision.IHumanReview|null);
+
+ /** Revision source. */
+ public source?: ("agent"|"processor");
+
+ /**
+ * Creates a new Revision instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Revision instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta3.Document.IRevision): google.cloud.documentai.v1beta3.Document.Revision;
+
+ /**
+ * Encodes the specified Revision message. Does not implicitly {@link google.cloud.documentai.v1beta3.Document.Revision.verify|verify} messages.
+ * @param message Revision message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1beta3.Document.IRevision, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Revision message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta3.Document.Revision.verify|verify} messages.
+ * @param message Revision message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1beta3.Document.IRevision, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Revision message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Revision
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1beta3.Document.Revision;
+
+ /**
+ * Decodes a Revision message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Revision
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1beta3.Document.Revision;
+
+ /**
+ * Verifies a Revision message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Revision message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Revision
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1beta3.Document.Revision;
+
+ /**
+ * Creates a plain object from a Revision message. Also converts values to other types if specified.
+ * @param message Revision
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1beta3.Document.Revision, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Revision to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Revision
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace Revision {
+
+ /** Properties of a HumanReview. */
+ interface IHumanReview {
+
+ /** HumanReview state */
+ state?: (string|null);
+
+ /** HumanReview stateMessage */
+ stateMessage?: (string|null);
+ }
+
+ /** Represents a HumanReview. */
+ class HumanReview implements IHumanReview {
+
+ /**
+ * Constructs a new HumanReview.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta3.Document.Revision.IHumanReview);
+
+ /** HumanReview state. */
+ public state: string;
+
+ /** HumanReview stateMessage. */
+ public stateMessage: string;
+
+ /**
+ * Creates a new HumanReview instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns HumanReview instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta3.Document.Revision.IHumanReview): google.cloud.documentai.v1beta3.Document.Revision.HumanReview;
+
+ /**
+ * Encodes the specified HumanReview message. Does not implicitly {@link google.cloud.documentai.v1beta3.Document.Revision.HumanReview.verify|verify} messages.
+ * @param message HumanReview message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1beta3.Document.Revision.IHumanReview, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified HumanReview message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta3.Document.Revision.HumanReview.verify|verify} messages.
+ * @param message HumanReview message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1beta3.Document.Revision.IHumanReview, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a HumanReview message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns HumanReview
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1beta3.Document.Revision.HumanReview;
+
+ /**
+ * Decodes a HumanReview message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns HumanReview
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1beta3.Document.Revision.HumanReview;
+
+ /**
+ * Verifies a HumanReview message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a HumanReview message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns HumanReview
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1beta3.Document.Revision.HumanReview;
+
+ /**
+ * Creates a plain object from a HumanReview message. Also converts values to other types if specified.
+ * @param message HumanReview
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1beta3.Document.Revision.HumanReview, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this HumanReview to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for HumanReview
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of a TextChange. */
+ interface ITextChange {
+
+ /** TextChange textAnchor */
+ textAnchor?: (google.cloud.documentai.v1beta3.Document.ITextAnchor|null);
+
+ /** TextChange changedText */
+ changedText?: (string|null);
+
+ /** TextChange provenance */
+ provenance?: (google.cloud.documentai.v1beta3.Document.IProvenance[]|null);
+ }
+
+ /** Represents a TextChange. */
+ class TextChange implements ITextChange {
+
+ /**
+ * Constructs a new TextChange.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta3.Document.ITextChange);
+
+ /** TextChange textAnchor. */
+ public textAnchor?: (google.cloud.documentai.v1beta3.Document.ITextAnchor|null);
+
+ /** TextChange changedText. */
+ public changedText: string;
+
+ /** TextChange provenance. */
+ public provenance: google.cloud.documentai.v1beta3.Document.IProvenance[];
+
+ /**
+ * Creates a new TextChange instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns TextChange instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta3.Document.ITextChange): google.cloud.documentai.v1beta3.Document.TextChange;
+
+ /**
+ * Encodes the specified TextChange message. Does not implicitly {@link google.cloud.documentai.v1beta3.Document.TextChange.verify|verify} messages.
+ * @param message TextChange message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1beta3.Document.ITextChange, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified TextChange message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta3.Document.TextChange.verify|verify} messages.
+ * @param message TextChange message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1beta3.Document.ITextChange, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a TextChange message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns TextChange
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1beta3.Document.TextChange;
+
+ /**
+ * Decodes a TextChange message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns TextChange
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1beta3.Document.TextChange;
+
+ /**
+ * Verifies a TextChange message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a TextChange message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns TextChange
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1beta3.Document.TextChange;
+
+ /**
+ * Creates a plain object from a TextChange message. Also converts values to other types if specified.
+ * @param message TextChange
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1beta3.Document.TextChange, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this TextChange to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for TextChange
+ * @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.documentai.v1beta3.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.documentai.v1beta3.IVertex): google.cloud.documentai.v1beta3.Vertex;
+
+ /**
+ * Encodes the specified Vertex message. Does not implicitly {@link google.cloud.documentai.v1beta3.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.documentai.v1beta3.IVertex, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Vertex message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta3.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.documentai.v1beta3.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.documentai.v1beta3.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.documentai.v1beta3.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.documentai.v1beta3.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.documentai.v1beta3.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.documentai.v1beta3.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.documentai.v1beta3.INormalizedVertex): google.cloud.documentai.v1beta3.NormalizedVertex;
+
+ /**
+ * Encodes the specified NormalizedVertex message. Does not implicitly {@link google.cloud.documentai.v1beta3.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.documentai.v1beta3.INormalizedVertex, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified NormalizedVertex message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta3.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.documentai.v1beta3.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.documentai.v1beta3.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.documentai.v1beta3.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.documentai.v1beta3.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.documentai.v1beta3.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.documentai.v1beta3.IVertex[]|null);
+
+ /** BoundingPoly normalizedVertices */
+ normalizedVertices?: (google.cloud.documentai.v1beta3.INormalizedVertex[]|null);
+ }
+
+ /** Represents a BoundingPoly. */
+ class BoundingPoly implements IBoundingPoly {
+
+ /**
+ * Constructs a new BoundingPoly.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta3.IBoundingPoly);
+
+ /** BoundingPoly vertices. */
+ public vertices: google.cloud.documentai.v1beta3.IVertex[];
+
+ /** BoundingPoly normalizedVertices. */
+ public normalizedVertices: google.cloud.documentai.v1beta3.INormalizedVertex[];
+
+ /**
+ * Creates a new BoundingPoly instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns BoundingPoly instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta3.IBoundingPoly): google.cloud.documentai.v1beta3.BoundingPoly;
+
+ /**
+ * Encodes the specified BoundingPoly message. Does not implicitly {@link google.cloud.documentai.v1beta3.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.documentai.v1beta3.IBoundingPoly, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified BoundingPoly message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta3.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.documentai.v1beta3.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.documentai.v1beta3.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.documentai.v1beta3.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.documentai.v1beta3.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.documentai.v1beta3.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 RawDocument. */
+ interface IRawDocument {
+
+ /** RawDocument content */
+ content?: (Uint8Array|string|null);
+
+ /** RawDocument mimeType */
+ mimeType?: (string|null);
+ }
+
+ /** Represents a RawDocument. */
+ class RawDocument implements IRawDocument {
+
+ /**
+ * Constructs a new RawDocument.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta3.IRawDocument);
+
+ /** RawDocument content. */
+ public content: (Uint8Array|string);
+
+ /** RawDocument mimeType. */
+ public mimeType: string;
+
+ /**
+ * Creates a new RawDocument instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns RawDocument instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta3.IRawDocument): google.cloud.documentai.v1beta3.RawDocument;
+
+ /**
+ * Encodes the specified RawDocument message. Does not implicitly {@link google.cloud.documentai.v1beta3.RawDocument.verify|verify} messages.
+ * @param message RawDocument message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1beta3.IRawDocument, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified RawDocument message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta3.RawDocument.verify|verify} messages.
+ * @param message RawDocument message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1beta3.IRawDocument, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a RawDocument message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns RawDocument
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1beta3.RawDocument;
+
+ /**
+ * Decodes a RawDocument message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns RawDocument
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1beta3.RawDocument;
+
+ /**
+ * Verifies a RawDocument message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a RawDocument message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns RawDocument
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1beta3.RawDocument;
+
+ /**
+ * Creates a plain object from a RawDocument message. Also converts values to other types if specified.
+ * @param message RawDocument
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1beta3.RawDocument, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this RawDocument to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for RawDocument
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GcsDocument. */
+ interface IGcsDocument {
+
+ /** GcsDocument gcsUri */
+ gcsUri?: (string|null);
+
+ /** GcsDocument mimeType */
+ mimeType?: (string|null);
+ }
+
+ /** Represents a GcsDocument. */
+ class GcsDocument implements IGcsDocument {
+
+ /**
+ * Constructs a new GcsDocument.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta3.IGcsDocument);
+
+ /** GcsDocument gcsUri. */
+ public gcsUri: string;
+
+ /** GcsDocument mimeType. */
+ public mimeType: string;
+
+ /**
+ * Creates a new GcsDocument instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GcsDocument instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta3.IGcsDocument): google.cloud.documentai.v1beta3.GcsDocument;
+
+ /**
+ * Encodes the specified GcsDocument message. Does not implicitly {@link google.cloud.documentai.v1beta3.GcsDocument.verify|verify} messages.
+ * @param message GcsDocument message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1beta3.IGcsDocument, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GcsDocument message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta3.GcsDocument.verify|verify} messages.
+ * @param message GcsDocument message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1beta3.IGcsDocument, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GcsDocument message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GcsDocument
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1beta3.GcsDocument;
+
+ /**
+ * Decodes a GcsDocument message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GcsDocument
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1beta3.GcsDocument;
+
+ /**
+ * Verifies a GcsDocument message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GcsDocument message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GcsDocument
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1beta3.GcsDocument;
+
+ /**
+ * Creates a plain object from a GcsDocument message. Also converts values to other types if specified.
+ * @param message GcsDocument
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1beta3.GcsDocument, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GcsDocument to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GcsDocument
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GcsDocuments. */
+ interface IGcsDocuments {
+
+ /** GcsDocuments documents */
+ documents?: (google.cloud.documentai.v1beta3.IGcsDocument[]|null);
+ }
+
+ /** Represents a GcsDocuments. */
+ class GcsDocuments implements IGcsDocuments {
+
+ /**
+ * Constructs a new GcsDocuments.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta3.IGcsDocuments);
+
+ /** GcsDocuments documents. */
+ public documents: google.cloud.documentai.v1beta3.IGcsDocument[];
+
+ /**
+ * Creates a new GcsDocuments instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GcsDocuments instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta3.IGcsDocuments): google.cloud.documentai.v1beta3.GcsDocuments;
+
+ /**
+ * Encodes the specified GcsDocuments message. Does not implicitly {@link google.cloud.documentai.v1beta3.GcsDocuments.verify|verify} messages.
+ * @param message GcsDocuments message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1beta3.IGcsDocuments, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GcsDocuments message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta3.GcsDocuments.verify|verify} messages.
+ * @param message GcsDocuments message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1beta3.IGcsDocuments, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GcsDocuments message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GcsDocuments
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1beta3.GcsDocuments;
+
+ /**
+ * Decodes a GcsDocuments message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GcsDocuments
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1beta3.GcsDocuments;
+
+ /**
+ * Verifies a GcsDocuments message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GcsDocuments message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GcsDocuments
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1beta3.GcsDocuments;
+
+ /**
+ * Creates a plain object from a GcsDocuments message. Also converts values to other types if specified.
+ * @param message GcsDocuments
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1beta3.GcsDocuments, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GcsDocuments to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GcsDocuments
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GcsPrefix. */
+ interface IGcsPrefix {
+
+ /** GcsPrefix gcsUriPrefix */
+ gcsUriPrefix?: (string|null);
+ }
+
+ /** Represents a GcsPrefix. */
+ class GcsPrefix implements IGcsPrefix {
+
+ /**
+ * Constructs a new GcsPrefix.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta3.IGcsPrefix);
+
+ /** GcsPrefix gcsUriPrefix. */
+ public gcsUriPrefix: string;
+
+ /**
+ * Creates a new GcsPrefix instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GcsPrefix instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta3.IGcsPrefix): google.cloud.documentai.v1beta3.GcsPrefix;
+
+ /**
+ * Encodes the specified GcsPrefix message. Does not implicitly {@link google.cloud.documentai.v1beta3.GcsPrefix.verify|verify} messages.
+ * @param message GcsPrefix message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1beta3.IGcsPrefix, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GcsPrefix message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta3.GcsPrefix.verify|verify} messages.
+ * @param message GcsPrefix message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1beta3.IGcsPrefix, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GcsPrefix message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GcsPrefix
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1beta3.GcsPrefix;
+
+ /**
+ * Decodes a GcsPrefix message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GcsPrefix
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1beta3.GcsPrefix;
+
+ /**
+ * Verifies a GcsPrefix message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GcsPrefix message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GcsPrefix
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1beta3.GcsPrefix;
+
+ /**
+ * Creates a plain object from a GcsPrefix message. Also converts values to other types if specified.
+ * @param message GcsPrefix
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1beta3.GcsPrefix, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GcsPrefix to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GcsPrefix
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a BatchDocumentsInputConfig. */
+ interface IBatchDocumentsInputConfig {
+
+ /** BatchDocumentsInputConfig gcsPrefix */
+ gcsPrefix?: (google.cloud.documentai.v1beta3.IGcsPrefix|null);
+
+ /** BatchDocumentsInputConfig gcsDocuments */
+ gcsDocuments?: (google.cloud.documentai.v1beta3.IGcsDocuments|null);
+ }
+
+ /** Represents a BatchDocumentsInputConfig. */
+ class BatchDocumentsInputConfig implements IBatchDocumentsInputConfig {
+
+ /**
+ * Constructs a new BatchDocumentsInputConfig.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta3.IBatchDocumentsInputConfig);
+
+ /** BatchDocumentsInputConfig gcsPrefix. */
+ public gcsPrefix?: (google.cloud.documentai.v1beta3.IGcsPrefix|null);
+
+ /** BatchDocumentsInputConfig gcsDocuments. */
+ public gcsDocuments?: (google.cloud.documentai.v1beta3.IGcsDocuments|null);
+
+ /** BatchDocumentsInputConfig source. */
+ public source?: ("gcsPrefix"|"gcsDocuments");
+
+ /**
+ * Creates a new BatchDocumentsInputConfig instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns BatchDocumentsInputConfig instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta3.IBatchDocumentsInputConfig): google.cloud.documentai.v1beta3.BatchDocumentsInputConfig;
+
+ /**
+ * Encodes the specified BatchDocumentsInputConfig message. Does not implicitly {@link google.cloud.documentai.v1beta3.BatchDocumentsInputConfig.verify|verify} messages.
+ * @param message BatchDocumentsInputConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1beta3.IBatchDocumentsInputConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified BatchDocumentsInputConfig message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta3.BatchDocumentsInputConfig.verify|verify} messages.
+ * @param message BatchDocumentsInputConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1beta3.IBatchDocumentsInputConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a BatchDocumentsInputConfig message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns BatchDocumentsInputConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1beta3.BatchDocumentsInputConfig;
+
+ /**
+ * Decodes a BatchDocumentsInputConfig message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns BatchDocumentsInputConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1beta3.BatchDocumentsInputConfig;
+
+ /**
+ * Verifies a BatchDocumentsInputConfig message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a BatchDocumentsInputConfig message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns BatchDocumentsInputConfig
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1beta3.BatchDocumentsInputConfig;
+
+ /**
+ * Creates a plain object from a BatchDocumentsInputConfig message. Also converts values to other types if specified.
+ * @param message BatchDocumentsInputConfig
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1beta3.BatchDocumentsInputConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this BatchDocumentsInputConfig to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for BatchDocumentsInputConfig
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DocumentOutputConfig. */
+ interface IDocumentOutputConfig {
+
+ /** DocumentOutputConfig gcsOutputConfig */
+ gcsOutputConfig?: (google.cloud.documentai.v1beta3.DocumentOutputConfig.IGcsOutputConfig|null);
+ }
+
+ /** Represents a DocumentOutputConfig. */
+ class DocumentOutputConfig implements IDocumentOutputConfig {
+
+ /**
+ * Constructs a new DocumentOutputConfig.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta3.IDocumentOutputConfig);
+
+ /** DocumentOutputConfig gcsOutputConfig. */
+ public gcsOutputConfig?: (google.cloud.documentai.v1beta3.DocumentOutputConfig.IGcsOutputConfig|null);
+
+ /** DocumentOutputConfig destination. */
+ public destination?: "gcsOutputConfig";
+
+ /**
+ * Creates a new DocumentOutputConfig instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DocumentOutputConfig instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta3.IDocumentOutputConfig): google.cloud.documentai.v1beta3.DocumentOutputConfig;
+
+ /**
+ * Encodes the specified DocumentOutputConfig message. Does not implicitly {@link google.cloud.documentai.v1beta3.DocumentOutputConfig.verify|verify} messages.
+ * @param message DocumentOutputConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1beta3.IDocumentOutputConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DocumentOutputConfig message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta3.DocumentOutputConfig.verify|verify} messages.
+ * @param message DocumentOutputConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1beta3.IDocumentOutputConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DocumentOutputConfig message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DocumentOutputConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1beta3.DocumentOutputConfig;
+
+ /**
+ * Decodes a DocumentOutputConfig message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DocumentOutputConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1beta3.DocumentOutputConfig;
+
+ /**
+ * Verifies a DocumentOutputConfig message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DocumentOutputConfig message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DocumentOutputConfig
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1beta3.DocumentOutputConfig;
+
+ /**
+ * Creates a plain object from a DocumentOutputConfig message. Also converts values to other types if specified.
+ * @param message DocumentOutputConfig
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1beta3.DocumentOutputConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DocumentOutputConfig to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DocumentOutputConfig
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace DocumentOutputConfig {
+
+ /** Properties of a GcsOutputConfig. */
+ interface IGcsOutputConfig {
+
+ /** GcsOutputConfig gcsUri */
+ gcsUri?: (string|null);
+ }
+
+ /** Represents a GcsOutputConfig. */
+ class GcsOutputConfig implements IGcsOutputConfig {
+
+ /**
+ * Constructs a new GcsOutputConfig.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta3.DocumentOutputConfig.IGcsOutputConfig);
+
+ /** GcsOutputConfig gcsUri. */
+ public gcsUri: string;
+
+ /**
+ * Creates a new GcsOutputConfig instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GcsOutputConfig instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta3.DocumentOutputConfig.IGcsOutputConfig): google.cloud.documentai.v1beta3.DocumentOutputConfig.GcsOutputConfig;
+
+ /**
+ * Encodes the specified GcsOutputConfig message. Does not implicitly {@link google.cloud.documentai.v1beta3.DocumentOutputConfig.GcsOutputConfig.verify|verify} messages.
+ * @param message GcsOutputConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1beta3.DocumentOutputConfig.IGcsOutputConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GcsOutputConfig message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta3.DocumentOutputConfig.GcsOutputConfig.verify|verify} messages.
+ * @param message GcsOutputConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1beta3.DocumentOutputConfig.IGcsOutputConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GcsOutputConfig message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GcsOutputConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1beta3.DocumentOutputConfig.GcsOutputConfig;
+
+ /**
+ * Decodes a GcsOutputConfig message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GcsOutputConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1beta3.DocumentOutputConfig.GcsOutputConfig;
+
+ /**
+ * Verifies a GcsOutputConfig message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GcsOutputConfig message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GcsOutputConfig
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1beta3.DocumentOutputConfig.GcsOutputConfig;
+
+ /**
+ * Creates a plain object from a GcsOutputConfig message. Also converts values to other types if specified.
+ * @param message GcsOutputConfig
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1beta3.DocumentOutputConfig.GcsOutputConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GcsOutputConfig to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GcsOutputConfig
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Represents a DocumentProcessorService */
+ class DocumentProcessorService extends $protobuf.rpc.Service {
+
+ /**
+ * Constructs a new DocumentProcessorService 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 DocumentProcessorService 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): DocumentProcessorService;
+
+ /**
+ * Calls ProcessDocument.
+ * @param request ProcessRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ProcessResponse
+ */
+ public processDocument(request: google.cloud.documentai.v1beta3.IProcessRequest, callback: google.cloud.documentai.v1beta3.DocumentProcessorService.ProcessDocumentCallback): void;
+
+ /**
+ * Calls ProcessDocument.
+ * @param request ProcessRequest message or plain object
+ * @returns Promise
+ */
+ public processDocument(request: google.cloud.documentai.v1beta3.IProcessRequest): Promise;
+
+ /**
+ * Calls BatchProcessDocuments.
+ * @param request BatchProcessRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public batchProcessDocuments(request: google.cloud.documentai.v1beta3.IBatchProcessRequest, callback: google.cloud.documentai.v1beta3.DocumentProcessorService.BatchProcessDocumentsCallback): void;
+
+ /**
+ * Calls BatchProcessDocuments.
+ * @param request BatchProcessRequest message or plain object
+ * @returns Promise
+ */
+ public batchProcessDocuments(request: google.cloud.documentai.v1beta3.IBatchProcessRequest): Promise;
+
+ /**
+ * Calls FetchProcessorTypes.
+ * @param request FetchProcessorTypesRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and FetchProcessorTypesResponse
+ */
+ public fetchProcessorTypes(request: google.cloud.documentai.v1beta3.IFetchProcessorTypesRequest, callback: google.cloud.documentai.v1beta3.DocumentProcessorService.FetchProcessorTypesCallback): void;
+
+ /**
+ * Calls FetchProcessorTypes.
+ * @param request FetchProcessorTypesRequest message or plain object
+ * @returns Promise
+ */
+ public fetchProcessorTypes(request: google.cloud.documentai.v1beta3.IFetchProcessorTypesRequest): Promise;
+
+ /**
+ * Calls ListProcessorTypes.
+ * @param request ListProcessorTypesRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListProcessorTypesResponse
+ */
+ public listProcessorTypes(request: google.cloud.documentai.v1beta3.IListProcessorTypesRequest, callback: google.cloud.documentai.v1beta3.DocumentProcessorService.ListProcessorTypesCallback): void;
+
+ /**
+ * Calls ListProcessorTypes.
+ * @param request ListProcessorTypesRequest message or plain object
+ * @returns Promise
+ */
+ public listProcessorTypes(request: google.cloud.documentai.v1beta3.IListProcessorTypesRequest): Promise;
+
+ /**
+ * Calls ListProcessors.
+ * @param request ListProcessorsRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListProcessorsResponse
+ */
+ public listProcessors(request: google.cloud.documentai.v1beta3.IListProcessorsRequest, callback: google.cloud.documentai.v1beta3.DocumentProcessorService.ListProcessorsCallback): void;
+
+ /**
+ * Calls ListProcessors.
+ * @param request ListProcessorsRequest message or plain object
+ * @returns Promise
+ */
+ public listProcessors(request: google.cloud.documentai.v1beta3.IListProcessorsRequest): Promise;
+
+ /**
+ * Calls GetProcessor.
+ * @param request GetProcessorRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Processor
+ */
+ public getProcessor(request: google.cloud.documentai.v1beta3.IGetProcessorRequest, callback: google.cloud.documentai.v1beta3.DocumentProcessorService.GetProcessorCallback): void;
+
+ /**
+ * Calls GetProcessor.
+ * @param request GetProcessorRequest message or plain object
+ * @returns Promise
+ */
+ public getProcessor(request: google.cloud.documentai.v1beta3.IGetProcessorRequest): Promise;
+
+ /**
+ * Calls GetProcessorVersion.
+ * @param request GetProcessorVersionRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ProcessorVersion
+ */
+ public getProcessorVersion(request: google.cloud.documentai.v1beta3.IGetProcessorVersionRequest, callback: google.cloud.documentai.v1beta3.DocumentProcessorService.GetProcessorVersionCallback): void;
+
+ /**
+ * Calls GetProcessorVersion.
+ * @param request GetProcessorVersionRequest message or plain object
+ * @returns Promise
+ */
+ public getProcessorVersion(request: google.cloud.documentai.v1beta3.IGetProcessorVersionRequest): Promise;
+
+ /**
+ * Calls ListProcessorVersions.
+ * @param request ListProcessorVersionsRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListProcessorVersionsResponse
+ */
+ public listProcessorVersions(request: google.cloud.documentai.v1beta3.IListProcessorVersionsRequest, callback: google.cloud.documentai.v1beta3.DocumentProcessorService.ListProcessorVersionsCallback): void;
+
+ /**
+ * Calls ListProcessorVersions.
+ * @param request ListProcessorVersionsRequest message or plain object
+ * @returns Promise
+ */
+ public listProcessorVersions(request: google.cloud.documentai.v1beta3.IListProcessorVersionsRequest): Promise;
+
+ /**
+ * Calls DeleteProcessorVersion.
+ * @param request DeleteProcessorVersionRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public deleteProcessorVersion(request: google.cloud.documentai.v1beta3.IDeleteProcessorVersionRequest, callback: google.cloud.documentai.v1beta3.DocumentProcessorService.DeleteProcessorVersionCallback): void;
+
+ /**
+ * Calls DeleteProcessorVersion.
+ * @param request DeleteProcessorVersionRequest message or plain object
+ * @returns Promise
+ */
+ public deleteProcessorVersion(request: google.cloud.documentai.v1beta3.IDeleteProcessorVersionRequest): Promise;
+
+ /**
+ * Calls DeployProcessorVersion.
+ * @param request DeployProcessorVersionRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public deployProcessorVersion(request: google.cloud.documentai.v1beta3.IDeployProcessorVersionRequest, callback: google.cloud.documentai.v1beta3.DocumentProcessorService.DeployProcessorVersionCallback): void;
+
+ /**
+ * Calls DeployProcessorVersion.
+ * @param request DeployProcessorVersionRequest message or plain object
+ * @returns Promise
+ */
+ public deployProcessorVersion(request: google.cloud.documentai.v1beta3.IDeployProcessorVersionRequest): Promise;
+
+ /**
+ * Calls UndeployProcessorVersion.
+ * @param request UndeployProcessorVersionRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public undeployProcessorVersion(request: google.cloud.documentai.v1beta3.IUndeployProcessorVersionRequest, callback: google.cloud.documentai.v1beta3.DocumentProcessorService.UndeployProcessorVersionCallback): void;
+
+ /**
+ * Calls UndeployProcessorVersion.
+ * @param request UndeployProcessorVersionRequest message or plain object
+ * @returns Promise
+ */
+ public undeployProcessorVersion(request: google.cloud.documentai.v1beta3.IUndeployProcessorVersionRequest): Promise;
+
+ /**
+ * Calls CreateProcessor.
+ * @param request CreateProcessorRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Processor
+ */
+ public createProcessor(request: google.cloud.documentai.v1beta3.ICreateProcessorRequest, callback: google.cloud.documentai.v1beta3.DocumentProcessorService.CreateProcessorCallback): void;
+
+ /**
+ * Calls CreateProcessor.
+ * @param request CreateProcessorRequest message or plain object
+ * @returns Promise
+ */
+ public createProcessor(request: google.cloud.documentai.v1beta3.ICreateProcessorRequest): Promise;
+
+ /**
+ * Calls DeleteProcessor.
+ * @param request DeleteProcessorRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public deleteProcessor(request: google.cloud.documentai.v1beta3.IDeleteProcessorRequest, callback: google.cloud.documentai.v1beta3.DocumentProcessorService.DeleteProcessorCallback): void;
+
+ /**
+ * Calls DeleteProcessor.
+ * @param request DeleteProcessorRequest message or plain object
+ * @returns Promise
+ */
+ public deleteProcessor(request: google.cloud.documentai.v1beta3.IDeleteProcessorRequest): Promise;
+
+ /**
+ * Calls EnableProcessor.
+ * @param request EnableProcessorRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public enableProcessor(request: google.cloud.documentai.v1beta3.IEnableProcessorRequest, callback: google.cloud.documentai.v1beta3.DocumentProcessorService.EnableProcessorCallback): void;
+
+ /**
+ * Calls EnableProcessor.
+ * @param request EnableProcessorRequest message or plain object
+ * @returns Promise
+ */
+ public enableProcessor(request: google.cloud.documentai.v1beta3.IEnableProcessorRequest): Promise;
+
+ /**
+ * Calls DisableProcessor.
+ * @param request DisableProcessorRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public disableProcessor(request: google.cloud.documentai.v1beta3.IDisableProcessorRequest, callback: google.cloud.documentai.v1beta3.DocumentProcessorService.DisableProcessorCallback): void;
+
+ /**
+ * Calls DisableProcessor.
+ * @param request DisableProcessorRequest message or plain object
+ * @returns Promise
+ */
+ public disableProcessor(request: google.cloud.documentai.v1beta3.IDisableProcessorRequest): Promise;
+
+ /**
+ * Calls SetDefaultProcessorVersion.
+ * @param request SetDefaultProcessorVersionRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public setDefaultProcessorVersion(request: google.cloud.documentai.v1beta3.ISetDefaultProcessorVersionRequest, callback: google.cloud.documentai.v1beta3.DocumentProcessorService.SetDefaultProcessorVersionCallback): void;
+
+ /**
+ * Calls SetDefaultProcessorVersion.
+ * @param request SetDefaultProcessorVersionRequest message or plain object
+ * @returns Promise
+ */
+ public setDefaultProcessorVersion(request: google.cloud.documentai.v1beta3.ISetDefaultProcessorVersionRequest): Promise;
+
+ /**
+ * Calls ReviewDocument.
+ * @param request ReviewDocumentRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public reviewDocument(request: google.cloud.documentai.v1beta3.IReviewDocumentRequest, callback: google.cloud.documentai.v1beta3.DocumentProcessorService.ReviewDocumentCallback): void;
+
+ /**
+ * Calls ReviewDocument.
+ * @param request ReviewDocumentRequest message or plain object
+ * @returns Promise
+ */
+ public reviewDocument(request: google.cloud.documentai.v1beta3.IReviewDocumentRequest): Promise;
+ }
+
+ namespace DocumentProcessorService {
+
+ /**
+ * Callback as used by {@link google.cloud.documentai.v1beta3.DocumentProcessorService|processDocument}.
+ * @param error Error, if any
+ * @param [response] ProcessResponse
+ */
+ type ProcessDocumentCallback = (error: (Error|null), response?: google.cloud.documentai.v1beta3.ProcessResponse) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.documentai.v1beta3.DocumentProcessorService|batchProcessDocuments}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type BatchProcessDocumentsCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.documentai.v1beta3.DocumentProcessorService|fetchProcessorTypes}.
+ * @param error Error, if any
+ * @param [response] FetchProcessorTypesResponse
+ */
+ type FetchProcessorTypesCallback = (error: (Error|null), response?: google.cloud.documentai.v1beta3.FetchProcessorTypesResponse) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.documentai.v1beta3.DocumentProcessorService|listProcessorTypes}.
+ * @param error Error, if any
+ * @param [response] ListProcessorTypesResponse
+ */
+ type ListProcessorTypesCallback = (error: (Error|null), response?: google.cloud.documentai.v1beta3.ListProcessorTypesResponse) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.documentai.v1beta3.DocumentProcessorService|listProcessors}.
+ * @param error Error, if any
+ * @param [response] ListProcessorsResponse
+ */
+ type ListProcessorsCallback = (error: (Error|null), response?: google.cloud.documentai.v1beta3.ListProcessorsResponse) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.documentai.v1beta3.DocumentProcessorService|getProcessor}.
+ * @param error Error, if any
+ * @param [response] Processor
+ */
+ type GetProcessorCallback = (error: (Error|null), response?: google.cloud.documentai.v1beta3.Processor) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.documentai.v1beta3.DocumentProcessorService|getProcessorVersion}.
+ * @param error Error, if any
+ * @param [response] ProcessorVersion
+ */
+ type GetProcessorVersionCallback = (error: (Error|null), response?: google.cloud.documentai.v1beta3.ProcessorVersion) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.documentai.v1beta3.DocumentProcessorService|listProcessorVersions}.
+ * @param error Error, if any
+ * @param [response] ListProcessorVersionsResponse
+ */
+ type ListProcessorVersionsCallback = (error: (Error|null), response?: google.cloud.documentai.v1beta3.ListProcessorVersionsResponse) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.documentai.v1beta3.DocumentProcessorService|deleteProcessorVersion}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type DeleteProcessorVersionCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.documentai.v1beta3.DocumentProcessorService|deployProcessorVersion}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type DeployProcessorVersionCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.documentai.v1beta3.DocumentProcessorService|undeployProcessorVersion}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type UndeployProcessorVersionCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.documentai.v1beta3.DocumentProcessorService|createProcessor}.
+ * @param error Error, if any
+ * @param [response] Processor
+ */
+ type CreateProcessorCallback = (error: (Error|null), response?: google.cloud.documentai.v1beta3.Processor) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.documentai.v1beta3.DocumentProcessorService|deleteProcessor}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type DeleteProcessorCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.documentai.v1beta3.DocumentProcessorService|enableProcessor}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type EnableProcessorCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.documentai.v1beta3.DocumentProcessorService|disableProcessor}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type DisableProcessorCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.documentai.v1beta3.DocumentProcessorService|setDefaultProcessorVersion}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type SetDefaultProcessorVersionCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.documentai.v1beta3.DocumentProcessorService|reviewDocument}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type ReviewDocumentCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+ }
+
+ /** Properties of a ProcessRequest. */
+ interface IProcessRequest {
+
+ /** ProcessRequest inlineDocument */
+ inlineDocument?: (google.cloud.documentai.v1beta3.IDocument|null);
+
+ /** ProcessRequest rawDocument */
+ rawDocument?: (google.cloud.documentai.v1beta3.IRawDocument|null);
+
+ /** ProcessRequest name */
+ name?: (string|null);
+
+ /** ProcessRequest document */
+ document?: (google.cloud.documentai.v1beta3.IDocument|null);
+
+ /** ProcessRequest skipHumanReview */
+ skipHumanReview?: (boolean|null);
+
+ /** ProcessRequest fieldMask */
+ fieldMask?: (google.protobuf.IFieldMask|null);
+ }
+
+ /** Represents a ProcessRequest. */
+ class ProcessRequest implements IProcessRequest {
+
+ /**
+ * Constructs a new ProcessRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta3.IProcessRequest);
+
+ /** ProcessRequest inlineDocument. */
+ public inlineDocument?: (google.cloud.documentai.v1beta3.IDocument|null);
+
+ /** ProcessRequest rawDocument. */
+ public rawDocument?: (google.cloud.documentai.v1beta3.IRawDocument|null);
+
+ /** ProcessRequest name. */
+ public name: string;
+
+ /** ProcessRequest document. */
+ public document?: (google.cloud.documentai.v1beta3.IDocument|null);
+
+ /** ProcessRequest skipHumanReview. */
+ public skipHumanReview: boolean;
+
+ /** ProcessRequest fieldMask. */
+ public fieldMask?: (google.protobuf.IFieldMask|null);
+
+ /** ProcessRequest source. */
+ public source?: ("inlineDocument"|"rawDocument");
+
+ /**
+ * Creates a new ProcessRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ProcessRequest instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta3.IProcessRequest): google.cloud.documentai.v1beta3.ProcessRequest;
+
+ /**
+ * Encodes the specified ProcessRequest message. Does not implicitly {@link google.cloud.documentai.v1beta3.ProcessRequest.verify|verify} messages.
+ * @param message ProcessRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1beta3.IProcessRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ProcessRequest message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta3.ProcessRequest.verify|verify} messages.
+ * @param message ProcessRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1beta3.IProcessRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ProcessRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ProcessRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1beta3.ProcessRequest;
+
+ /**
+ * Decodes a ProcessRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ProcessRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1beta3.ProcessRequest;
+
+ /**
+ * Verifies a ProcessRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ProcessRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ProcessRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1beta3.ProcessRequest;
+
+ /**
+ * Creates a plain object from a ProcessRequest message. Also converts values to other types if specified.
+ * @param message ProcessRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1beta3.ProcessRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ProcessRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ProcessRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a HumanReviewStatus. */
+ interface IHumanReviewStatus {
+
+ /** HumanReviewStatus state */
+ state?: (google.cloud.documentai.v1beta3.HumanReviewStatus.State|keyof typeof google.cloud.documentai.v1beta3.HumanReviewStatus.State|null);
+
+ /** HumanReviewStatus stateMessage */
+ stateMessage?: (string|null);
+
+ /** HumanReviewStatus humanReviewOperation */
+ humanReviewOperation?: (string|null);
+ }
+
+ /** Represents a HumanReviewStatus. */
+ class HumanReviewStatus implements IHumanReviewStatus {
+
+ /**
+ * Constructs a new HumanReviewStatus.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta3.IHumanReviewStatus);
+
+ /** HumanReviewStatus state. */
+ public state: (google.cloud.documentai.v1beta3.HumanReviewStatus.State|keyof typeof google.cloud.documentai.v1beta3.HumanReviewStatus.State);
+
+ /** HumanReviewStatus stateMessage. */
+ public stateMessage: string;
+
+ /** HumanReviewStatus humanReviewOperation. */
+ public humanReviewOperation: string;
+
+ /**
+ * Creates a new HumanReviewStatus instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns HumanReviewStatus instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta3.IHumanReviewStatus): google.cloud.documentai.v1beta3.HumanReviewStatus;
+
+ /**
+ * Encodes the specified HumanReviewStatus message. Does not implicitly {@link google.cloud.documentai.v1beta3.HumanReviewStatus.verify|verify} messages.
+ * @param message HumanReviewStatus message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1beta3.IHumanReviewStatus, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified HumanReviewStatus message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta3.HumanReviewStatus.verify|verify} messages.
+ * @param message HumanReviewStatus message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1beta3.IHumanReviewStatus, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a HumanReviewStatus message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns HumanReviewStatus
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1beta3.HumanReviewStatus;
+
+ /**
+ * Decodes a HumanReviewStatus message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns HumanReviewStatus
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1beta3.HumanReviewStatus;
+
+ /**
+ * Verifies a HumanReviewStatus message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a HumanReviewStatus message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns HumanReviewStatus
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1beta3.HumanReviewStatus;
+
+ /**
+ * Creates a plain object from a HumanReviewStatus message. Also converts values to other types if specified.
+ * @param message HumanReviewStatus
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1beta3.HumanReviewStatus, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this HumanReviewStatus to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for HumanReviewStatus
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace HumanReviewStatus {
+
+ /** State enum. */
+ enum State {
+ STATE_UNSPECIFIED = 0,
+ SKIPPED = 1,
+ VALIDATION_PASSED = 2,
+ IN_PROGRESS = 3,
+ ERROR = 4
+ }
+ }
+
+ /** Properties of a ProcessResponse. */
+ interface IProcessResponse {
+
+ /** ProcessResponse document */
+ document?: (google.cloud.documentai.v1beta3.IDocument|null);
+
+ /** ProcessResponse humanReviewOperation */
+ humanReviewOperation?: (string|null);
+
+ /** ProcessResponse humanReviewStatus */
+ humanReviewStatus?: (google.cloud.documentai.v1beta3.IHumanReviewStatus|null);
+ }
+
+ /** Represents a ProcessResponse. */
+ class ProcessResponse implements IProcessResponse {
+
+ /**
+ * Constructs a new ProcessResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta3.IProcessResponse);
+
+ /** ProcessResponse document. */
+ public document?: (google.cloud.documentai.v1beta3.IDocument|null);
+
+ /** ProcessResponse humanReviewOperation. */
+ public humanReviewOperation: string;
+
+ /** ProcessResponse humanReviewStatus. */
+ public humanReviewStatus?: (google.cloud.documentai.v1beta3.IHumanReviewStatus|null);
+
+ /**
+ * Creates a new ProcessResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ProcessResponse instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta3.IProcessResponse): google.cloud.documentai.v1beta3.ProcessResponse;
+
+ /**
+ * Encodes the specified ProcessResponse message. Does not implicitly {@link google.cloud.documentai.v1beta3.ProcessResponse.verify|verify} messages.
+ * @param message ProcessResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1beta3.IProcessResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ProcessResponse message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta3.ProcessResponse.verify|verify} messages.
+ * @param message ProcessResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1beta3.IProcessResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ProcessResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ProcessResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1beta3.ProcessResponse;
+
+ /**
+ * Decodes a ProcessResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ProcessResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1beta3.ProcessResponse;
+
+ /**
+ * Verifies a ProcessResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ProcessResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ProcessResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1beta3.ProcessResponse;
+
+ /**
+ * Creates a plain object from a ProcessResponse message. Also converts values to other types if specified.
+ * @param message ProcessResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1beta3.ProcessResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ProcessResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ProcessResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a BatchProcessRequest. */
+ interface IBatchProcessRequest {
+
+ /** BatchProcessRequest name */
+ name?: (string|null);
+
+ /** BatchProcessRequest inputConfigs */
+ inputConfigs?: (google.cloud.documentai.v1beta3.BatchProcessRequest.IBatchInputConfig[]|null);
+
+ /** BatchProcessRequest outputConfig */
+ outputConfig?: (google.cloud.documentai.v1beta3.BatchProcessRequest.IBatchOutputConfig|null);
+
+ /** BatchProcessRequest inputDocuments */
+ inputDocuments?: (google.cloud.documentai.v1beta3.IBatchDocumentsInputConfig|null);
+
+ /** BatchProcessRequest documentOutputConfig */
+ documentOutputConfig?: (google.cloud.documentai.v1beta3.IDocumentOutputConfig|null);
+
+ /** BatchProcessRequest skipHumanReview */
+ skipHumanReview?: (boolean|null);
+ }
+
+ /** Represents a BatchProcessRequest. */
+ class BatchProcessRequest implements IBatchProcessRequest {
+
+ /**
+ * Constructs a new BatchProcessRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta3.IBatchProcessRequest);
+
+ /** BatchProcessRequest name. */
+ public name: string;
+
+ /** BatchProcessRequest inputConfigs. */
+ public inputConfigs: google.cloud.documentai.v1beta3.BatchProcessRequest.IBatchInputConfig[];
+
+ /** BatchProcessRequest outputConfig. */
+ public outputConfig?: (google.cloud.documentai.v1beta3.BatchProcessRequest.IBatchOutputConfig|null);
+
+ /** BatchProcessRequest inputDocuments. */
+ public inputDocuments?: (google.cloud.documentai.v1beta3.IBatchDocumentsInputConfig|null);
+
+ /** BatchProcessRequest documentOutputConfig. */
+ public documentOutputConfig?: (google.cloud.documentai.v1beta3.IDocumentOutputConfig|null);
+
+ /** BatchProcessRequest skipHumanReview. */
+ public skipHumanReview: boolean;
+
+ /**
+ * Creates a new BatchProcessRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns BatchProcessRequest instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta3.IBatchProcessRequest): google.cloud.documentai.v1beta3.BatchProcessRequest;
+
+ /**
+ * Encodes the specified BatchProcessRequest message. Does not implicitly {@link google.cloud.documentai.v1beta3.BatchProcessRequest.verify|verify} messages.
+ * @param message BatchProcessRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1beta3.IBatchProcessRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified BatchProcessRequest message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta3.BatchProcessRequest.verify|verify} messages.
+ * @param message BatchProcessRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1beta3.IBatchProcessRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a BatchProcessRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns BatchProcessRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1beta3.BatchProcessRequest;
+
+ /**
+ * Decodes a BatchProcessRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns BatchProcessRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1beta3.BatchProcessRequest;
+
+ /**
+ * Verifies a BatchProcessRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a BatchProcessRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns BatchProcessRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1beta3.BatchProcessRequest;
+
+ /**
+ * Creates a plain object from a BatchProcessRequest message. Also converts values to other types if specified.
+ * @param message BatchProcessRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1beta3.BatchProcessRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this BatchProcessRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for BatchProcessRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace BatchProcessRequest {
+
+ /** Properties of a BatchInputConfig. */
+ interface IBatchInputConfig {
+
+ /** BatchInputConfig gcsSource */
+ gcsSource?: (string|null);
+
+ /** BatchInputConfig mimeType */
+ mimeType?: (string|null);
+ }
+
+ /** Represents a BatchInputConfig. */
+ class BatchInputConfig implements IBatchInputConfig {
+
+ /**
+ * Constructs a new BatchInputConfig.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta3.BatchProcessRequest.IBatchInputConfig);
+
+ /** BatchInputConfig gcsSource. */
+ public gcsSource: string;
+
+ /** BatchInputConfig mimeType. */
+ public mimeType: string;
+
+ /**
+ * Creates a new BatchInputConfig instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns BatchInputConfig instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta3.BatchProcessRequest.IBatchInputConfig): google.cloud.documentai.v1beta3.BatchProcessRequest.BatchInputConfig;
+
+ /**
+ * Encodes the specified BatchInputConfig message. Does not implicitly {@link google.cloud.documentai.v1beta3.BatchProcessRequest.BatchInputConfig.verify|verify} messages.
+ * @param message BatchInputConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1beta3.BatchProcessRequest.IBatchInputConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified BatchInputConfig message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta3.BatchProcessRequest.BatchInputConfig.verify|verify} messages.
+ * @param message BatchInputConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1beta3.BatchProcessRequest.IBatchInputConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a BatchInputConfig message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns BatchInputConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1beta3.BatchProcessRequest.BatchInputConfig;
+
+ /**
+ * Decodes a BatchInputConfig message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns BatchInputConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1beta3.BatchProcessRequest.BatchInputConfig;
+
+ /**
+ * Verifies a BatchInputConfig message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a BatchInputConfig message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns BatchInputConfig
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1beta3.BatchProcessRequest.BatchInputConfig;
+
+ /**
+ * Creates a plain object from a BatchInputConfig message. Also converts values to other types if specified.
+ * @param message BatchInputConfig
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1beta3.BatchProcessRequest.BatchInputConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this BatchInputConfig to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for BatchInputConfig
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a BatchOutputConfig. */
+ interface IBatchOutputConfig {
+
+ /** BatchOutputConfig gcsDestination */
+ gcsDestination?: (string|null);
+ }
+
+ /** Represents a BatchOutputConfig. */
+ class BatchOutputConfig implements IBatchOutputConfig {
+
+ /**
+ * Constructs a new BatchOutputConfig.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta3.BatchProcessRequest.IBatchOutputConfig);
+
+ /** BatchOutputConfig gcsDestination. */
+ public gcsDestination: string;
+
+ /**
+ * Creates a new BatchOutputConfig instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns BatchOutputConfig instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta3.BatchProcessRequest.IBatchOutputConfig): google.cloud.documentai.v1beta3.BatchProcessRequest.BatchOutputConfig;
+
+ /**
+ * Encodes the specified BatchOutputConfig message. Does not implicitly {@link google.cloud.documentai.v1beta3.BatchProcessRequest.BatchOutputConfig.verify|verify} messages.
+ * @param message BatchOutputConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1beta3.BatchProcessRequest.IBatchOutputConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified BatchOutputConfig message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta3.BatchProcessRequest.BatchOutputConfig.verify|verify} messages.
+ * @param message BatchOutputConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1beta3.BatchProcessRequest.IBatchOutputConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a BatchOutputConfig message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns BatchOutputConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1beta3.BatchProcessRequest.BatchOutputConfig;
+
+ /**
+ * Decodes a BatchOutputConfig message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns BatchOutputConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1beta3.BatchProcessRequest.BatchOutputConfig;
+
+ /**
+ * Verifies a BatchOutputConfig message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a BatchOutputConfig message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns BatchOutputConfig
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1beta3.BatchProcessRequest.BatchOutputConfig;
+
+ /**
+ * Creates a plain object from a BatchOutputConfig message. Also converts values to other types if specified.
+ * @param message BatchOutputConfig
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1beta3.BatchProcessRequest.BatchOutputConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this BatchOutputConfig to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for BatchOutputConfig
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of a BatchProcessResponse. */
+ interface IBatchProcessResponse {
+ }
+
+ /** Represents a BatchProcessResponse. */
+ class BatchProcessResponse implements IBatchProcessResponse {
+
+ /**
+ * Constructs a new BatchProcessResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta3.IBatchProcessResponse);
+
+ /**
+ * Creates a new BatchProcessResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns BatchProcessResponse instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta3.IBatchProcessResponse): google.cloud.documentai.v1beta3.BatchProcessResponse;
+
+ /**
+ * Encodes the specified BatchProcessResponse message. Does not implicitly {@link google.cloud.documentai.v1beta3.BatchProcessResponse.verify|verify} messages.
+ * @param message BatchProcessResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1beta3.IBatchProcessResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified BatchProcessResponse message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta3.BatchProcessResponse.verify|verify} messages.
+ * @param message BatchProcessResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1beta3.IBatchProcessResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a BatchProcessResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns BatchProcessResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1beta3.BatchProcessResponse;
+
+ /**
+ * Decodes a BatchProcessResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns BatchProcessResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1beta3.BatchProcessResponse;
+
+ /**
+ * Verifies a BatchProcessResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a BatchProcessResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns BatchProcessResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1beta3.BatchProcessResponse;
+
+ /**
+ * Creates a plain object from a BatchProcessResponse message. Also converts values to other types if specified.
+ * @param message BatchProcessResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1beta3.BatchProcessResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this BatchProcessResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for BatchProcessResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a BatchProcessMetadata. */
+ interface IBatchProcessMetadata {
+
+ /** BatchProcessMetadata state */
+ state?: (google.cloud.documentai.v1beta3.BatchProcessMetadata.State|keyof typeof google.cloud.documentai.v1beta3.BatchProcessMetadata.State|null);
+
+ /** BatchProcessMetadata stateMessage */
+ stateMessage?: (string|null);
+
+ /** BatchProcessMetadata createTime */
+ createTime?: (google.protobuf.ITimestamp|null);
+
+ /** BatchProcessMetadata updateTime */
+ updateTime?: (google.protobuf.ITimestamp|null);
+
+ /** BatchProcessMetadata individualProcessStatuses */
+ individualProcessStatuses?: (google.cloud.documentai.v1beta3.BatchProcessMetadata.IIndividualProcessStatus[]|null);
+ }
+
+ /** Represents a BatchProcessMetadata. */
+ class BatchProcessMetadata implements IBatchProcessMetadata {
+
+ /**
+ * Constructs a new BatchProcessMetadata.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta3.IBatchProcessMetadata);
+
+ /** BatchProcessMetadata state. */
+ public state: (google.cloud.documentai.v1beta3.BatchProcessMetadata.State|keyof typeof google.cloud.documentai.v1beta3.BatchProcessMetadata.State);
+
+ /** BatchProcessMetadata stateMessage. */
+ public stateMessage: string;
+
+ /** BatchProcessMetadata createTime. */
+ public createTime?: (google.protobuf.ITimestamp|null);
+
+ /** BatchProcessMetadata updateTime. */
+ public updateTime?: (google.protobuf.ITimestamp|null);
+
+ /** BatchProcessMetadata individualProcessStatuses. */
+ public individualProcessStatuses: google.cloud.documentai.v1beta3.BatchProcessMetadata.IIndividualProcessStatus[];
+
+ /**
+ * Creates a new BatchProcessMetadata instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns BatchProcessMetadata instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta3.IBatchProcessMetadata): google.cloud.documentai.v1beta3.BatchProcessMetadata;
+
+ /**
+ * Encodes the specified BatchProcessMetadata message. Does not implicitly {@link google.cloud.documentai.v1beta3.BatchProcessMetadata.verify|verify} messages.
+ * @param message BatchProcessMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1beta3.IBatchProcessMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified BatchProcessMetadata message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta3.BatchProcessMetadata.verify|verify} messages.
+ * @param message BatchProcessMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1beta3.IBatchProcessMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a BatchProcessMetadata message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns BatchProcessMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1beta3.BatchProcessMetadata;
+
+ /**
+ * Decodes a BatchProcessMetadata message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns BatchProcessMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1beta3.BatchProcessMetadata;
+
+ /**
+ * Verifies a BatchProcessMetadata message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a BatchProcessMetadata message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns BatchProcessMetadata
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1beta3.BatchProcessMetadata;
+
+ /**
+ * Creates a plain object from a BatchProcessMetadata message. Also converts values to other types if specified.
+ * @param message BatchProcessMetadata
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1beta3.BatchProcessMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this BatchProcessMetadata to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for BatchProcessMetadata
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace BatchProcessMetadata {
+
+ /** Properties of an IndividualProcessStatus. */
+ interface IIndividualProcessStatus {
+
+ /** IndividualProcessStatus inputGcsSource */
+ inputGcsSource?: (string|null);
+
+ /** IndividualProcessStatus status */
+ status?: (google.rpc.IStatus|null);
+
+ /** IndividualProcessStatus outputGcsDestination */
+ outputGcsDestination?: (string|null);
+
+ /** IndividualProcessStatus humanReviewOperation */
+ humanReviewOperation?: (string|null);
+
+ /** IndividualProcessStatus humanReviewStatus */
+ humanReviewStatus?: (google.cloud.documentai.v1beta3.IHumanReviewStatus|null);
+ }
+
+ /** Represents an IndividualProcessStatus. */
+ class IndividualProcessStatus implements IIndividualProcessStatus {
+
+ /**
+ * Constructs a new IndividualProcessStatus.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta3.BatchProcessMetadata.IIndividualProcessStatus);
+
+ /** IndividualProcessStatus inputGcsSource. */
+ public inputGcsSource: string;
+
+ /** IndividualProcessStatus status. */
+ public status?: (google.rpc.IStatus|null);
+
+ /** IndividualProcessStatus outputGcsDestination. */
+ public outputGcsDestination: string;
+
+ /** IndividualProcessStatus humanReviewOperation. */
+ public humanReviewOperation: string;
+
+ /** IndividualProcessStatus humanReviewStatus. */
+ public humanReviewStatus?: (google.cloud.documentai.v1beta3.IHumanReviewStatus|null);
+
+ /**
+ * Creates a new IndividualProcessStatus instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns IndividualProcessStatus instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta3.BatchProcessMetadata.IIndividualProcessStatus): google.cloud.documentai.v1beta3.BatchProcessMetadata.IndividualProcessStatus;
+
+ /**
+ * Encodes the specified IndividualProcessStatus message. Does not implicitly {@link google.cloud.documentai.v1beta3.BatchProcessMetadata.IndividualProcessStatus.verify|verify} messages.
+ * @param message IndividualProcessStatus message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1beta3.BatchProcessMetadata.IIndividualProcessStatus, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified IndividualProcessStatus message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta3.BatchProcessMetadata.IndividualProcessStatus.verify|verify} messages.
+ * @param message IndividualProcessStatus message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1beta3.BatchProcessMetadata.IIndividualProcessStatus, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an IndividualProcessStatus message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns IndividualProcessStatus
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1beta3.BatchProcessMetadata.IndividualProcessStatus;
+
+ /**
+ * Decodes an IndividualProcessStatus message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns IndividualProcessStatus
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1beta3.BatchProcessMetadata.IndividualProcessStatus;
+
+ /**
+ * Verifies an IndividualProcessStatus message.
+ * @param message Plain 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 IndividualProcessStatus message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns IndividualProcessStatus
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1beta3.BatchProcessMetadata.IndividualProcessStatus;
+
+ /**
+ * Creates a plain object from an IndividualProcessStatus message. Also converts values to other types if specified.
+ * @param message IndividualProcessStatus
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1beta3.BatchProcessMetadata.IndividualProcessStatus, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this IndividualProcessStatus to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for IndividualProcessStatus
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** State enum. */
+ enum State {
+ STATE_UNSPECIFIED = 0,
+ WAITING = 1,
+ RUNNING = 2,
+ SUCCEEDED = 3,
+ CANCELLING = 4,
+ CANCELLED = 5,
+ FAILED = 6
+ }
+ }
+
+ /** Properties of a FetchProcessorTypesRequest. */
+ interface IFetchProcessorTypesRequest {
+
+ /** FetchProcessorTypesRequest parent */
+ parent?: (string|null);
+ }
+
+ /** Represents a FetchProcessorTypesRequest. */
+ class FetchProcessorTypesRequest implements IFetchProcessorTypesRequest {
+
+ /**
+ * Constructs a new FetchProcessorTypesRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta3.IFetchProcessorTypesRequest);
+
+ /** FetchProcessorTypesRequest parent. */
+ public parent: string;
+
+ /**
+ * Creates a new FetchProcessorTypesRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FetchProcessorTypesRequest instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta3.IFetchProcessorTypesRequest): google.cloud.documentai.v1beta3.FetchProcessorTypesRequest;
+
+ /**
+ * Encodes the specified FetchProcessorTypesRequest message. Does not implicitly {@link google.cloud.documentai.v1beta3.FetchProcessorTypesRequest.verify|verify} messages.
+ * @param message FetchProcessorTypesRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1beta3.IFetchProcessorTypesRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FetchProcessorTypesRequest message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta3.FetchProcessorTypesRequest.verify|verify} messages.
+ * @param message FetchProcessorTypesRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1beta3.IFetchProcessorTypesRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FetchProcessorTypesRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FetchProcessorTypesRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1beta3.FetchProcessorTypesRequest;
+
+ /**
+ * Decodes a FetchProcessorTypesRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FetchProcessorTypesRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1beta3.FetchProcessorTypesRequest;
+
+ /**
+ * Verifies a FetchProcessorTypesRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FetchProcessorTypesRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FetchProcessorTypesRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1beta3.FetchProcessorTypesRequest;
+
+ /**
+ * Creates a plain object from a FetchProcessorTypesRequest message. Also converts values to other types if specified.
+ * @param message FetchProcessorTypesRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1beta3.FetchProcessorTypesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FetchProcessorTypesRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FetchProcessorTypesRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a FetchProcessorTypesResponse. */
+ interface IFetchProcessorTypesResponse {
+
+ /** FetchProcessorTypesResponse processorTypes */
+ processorTypes?: (google.cloud.documentai.v1beta3.IProcessorType[]|null);
+ }
+
+ /** Represents a FetchProcessorTypesResponse. */
+ class FetchProcessorTypesResponse implements IFetchProcessorTypesResponse {
+
+ /**
+ * Constructs a new FetchProcessorTypesResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta3.IFetchProcessorTypesResponse);
+
+ /** FetchProcessorTypesResponse processorTypes. */
+ public processorTypes: google.cloud.documentai.v1beta3.IProcessorType[];
+
+ /**
+ * Creates a new FetchProcessorTypesResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FetchProcessorTypesResponse instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta3.IFetchProcessorTypesResponse): google.cloud.documentai.v1beta3.FetchProcessorTypesResponse;
+
+ /**
+ * Encodes the specified FetchProcessorTypesResponse message. Does not implicitly {@link google.cloud.documentai.v1beta3.FetchProcessorTypesResponse.verify|verify} messages.
+ * @param message FetchProcessorTypesResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1beta3.IFetchProcessorTypesResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FetchProcessorTypesResponse message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta3.FetchProcessorTypesResponse.verify|verify} messages.
+ * @param message FetchProcessorTypesResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1beta3.IFetchProcessorTypesResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FetchProcessorTypesResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FetchProcessorTypesResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1beta3.FetchProcessorTypesResponse;
+
+ /**
+ * Decodes a FetchProcessorTypesResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FetchProcessorTypesResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1beta3.FetchProcessorTypesResponse;
+
+ /**
+ * Verifies a FetchProcessorTypesResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FetchProcessorTypesResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FetchProcessorTypesResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1beta3.FetchProcessorTypesResponse;
+
+ /**
+ * Creates a plain object from a FetchProcessorTypesResponse message. Also converts values to other types if specified.
+ * @param message FetchProcessorTypesResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1beta3.FetchProcessorTypesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FetchProcessorTypesResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FetchProcessorTypesResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListProcessorTypesRequest. */
+ interface IListProcessorTypesRequest {
+
+ /** ListProcessorTypesRequest parent */
+ parent?: (string|null);
+
+ /** ListProcessorTypesRequest pageSize */
+ pageSize?: (number|null);
+
+ /** ListProcessorTypesRequest pageToken */
+ pageToken?: (string|null);
+ }
+
+ /** Represents a ListProcessorTypesRequest. */
+ class ListProcessorTypesRequest implements IListProcessorTypesRequest {
+
+ /**
+ * Constructs a new ListProcessorTypesRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta3.IListProcessorTypesRequest);
+
+ /** ListProcessorTypesRequest parent. */
+ public parent: string;
+
+ /** ListProcessorTypesRequest pageSize. */
+ public pageSize: number;
+
+ /** ListProcessorTypesRequest pageToken. */
+ public pageToken: string;
+
+ /**
+ * Creates a new ListProcessorTypesRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListProcessorTypesRequest instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta3.IListProcessorTypesRequest): google.cloud.documentai.v1beta3.ListProcessorTypesRequest;
+
+ /**
+ * Encodes the specified ListProcessorTypesRequest message. Does not implicitly {@link google.cloud.documentai.v1beta3.ListProcessorTypesRequest.verify|verify} messages.
+ * @param message ListProcessorTypesRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1beta3.IListProcessorTypesRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListProcessorTypesRequest message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta3.ListProcessorTypesRequest.verify|verify} messages.
+ * @param message ListProcessorTypesRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1beta3.IListProcessorTypesRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListProcessorTypesRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListProcessorTypesRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1beta3.ListProcessorTypesRequest;
+
+ /**
+ * Decodes a ListProcessorTypesRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListProcessorTypesRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1beta3.ListProcessorTypesRequest;
+
+ /**
+ * Verifies a ListProcessorTypesRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListProcessorTypesRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListProcessorTypesRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1beta3.ListProcessorTypesRequest;
+
+ /**
+ * Creates a plain object from a ListProcessorTypesRequest message. Also converts values to other types if specified.
+ * @param message ListProcessorTypesRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1beta3.ListProcessorTypesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListProcessorTypesRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListProcessorTypesRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListProcessorTypesResponse. */
+ interface IListProcessorTypesResponse {
+
+ /** ListProcessorTypesResponse processorTypes */
+ processorTypes?: (google.cloud.documentai.v1beta3.IProcessorType[]|null);
+
+ /** ListProcessorTypesResponse nextPageToken */
+ nextPageToken?: (string|null);
+ }
+
+ /** Represents a ListProcessorTypesResponse. */
+ class ListProcessorTypesResponse implements IListProcessorTypesResponse {
+
+ /**
+ * Constructs a new ListProcessorTypesResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta3.IListProcessorTypesResponse);
+
+ /** ListProcessorTypesResponse processorTypes. */
+ public processorTypes: google.cloud.documentai.v1beta3.IProcessorType[];
+
+ /** ListProcessorTypesResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /**
+ * Creates a new ListProcessorTypesResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListProcessorTypesResponse instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta3.IListProcessorTypesResponse): google.cloud.documentai.v1beta3.ListProcessorTypesResponse;
+
+ /**
+ * Encodes the specified ListProcessorTypesResponse message. Does not implicitly {@link google.cloud.documentai.v1beta3.ListProcessorTypesResponse.verify|verify} messages.
+ * @param message ListProcessorTypesResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1beta3.IListProcessorTypesResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListProcessorTypesResponse message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta3.ListProcessorTypesResponse.verify|verify} messages.
+ * @param message ListProcessorTypesResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1beta3.IListProcessorTypesResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListProcessorTypesResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListProcessorTypesResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1beta3.ListProcessorTypesResponse;
+
+ /**
+ * Decodes a ListProcessorTypesResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListProcessorTypesResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1beta3.ListProcessorTypesResponse;
+
+ /**
+ * Verifies a ListProcessorTypesResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListProcessorTypesResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListProcessorTypesResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1beta3.ListProcessorTypesResponse;
+
+ /**
+ * Creates a plain object from a ListProcessorTypesResponse message. Also converts values to other types if specified.
+ * @param message ListProcessorTypesResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1beta3.ListProcessorTypesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListProcessorTypesResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListProcessorTypesResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListProcessorsRequest. */
+ interface IListProcessorsRequest {
+
+ /** ListProcessorsRequest parent */
+ parent?: (string|null);
+
+ /** ListProcessorsRequest pageSize */
+ pageSize?: (number|null);
+
+ /** ListProcessorsRequest pageToken */
+ pageToken?: (string|null);
+ }
+
+ /** Represents a ListProcessorsRequest. */
+ class ListProcessorsRequest implements IListProcessorsRequest {
+
+ /**
+ * Constructs a new ListProcessorsRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta3.IListProcessorsRequest);
+
+ /** ListProcessorsRequest parent. */
+ public parent: string;
+
+ /** ListProcessorsRequest pageSize. */
+ public pageSize: number;
+
+ /** ListProcessorsRequest pageToken. */
+ public pageToken: string;
+
+ /**
+ * Creates a new ListProcessorsRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListProcessorsRequest instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta3.IListProcessorsRequest): google.cloud.documentai.v1beta3.ListProcessorsRequest;
+
+ /**
+ * Encodes the specified ListProcessorsRequest message. Does not implicitly {@link google.cloud.documentai.v1beta3.ListProcessorsRequest.verify|verify} messages.
+ * @param message ListProcessorsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1beta3.IListProcessorsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListProcessorsRequest message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta3.ListProcessorsRequest.verify|verify} messages.
+ * @param message ListProcessorsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1beta3.IListProcessorsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListProcessorsRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListProcessorsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1beta3.ListProcessorsRequest;
+
+ /**
+ * Decodes a ListProcessorsRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListProcessorsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1beta3.ListProcessorsRequest;
+
+ /**
+ * Verifies a ListProcessorsRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListProcessorsRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListProcessorsRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1beta3.ListProcessorsRequest;
+
+ /**
+ * Creates a plain object from a ListProcessorsRequest message. Also converts values to other types if specified.
+ * @param message ListProcessorsRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1beta3.ListProcessorsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListProcessorsRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListProcessorsRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListProcessorsResponse. */
+ interface IListProcessorsResponse {
+
+ /** ListProcessorsResponse processors */
+ processors?: (google.cloud.documentai.v1beta3.IProcessor[]|null);
+
+ /** ListProcessorsResponse nextPageToken */
+ nextPageToken?: (string|null);
+ }
+
+ /** Represents a ListProcessorsResponse. */
+ class ListProcessorsResponse implements IListProcessorsResponse {
+
+ /**
+ * Constructs a new ListProcessorsResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta3.IListProcessorsResponse);
+
+ /** ListProcessorsResponse processors. */
+ public processors: google.cloud.documentai.v1beta3.IProcessor[];
+
+ /** ListProcessorsResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /**
+ * Creates a new ListProcessorsResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListProcessorsResponse instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta3.IListProcessorsResponse): google.cloud.documentai.v1beta3.ListProcessorsResponse;
+
+ /**
+ * Encodes the specified ListProcessorsResponse message. Does not implicitly {@link google.cloud.documentai.v1beta3.ListProcessorsResponse.verify|verify} messages.
+ * @param message ListProcessorsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1beta3.IListProcessorsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListProcessorsResponse message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta3.ListProcessorsResponse.verify|verify} messages.
+ * @param message ListProcessorsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1beta3.IListProcessorsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListProcessorsResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListProcessorsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1beta3.ListProcessorsResponse;
+
+ /**
+ * Decodes a ListProcessorsResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListProcessorsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1beta3.ListProcessorsResponse;
+
+ /**
+ * Verifies a ListProcessorsResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListProcessorsResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListProcessorsResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1beta3.ListProcessorsResponse;
+
+ /**
+ * Creates a plain object from a ListProcessorsResponse message. Also converts values to other types if specified.
+ * @param message ListProcessorsResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1beta3.ListProcessorsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListProcessorsResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListProcessorsResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GetProcessorRequest. */
+ interface IGetProcessorRequest {
+
+ /** GetProcessorRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a GetProcessorRequest. */
+ class GetProcessorRequest implements IGetProcessorRequest {
+
+ /**
+ * Constructs a new GetProcessorRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta3.IGetProcessorRequest);
+
+ /** GetProcessorRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new GetProcessorRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetProcessorRequest instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta3.IGetProcessorRequest): google.cloud.documentai.v1beta3.GetProcessorRequest;
+
+ /**
+ * Encodes the specified GetProcessorRequest message. Does not implicitly {@link google.cloud.documentai.v1beta3.GetProcessorRequest.verify|verify} messages.
+ * @param message GetProcessorRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1beta3.IGetProcessorRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetProcessorRequest message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta3.GetProcessorRequest.verify|verify} messages.
+ * @param message GetProcessorRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1beta3.IGetProcessorRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetProcessorRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetProcessorRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1beta3.GetProcessorRequest;
+
+ /**
+ * Decodes a GetProcessorRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetProcessorRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1beta3.GetProcessorRequest;
+
+ /**
+ * Verifies a GetProcessorRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GetProcessorRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetProcessorRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1beta3.GetProcessorRequest;
+
+ /**
+ * Creates a plain object from a GetProcessorRequest message. Also converts values to other types if specified.
+ * @param message GetProcessorRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1beta3.GetProcessorRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetProcessorRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetProcessorRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GetProcessorVersionRequest. */
+ interface IGetProcessorVersionRequest {
+
+ /** GetProcessorVersionRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a GetProcessorVersionRequest. */
+ class GetProcessorVersionRequest implements IGetProcessorVersionRequest {
+
+ /**
+ * Constructs a new GetProcessorVersionRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta3.IGetProcessorVersionRequest);
+
+ /** GetProcessorVersionRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new GetProcessorVersionRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetProcessorVersionRequest instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta3.IGetProcessorVersionRequest): google.cloud.documentai.v1beta3.GetProcessorVersionRequest;
+
+ /**
+ * Encodes the specified GetProcessorVersionRequest message. Does not implicitly {@link google.cloud.documentai.v1beta3.GetProcessorVersionRequest.verify|verify} messages.
+ * @param message GetProcessorVersionRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1beta3.IGetProcessorVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetProcessorVersionRequest message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta3.GetProcessorVersionRequest.verify|verify} messages.
+ * @param message GetProcessorVersionRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1beta3.IGetProcessorVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetProcessorVersionRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetProcessorVersionRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1beta3.GetProcessorVersionRequest;
+
+ /**
+ * Decodes a GetProcessorVersionRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetProcessorVersionRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1beta3.GetProcessorVersionRequest;
+
+ /**
+ * Verifies a GetProcessorVersionRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GetProcessorVersionRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetProcessorVersionRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1beta3.GetProcessorVersionRequest;
+
+ /**
+ * Creates a plain object from a GetProcessorVersionRequest message. Also converts values to other types if specified.
+ * @param message GetProcessorVersionRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1beta3.GetProcessorVersionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetProcessorVersionRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetProcessorVersionRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListProcessorVersionsRequest. */
+ interface IListProcessorVersionsRequest {
+
+ /** ListProcessorVersionsRequest parent */
+ parent?: (string|null);
+
+ /** ListProcessorVersionsRequest pageSize */
+ pageSize?: (number|null);
+
+ /** ListProcessorVersionsRequest pageToken */
+ pageToken?: (string|null);
+ }
+
+ /** Represents a ListProcessorVersionsRequest. */
+ class ListProcessorVersionsRequest implements IListProcessorVersionsRequest {
+
+ /**
+ * Constructs a new ListProcessorVersionsRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta3.IListProcessorVersionsRequest);
+
+ /** ListProcessorVersionsRequest parent. */
+ public parent: string;
+
+ /** ListProcessorVersionsRequest pageSize. */
+ public pageSize: number;
+
+ /** ListProcessorVersionsRequest pageToken. */
+ public pageToken: string;
+
+ /**
+ * Creates a new ListProcessorVersionsRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListProcessorVersionsRequest instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta3.IListProcessorVersionsRequest): google.cloud.documentai.v1beta3.ListProcessorVersionsRequest;
+
+ /**
+ * Encodes the specified ListProcessorVersionsRequest message. Does not implicitly {@link google.cloud.documentai.v1beta3.ListProcessorVersionsRequest.verify|verify} messages.
+ * @param message ListProcessorVersionsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1beta3.IListProcessorVersionsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListProcessorVersionsRequest message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta3.ListProcessorVersionsRequest.verify|verify} messages.
+ * @param message ListProcessorVersionsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1beta3.IListProcessorVersionsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListProcessorVersionsRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListProcessorVersionsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1beta3.ListProcessorVersionsRequest;
+
+ /**
+ * Decodes a ListProcessorVersionsRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListProcessorVersionsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1beta3.ListProcessorVersionsRequest;
+
+ /**
+ * Verifies a ListProcessorVersionsRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListProcessorVersionsRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListProcessorVersionsRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1beta3.ListProcessorVersionsRequest;
+
+ /**
+ * Creates a plain object from a ListProcessorVersionsRequest message. Also converts values to other types if specified.
+ * @param message ListProcessorVersionsRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1beta3.ListProcessorVersionsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListProcessorVersionsRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListProcessorVersionsRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListProcessorVersionsResponse. */
+ interface IListProcessorVersionsResponse {
+
+ /** ListProcessorVersionsResponse processorVersions */
+ processorVersions?: (google.cloud.documentai.v1beta3.IProcessorVersion[]|null);
+
+ /** ListProcessorVersionsResponse nextPageToken */
+ nextPageToken?: (string|null);
+ }
+
+ /** Represents a ListProcessorVersionsResponse. */
+ class ListProcessorVersionsResponse implements IListProcessorVersionsResponse {
+
+ /**
+ * Constructs a new ListProcessorVersionsResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta3.IListProcessorVersionsResponse);
+
+ /** ListProcessorVersionsResponse processorVersions. */
+ public processorVersions: google.cloud.documentai.v1beta3.IProcessorVersion[];
+
+ /** ListProcessorVersionsResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /**
+ * Creates a new ListProcessorVersionsResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListProcessorVersionsResponse instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta3.IListProcessorVersionsResponse): google.cloud.documentai.v1beta3.ListProcessorVersionsResponse;
+
+ /**
+ * Encodes the specified ListProcessorVersionsResponse message. Does not implicitly {@link google.cloud.documentai.v1beta3.ListProcessorVersionsResponse.verify|verify} messages.
+ * @param message ListProcessorVersionsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1beta3.IListProcessorVersionsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListProcessorVersionsResponse message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta3.ListProcessorVersionsResponse.verify|verify} messages.
+ * @param message ListProcessorVersionsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1beta3.IListProcessorVersionsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListProcessorVersionsResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListProcessorVersionsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1beta3.ListProcessorVersionsResponse;
+
+ /**
+ * Decodes a ListProcessorVersionsResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListProcessorVersionsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1beta3.ListProcessorVersionsResponse;
+
+ /**
+ * Verifies a ListProcessorVersionsResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListProcessorVersionsResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListProcessorVersionsResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1beta3.ListProcessorVersionsResponse;
+
+ /**
+ * Creates a plain object from a ListProcessorVersionsResponse message. Also converts values to other types if specified.
+ * @param message ListProcessorVersionsResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1beta3.ListProcessorVersionsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListProcessorVersionsResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListProcessorVersionsResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DeleteProcessorVersionRequest. */
+ interface IDeleteProcessorVersionRequest {
+
+ /** DeleteProcessorVersionRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a DeleteProcessorVersionRequest. */
+ class DeleteProcessorVersionRequest implements IDeleteProcessorVersionRequest {
+
+ /**
+ * Constructs a new DeleteProcessorVersionRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta3.IDeleteProcessorVersionRequest);
+
+ /** DeleteProcessorVersionRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new DeleteProcessorVersionRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DeleteProcessorVersionRequest instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta3.IDeleteProcessorVersionRequest): google.cloud.documentai.v1beta3.DeleteProcessorVersionRequest;
+
+ /**
+ * Encodes the specified DeleteProcessorVersionRequest message. Does not implicitly {@link google.cloud.documentai.v1beta3.DeleteProcessorVersionRequest.verify|verify} messages.
+ * @param message DeleteProcessorVersionRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1beta3.IDeleteProcessorVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DeleteProcessorVersionRequest message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta3.DeleteProcessorVersionRequest.verify|verify} messages.
+ * @param message DeleteProcessorVersionRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1beta3.IDeleteProcessorVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DeleteProcessorVersionRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DeleteProcessorVersionRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1beta3.DeleteProcessorVersionRequest;
+
+ /**
+ * Decodes a DeleteProcessorVersionRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DeleteProcessorVersionRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1beta3.DeleteProcessorVersionRequest;
+
+ /**
+ * Verifies a DeleteProcessorVersionRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DeleteProcessorVersionRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DeleteProcessorVersionRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1beta3.DeleteProcessorVersionRequest;
+
+ /**
+ * Creates a plain object from a DeleteProcessorVersionRequest message. Also converts values to other types if specified.
+ * @param message DeleteProcessorVersionRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1beta3.DeleteProcessorVersionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DeleteProcessorVersionRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DeleteProcessorVersionRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DeleteProcessorVersionMetadata. */
+ interface IDeleteProcessorVersionMetadata {
+
+ /** DeleteProcessorVersionMetadata commonMetadata */
+ commonMetadata?: (google.cloud.documentai.v1beta3.ICommonOperationMetadata|null);
+ }
+
+ /** Represents a DeleteProcessorVersionMetadata. */
+ class DeleteProcessorVersionMetadata implements IDeleteProcessorVersionMetadata {
+
+ /**
+ * Constructs a new DeleteProcessorVersionMetadata.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta3.IDeleteProcessorVersionMetadata);
+
+ /** DeleteProcessorVersionMetadata commonMetadata. */
+ public commonMetadata?: (google.cloud.documentai.v1beta3.ICommonOperationMetadata|null);
+
+ /**
+ * Creates a new DeleteProcessorVersionMetadata instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DeleteProcessorVersionMetadata instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta3.IDeleteProcessorVersionMetadata): google.cloud.documentai.v1beta3.DeleteProcessorVersionMetadata;
+
+ /**
+ * Encodes the specified DeleteProcessorVersionMetadata message. Does not implicitly {@link google.cloud.documentai.v1beta3.DeleteProcessorVersionMetadata.verify|verify} messages.
+ * @param message DeleteProcessorVersionMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1beta3.IDeleteProcessorVersionMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DeleteProcessorVersionMetadata message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta3.DeleteProcessorVersionMetadata.verify|verify} messages.
+ * @param message DeleteProcessorVersionMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1beta3.IDeleteProcessorVersionMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DeleteProcessorVersionMetadata message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DeleteProcessorVersionMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1beta3.DeleteProcessorVersionMetadata;
+
+ /**
+ * Decodes a DeleteProcessorVersionMetadata message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DeleteProcessorVersionMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1beta3.DeleteProcessorVersionMetadata;
+
+ /**
+ * Verifies a DeleteProcessorVersionMetadata message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DeleteProcessorVersionMetadata message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DeleteProcessorVersionMetadata
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1beta3.DeleteProcessorVersionMetadata;
+
+ /**
+ * Creates a plain object from a DeleteProcessorVersionMetadata message. Also converts values to other types if specified.
+ * @param message DeleteProcessorVersionMetadata
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1beta3.DeleteProcessorVersionMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DeleteProcessorVersionMetadata to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DeleteProcessorVersionMetadata
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DeployProcessorVersionRequest. */
+ interface IDeployProcessorVersionRequest {
+
+ /** DeployProcessorVersionRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a DeployProcessorVersionRequest. */
+ class DeployProcessorVersionRequest implements IDeployProcessorVersionRequest {
+
+ /**
+ * Constructs a new DeployProcessorVersionRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta3.IDeployProcessorVersionRequest);
+
+ /** DeployProcessorVersionRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new DeployProcessorVersionRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DeployProcessorVersionRequest instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta3.IDeployProcessorVersionRequest): google.cloud.documentai.v1beta3.DeployProcessorVersionRequest;
+
+ /**
+ * Encodes the specified DeployProcessorVersionRequest message. Does not implicitly {@link google.cloud.documentai.v1beta3.DeployProcessorVersionRequest.verify|verify} messages.
+ * @param message DeployProcessorVersionRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1beta3.IDeployProcessorVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DeployProcessorVersionRequest message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta3.DeployProcessorVersionRequest.verify|verify} messages.
+ * @param message DeployProcessorVersionRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1beta3.IDeployProcessorVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DeployProcessorVersionRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DeployProcessorVersionRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1beta3.DeployProcessorVersionRequest;
+
+ /**
+ * Decodes a DeployProcessorVersionRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DeployProcessorVersionRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1beta3.DeployProcessorVersionRequest;
+
+ /**
+ * Verifies a DeployProcessorVersionRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DeployProcessorVersionRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DeployProcessorVersionRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1beta3.DeployProcessorVersionRequest;
+
+ /**
+ * Creates a plain object from a DeployProcessorVersionRequest message. Also converts values to other types if specified.
+ * @param message DeployProcessorVersionRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1beta3.DeployProcessorVersionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DeployProcessorVersionRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DeployProcessorVersionRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DeployProcessorVersionResponse. */
+ interface IDeployProcessorVersionResponse {
+ }
+
+ /** Represents a DeployProcessorVersionResponse. */
+ class DeployProcessorVersionResponse implements IDeployProcessorVersionResponse {
+
+ /**
+ * Constructs a new DeployProcessorVersionResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta3.IDeployProcessorVersionResponse);
+
+ /**
+ * Creates a new DeployProcessorVersionResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DeployProcessorVersionResponse instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta3.IDeployProcessorVersionResponse): google.cloud.documentai.v1beta3.DeployProcessorVersionResponse;
+
+ /**
+ * Encodes the specified DeployProcessorVersionResponse message. Does not implicitly {@link google.cloud.documentai.v1beta3.DeployProcessorVersionResponse.verify|verify} messages.
+ * @param message DeployProcessorVersionResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1beta3.IDeployProcessorVersionResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DeployProcessorVersionResponse message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta3.DeployProcessorVersionResponse.verify|verify} messages.
+ * @param message DeployProcessorVersionResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1beta3.IDeployProcessorVersionResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DeployProcessorVersionResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DeployProcessorVersionResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1beta3.DeployProcessorVersionResponse;
+
+ /**
+ * Decodes a DeployProcessorVersionResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DeployProcessorVersionResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1beta3.DeployProcessorVersionResponse;
+
+ /**
+ * Verifies a DeployProcessorVersionResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DeployProcessorVersionResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DeployProcessorVersionResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1beta3.DeployProcessorVersionResponse;
+
+ /**
+ * Creates a plain object from a DeployProcessorVersionResponse message. Also converts values to other types if specified.
+ * @param message DeployProcessorVersionResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1beta3.DeployProcessorVersionResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DeployProcessorVersionResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DeployProcessorVersionResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DeployProcessorVersionMetadata. */
+ interface IDeployProcessorVersionMetadata {
+
+ /** DeployProcessorVersionMetadata commonMetadata */
+ commonMetadata?: (google.cloud.documentai.v1beta3.ICommonOperationMetadata|null);
+ }
+
+ /** Represents a DeployProcessorVersionMetadata. */
+ class DeployProcessorVersionMetadata implements IDeployProcessorVersionMetadata {
+
+ /**
+ * Constructs a new DeployProcessorVersionMetadata.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta3.IDeployProcessorVersionMetadata);
+
+ /** DeployProcessorVersionMetadata commonMetadata. */
+ public commonMetadata?: (google.cloud.documentai.v1beta3.ICommonOperationMetadata|null);
+
+ /**
+ * Creates a new DeployProcessorVersionMetadata instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DeployProcessorVersionMetadata instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta3.IDeployProcessorVersionMetadata): google.cloud.documentai.v1beta3.DeployProcessorVersionMetadata;
+
+ /**
+ * Encodes the specified DeployProcessorVersionMetadata message. Does not implicitly {@link google.cloud.documentai.v1beta3.DeployProcessorVersionMetadata.verify|verify} messages.
+ * @param message DeployProcessorVersionMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1beta3.IDeployProcessorVersionMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DeployProcessorVersionMetadata message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta3.DeployProcessorVersionMetadata.verify|verify} messages.
+ * @param message DeployProcessorVersionMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1beta3.IDeployProcessorVersionMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DeployProcessorVersionMetadata message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DeployProcessorVersionMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1beta3.DeployProcessorVersionMetadata;
+
+ /**
+ * Decodes a DeployProcessorVersionMetadata message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DeployProcessorVersionMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1beta3.DeployProcessorVersionMetadata;
+
+ /**
+ * Verifies a DeployProcessorVersionMetadata message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DeployProcessorVersionMetadata message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DeployProcessorVersionMetadata
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1beta3.DeployProcessorVersionMetadata;
+
+ /**
+ * Creates a plain object from a DeployProcessorVersionMetadata message. Also converts values to other types if specified.
+ * @param message DeployProcessorVersionMetadata
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1beta3.DeployProcessorVersionMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DeployProcessorVersionMetadata to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DeployProcessorVersionMetadata
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an UndeployProcessorVersionRequest. */
+ interface IUndeployProcessorVersionRequest {
+
+ /** UndeployProcessorVersionRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents an UndeployProcessorVersionRequest. */
+ class UndeployProcessorVersionRequest implements IUndeployProcessorVersionRequest {
+
+ /**
+ * Constructs a new UndeployProcessorVersionRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta3.IUndeployProcessorVersionRequest);
+
+ /** UndeployProcessorVersionRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new UndeployProcessorVersionRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns UndeployProcessorVersionRequest instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta3.IUndeployProcessorVersionRequest): google.cloud.documentai.v1beta3.UndeployProcessorVersionRequest;
+
+ /**
+ * Encodes the specified UndeployProcessorVersionRequest message. Does not implicitly {@link google.cloud.documentai.v1beta3.UndeployProcessorVersionRequest.verify|verify} messages.
+ * @param message UndeployProcessorVersionRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1beta3.IUndeployProcessorVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified UndeployProcessorVersionRequest message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta3.UndeployProcessorVersionRequest.verify|verify} messages.
+ * @param message UndeployProcessorVersionRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1beta3.IUndeployProcessorVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an UndeployProcessorVersionRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns UndeployProcessorVersionRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1beta3.UndeployProcessorVersionRequest;
+
+ /**
+ * Decodes an UndeployProcessorVersionRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns UndeployProcessorVersionRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1beta3.UndeployProcessorVersionRequest;
+
+ /**
+ * Verifies an UndeployProcessorVersionRequest message.
+ * @param message Plain 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 UndeployProcessorVersionRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns UndeployProcessorVersionRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1beta3.UndeployProcessorVersionRequest;
+
+ /**
+ * Creates a plain object from an UndeployProcessorVersionRequest message. Also converts values to other types if specified.
+ * @param message UndeployProcessorVersionRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1beta3.UndeployProcessorVersionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this UndeployProcessorVersionRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for UndeployProcessorVersionRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an UndeployProcessorVersionResponse. */
+ interface IUndeployProcessorVersionResponse {
+ }
+
+ /** Represents an UndeployProcessorVersionResponse. */
+ class UndeployProcessorVersionResponse implements IUndeployProcessorVersionResponse {
+
+ /**
+ * Constructs a new UndeployProcessorVersionResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta3.IUndeployProcessorVersionResponse);
+
+ /**
+ * Creates a new UndeployProcessorVersionResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns UndeployProcessorVersionResponse instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta3.IUndeployProcessorVersionResponse): google.cloud.documentai.v1beta3.UndeployProcessorVersionResponse;
+
+ /**
+ * Encodes the specified UndeployProcessorVersionResponse message. Does not implicitly {@link google.cloud.documentai.v1beta3.UndeployProcessorVersionResponse.verify|verify} messages.
+ * @param message UndeployProcessorVersionResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1beta3.IUndeployProcessorVersionResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified UndeployProcessorVersionResponse message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta3.UndeployProcessorVersionResponse.verify|verify} messages.
+ * @param message UndeployProcessorVersionResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1beta3.IUndeployProcessorVersionResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an UndeployProcessorVersionResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns UndeployProcessorVersionResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1beta3.UndeployProcessorVersionResponse;
+
+ /**
+ * Decodes an UndeployProcessorVersionResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns UndeployProcessorVersionResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1beta3.UndeployProcessorVersionResponse;
+
+ /**
+ * Verifies an UndeployProcessorVersionResponse message.
+ * @param message Plain 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 UndeployProcessorVersionResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns UndeployProcessorVersionResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1beta3.UndeployProcessorVersionResponse;
+
+ /**
+ * Creates a plain object from an UndeployProcessorVersionResponse message. Also converts values to other types if specified.
+ * @param message UndeployProcessorVersionResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1beta3.UndeployProcessorVersionResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this UndeployProcessorVersionResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for UndeployProcessorVersionResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an UndeployProcessorVersionMetadata. */
+ interface IUndeployProcessorVersionMetadata {
+
+ /** UndeployProcessorVersionMetadata commonMetadata */
+ commonMetadata?: (google.cloud.documentai.v1beta3.ICommonOperationMetadata|null);
+ }
+
+ /** Represents an UndeployProcessorVersionMetadata. */
+ class UndeployProcessorVersionMetadata implements IUndeployProcessorVersionMetadata {
+
+ /**
+ * Constructs a new UndeployProcessorVersionMetadata.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta3.IUndeployProcessorVersionMetadata);
+
+ /** UndeployProcessorVersionMetadata commonMetadata. */
+ public commonMetadata?: (google.cloud.documentai.v1beta3.ICommonOperationMetadata|null);
+
+ /**
+ * Creates a new UndeployProcessorVersionMetadata instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns UndeployProcessorVersionMetadata instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta3.IUndeployProcessorVersionMetadata): google.cloud.documentai.v1beta3.UndeployProcessorVersionMetadata;
+
+ /**
+ * Encodes the specified UndeployProcessorVersionMetadata message. Does not implicitly {@link google.cloud.documentai.v1beta3.UndeployProcessorVersionMetadata.verify|verify} messages.
+ * @param message UndeployProcessorVersionMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1beta3.IUndeployProcessorVersionMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified UndeployProcessorVersionMetadata message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta3.UndeployProcessorVersionMetadata.verify|verify} messages.
+ * @param message UndeployProcessorVersionMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1beta3.IUndeployProcessorVersionMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an UndeployProcessorVersionMetadata message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns UndeployProcessorVersionMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1beta3.UndeployProcessorVersionMetadata;
+
+ /**
+ * Decodes an UndeployProcessorVersionMetadata message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns UndeployProcessorVersionMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1beta3.UndeployProcessorVersionMetadata;
+
+ /**
+ * Verifies an UndeployProcessorVersionMetadata message.
+ * @param message Plain 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 UndeployProcessorVersionMetadata message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns UndeployProcessorVersionMetadata
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1beta3.UndeployProcessorVersionMetadata;
+
+ /**
+ * Creates a plain object from an UndeployProcessorVersionMetadata message. Also converts values to other types if specified.
+ * @param message UndeployProcessorVersionMetadata
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1beta3.UndeployProcessorVersionMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this UndeployProcessorVersionMetadata to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for UndeployProcessorVersionMetadata
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CreateProcessorRequest. */
+ interface ICreateProcessorRequest {
+
+ /** CreateProcessorRequest parent */
+ parent?: (string|null);
+
+ /** CreateProcessorRequest processor */
+ processor?: (google.cloud.documentai.v1beta3.IProcessor|null);
+ }
+
+ /** Represents a CreateProcessorRequest. */
+ class CreateProcessorRequest implements ICreateProcessorRequest {
+
+ /**
+ * Constructs a new CreateProcessorRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta3.ICreateProcessorRequest);
+
+ /** CreateProcessorRequest parent. */
+ public parent: string;
+
+ /** CreateProcessorRequest processor. */
+ public processor?: (google.cloud.documentai.v1beta3.IProcessor|null);
+
+ /**
+ * Creates a new CreateProcessorRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CreateProcessorRequest instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta3.ICreateProcessorRequest): google.cloud.documentai.v1beta3.CreateProcessorRequest;
+
+ /**
+ * Encodes the specified CreateProcessorRequest message. Does not implicitly {@link google.cloud.documentai.v1beta3.CreateProcessorRequest.verify|verify} messages.
+ * @param message CreateProcessorRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1beta3.ICreateProcessorRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CreateProcessorRequest message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta3.CreateProcessorRequest.verify|verify} messages.
+ * @param message CreateProcessorRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1beta3.ICreateProcessorRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CreateProcessorRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CreateProcessorRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1beta3.CreateProcessorRequest;
+
+ /**
+ * Decodes a CreateProcessorRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CreateProcessorRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1beta3.CreateProcessorRequest;
+
+ /**
+ * Verifies a CreateProcessorRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a CreateProcessorRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CreateProcessorRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1beta3.CreateProcessorRequest;
+
+ /**
+ * Creates a plain object from a CreateProcessorRequest message. Also converts values to other types if specified.
+ * @param message CreateProcessorRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1beta3.CreateProcessorRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CreateProcessorRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CreateProcessorRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DeleteProcessorRequest. */
+ interface IDeleteProcessorRequest {
+
+ /** DeleteProcessorRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a DeleteProcessorRequest. */
+ class DeleteProcessorRequest implements IDeleteProcessorRequest {
+
+ /**
+ * Constructs a new DeleteProcessorRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta3.IDeleteProcessorRequest);
+
+ /** DeleteProcessorRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new DeleteProcessorRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DeleteProcessorRequest instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta3.IDeleteProcessorRequest): google.cloud.documentai.v1beta3.DeleteProcessorRequest;
+
+ /**
+ * Encodes the specified DeleteProcessorRequest message. Does not implicitly {@link google.cloud.documentai.v1beta3.DeleteProcessorRequest.verify|verify} messages.
+ * @param message DeleteProcessorRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1beta3.IDeleteProcessorRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DeleteProcessorRequest message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta3.DeleteProcessorRequest.verify|verify} messages.
+ * @param message DeleteProcessorRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1beta3.IDeleteProcessorRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DeleteProcessorRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DeleteProcessorRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1beta3.DeleteProcessorRequest;
+
+ /**
+ * Decodes a DeleteProcessorRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DeleteProcessorRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1beta3.DeleteProcessorRequest;
+
+ /**
+ * Verifies a DeleteProcessorRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DeleteProcessorRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DeleteProcessorRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1beta3.DeleteProcessorRequest;
+
+ /**
+ * Creates a plain object from a DeleteProcessorRequest message. Also converts values to other types if specified.
+ * @param message DeleteProcessorRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1beta3.DeleteProcessorRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DeleteProcessorRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DeleteProcessorRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DeleteProcessorMetadata. */
+ interface IDeleteProcessorMetadata {
+
+ /** DeleteProcessorMetadata commonMetadata */
+ commonMetadata?: (google.cloud.documentai.v1beta3.ICommonOperationMetadata|null);
+ }
+
+ /** Represents a DeleteProcessorMetadata. */
+ class DeleteProcessorMetadata implements IDeleteProcessorMetadata {
+
+ /**
+ * Constructs a new DeleteProcessorMetadata.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta3.IDeleteProcessorMetadata);
+
+ /** DeleteProcessorMetadata commonMetadata. */
+ public commonMetadata?: (google.cloud.documentai.v1beta3.ICommonOperationMetadata|null);
+
+ /**
+ * Creates a new DeleteProcessorMetadata instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DeleteProcessorMetadata instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta3.IDeleteProcessorMetadata): google.cloud.documentai.v1beta3.DeleteProcessorMetadata;
+
+ /**
+ * Encodes the specified DeleteProcessorMetadata message. Does not implicitly {@link google.cloud.documentai.v1beta3.DeleteProcessorMetadata.verify|verify} messages.
+ * @param message DeleteProcessorMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1beta3.IDeleteProcessorMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DeleteProcessorMetadata message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta3.DeleteProcessorMetadata.verify|verify} messages.
+ * @param message DeleteProcessorMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1beta3.IDeleteProcessorMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DeleteProcessorMetadata message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DeleteProcessorMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1beta3.DeleteProcessorMetadata;
+
+ /**
+ * Decodes a DeleteProcessorMetadata message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DeleteProcessorMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1beta3.DeleteProcessorMetadata;
+
+ /**
+ * Verifies a DeleteProcessorMetadata message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DeleteProcessorMetadata message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DeleteProcessorMetadata
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1beta3.DeleteProcessorMetadata;
+
+ /**
+ * Creates a plain object from a DeleteProcessorMetadata message. Also converts values to other types if specified.
+ * @param message DeleteProcessorMetadata
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1beta3.DeleteProcessorMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DeleteProcessorMetadata to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DeleteProcessorMetadata
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an EnableProcessorRequest. */
+ interface IEnableProcessorRequest {
+
+ /** EnableProcessorRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents an EnableProcessorRequest. */
+ class EnableProcessorRequest implements IEnableProcessorRequest {
+
+ /**
+ * Constructs a new EnableProcessorRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta3.IEnableProcessorRequest);
+
+ /** EnableProcessorRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new EnableProcessorRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns EnableProcessorRequest instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta3.IEnableProcessorRequest): google.cloud.documentai.v1beta3.EnableProcessorRequest;
+
+ /**
+ * Encodes the specified EnableProcessorRequest message. Does not implicitly {@link google.cloud.documentai.v1beta3.EnableProcessorRequest.verify|verify} messages.
+ * @param message EnableProcessorRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1beta3.IEnableProcessorRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified EnableProcessorRequest message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta3.EnableProcessorRequest.verify|verify} messages.
+ * @param message EnableProcessorRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1beta3.IEnableProcessorRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an EnableProcessorRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns EnableProcessorRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1beta3.EnableProcessorRequest;
+
+ /**
+ * Decodes an EnableProcessorRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns EnableProcessorRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1beta3.EnableProcessorRequest;
+
+ /**
+ * Verifies an EnableProcessorRequest message.
+ * @param message Plain 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 EnableProcessorRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns EnableProcessorRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1beta3.EnableProcessorRequest;
+
+ /**
+ * Creates a plain object from an EnableProcessorRequest message. Also converts values to other types if specified.
+ * @param message EnableProcessorRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1beta3.EnableProcessorRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this EnableProcessorRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for EnableProcessorRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an EnableProcessorResponse. */
+ interface IEnableProcessorResponse {
+ }
+
+ /** Represents an EnableProcessorResponse. */
+ class EnableProcessorResponse implements IEnableProcessorResponse {
+
+ /**
+ * Constructs a new EnableProcessorResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta3.IEnableProcessorResponse);
+
+ /**
+ * Creates a new EnableProcessorResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns EnableProcessorResponse instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta3.IEnableProcessorResponse): google.cloud.documentai.v1beta3.EnableProcessorResponse;
+
+ /**
+ * Encodes the specified EnableProcessorResponse message. Does not implicitly {@link google.cloud.documentai.v1beta3.EnableProcessorResponse.verify|verify} messages.
+ * @param message EnableProcessorResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1beta3.IEnableProcessorResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified EnableProcessorResponse message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta3.EnableProcessorResponse.verify|verify} messages.
+ * @param message EnableProcessorResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1beta3.IEnableProcessorResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an EnableProcessorResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns EnableProcessorResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1beta3.EnableProcessorResponse;
+
+ /**
+ * Decodes an EnableProcessorResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns EnableProcessorResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1beta3.EnableProcessorResponse;
+
+ /**
+ * Verifies an EnableProcessorResponse message.
+ * @param message Plain 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 EnableProcessorResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns EnableProcessorResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1beta3.EnableProcessorResponse;
+
+ /**
+ * Creates a plain object from an EnableProcessorResponse message. Also converts values to other types if specified.
+ * @param message EnableProcessorResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1beta3.EnableProcessorResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this EnableProcessorResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for EnableProcessorResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an EnableProcessorMetadata. */
+ interface IEnableProcessorMetadata {
+
+ /** EnableProcessorMetadata commonMetadata */
+ commonMetadata?: (google.cloud.documentai.v1beta3.ICommonOperationMetadata|null);
+ }
+
+ /** Represents an EnableProcessorMetadata. */
+ class EnableProcessorMetadata implements IEnableProcessorMetadata {
+
+ /**
+ * Constructs a new EnableProcessorMetadata.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta3.IEnableProcessorMetadata);
+
+ /** EnableProcessorMetadata commonMetadata. */
+ public commonMetadata?: (google.cloud.documentai.v1beta3.ICommonOperationMetadata|null);
+
+ /**
+ * Creates a new EnableProcessorMetadata instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns EnableProcessorMetadata instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta3.IEnableProcessorMetadata): google.cloud.documentai.v1beta3.EnableProcessorMetadata;
+
+ /**
+ * Encodes the specified EnableProcessorMetadata message. Does not implicitly {@link google.cloud.documentai.v1beta3.EnableProcessorMetadata.verify|verify} messages.
+ * @param message EnableProcessorMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1beta3.IEnableProcessorMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified EnableProcessorMetadata message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta3.EnableProcessorMetadata.verify|verify} messages.
+ * @param message EnableProcessorMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1beta3.IEnableProcessorMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an EnableProcessorMetadata message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns EnableProcessorMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1beta3.EnableProcessorMetadata;
+
+ /**
+ * Decodes an EnableProcessorMetadata message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns EnableProcessorMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1beta3.EnableProcessorMetadata;
+
+ /**
+ * Verifies an EnableProcessorMetadata message.
+ * @param message Plain 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 EnableProcessorMetadata message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns EnableProcessorMetadata
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1beta3.EnableProcessorMetadata;
+
+ /**
+ * Creates a plain object from an EnableProcessorMetadata message. Also converts values to other types if specified.
+ * @param message EnableProcessorMetadata
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1beta3.EnableProcessorMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this EnableProcessorMetadata to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for EnableProcessorMetadata
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DisableProcessorRequest. */
+ interface IDisableProcessorRequest {
+
+ /** DisableProcessorRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a DisableProcessorRequest. */
+ class DisableProcessorRequest implements IDisableProcessorRequest {
+
+ /**
+ * Constructs a new DisableProcessorRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta3.IDisableProcessorRequest);
+
+ /** DisableProcessorRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new DisableProcessorRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DisableProcessorRequest instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta3.IDisableProcessorRequest): google.cloud.documentai.v1beta3.DisableProcessorRequest;
+
+ /**
+ * Encodes the specified DisableProcessorRequest message. Does not implicitly {@link google.cloud.documentai.v1beta3.DisableProcessorRequest.verify|verify} messages.
+ * @param message DisableProcessorRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1beta3.IDisableProcessorRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DisableProcessorRequest message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta3.DisableProcessorRequest.verify|verify} messages.
+ * @param message DisableProcessorRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1beta3.IDisableProcessorRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DisableProcessorRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DisableProcessorRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1beta3.DisableProcessorRequest;
+
+ /**
+ * Decodes a DisableProcessorRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DisableProcessorRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1beta3.DisableProcessorRequest;
+
+ /**
+ * Verifies a DisableProcessorRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DisableProcessorRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DisableProcessorRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1beta3.DisableProcessorRequest;
+
+ /**
+ * Creates a plain object from a DisableProcessorRequest message. Also converts values to other types if specified.
+ * @param message DisableProcessorRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1beta3.DisableProcessorRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DisableProcessorRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DisableProcessorRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DisableProcessorResponse. */
+ interface IDisableProcessorResponse {
+ }
+
+ /** Represents a DisableProcessorResponse. */
+ class DisableProcessorResponse implements IDisableProcessorResponse {
+
+ /**
+ * Constructs a new DisableProcessorResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta3.IDisableProcessorResponse);
+
+ /**
+ * Creates a new DisableProcessorResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DisableProcessorResponse instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta3.IDisableProcessorResponse): google.cloud.documentai.v1beta3.DisableProcessorResponse;
+
+ /**
+ * Encodes the specified DisableProcessorResponse message. Does not implicitly {@link google.cloud.documentai.v1beta3.DisableProcessorResponse.verify|verify} messages.
+ * @param message DisableProcessorResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1beta3.IDisableProcessorResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DisableProcessorResponse message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta3.DisableProcessorResponse.verify|verify} messages.
+ * @param message DisableProcessorResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1beta3.IDisableProcessorResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DisableProcessorResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DisableProcessorResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1beta3.DisableProcessorResponse;
+
+ /**
+ * Decodes a DisableProcessorResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DisableProcessorResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1beta3.DisableProcessorResponse;
+
+ /**
+ * Verifies a DisableProcessorResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DisableProcessorResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DisableProcessorResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1beta3.DisableProcessorResponse;
+
+ /**
+ * Creates a plain object from a DisableProcessorResponse message. Also converts values to other types if specified.
+ * @param message DisableProcessorResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1beta3.DisableProcessorResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DisableProcessorResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DisableProcessorResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DisableProcessorMetadata. */
+ interface IDisableProcessorMetadata {
+
+ /** DisableProcessorMetadata commonMetadata */
+ commonMetadata?: (google.cloud.documentai.v1beta3.ICommonOperationMetadata|null);
+ }
+
+ /** Represents a DisableProcessorMetadata. */
+ class DisableProcessorMetadata implements IDisableProcessorMetadata {
+
+ /**
+ * Constructs a new DisableProcessorMetadata.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta3.IDisableProcessorMetadata);
+
+ /** DisableProcessorMetadata commonMetadata. */
+ public commonMetadata?: (google.cloud.documentai.v1beta3.ICommonOperationMetadata|null);
+
+ /**
+ * Creates a new DisableProcessorMetadata instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DisableProcessorMetadata instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta3.IDisableProcessorMetadata): google.cloud.documentai.v1beta3.DisableProcessorMetadata;
+
+ /**
+ * Encodes the specified DisableProcessorMetadata message. Does not implicitly {@link google.cloud.documentai.v1beta3.DisableProcessorMetadata.verify|verify} messages.
+ * @param message DisableProcessorMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1beta3.IDisableProcessorMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DisableProcessorMetadata message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta3.DisableProcessorMetadata.verify|verify} messages.
+ * @param message DisableProcessorMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1beta3.IDisableProcessorMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DisableProcessorMetadata message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DisableProcessorMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1beta3.DisableProcessorMetadata;
+
+ /**
+ * Decodes a DisableProcessorMetadata message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DisableProcessorMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1beta3.DisableProcessorMetadata;
+
+ /**
+ * Verifies a DisableProcessorMetadata message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DisableProcessorMetadata message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DisableProcessorMetadata
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1beta3.DisableProcessorMetadata;
+
+ /**
+ * Creates a plain object from a DisableProcessorMetadata message. Also converts values to other types if specified.
+ * @param message DisableProcessorMetadata
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1beta3.DisableProcessorMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DisableProcessorMetadata to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DisableProcessorMetadata
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a SetDefaultProcessorVersionRequest. */
+ interface ISetDefaultProcessorVersionRequest {
+
+ /** SetDefaultProcessorVersionRequest processor */
+ processor?: (string|null);
+
+ /** SetDefaultProcessorVersionRequest defaultProcessorVersion */
+ defaultProcessorVersion?: (string|null);
+ }
+
+ /** Represents a SetDefaultProcessorVersionRequest. */
+ class SetDefaultProcessorVersionRequest implements ISetDefaultProcessorVersionRequest {
+
+ /**
+ * Constructs a new SetDefaultProcessorVersionRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta3.ISetDefaultProcessorVersionRequest);
+
+ /** SetDefaultProcessorVersionRequest processor. */
+ public processor: string;
+
+ /** SetDefaultProcessorVersionRequest defaultProcessorVersion. */
+ public defaultProcessorVersion: string;
+
+ /**
+ * Creates a new SetDefaultProcessorVersionRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns SetDefaultProcessorVersionRequest instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta3.ISetDefaultProcessorVersionRequest): google.cloud.documentai.v1beta3.SetDefaultProcessorVersionRequest;
+
+ /**
+ * Encodes the specified SetDefaultProcessorVersionRequest message. Does not implicitly {@link google.cloud.documentai.v1beta3.SetDefaultProcessorVersionRequest.verify|verify} messages.
+ * @param message SetDefaultProcessorVersionRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1beta3.ISetDefaultProcessorVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified SetDefaultProcessorVersionRequest message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta3.SetDefaultProcessorVersionRequest.verify|verify} messages.
+ * @param message SetDefaultProcessorVersionRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1beta3.ISetDefaultProcessorVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a SetDefaultProcessorVersionRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns SetDefaultProcessorVersionRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1beta3.SetDefaultProcessorVersionRequest;
+
+ /**
+ * Decodes a SetDefaultProcessorVersionRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns SetDefaultProcessorVersionRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1beta3.SetDefaultProcessorVersionRequest;
+
+ /**
+ * Verifies a SetDefaultProcessorVersionRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a SetDefaultProcessorVersionRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns SetDefaultProcessorVersionRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1beta3.SetDefaultProcessorVersionRequest;
+
+ /**
+ * Creates a plain object from a SetDefaultProcessorVersionRequest message. Also converts values to other types if specified.
+ * @param message SetDefaultProcessorVersionRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1beta3.SetDefaultProcessorVersionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this SetDefaultProcessorVersionRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for SetDefaultProcessorVersionRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a SetDefaultProcessorVersionResponse. */
+ interface ISetDefaultProcessorVersionResponse {
+ }
+
+ /** Represents a SetDefaultProcessorVersionResponse. */
+ class SetDefaultProcessorVersionResponse implements ISetDefaultProcessorVersionResponse {
+
+ /**
+ * Constructs a new SetDefaultProcessorVersionResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta3.ISetDefaultProcessorVersionResponse);
+
+ /**
+ * Creates a new SetDefaultProcessorVersionResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns SetDefaultProcessorVersionResponse instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta3.ISetDefaultProcessorVersionResponse): google.cloud.documentai.v1beta3.SetDefaultProcessorVersionResponse;
+
+ /**
+ * Encodes the specified SetDefaultProcessorVersionResponse message. Does not implicitly {@link google.cloud.documentai.v1beta3.SetDefaultProcessorVersionResponse.verify|verify} messages.
+ * @param message SetDefaultProcessorVersionResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1beta3.ISetDefaultProcessorVersionResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified SetDefaultProcessorVersionResponse message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta3.SetDefaultProcessorVersionResponse.verify|verify} messages.
+ * @param message SetDefaultProcessorVersionResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1beta3.ISetDefaultProcessorVersionResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a SetDefaultProcessorVersionResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns SetDefaultProcessorVersionResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1beta3.SetDefaultProcessorVersionResponse;
+
+ /**
+ * Decodes a SetDefaultProcessorVersionResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns SetDefaultProcessorVersionResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1beta3.SetDefaultProcessorVersionResponse;
+
+ /**
+ * Verifies a SetDefaultProcessorVersionResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a SetDefaultProcessorVersionResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns SetDefaultProcessorVersionResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1beta3.SetDefaultProcessorVersionResponse;
+
+ /**
+ * Creates a plain object from a SetDefaultProcessorVersionResponse message. Also converts values to other types if specified.
+ * @param message SetDefaultProcessorVersionResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1beta3.SetDefaultProcessorVersionResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this SetDefaultProcessorVersionResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for SetDefaultProcessorVersionResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a SetDefaultProcessorVersionMetadata. */
+ interface ISetDefaultProcessorVersionMetadata {
+
+ /** SetDefaultProcessorVersionMetadata commonMetadata */
+ commonMetadata?: (google.cloud.documentai.v1beta3.ICommonOperationMetadata|null);
+ }
+
+ /** Represents a SetDefaultProcessorVersionMetadata. */
+ class SetDefaultProcessorVersionMetadata implements ISetDefaultProcessorVersionMetadata {
+
+ /**
+ * Constructs a new SetDefaultProcessorVersionMetadata.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta3.ISetDefaultProcessorVersionMetadata);
+
+ /** SetDefaultProcessorVersionMetadata commonMetadata. */
+ public commonMetadata?: (google.cloud.documentai.v1beta3.ICommonOperationMetadata|null);
+
+ /**
+ * Creates a new SetDefaultProcessorVersionMetadata instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns SetDefaultProcessorVersionMetadata instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta3.ISetDefaultProcessorVersionMetadata): google.cloud.documentai.v1beta3.SetDefaultProcessorVersionMetadata;
+
+ /**
+ * Encodes the specified SetDefaultProcessorVersionMetadata message. Does not implicitly {@link google.cloud.documentai.v1beta3.SetDefaultProcessorVersionMetadata.verify|verify} messages.
+ * @param message SetDefaultProcessorVersionMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1beta3.ISetDefaultProcessorVersionMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified SetDefaultProcessorVersionMetadata message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta3.SetDefaultProcessorVersionMetadata.verify|verify} messages.
+ * @param message SetDefaultProcessorVersionMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1beta3.ISetDefaultProcessorVersionMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a SetDefaultProcessorVersionMetadata message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns SetDefaultProcessorVersionMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1beta3.SetDefaultProcessorVersionMetadata;
+
+ /**
+ * Decodes a SetDefaultProcessorVersionMetadata message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns SetDefaultProcessorVersionMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1beta3.SetDefaultProcessorVersionMetadata;
+
+ /**
+ * Verifies a SetDefaultProcessorVersionMetadata message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a SetDefaultProcessorVersionMetadata message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns SetDefaultProcessorVersionMetadata
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1beta3.SetDefaultProcessorVersionMetadata;
+
+ /**
+ * Creates a plain object from a SetDefaultProcessorVersionMetadata message. Also converts values to other types if specified.
+ * @param message SetDefaultProcessorVersionMetadata
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1beta3.SetDefaultProcessorVersionMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this SetDefaultProcessorVersionMetadata to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for SetDefaultProcessorVersionMetadata
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ReviewDocumentRequest. */
+ interface IReviewDocumentRequest {
+
+ /** ReviewDocumentRequest inlineDocument */
+ inlineDocument?: (google.cloud.documentai.v1beta3.IDocument|null);
+
+ /** ReviewDocumentRequest humanReviewConfig */
+ humanReviewConfig?: (string|null);
+
+ /** ReviewDocumentRequest document */
+ document?: (google.cloud.documentai.v1beta3.IDocument|null);
+
+ /** ReviewDocumentRequest enableSchemaValidation */
+ enableSchemaValidation?: (boolean|null);
+
+ /** ReviewDocumentRequest priority */
+ priority?: (google.cloud.documentai.v1beta3.ReviewDocumentRequest.Priority|keyof typeof google.cloud.documentai.v1beta3.ReviewDocumentRequest.Priority|null);
+
+ /** ReviewDocumentRequest documentSchema */
+ documentSchema?: (google.cloud.documentai.v1beta3.IDocumentSchema|null);
+ }
+
+ /** Represents a ReviewDocumentRequest. */
+ class ReviewDocumentRequest implements IReviewDocumentRequest {
+
+ /**
+ * Constructs a new ReviewDocumentRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta3.IReviewDocumentRequest);
+
+ /** ReviewDocumentRequest inlineDocument. */
+ public inlineDocument?: (google.cloud.documentai.v1beta3.IDocument|null);
+
+ /** ReviewDocumentRequest humanReviewConfig. */
+ public humanReviewConfig: string;
+
+ /** ReviewDocumentRequest document. */
+ public document?: (google.cloud.documentai.v1beta3.IDocument|null);
+
+ /** ReviewDocumentRequest enableSchemaValidation. */
+ public enableSchemaValidation: boolean;
+
+ /** ReviewDocumentRequest priority. */
+ public priority: (google.cloud.documentai.v1beta3.ReviewDocumentRequest.Priority|keyof typeof google.cloud.documentai.v1beta3.ReviewDocumentRequest.Priority);
+
+ /** ReviewDocumentRequest documentSchema. */
+ public documentSchema?: (google.cloud.documentai.v1beta3.IDocumentSchema|null);
+
+ /** ReviewDocumentRequest source. */
+ public source?: "inlineDocument";
+
+ /**
+ * Creates a new ReviewDocumentRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ReviewDocumentRequest instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta3.IReviewDocumentRequest): google.cloud.documentai.v1beta3.ReviewDocumentRequest;
+
+ /**
+ * Encodes the specified ReviewDocumentRequest message. Does not implicitly {@link google.cloud.documentai.v1beta3.ReviewDocumentRequest.verify|verify} messages.
+ * @param message ReviewDocumentRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1beta3.IReviewDocumentRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ReviewDocumentRequest message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta3.ReviewDocumentRequest.verify|verify} messages.
+ * @param message ReviewDocumentRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1beta3.IReviewDocumentRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ReviewDocumentRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ReviewDocumentRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1beta3.ReviewDocumentRequest;
+
+ /**
+ * Decodes a ReviewDocumentRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ReviewDocumentRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1beta3.ReviewDocumentRequest;
+
+ /**
+ * Verifies a ReviewDocumentRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ReviewDocumentRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ReviewDocumentRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1beta3.ReviewDocumentRequest;
+
+ /**
+ * Creates a plain object from a ReviewDocumentRequest message. Also converts values to other types if specified.
+ * @param message ReviewDocumentRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1beta3.ReviewDocumentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ReviewDocumentRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ReviewDocumentRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace ReviewDocumentRequest {
+
+ /** Priority enum. */
+ enum Priority {
+ DEFAULT = 0,
+ URGENT = 1
+ }
+ }
+
+ /** Properties of a ReviewDocumentResponse. */
+ interface IReviewDocumentResponse {
+
+ /** ReviewDocumentResponse gcsDestination */
+ gcsDestination?: (string|null);
+
+ /** ReviewDocumentResponse state */
+ state?: (google.cloud.documentai.v1beta3.ReviewDocumentResponse.State|keyof typeof google.cloud.documentai.v1beta3.ReviewDocumentResponse.State|null);
+
+ /** ReviewDocumentResponse rejectionReason */
+ rejectionReason?: (string|null);
+ }
+
+ /** Represents a ReviewDocumentResponse. */
+ class ReviewDocumentResponse implements IReviewDocumentResponse {
+
+ /**
+ * Constructs a new ReviewDocumentResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta3.IReviewDocumentResponse);
+
+ /** ReviewDocumentResponse gcsDestination. */
+ public gcsDestination: string;
+
+ /** ReviewDocumentResponse state. */
+ public state: (google.cloud.documentai.v1beta3.ReviewDocumentResponse.State|keyof typeof google.cloud.documentai.v1beta3.ReviewDocumentResponse.State);
+
+ /** ReviewDocumentResponse rejectionReason. */
+ public rejectionReason: string;
+
+ /**
+ * Creates a new ReviewDocumentResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ReviewDocumentResponse instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta3.IReviewDocumentResponse): google.cloud.documentai.v1beta3.ReviewDocumentResponse;
+
+ /**
+ * Encodes the specified ReviewDocumentResponse message. Does not implicitly {@link google.cloud.documentai.v1beta3.ReviewDocumentResponse.verify|verify} messages.
+ * @param message ReviewDocumentResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1beta3.IReviewDocumentResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ReviewDocumentResponse message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta3.ReviewDocumentResponse.verify|verify} messages.
+ * @param message ReviewDocumentResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1beta3.IReviewDocumentResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ReviewDocumentResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ReviewDocumentResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1beta3.ReviewDocumentResponse;
+
+ /**
+ * Decodes a ReviewDocumentResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ReviewDocumentResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1beta3.ReviewDocumentResponse;
+
+ /**
+ * Verifies a ReviewDocumentResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ReviewDocumentResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ReviewDocumentResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1beta3.ReviewDocumentResponse;
+
+ /**
+ * Creates a plain object from a ReviewDocumentResponse message. Also converts values to other types if specified.
+ * @param message ReviewDocumentResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1beta3.ReviewDocumentResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ReviewDocumentResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ReviewDocumentResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace ReviewDocumentResponse {
+
+ /** State enum. */
+ enum State {
+ STATE_UNSPECIFIED = 0,
+ REJECTED = 1,
+ SUCCEEDED = 2
+ }
+ }
+
+ /** Properties of a ReviewDocumentOperationMetadata. */
+ interface IReviewDocumentOperationMetadata {
+
+ /** ReviewDocumentOperationMetadata state */
+ state?: (google.cloud.documentai.v1beta3.ReviewDocumentOperationMetadata.State|keyof typeof google.cloud.documentai.v1beta3.ReviewDocumentOperationMetadata.State|null);
+
+ /** ReviewDocumentOperationMetadata stateMessage */
+ stateMessage?: (string|null);
+
+ /** ReviewDocumentOperationMetadata createTime */
+ createTime?: (google.protobuf.ITimestamp|null);
+
+ /** ReviewDocumentOperationMetadata updateTime */
+ updateTime?: (google.protobuf.ITimestamp|null);
+
+ /** ReviewDocumentOperationMetadata commonMetadata */
+ commonMetadata?: (google.cloud.documentai.v1beta3.ICommonOperationMetadata|null);
+
+ /** ReviewDocumentOperationMetadata questionId */
+ questionId?: (string|null);
+ }
+
+ /** Represents a ReviewDocumentOperationMetadata. */
+ class ReviewDocumentOperationMetadata implements IReviewDocumentOperationMetadata {
+
+ /**
+ * Constructs a new ReviewDocumentOperationMetadata.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta3.IReviewDocumentOperationMetadata);
+
+ /** ReviewDocumentOperationMetadata state. */
+ public state: (google.cloud.documentai.v1beta3.ReviewDocumentOperationMetadata.State|keyof typeof google.cloud.documentai.v1beta3.ReviewDocumentOperationMetadata.State);
+
+ /** ReviewDocumentOperationMetadata stateMessage. */
+ public stateMessage: string;
+
+ /** ReviewDocumentOperationMetadata createTime. */
+ public createTime?: (google.protobuf.ITimestamp|null);
+
+ /** ReviewDocumentOperationMetadata updateTime. */
+ public updateTime?: (google.protobuf.ITimestamp|null);
+
+ /** ReviewDocumentOperationMetadata commonMetadata. */
+ public commonMetadata?: (google.cloud.documentai.v1beta3.ICommonOperationMetadata|null);
+
+ /** ReviewDocumentOperationMetadata questionId. */
+ public questionId: string;
+
+ /**
+ * Creates a new ReviewDocumentOperationMetadata instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ReviewDocumentOperationMetadata instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta3.IReviewDocumentOperationMetadata): google.cloud.documentai.v1beta3.ReviewDocumentOperationMetadata;
+
+ /**
+ * Encodes the specified ReviewDocumentOperationMetadata message. Does not implicitly {@link google.cloud.documentai.v1beta3.ReviewDocumentOperationMetadata.verify|verify} messages.
+ * @param message ReviewDocumentOperationMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1beta3.IReviewDocumentOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ReviewDocumentOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta3.ReviewDocumentOperationMetadata.verify|verify} messages.
+ * @param message ReviewDocumentOperationMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1beta3.IReviewDocumentOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ReviewDocumentOperationMetadata message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ReviewDocumentOperationMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1beta3.ReviewDocumentOperationMetadata;
+
+ /**
+ * Decodes a ReviewDocumentOperationMetadata message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ReviewDocumentOperationMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1beta3.ReviewDocumentOperationMetadata;
+
+ /**
+ * Verifies a ReviewDocumentOperationMetadata message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ReviewDocumentOperationMetadata message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ReviewDocumentOperationMetadata
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1beta3.ReviewDocumentOperationMetadata;
+
+ /**
+ * Creates a plain object from a ReviewDocumentOperationMetadata message. Also converts values to other types if specified.
+ * @param message ReviewDocumentOperationMetadata
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1beta3.ReviewDocumentOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ReviewDocumentOperationMetadata to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ReviewDocumentOperationMetadata
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace ReviewDocumentOperationMetadata {
+
+ /** State enum. */
+ enum State {
+ STATE_UNSPECIFIED = 0,
+ RUNNING = 1,
+ CANCELLING = 2,
+ SUCCEEDED = 3,
+ FAILED = 4,
+ CANCELLED = 5
+ }
+ }
+
+ /** Properties of a DocumentSchema. */
+ interface IDocumentSchema {
+
+ /** DocumentSchema displayName */
+ displayName?: (string|null);
+
+ /** DocumentSchema description */
+ description?: (string|null);
+
+ /** DocumentSchema entityTypes */
+ entityTypes?: (google.cloud.documentai.v1beta3.DocumentSchema.IEntityType[]|null);
+
+ /** DocumentSchema metadata */
+ metadata?: (google.cloud.documentai.v1beta3.DocumentSchema.IMetadata|null);
+ }
+
+ /** Represents a DocumentSchema. */
+ class DocumentSchema implements IDocumentSchema {
+
+ /**
+ * Constructs a new DocumentSchema.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta3.IDocumentSchema);
+
+ /** DocumentSchema displayName. */
+ public displayName: string;
+
+ /** DocumentSchema description. */
+ public description: string;
+
+ /** DocumentSchema entityTypes. */
+ public entityTypes: google.cloud.documentai.v1beta3.DocumentSchema.IEntityType[];
+
+ /** DocumentSchema metadata. */
+ public metadata?: (google.cloud.documentai.v1beta3.DocumentSchema.IMetadata|null);
+
+ /**
+ * Creates a new DocumentSchema instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DocumentSchema instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta3.IDocumentSchema): google.cloud.documentai.v1beta3.DocumentSchema;
+
+ /**
+ * Encodes the specified DocumentSchema message. Does not implicitly {@link google.cloud.documentai.v1beta3.DocumentSchema.verify|verify} messages.
+ * @param message DocumentSchema message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1beta3.IDocumentSchema, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DocumentSchema message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta3.DocumentSchema.verify|verify} messages.
+ * @param message DocumentSchema message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1beta3.IDocumentSchema, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DocumentSchema message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DocumentSchema
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1beta3.DocumentSchema;
+
+ /**
+ * Decodes a DocumentSchema message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DocumentSchema
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1beta3.DocumentSchema;
+
+ /**
+ * Verifies a DocumentSchema message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DocumentSchema message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DocumentSchema
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1beta3.DocumentSchema;
+
+ /**
+ * Creates a plain object from a DocumentSchema message. Also converts values to other types if specified.
+ * @param message DocumentSchema
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1beta3.DocumentSchema, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DocumentSchema to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DocumentSchema
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace DocumentSchema {
+
+ /** Properties of an EntityType. */
+ interface IEntityType {
+
+ /** EntityType enumValues */
+ enumValues?: (google.cloud.documentai.v1beta3.DocumentSchema.EntityType.IEnumValues|null);
+
+ /** EntityType displayName */
+ displayName?: (string|null);
+
+ /** EntityType name */
+ name?: (string|null);
+
+ /** EntityType baseTypes */
+ baseTypes?: (string[]|null);
+
+ /** EntityType properties */
+ properties?: (google.cloud.documentai.v1beta3.DocumentSchema.EntityType.IProperty[]|null);
+ }
+
+ /** Represents an EntityType. */
+ class EntityType implements IEntityType {
+
+ /**
+ * Constructs a new EntityType.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta3.DocumentSchema.IEntityType);
+
+ /** EntityType enumValues. */
+ public enumValues?: (google.cloud.documentai.v1beta3.DocumentSchema.EntityType.IEnumValues|null);
+
+ /** EntityType displayName. */
+ public displayName: string;
+
+ /** EntityType name. */
+ public name: string;
+
+ /** EntityType baseTypes. */
+ public baseTypes: string[];
+
+ /** EntityType properties. */
+ public properties: google.cloud.documentai.v1beta3.DocumentSchema.EntityType.IProperty[];
+
+ /** EntityType valueSource. */
+ public valueSource?: "enumValues";
+
+ /**
+ * Creates a new EntityType instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns EntityType instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta3.DocumentSchema.IEntityType): google.cloud.documentai.v1beta3.DocumentSchema.EntityType;
+
+ /**
+ * Encodes the specified EntityType message. Does not implicitly {@link google.cloud.documentai.v1beta3.DocumentSchema.EntityType.verify|verify} messages.
+ * @param message EntityType message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1beta3.DocumentSchema.IEntityType, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified EntityType message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta3.DocumentSchema.EntityType.verify|verify} messages.
+ * @param message EntityType message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1beta3.DocumentSchema.IEntityType, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an EntityType message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns EntityType
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1beta3.DocumentSchema.EntityType;
+
+ /**
+ * Decodes an EntityType message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns EntityType
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1beta3.DocumentSchema.EntityType;
+
+ /**
+ * Verifies an EntityType message.
+ * @param message Plain 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 EntityType message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns EntityType
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1beta3.DocumentSchema.EntityType;
+
+ /**
+ * Creates a plain object from an EntityType message. Also converts values to other types if specified.
+ * @param message EntityType
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1beta3.DocumentSchema.EntityType, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this EntityType to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for EntityType
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace EntityType {
+
+ /** Properties of an EnumValues. */
+ interface IEnumValues {
+
+ /** EnumValues values */
+ values?: (string[]|null);
+ }
+
+ /** Represents an EnumValues. */
+ class EnumValues implements IEnumValues {
+
+ /**
+ * Constructs a new EnumValues.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta3.DocumentSchema.EntityType.IEnumValues);
+
+ /** EnumValues values. */
+ public values: string[];
+
+ /**
+ * Creates a new EnumValues instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns EnumValues instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta3.DocumentSchema.EntityType.IEnumValues): google.cloud.documentai.v1beta3.DocumentSchema.EntityType.EnumValues;
+
+ /**
+ * Encodes the specified EnumValues message. Does not implicitly {@link google.cloud.documentai.v1beta3.DocumentSchema.EntityType.EnumValues.verify|verify} messages.
+ * @param message EnumValues message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1beta3.DocumentSchema.EntityType.IEnumValues, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified EnumValues message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta3.DocumentSchema.EntityType.EnumValues.verify|verify} messages.
+ * @param message EnumValues message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1beta3.DocumentSchema.EntityType.IEnumValues, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an EnumValues message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns EnumValues
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1beta3.DocumentSchema.EntityType.EnumValues;
+
+ /**
+ * Decodes an EnumValues message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns EnumValues
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1beta3.DocumentSchema.EntityType.EnumValues;
+
+ /**
+ * Verifies an EnumValues message.
+ * @param message Plain 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 EnumValues message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns EnumValues
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1beta3.DocumentSchema.EntityType.EnumValues;
+
+ /**
+ * Creates a plain object from an EnumValues message. Also converts values to other types if specified.
+ * @param message EnumValues
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1beta3.DocumentSchema.EntityType.EnumValues, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this EnumValues to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for EnumValues
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Property. */
+ interface IProperty {
+
+ /** Property name */
+ name?: (string|null);
+
+ /** Property valueType */
+ valueType?: (string|null);
+
+ /** Property occurrenceType */
+ occurrenceType?: (google.cloud.documentai.v1beta3.DocumentSchema.EntityType.Property.OccurrenceType|keyof typeof google.cloud.documentai.v1beta3.DocumentSchema.EntityType.Property.OccurrenceType|null);
+ }
+
+ /** Represents a Property. */
+ class Property implements IProperty {
+
+ /**
+ * Constructs a new Property.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta3.DocumentSchema.EntityType.IProperty);
+
+ /** Property name. */
+ public name: string;
+
+ /** Property valueType. */
+ public valueType: string;
+
+ /** Property occurrenceType. */
+ public occurrenceType: (google.cloud.documentai.v1beta3.DocumentSchema.EntityType.Property.OccurrenceType|keyof typeof google.cloud.documentai.v1beta3.DocumentSchema.EntityType.Property.OccurrenceType);
+
+ /**
+ * Creates a new Property instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Property instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta3.DocumentSchema.EntityType.IProperty): google.cloud.documentai.v1beta3.DocumentSchema.EntityType.Property;
+
+ /**
+ * Encodes the specified Property message. Does not implicitly {@link google.cloud.documentai.v1beta3.DocumentSchema.EntityType.Property.verify|verify} messages.
+ * @param message Property message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1beta3.DocumentSchema.EntityType.IProperty, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Property message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta3.DocumentSchema.EntityType.Property.verify|verify} messages.
+ * @param message Property message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1beta3.DocumentSchema.EntityType.IProperty, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Property message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Property
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1beta3.DocumentSchema.EntityType.Property;
+
+ /**
+ * Decodes a Property message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Property
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1beta3.DocumentSchema.EntityType.Property;
+
+ /**
+ * Verifies a Property message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Property message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Property
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1beta3.DocumentSchema.EntityType.Property;
+
+ /**
+ * Creates a plain object from a Property message. Also converts values to other types if specified.
+ * @param message Property
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1beta3.DocumentSchema.EntityType.Property, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Property to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Property
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace Property {
+
+ /** OccurrenceType enum. */
+ enum OccurrenceType {
+ OCCURRENCE_TYPE_UNSPECIFIED = 0,
+ OPTIONAL_ONCE = 1,
+ OPTIONAL_MULTIPLE = 2,
+ REQUIRED_ONCE = 3,
+ REQUIRED_MULTIPLE = 4
+ }
+ }
+ }
+
+ /** Properties of a Metadata. */
+ interface IMetadata {
+
+ /** Metadata documentSplitter */
+ documentSplitter?: (boolean|null);
+
+ /** Metadata documentAllowMultipleLabels */
+ documentAllowMultipleLabels?: (boolean|null);
+
+ /** Metadata prefixedNamingOnProperties */
+ prefixedNamingOnProperties?: (boolean|null);
+
+ /** Metadata skipNamingValidation */
+ skipNamingValidation?: (boolean|null);
+ }
+
+ /** Represents a Metadata. */
+ class Metadata implements IMetadata {
+
+ /**
+ * Constructs a new Metadata.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta3.DocumentSchema.IMetadata);
+
+ /** Metadata documentSplitter. */
+ public documentSplitter: boolean;
+
+ /** Metadata documentAllowMultipleLabels. */
+ public documentAllowMultipleLabels: boolean;
+
+ /** Metadata prefixedNamingOnProperties. */
+ public prefixedNamingOnProperties: boolean;
+
+ /** Metadata skipNamingValidation. */
+ public skipNamingValidation: boolean;
+
+ /**
+ * Creates a new Metadata instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Metadata instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta3.DocumentSchema.IMetadata): google.cloud.documentai.v1beta3.DocumentSchema.Metadata;
+
+ /**
+ * Encodes the specified Metadata message. Does not implicitly {@link google.cloud.documentai.v1beta3.DocumentSchema.Metadata.verify|verify} messages.
+ * @param message Metadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1beta3.DocumentSchema.IMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Metadata message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta3.DocumentSchema.Metadata.verify|verify} messages.
+ * @param message Metadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1beta3.DocumentSchema.IMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Metadata message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Metadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1beta3.DocumentSchema.Metadata;
+
+ /**
+ * Decodes a Metadata message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Metadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1beta3.DocumentSchema.Metadata;
+
+ /**
+ * Verifies a Metadata message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Metadata message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Metadata
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1beta3.DocumentSchema.Metadata;
+
+ /**
+ * Creates a plain object from a Metadata message. Also converts values to other types if specified.
+ * @param message Metadata
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1beta3.DocumentSchema.Metadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Metadata to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Metadata
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of a CommonOperationMetadata. */
+ interface ICommonOperationMetadata {
+
+ /** CommonOperationMetadata state */
+ state?: (google.cloud.documentai.v1beta3.CommonOperationMetadata.State|keyof typeof google.cloud.documentai.v1beta3.CommonOperationMetadata.State|null);
+
+ /** CommonOperationMetadata stateMessage */
+ stateMessage?: (string|null);
+
+ /** CommonOperationMetadata resource */
+ resource?: (string|null);
+
+ /** CommonOperationMetadata createTime */
+ createTime?: (google.protobuf.ITimestamp|null);
+
+ /** CommonOperationMetadata updateTime */
+ updateTime?: (google.protobuf.ITimestamp|null);
+ }
+
+ /** Represents a CommonOperationMetadata. */
+ class CommonOperationMetadata implements ICommonOperationMetadata {
+
+ /**
+ * Constructs a new CommonOperationMetadata.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta3.ICommonOperationMetadata);
+
+ /** CommonOperationMetadata state. */
+ public state: (google.cloud.documentai.v1beta3.CommonOperationMetadata.State|keyof typeof google.cloud.documentai.v1beta3.CommonOperationMetadata.State);
+
+ /** CommonOperationMetadata stateMessage. */
+ public stateMessage: string;
+
+ /** CommonOperationMetadata resource. */
+ public resource: string;
+
+ /** CommonOperationMetadata createTime. */
+ public createTime?: (google.protobuf.ITimestamp|null);
+
+ /** CommonOperationMetadata updateTime. */
+ public updateTime?: (google.protobuf.ITimestamp|null);
+
+ /**
+ * Creates a new CommonOperationMetadata instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CommonOperationMetadata instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta3.ICommonOperationMetadata): google.cloud.documentai.v1beta3.CommonOperationMetadata;
+
+ /**
+ * Encodes the specified CommonOperationMetadata message. Does not implicitly {@link google.cloud.documentai.v1beta3.CommonOperationMetadata.verify|verify} messages.
+ * @param message CommonOperationMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1beta3.ICommonOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CommonOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta3.CommonOperationMetadata.verify|verify} messages.
+ * @param message CommonOperationMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1beta3.ICommonOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CommonOperationMetadata message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CommonOperationMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1beta3.CommonOperationMetadata;
+
+ /**
+ * Decodes a CommonOperationMetadata message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CommonOperationMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1beta3.CommonOperationMetadata;
+
+ /**
+ * Verifies a CommonOperationMetadata message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a CommonOperationMetadata message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CommonOperationMetadata
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1beta3.CommonOperationMetadata;
+
+ /**
+ * Creates a plain object from a CommonOperationMetadata message. Also converts values to other types if specified.
+ * @param message CommonOperationMetadata
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1beta3.CommonOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CommonOperationMetadata to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CommonOperationMetadata
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace CommonOperationMetadata {
+
+ /** State enum. */
+ enum State {
+ STATE_UNSPECIFIED = 0,
+ RUNNING = 1,
+ CANCELLING = 2,
+ SUCCEEDED = 3,
+ FAILED = 4,
+ CANCELLED = 5
+ }
+ }
+
+ /** Properties of a ProcessorVersion. */
+ interface IProcessorVersion {
+
+ /** ProcessorVersion name */
+ name?: (string|null);
+
+ /** ProcessorVersion displayName */
+ displayName?: (string|null);
+
+ /** ProcessorVersion state */
+ state?: (google.cloud.documentai.v1beta3.ProcessorVersion.State|keyof typeof google.cloud.documentai.v1beta3.ProcessorVersion.State|null);
+
+ /** ProcessorVersion createTime */
+ createTime?: (google.protobuf.ITimestamp|null);
+
+ /** ProcessorVersion kmsKeyName */
+ kmsKeyName?: (string|null);
+
+ /** ProcessorVersion kmsKeyVersionName */
+ kmsKeyVersionName?: (string|null);
+
+ /** ProcessorVersion googleManaged */
+ googleManaged?: (boolean|null);
+
+ /** ProcessorVersion deprecationInfo */
+ deprecationInfo?: (google.cloud.documentai.v1beta3.ProcessorVersion.IDeprecationInfo|null);
+ }
+
+ /** Represents a ProcessorVersion. */
+ class ProcessorVersion implements IProcessorVersion {
+
+ /**
+ * Constructs a new ProcessorVersion.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta3.IProcessorVersion);
+
+ /** ProcessorVersion name. */
+ public name: string;
+
+ /** ProcessorVersion displayName. */
+ public displayName: string;
+
+ /** ProcessorVersion state. */
+ public state: (google.cloud.documentai.v1beta3.ProcessorVersion.State|keyof typeof google.cloud.documentai.v1beta3.ProcessorVersion.State);
+
+ /** ProcessorVersion createTime. */
+ public createTime?: (google.protobuf.ITimestamp|null);
+
+ /** ProcessorVersion kmsKeyName. */
+ public kmsKeyName: string;
+
+ /** ProcessorVersion kmsKeyVersionName. */
+ public kmsKeyVersionName: string;
+
+ /** ProcessorVersion googleManaged. */
+ public googleManaged: boolean;
+
+ /** ProcessorVersion deprecationInfo. */
+ public deprecationInfo?: (google.cloud.documentai.v1beta3.ProcessorVersion.IDeprecationInfo|null);
+
+ /**
+ * Creates a new ProcessorVersion instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ProcessorVersion instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta3.IProcessorVersion): google.cloud.documentai.v1beta3.ProcessorVersion;
+
+ /**
+ * Encodes the specified ProcessorVersion message. Does not implicitly {@link google.cloud.documentai.v1beta3.ProcessorVersion.verify|verify} messages.
+ * @param message ProcessorVersion message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1beta3.IProcessorVersion, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ProcessorVersion message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta3.ProcessorVersion.verify|verify} messages.
+ * @param message ProcessorVersion message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1beta3.IProcessorVersion, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ProcessorVersion message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ProcessorVersion
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1beta3.ProcessorVersion;
+
+ /**
+ * Decodes a ProcessorVersion message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ProcessorVersion
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1beta3.ProcessorVersion;
+
+ /**
+ * Verifies a ProcessorVersion message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ProcessorVersion message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ProcessorVersion
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1beta3.ProcessorVersion;
+
+ /**
+ * Creates a plain object from a ProcessorVersion message. Also converts values to other types if specified.
+ * @param message ProcessorVersion
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1beta3.ProcessorVersion, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ProcessorVersion to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ProcessorVersion
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace ProcessorVersion {
+
+ /** Properties of a DeprecationInfo. */
+ interface IDeprecationInfo {
+
+ /** DeprecationInfo deprecationTime */
+ deprecationTime?: (google.protobuf.ITimestamp|null);
+
+ /** DeprecationInfo replacementProcessorVersion */
+ replacementProcessorVersion?: (string|null);
+ }
+
+ /** Represents a DeprecationInfo. */
+ class DeprecationInfo implements IDeprecationInfo {
+
+ /**
+ * Constructs a new DeprecationInfo.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta3.ProcessorVersion.IDeprecationInfo);
+
+ /** DeprecationInfo deprecationTime. */
+ public deprecationTime?: (google.protobuf.ITimestamp|null);
+
+ /** DeprecationInfo replacementProcessorVersion. */
+ public replacementProcessorVersion: string;
+
+ /**
+ * Creates a new DeprecationInfo instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DeprecationInfo instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta3.ProcessorVersion.IDeprecationInfo): google.cloud.documentai.v1beta3.ProcessorVersion.DeprecationInfo;
+
+ /**
+ * Encodes the specified DeprecationInfo message. Does not implicitly {@link google.cloud.documentai.v1beta3.ProcessorVersion.DeprecationInfo.verify|verify} messages.
+ * @param message DeprecationInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1beta3.ProcessorVersion.IDeprecationInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DeprecationInfo message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta3.ProcessorVersion.DeprecationInfo.verify|verify} messages.
+ * @param message DeprecationInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1beta3.ProcessorVersion.IDeprecationInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DeprecationInfo message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DeprecationInfo
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1beta3.ProcessorVersion.DeprecationInfo;
+
+ /**
+ * Decodes a DeprecationInfo message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DeprecationInfo
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1beta3.ProcessorVersion.DeprecationInfo;
+
+ /**
+ * Verifies a DeprecationInfo message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DeprecationInfo message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DeprecationInfo
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1beta3.ProcessorVersion.DeprecationInfo;
+
+ /**
+ * Creates a plain object from a DeprecationInfo message. Also converts values to other types if specified.
+ * @param message DeprecationInfo
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1beta3.ProcessorVersion.DeprecationInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DeprecationInfo to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DeprecationInfo
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** State enum. */
+ enum State {
+ STATE_UNSPECIFIED = 0,
+ DEPLOYED = 1,
+ DEPLOYING = 2,
+ UNDEPLOYED = 3,
+ UNDEPLOYING = 4,
+ CREATING = 5,
+ DELETING = 6,
+ FAILED = 7
+ }
+ }
+
+ /** Properties of a Processor. */
+ interface IProcessor {
+
+ /** Processor name */
+ name?: (string|null);
+
+ /** Processor type */
+ type?: (string|null);
+
+ /** Processor displayName */
+ displayName?: (string|null);
+
+ /** Processor state */
+ state?: (google.cloud.documentai.v1beta3.Processor.State|keyof typeof google.cloud.documentai.v1beta3.Processor.State|null);
+
+ /** Processor defaultProcessorVersion */
+ defaultProcessorVersion?: (string|null);
+
+ /** Processor processEndpoint */
+ processEndpoint?: (string|null);
+
+ /** Processor createTime */
+ createTime?: (google.protobuf.ITimestamp|null);
+
+ /** Processor kmsKeyName */
+ kmsKeyName?: (string|null);
+ }
+
+ /** Represents a Processor. */
+ class Processor implements IProcessor {
+
+ /**
+ * Constructs a new Processor.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta3.IProcessor);
+
+ /** Processor name. */
+ public name: string;
+
+ /** Processor type. */
+ public type: string;
+
+ /** Processor displayName. */
+ public displayName: string;
+
+ /** Processor state. */
+ public state: (google.cloud.documentai.v1beta3.Processor.State|keyof typeof google.cloud.documentai.v1beta3.Processor.State);
+
+ /** Processor defaultProcessorVersion. */
+ public defaultProcessorVersion: string;
+
+ /** Processor processEndpoint. */
+ public processEndpoint: string;
+
+ /** Processor createTime. */
+ public createTime?: (google.protobuf.ITimestamp|null);
+
+ /** Processor kmsKeyName. */
+ public kmsKeyName: string;
+
+ /**
+ * Creates a new Processor instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Processor instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta3.IProcessor): google.cloud.documentai.v1beta3.Processor;
+
+ /**
+ * Encodes the specified Processor message. Does not implicitly {@link google.cloud.documentai.v1beta3.Processor.verify|verify} messages.
+ * @param message Processor message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1beta3.IProcessor, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Processor message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta3.Processor.verify|verify} messages.
+ * @param message Processor message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1beta3.IProcessor, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Processor message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Processor
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1beta3.Processor;
+
+ /**
+ * Decodes a Processor message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Processor
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1beta3.Processor;
+
+ /**
+ * Verifies a Processor message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Processor message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Processor
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1beta3.Processor;
+
+ /**
+ * Creates a plain object from a Processor message. Also converts values to other types if specified.
+ * @param message Processor
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1beta3.Processor, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Processor to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Processor
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace Processor {
+
+ /** State enum. */
+ enum State {
+ STATE_UNSPECIFIED = 0,
+ ENABLED = 1,
+ DISABLED = 2,
+ ENABLING = 3,
+ DISABLING = 4,
+ CREATING = 5,
+ FAILED = 6,
+ DELETING = 7
+ }
+ }
+
+ /** Properties of a ProcessorType. */
+ interface IProcessorType {
+
+ /** ProcessorType name */
+ name?: (string|null);
+
+ /** ProcessorType type */
+ type?: (string|null);
+
+ /** ProcessorType category */
+ category?: (string|null);
+
+ /** ProcessorType availableLocations */
+ availableLocations?: (google.cloud.documentai.v1beta3.ProcessorType.ILocationInfo[]|null);
+
+ /** ProcessorType allowCreation */
+ allowCreation?: (boolean|null);
+
+ /** ProcessorType launchStage */
+ launchStage?: (google.api.LaunchStage|keyof typeof google.api.LaunchStage|null);
+ }
+
+ /** Represents a ProcessorType. */
+ class ProcessorType implements IProcessorType {
+
+ /**
+ * Constructs a new ProcessorType.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta3.IProcessorType);
+
+ /** ProcessorType name. */
+ public name: string;
+
+ /** ProcessorType type. */
+ public type: string;
+
+ /** ProcessorType category. */
+ public category: string;
+
+ /** ProcessorType availableLocations. */
+ public availableLocations: google.cloud.documentai.v1beta3.ProcessorType.ILocationInfo[];
+
+ /** ProcessorType allowCreation. */
+ public allowCreation: boolean;
+
+ /** ProcessorType launchStage. */
+ public launchStage: (google.api.LaunchStage|keyof typeof google.api.LaunchStage);
+
+ /**
+ * Creates a new ProcessorType instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ProcessorType instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta3.IProcessorType): google.cloud.documentai.v1beta3.ProcessorType;
+
+ /**
+ * Encodes the specified ProcessorType message. Does not implicitly {@link google.cloud.documentai.v1beta3.ProcessorType.verify|verify} messages.
+ * @param message ProcessorType message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1beta3.IProcessorType, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ProcessorType message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta3.ProcessorType.verify|verify} messages.
+ * @param message ProcessorType message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1beta3.IProcessorType, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ProcessorType message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ProcessorType
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1beta3.ProcessorType;
+
+ /**
+ * Decodes a ProcessorType message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ProcessorType
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1beta3.ProcessorType;
+
+ /**
+ * Verifies a ProcessorType message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ProcessorType message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ProcessorType
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1beta3.ProcessorType;
+
+ /**
+ * Creates a plain object from a ProcessorType message. Also converts values to other types if specified.
+ * @param message ProcessorType
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1beta3.ProcessorType, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ProcessorType to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ProcessorType
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace ProcessorType {
+
+ /** Properties of a LocationInfo. */
+ interface ILocationInfo {
+
+ /** LocationInfo locationId */
+ locationId?: (string|null);
+ }
+
+ /** Represents a LocationInfo. */
+ class LocationInfo implements ILocationInfo {
+
+ /**
+ * Constructs a new LocationInfo.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.documentai.v1beta3.ProcessorType.ILocationInfo);
+
+ /** LocationInfo locationId. */
+ public locationId: string;
+
+ /**
+ * Creates a new LocationInfo instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns LocationInfo instance
+ */
+ public static create(properties?: google.cloud.documentai.v1beta3.ProcessorType.ILocationInfo): google.cloud.documentai.v1beta3.ProcessorType.LocationInfo;
+
+ /**
+ * Encodes the specified LocationInfo message. Does not implicitly {@link google.cloud.documentai.v1beta3.ProcessorType.LocationInfo.verify|verify} messages.
+ * @param message LocationInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.documentai.v1beta3.ProcessorType.ILocationInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified LocationInfo message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta3.ProcessorType.LocationInfo.verify|verify} messages.
+ * @param message LocationInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.documentai.v1beta3.ProcessorType.ILocationInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a LocationInfo message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns LocationInfo
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1beta3.ProcessorType.LocationInfo;
+
+ /**
+ * Decodes a LocationInfo message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns LocationInfo
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1beta3.ProcessorType.LocationInfo;
+
+ /**
+ * Verifies a LocationInfo message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a LocationInfo message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns LocationInfo
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1beta3.ProcessorType.LocationInfo;
+
+ /**
+ * Creates a plain object from a LocationInfo message. Also converts values to other types if specified.
+ * @param message LocationInfo
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.documentai.v1beta3.ProcessorType.LocationInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this LocationInfo to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for LocationInfo
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+ }
+ }
+ }
+
+ /** Namespace api. */
+ namespace api {
+
+ /** FieldBehavior enum. */
+ enum FieldBehavior {
+ FIELD_BEHAVIOR_UNSPECIFIED = 0,
+ OPTIONAL = 1,
+ REQUIRED = 2,
+ OUTPUT_ONLY = 3,
+ INPUT_ONLY = 4,
+ IMMUTABLE = 5,
+ UNORDERED_LIST = 6,
+ NON_EMPTY_DEFAULT = 7
+ }
+
+ /** Properties of a 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;
+ }
+
+ /** 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;
+ }
+
+ /** LaunchStage enum. */
+ enum LaunchStage {
+ LAUNCH_STAGE_UNSPECIFIED = 0,
+ UNIMPLEMENTED = 6,
+ PRELAUNCH = 7,
+ EARLY_ACCESS = 1,
+ ALPHA = 2,
+ BETA = 3,
+ GA = 4,
+ DEPRECATED = 5
+ }
+ }
+
+ /** Namespace protobuf. */
+ namespace protobuf {
+
+ /** Properties of a FileDescriptorSet. */
+ interface IFileDescriptorSet {
+
+ /** FileDescriptorSet file */
+ file?: (google.protobuf.IFileDescriptorProto[]|null);
+ }
+
+ /** Represents a FileDescriptorSet. */
+ class FileDescriptorSet implements IFileDescriptorSet {
+
+ /**
+ * Constructs a new FileDescriptorSet.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IFileDescriptorSet);
+
+ /** FileDescriptorSet file. */
+ public file: google.protobuf.IFileDescriptorProto[];
+
+ /**
+ * Creates a new FileDescriptorSet instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FileDescriptorSet instance
+ */
+ public static create(properties?: google.protobuf.IFileDescriptorSet): google.protobuf.FileDescriptorSet;
+
+ /**
+ * Encodes the specified FileDescriptorSet message. Does not implicitly {@link google.protobuf.FileDescriptorSet.verify|verify} messages.
+ * @param message FileDescriptorSet message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IFileDescriptorSet, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FileDescriptorSet message, length delimited. Does not implicitly {@link google.protobuf.FileDescriptorSet.verify|verify} messages.
+ * @param message FileDescriptorSet message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IFileDescriptorSet, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FileDescriptorSet message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FileDescriptorSet
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FileDescriptorSet;
+
+ /**
+ * Decodes a FileDescriptorSet message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FileDescriptorSet
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FileDescriptorSet;
+
+ /**
+ * Verifies a FileDescriptorSet message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FileDescriptorSet message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FileDescriptorSet
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.FileDescriptorSet;
+
+ /**
+ * Creates a plain object from a FileDescriptorSet message. Also converts values to other types if specified.
+ * @param message FileDescriptorSet
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.FileDescriptorSet, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FileDescriptorSet to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FileDescriptorSet
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a FileDescriptorProto. */
+ interface IFileDescriptorProto {
+
+ /** FileDescriptorProto name */
+ name?: (string|null);
+
+ /** FileDescriptorProto package */
+ "package"?: (string|null);
+
+ /** FileDescriptorProto dependency */
+ dependency?: (string[]|null);
+
+ /** FileDescriptorProto publicDependency */
+ publicDependency?: (number[]|null);
+
+ /** FileDescriptorProto weakDependency */
+ weakDependency?: (number[]|null);
+
+ /** FileDescriptorProto messageType */
+ messageType?: (google.protobuf.IDescriptorProto[]|null);
+
+ /** FileDescriptorProto enumType */
+ enumType?: (google.protobuf.IEnumDescriptorProto[]|null);
+
+ /** FileDescriptorProto service */
+ service?: (google.protobuf.IServiceDescriptorProto[]|null);
+
+ /** FileDescriptorProto extension */
+ extension?: (google.protobuf.IFieldDescriptorProto[]|null);
+
+ /** FileDescriptorProto options */
+ options?: (google.protobuf.IFileOptions|null);
+
+ /** FileDescriptorProto sourceCodeInfo */
+ sourceCodeInfo?: (google.protobuf.ISourceCodeInfo|null);
+
+ /** FileDescriptorProto syntax */
+ syntax?: (string|null);
+
+ /** FileDescriptorProto edition */
+ edition?: (string|null);
+ }
+
+ /** Represents a FileDescriptorProto. */
+ class FileDescriptorProto implements IFileDescriptorProto {
+
+ /**
+ * Constructs a new FileDescriptorProto.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IFileDescriptorProto);
+
+ /** FileDescriptorProto name. */
+ public name: string;
+
+ /** FileDescriptorProto package. */
+ public package: string;
+
+ /** FileDescriptorProto dependency. */
+ public dependency: string[];
+
+ /** FileDescriptorProto publicDependency. */
+ public publicDependency: number[];
+
+ /** FileDescriptorProto weakDependency. */
+ public weakDependency: number[];
+
+ /** FileDescriptorProto messageType. */
+ public messageType: google.protobuf.IDescriptorProto[];
+
+ /** FileDescriptorProto enumType. */
+ public enumType: google.protobuf.IEnumDescriptorProto[];
+
+ /** FileDescriptorProto service. */
+ public service: google.protobuf.IServiceDescriptorProto[];
+
+ /** FileDescriptorProto extension. */
+ public extension: google.protobuf.IFieldDescriptorProto[];
+
+ /** FileDescriptorProto options. */
+ public options?: (google.protobuf.IFileOptions|null);
+
+ /** FileDescriptorProto sourceCodeInfo. */
+ public sourceCodeInfo?: (google.protobuf.ISourceCodeInfo|null);
+
+ /** FileDescriptorProto syntax. */
+ public syntax: string;
+
+ /** FileDescriptorProto edition. */
+ public edition: string;
+
+ /**
+ * Creates a new FileDescriptorProto instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FileDescriptorProto instance
+ */
+ public static create(properties?: google.protobuf.IFileDescriptorProto): google.protobuf.FileDescriptorProto;
+
+ /**
+ * Encodes the specified FileDescriptorProto message. Does not implicitly {@link google.protobuf.FileDescriptorProto.verify|verify} messages.
+ * @param message FileDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IFileDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FileDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.FileDescriptorProto.verify|verify} messages.
+ * @param message FileDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IFileDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FileDescriptorProto message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FileDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FileDescriptorProto;
+
+ /**
+ * Decodes a FileDescriptorProto message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FileDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FileDescriptorProto;
+
+ /**
+ * Verifies a FileDescriptorProto message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FileDescriptorProto message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FileDescriptorProto
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.FileDescriptorProto;
+
+ /**
+ * Creates a plain object from a FileDescriptorProto message. Also converts values to other types if specified.
+ * @param message FileDescriptorProto
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.FileDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FileDescriptorProto to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FileDescriptorProto
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DescriptorProto. */
+ interface IDescriptorProto {
+
+ /** DescriptorProto name */
+ name?: (string|null);
+
+ /** DescriptorProto field */
+ field?: (google.protobuf.IFieldDescriptorProto[]|null);
+
+ /** DescriptorProto extension */
+ extension?: (google.protobuf.IFieldDescriptorProto[]|null);
+
+ /** DescriptorProto nestedType */
+ nestedType?: (google.protobuf.IDescriptorProto[]|null);
+
+ /** DescriptorProto enumType */
+ enumType?: (google.protobuf.IEnumDescriptorProto[]|null);
+
+ /** DescriptorProto extensionRange */
+ extensionRange?: (google.protobuf.DescriptorProto.IExtensionRange[]|null);
+
+ /** DescriptorProto oneofDecl */
+ oneofDecl?: (google.protobuf.IOneofDescriptorProto[]|null);
+
+ /** DescriptorProto options */
+ options?: (google.protobuf.IMessageOptions|null);
+
+ /** DescriptorProto reservedRange */
+ reservedRange?: (google.protobuf.DescriptorProto.IReservedRange[]|null);
+
+ /** DescriptorProto reservedName */
+ reservedName?: (string[]|null);
+ }
+
+ /** Represents a DescriptorProto. */
+ class DescriptorProto implements IDescriptorProto {
+
+ /**
+ * Constructs a new DescriptorProto.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IDescriptorProto);
+
+ /** DescriptorProto name. */
+ public name: string;
+
+ /** DescriptorProto field. */
+ public field: google.protobuf.IFieldDescriptorProto[];
+
+ /** DescriptorProto extension. */
+ public extension: google.protobuf.IFieldDescriptorProto[];
+
+ /** DescriptorProto nestedType. */
+ public nestedType: google.protobuf.IDescriptorProto[];
+
+ /** DescriptorProto enumType. */
+ public enumType: google.protobuf.IEnumDescriptorProto[];
+
+ /** DescriptorProto extensionRange. */
+ public extensionRange: google.protobuf.DescriptorProto.IExtensionRange[];
+
+ /** DescriptorProto oneofDecl. */
+ public oneofDecl: google.protobuf.IOneofDescriptorProto[];
+
+ /** DescriptorProto options. */
+ public options?: (google.protobuf.IMessageOptions|null);
+
+ /** DescriptorProto reservedRange. */
+ public reservedRange: google.protobuf.DescriptorProto.IReservedRange[];
+
+ /** DescriptorProto reservedName. */
+ public reservedName: string[];
+
+ /**
+ * Creates a new DescriptorProto instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DescriptorProto instance
+ */
+ public static create(properties?: google.protobuf.IDescriptorProto): google.protobuf.DescriptorProto;
+
+ /**
+ * Encodes the specified DescriptorProto message. Does not implicitly {@link google.protobuf.DescriptorProto.verify|verify} messages.
+ * @param message DescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.verify|verify} messages.
+ * @param message DescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DescriptorProto message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.DescriptorProto;
+
+ /**
+ * Decodes a DescriptorProto message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.DescriptorProto;
+
+ /**
+ * Verifies a DescriptorProto message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DescriptorProto message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DescriptorProto
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.DescriptorProto;
+
+ /**
+ * Creates a plain object from a DescriptorProto message. Also converts values to other types if specified.
+ * @param message DescriptorProto
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.DescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DescriptorProto to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DescriptorProto
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace DescriptorProto {
+
+ /** Properties of an ExtensionRange. */
+ interface IExtensionRange {
+
+ /** ExtensionRange start */
+ start?: (number|null);
+
+ /** ExtensionRange end */
+ end?: (number|null);
+
+ /** ExtensionRange options */
+ options?: (google.protobuf.IExtensionRangeOptions|null);
+ }
+
+ /** Represents an ExtensionRange. */
+ class ExtensionRange implements IExtensionRange {
+
+ /**
+ * Constructs a new ExtensionRange.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.DescriptorProto.IExtensionRange);
+
+ /** ExtensionRange start. */
+ public start: number;
+
+ /** ExtensionRange end. */
+ public end: number;
+
+ /** ExtensionRange options. */
+ public options?: (google.protobuf.IExtensionRangeOptions|null);
+
+ /**
+ * Creates a new ExtensionRange instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ExtensionRange instance
+ */
+ public static create(properties?: google.protobuf.DescriptorProto.IExtensionRange): google.protobuf.DescriptorProto.ExtensionRange;
+
+ /**
+ * Encodes the specified ExtensionRange message. Does not implicitly {@link google.protobuf.DescriptorProto.ExtensionRange.verify|verify} messages.
+ * @param message ExtensionRange message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.DescriptorProto.IExtensionRange, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ExtensionRange message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.ExtensionRange.verify|verify} messages.
+ * @param message ExtensionRange message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.DescriptorProto.IExtensionRange, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an ExtensionRange message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ExtensionRange
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.DescriptorProto.ExtensionRange;
+
+ /**
+ * Decodes an ExtensionRange message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ExtensionRange
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.DescriptorProto.ExtensionRange;
+
+ /**
+ * Verifies an ExtensionRange message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an ExtensionRange message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ExtensionRange
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.DescriptorProto.ExtensionRange;
+
+ /**
+ * Creates a plain object from an ExtensionRange message. Also converts values to other types if specified.
+ * @param message ExtensionRange
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.DescriptorProto.ExtensionRange, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ExtensionRange to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ExtensionRange
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ReservedRange. */
+ interface IReservedRange {
+
+ /** ReservedRange start */
+ start?: (number|null);
+
+ /** ReservedRange end */
+ end?: (number|null);
+ }
+
+ /** Represents a ReservedRange. */
+ class ReservedRange implements IReservedRange {
+
+ /**
+ * Constructs a new ReservedRange.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.DescriptorProto.IReservedRange);
+
+ /** ReservedRange start. */
+ public start: number;
+
+ /** ReservedRange end. */
+ public end: number;
+
+ /**
+ * Creates a new ReservedRange instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ReservedRange instance
+ */
+ public static create(properties?: google.protobuf.DescriptorProto.IReservedRange): google.protobuf.DescriptorProto.ReservedRange;
+
+ /**
+ * Encodes the specified ReservedRange message. Does not implicitly {@link google.protobuf.DescriptorProto.ReservedRange.verify|verify} messages.
+ * @param message ReservedRange message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.DescriptorProto.IReservedRange, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ReservedRange message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.ReservedRange.verify|verify} messages.
+ * @param message ReservedRange message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.DescriptorProto.IReservedRange, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ReservedRange message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ReservedRange
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.DescriptorProto.ReservedRange;
+
+ /**
+ * Decodes a ReservedRange message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ReservedRange
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.DescriptorProto.ReservedRange;
+
+ /**
+ * Verifies a ReservedRange message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ReservedRange message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ReservedRange
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.DescriptorProto.ReservedRange;
+
+ /**
+ * Creates a plain object from a ReservedRange message. Also converts values to other types if specified.
+ * @param message ReservedRange
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.DescriptorProto.ReservedRange, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ReservedRange to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ReservedRange
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of an ExtensionRangeOptions. */
+ interface IExtensionRangeOptions {
+
+ /** ExtensionRangeOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+ }
+
+ /** Represents an ExtensionRangeOptions. */
+ class ExtensionRangeOptions implements IExtensionRangeOptions {
+
+ /**
+ * Constructs a new ExtensionRangeOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IExtensionRangeOptions);
+
+ /** ExtensionRangeOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+
+ /**
+ * Creates a new ExtensionRangeOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ExtensionRangeOptions instance
+ */
+ public static create(properties?: google.protobuf.IExtensionRangeOptions): google.protobuf.ExtensionRangeOptions;
+
+ /**
+ * Encodes the specified ExtensionRangeOptions message. Does not implicitly {@link google.protobuf.ExtensionRangeOptions.verify|verify} messages.
+ * @param message ExtensionRangeOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IExtensionRangeOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ExtensionRangeOptions message, length delimited. Does not implicitly {@link google.protobuf.ExtensionRangeOptions.verify|verify} messages.
+ * @param message ExtensionRangeOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IExtensionRangeOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an ExtensionRangeOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ExtensionRangeOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.ExtensionRangeOptions;
+
+ /**
+ * Decodes an ExtensionRangeOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ExtensionRangeOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.ExtensionRangeOptions;
+
+ /**
+ * Verifies an ExtensionRangeOptions message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an ExtensionRangeOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ExtensionRangeOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.ExtensionRangeOptions;
+
+ /**
+ * Creates a plain object from an ExtensionRangeOptions message. Also converts values to other types if specified.
+ * @param message ExtensionRangeOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.ExtensionRangeOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ExtensionRangeOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ExtensionRangeOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a FieldDescriptorProto. */
+ interface IFieldDescriptorProto {
+
+ /** FieldDescriptorProto name */
+ name?: (string|null);
+
+ /** FieldDescriptorProto number */
+ number?: (number|null);
+
+ /** FieldDescriptorProto label */
+ label?: (google.protobuf.FieldDescriptorProto.Label|keyof typeof google.protobuf.FieldDescriptorProto.Label|null);
+
+ /** FieldDescriptorProto type */
+ type?: (google.protobuf.FieldDescriptorProto.Type|keyof typeof google.protobuf.FieldDescriptorProto.Type|null);
+
+ /** FieldDescriptorProto typeName */
+ typeName?: (string|null);
+
+ /** FieldDescriptorProto extendee */
+ extendee?: (string|null);
+
+ /** FieldDescriptorProto defaultValue */
+ defaultValue?: (string|null);
+
+ /** FieldDescriptorProto oneofIndex */
+ oneofIndex?: (number|null);
+
+ /** FieldDescriptorProto jsonName */
+ jsonName?: (string|null);
+
+ /** FieldDescriptorProto options */
+ options?: (google.protobuf.IFieldOptions|null);
+
+ /** FieldDescriptorProto proto3Optional */
+ proto3Optional?: (boolean|null);
+ }
+
+ /** Represents a FieldDescriptorProto. */
+ class FieldDescriptorProto implements IFieldDescriptorProto {
+
+ /**
+ * Constructs a new FieldDescriptorProto.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IFieldDescriptorProto);
+
+ /** FieldDescriptorProto name. */
+ public name: string;
+
+ /** FieldDescriptorProto number. */
+ public number: number;
+
+ /** FieldDescriptorProto label. */
+ public label: (google.protobuf.FieldDescriptorProto.Label|keyof typeof google.protobuf.FieldDescriptorProto.Label);
+
+ /** FieldDescriptorProto type. */
+ public type: (google.protobuf.FieldDescriptorProto.Type|keyof typeof google.protobuf.FieldDescriptorProto.Type);
+
+ /** FieldDescriptorProto typeName. */
+ public typeName: string;
+
+ /** FieldDescriptorProto extendee. */
+ public extendee: string;
+
+ /** FieldDescriptorProto defaultValue. */
+ public defaultValue: string;
+
+ /** FieldDescriptorProto oneofIndex. */
+ public oneofIndex: number;
+
+ /** FieldDescriptorProto jsonName. */
+ public jsonName: string;
+
+ /** FieldDescriptorProto options. */
+ public options?: (google.protobuf.IFieldOptions|null);
+
+ /** FieldDescriptorProto proto3Optional. */
+ public proto3Optional: boolean;
+
+ /**
+ * Creates a new FieldDescriptorProto instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FieldDescriptorProto instance
+ */
+ public static create(properties?: google.protobuf.IFieldDescriptorProto): google.protobuf.FieldDescriptorProto;
+
+ /**
+ * Encodes the specified FieldDescriptorProto message. Does not implicitly {@link google.protobuf.FieldDescriptorProto.verify|verify} messages.
+ * @param message FieldDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IFieldDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FieldDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.FieldDescriptorProto.verify|verify} messages.
+ * @param message FieldDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IFieldDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FieldDescriptorProto message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FieldDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FieldDescriptorProto;
+
+ /**
+ * Decodes a FieldDescriptorProto message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FieldDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FieldDescriptorProto;
+
+ /**
+ * Verifies a FieldDescriptorProto message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FieldDescriptorProto message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FieldDescriptorProto
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.FieldDescriptorProto;
+
+ /**
+ * Creates a plain object from a FieldDescriptorProto message. Also converts values to other types if specified.
+ * @param message FieldDescriptorProto
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.FieldDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FieldDescriptorProto to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FieldDescriptorProto
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace FieldDescriptorProto {
+
+ /** Type enum. */
+ enum Type {
+ TYPE_DOUBLE = 1,
+ TYPE_FLOAT = 2,
+ TYPE_INT64 = 3,
+ TYPE_UINT64 = 4,
+ TYPE_INT32 = 5,
+ TYPE_FIXED64 = 6,
+ TYPE_FIXED32 = 7,
+ TYPE_BOOL = 8,
+ TYPE_STRING = 9,
+ TYPE_GROUP = 10,
+ TYPE_MESSAGE = 11,
+ TYPE_BYTES = 12,
+ TYPE_UINT32 = 13,
+ TYPE_ENUM = 14,
+ TYPE_SFIXED32 = 15,
+ TYPE_SFIXED64 = 16,
+ TYPE_SINT32 = 17,
+ TYPE_SINT64 = 18
+ }
+
+ /** Label enum. */
+ enum Label {
+ LABEL_OPTIONAL = 1,
+ LABEL_REQUIRED = 2,
+ LABEL_REPEATED = 3
+ }
+ }
+
+ /** Properties of an OneofDescriptorProto. */
+ interface IOneofDescriptorProto {
+
+ /** OneofDescriptorProto name */
+ name?: (string|null);
+
+ /** OneofDescriptorProto options */
+ options?: (google.protobuf.IOneofOptions|null);
+ }
+
+ /** Represents an OneofDescriptorProto. */
+ class OneofDescriptorProto implements IOneofDescriptorProto {
+
+ /**
+ * Constructs a new OneofDescriptorProto.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IOneofDescriptorProto);
+
+ /** OneofDescriptorProto name. */
+ public name: string;
+
+ /** OneofDescriptorProto options. */
+ public options?: (google.protobuf.IOneofOptions|null);
+
+ /**
+ * Creates a new OneofDescriptorProto instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns OneofDescriptorProto instance
+ */
+ public static create(properties?: google.protobuf.IOneofDescriptorProto): google.protobuf.OneofDescriptorProto;
+
+ /**
+ * Encodes the specified OneofDescriptorProto message. Does not implicitly {@link google.protobuf.OneofDescriptorProto.verify|verify} messages.
+ * @param message OneofDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IOneofDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified OneofDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.OneofDescriptorProto.verify|verify} messages.
+ * @param message OneofDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IOneofDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an OneofDescriptorProto message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns OneofDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.OneofDescriptorProto;
+
+ /**
+ * Decodes an OneofDescriptorProto message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns OneofDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.OneofDescriptorProto;
+
+ /**
+ * Verifies an OneofDescriptorProto message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an OneofDescriptorProto message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns OneofDescriptorProto
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.OneofDescriptorProto;
+
+ /**
+ * Creates a plain object from an OneofDescriptorProto message. Also converts values to other types if specified.
+ * @param message OneofDescriptorProto
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.OneofDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this OneofDescriptorProto to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for OneofDescriptorProto
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an EnumDescriptorProto. */
+ interface IEnumDescriptorProto {
+
+ /** EnumDescriptorProto name */
+ name?: (string|null);
+
+ /** EnumDescriptorProto value */
+ value?: (google.protobuf.IEnumValueDescriptorProto[]|null);
+
+ /** EnumDescriptorProto options */
+ options?: (google.protobuf.IEnumOptions|null);
+
+ /** EnumDescriptorProto reservedRange */
+ reservedRange?: (google.protobuf.EnumDescriptorProto.IEnumReservedRange[]|null);
+
+ /** EnumDescriptorProto reservedName */
+ reservedName?: (string[]|null);
+ }
+
+ /** Represents an EnumDescriptorProto. */
+ class EnumDescriptorProto implements IEnumDescriptorProto {
+
+ /**
+ * Constructs a new EnumDescriptorProto.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IEnumDescriptorProto);
+
+ /** EnumDescriptorProto name. */
+ public name: string;
+
+ /** EnumDescriptorProto value. */
+ public value: google.protobuf.IEnumValueDescriptorProto[];
+
+ /** EnumDescriptorProto options. */
+ public options?: (google.protobuf.IEnumOptions|null);
+
+ /** EnumDescriptorProto reservedRange. */
+ public reservedRange: google.protobuf.EnumDescriptorProto.IEnumReservedRange[];
+
+ /** EnumDescriptorProto reservedName. */
+ public reservedName: string[];
+
+ /**
+ * Creates a new EnumDescriptorProto instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns EnumDescriptorProto instance
+ */
+ public static create(properties?: google.protobuf.IEnumDescriptorProto): google.protobuf.EnumDescriptorProto;
+
+ /**
+ * Encodes the specified EnumDescriptorProto message. Does not implicitly {@link google.protobuf.EnumDescriptorProto.verify|verify} messages.
+ * @param message EnumDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IEnumDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified EnumDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.EnumDescriptorProto.verify|verify} messages.
+ * @param message EnumDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IEnumDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an EnumDescriptorProto message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns EnumDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumDescriptorProto;
+
+ /**
+ * Decodes an EnumDescriptorProto message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns EnumDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumDescriptorProto;
+
+ /**
+ * Verifies an EnumDescriptorProto message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an EnumDescriptorProto message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns EnumDescriptorProto
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.EnumDescriptorProto;
+
+ /**
+ * Creates a plain object from an EnumDescriptorProto message. Also converts values to other types if specified.
+ * @param message EnumDescriptorProto
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.EnumDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this EnumDescriptorProto to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for EnumDescriptorProto
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace EnumDescriptorProto {
+
+ /** Properties of an EnumReservedRange. */
+ interface IEnumReservedRange {
+
+ /** EnumReservedRange start */
+ start?: (number|null);
+
+ /** EnumReservedRange end */
+ end?: (number|null);
+ }
+
+ /** Represents an EnumReservedRange. */
+ class EnumReservedRange implements IEnumReservedRange {
+
+ /**
+ * Constructs a new EnumReservedRange.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.EnumDescriptorProto.IEnumReservedRange);
+
+ /** EnumReservedRange start. */
+ public start: number;
+
+ /** EnumReservedRange end. */
+ public end: number;
+
+ /**
+ * Creates a new EnumReservedRange instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns EnumReservedRange instance
+ */
+ public static create(properties?: google.protobuf.EnumDescriptorProto.IEnumReservedRange): google.protobuf.EnumDescriptorProto.EnumReservedRange;
+
+ /**
+ * Encodes the specified EnumReservedRange message. Does not implicitly {@link google.protobuf.EnumDescriptorProto.EnumReservedRange.verify|verify} messages.
+ * @param message EnumReservedRange message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.EnumDescriptorProto.IEnumReservedRange, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified EnumReservedRange message, length delimited. Does not implicitly {@link google.protobuf.EnumDescriptorProto.EnumReservedRange.verify|verify} messages.
+ * @param message EnumReservedRange message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.EnumDescriptorProto.IEnumReservedRange, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an EnumReservedRange message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns EnumReservedRange
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumDescriptorProto.EnumReservedRange;
+
+ /**
+ * Decodes an EnumReservedRange message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns EnumReservedRange
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumDescriptorProto.EnumReservedRange;
+
+ /**
+ * Verifies an EnumReservedRange message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an EnumReservedRange message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns EnumReservedRange
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.EnumDescriptorProto.EnumReservedRange;
+
+ /**
+ * Creates a plain object from an EnumReservedRange message. Also converts values to other types if specified.
+ * @param message EnumReservedRange
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.EnumDescriptorProto.EnumReservedRange, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this EnumReservedRange to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for EnumReservedRange
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of an EnumValueDescriptorProto. */
+ interface IEnumValueDescriptorProto {
+
+ /** EnumValueDescriptorProto name */
+ name?: (string|null);
+
+ /** EnumValueDescriptorProto number */
+ number?: (number|null);
+
+ /** EnumValueDescriptorProto options */
+ options?: (google.protobuf.IEnumValueOptions|null);
+ }
+
+ /** Represents an EnumValueDescriptorProto. */
+ class EnumValueDescriptorProto implements IEnumValueDescriptorProto {
+
+ /**
+ * Constructs a new EnumValueDescriptorProto.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IEnumValueDescriptorProto);
+
+ /** EnumValueDescriptorProto name. */
+ public name: string;
+
+ /** EnumValueDescriptorProto number. */
+ public number: number;
+
+ /** EnumValueDescriptorProto options. */
+ public options?: (google.protobuf.IEnumValueOptions|null);
+
+ /**
+ * Creates a new EnumValueDescriptorProto instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns EnumValueDescriptorProto instance
+ */
+ public static create(properties?: google.protobuf.IEnumValueDescriptorProto): google.protobuf.EnumValueDescriptorProto;
+
+ /**
+ * Encodes the specified EnumValueDescriptorProto message. Does not implicitly {@link google.protobuf.EnumValueDescriptorProto.verify|verify} messages.
+ * @param message EnumValueDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IEnumValueDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified EnumValueDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.EnumValueDescriptorProto.verify|verify} messages.
+ * @param message EnumValueDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IEnumValueDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an EnumValueDescriptorProto message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns EnumValueDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumValueDescriptorProto;
+
+ /**
+ * Decodes an EnumValueDescriptorProto message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns EnumValueDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumValueDescriptorProto;
+
+ /**
+ * Verifies an EnumValueDescriptorProto message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an EnumValueDescriptorProto message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns EnumValueDescriptorProto
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.EnumValueDescriptorProto;
+
+ /**
+ * Creates a plain object from an EnumValueDescriptorProto message. Also converts values to other types if specified.
+ * @param message EnumValueDescriptorProto
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.EnumValueDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this EnumValueDescriptorProto to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for EnumValueDescriptorProto
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ServiceDescriptorProto. */
+ interface IServiceDescriptorProto {
+
+ /** ServiceDescriptorProto name */
+ name?: (string|null);
+
+ /** ServiceDescriptorProto method */
+ method?: (google.protobuf.IMethodDescriptorProto[]|null);
+
+ /** ServiceDescriptorProto options */
+ options?: (google.protobuf.IServiceOptions|null);
+ }
+
+ /** Represents a ServiceDescriptorProto. */
+ class ServiceDescriptorProto implements IServiceDescriptorProto {
+
+ /**
+ * Constructs a new ServiceDescriptorProto.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IServiceDescriptorProto);
+
+ /** ServiceDescriptorProto name. */
+ public name: string;
+
+ /** ServiceDescriptorProto method. */
+ public method: google.protobuf.IMethodDescriptorProto[];
+
+ /** ServiceDescriptorProto options. */
+ public options?: (google.protobuf.IServiceOptions|null);
+
+ /**
+ * Creates a new ServiceDescriptorProto instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ServiceDescriptorProto instance
+ */
+ public static create(properties?: google.protobuf.IServiceDescriptorProto): google.protobuf.ServiceDescriptorProto;
+
+ /**
+ * Encodes the specified ServiceDescriptorProto message. Does not implicitly {@link google.protobuf.ServiceDescriptorProto.verify|verify} messages.
+ * @param message ServiceDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IServiceDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ServiceDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.ServiceDescriptorProto.verify|verify} messages.
+ * @param message ServiceDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IServiceDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ServiceDescriptorProto message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ServiceDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.ServiceDescriptorProto;
+
+ /**
+ * Decodes a ServiceDescriptorProto message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ServiceDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.ServiceDescriptorProto;
+
+ /**
+ * Verifies a ServiceDescriptorProto message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ServiceDescriptorProto message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ServiceDescriptorProto
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.ServiceDescriptorProto;
+
+ /**
+ * Creates a plain object from a ServiceDescriptorProto message. Also converts values to other types if specified.
+ * @param message ServiceDescriptorProto
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.ServiceDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ServiceDescriptorProto to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ServiceDescriptorProto
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a MethodDescriptorProto. */
+ interface IMethodDescriptorProto {
+
+ /** MethodDescriptorProto name */
+ name?: (string|null);
+
+ /** MethodDescriptorProto inputType */
+ inputType?: (string|null);
+
+ /** MethodDescriptorProto outputType */
+ outputType?: (string|null);
+
+ /** MethodDescriptorProto options */
+ options?: (google.protobuf.IMethodOptions|null);
+
+ /** MethodDescriptorProto clientStreaming */
+ clientStreaming?: (boolean|null);
+
+ /** MethodDescriptorProto serverStreaming */
+ serverStreaming?: (boolean|null);
+ }
+
+ /** Represents a MethodDescriptorProto. */
+ class MethodDescriptorProto implements IMethodDescriptorProto {
+
+ /**
+ * Constructs a new MethodDescriptorProto.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IMethodDescriptorProto);
+
+ /** MethodDescriptorProto name. */
+ public name: string;
+
+ /** MethodDescriptorProto inputType. */
+ public inputType: string;
+
+ /** MethodDescriptorProto outputType. */
+ public outputType: string;
+
+ /** MethodDescriptorProto options. */
+ public options?: (google.protobuf.IMethodOptions|null);
+
+ /** MethodDescriptorProto clientStreaming. */
+ public clientStreaming: boolean;
+
+ /** MethodDescriptorProto serverStreaming. */
+ public serverStreaming: boolean;
+
+ /**
+ * Creates a new MethodDescriptorProto instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns MethodDescriptorProto instance
+ */
+ public static create(properties?: google.protobuf.IMethodDescriptorProto): google.protobuf.MethodDescriptorProto;
+
+ /**
+ * Encodes the specified MethodDescriptorProto message. Does not implicitly {@link google.protobuf.MethodDescriptorProto.verify|verify} messages.
+ * @param message MethodDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IMethodDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified MethodDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.MethodDescriptorProto.verify|verify} messages.
+ * @param message MethodDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IMethodDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a MethodDescriptorProto message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns MethodDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.MethodDescriptorProto;
+
+ /**
+ * Decodes a MethodDescriptorProto message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns MethodDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.MethodDescriptorProto;
+
+ /**
+ * Verifies a MethodDescriptorProto message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a MethodDescriptorProto message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns MethodDescriptorProto
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.MethodDescriptorProto;
+
+ /**
+ * Creates a plain object from a MethodDescriptorProto message. Also converts values to other types if specified.
+ * @param message MethodDescriptorProto
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.MethodDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this MethodDescriptorProto to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for MethodDescriptorProto
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a FileOptions. */
+ interface IFileOptions {
+
+ /** FileOptions javaPackage */
+ javaPackage?: (string|null);
+
+ /** FileOptions javaOuterClassname */
+ javaOuterClassname?: (string|null);
+
+ /** FileOptions javaMultipleFiles */
+ javaMultipleFiles?: (boolean|null);
+
+ /** FileOptions javaGenerateEqualsAndHash */
+ javaGenerateEqualsAndHash?: (boolean|null);
+
+ /** FileOptions javaStringCheckUtf8 */
+ javaStringCheckUtf8?: (boolean|null);
+
+ /** FileOptions optimizeFor */
+ optimizeFor?: (google.protobuf.FileOptions.OptimizeMode|keyof typeof google.protobuf.FileOptions.OptimizeMode|null);
+
+ /** FileOptions goPackage */
+ goPackage?: (string|null);
+
+ /** FileOptions ccGenericServices */
+ ccGenericServices?: (boolean|null);
+
+ /** FileOptions javaGenericServices */
+ javaGenericServices?: (boolean|null);
+
+ /** FileOptions pyGenericServices */
+ pyGenericServices?: (boolean|null);
+
+ /** FileOptions phpGenericServices */
+ phpGenericServices?: (boolean|null);
+
+ /** FileOptions deprecated */
+ deprecated?: (boolean|null);
+
+ /** FileOptions ccEnableArenas */
+ ccEnableArenas?: (boolean|null);
+
+ /** FileOptions objcClassPrefix */
+ objcClassPrefix?: (string|null);
+
+ /** FileOptions csharpNamespace */
+ csharpNamespace?: (string|null);
+
+ /** FileOptions swiftPrefix */
+ swiftPrefix?: (string|null);
+
+ /** FileOptions phpClassPrefix */
+ phpClassPrefix?: (string|null);
+
+ /** FileOptions phpNamespace */
+ phpNamespace?: (string|null);
+
+ /** FileOptions phpMetadataNamespace */
+ phpMetadataNamespace?: (string|null);
+
+ /** FileOptions rubyPackage */
+ rubyPackage?: (string|null);
+
+ /** FileOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+
+ /** FileOptions .google.api.resourceDefinition */
+ ".google.api.resourceDefinition"?: (google.api.IResourceDescriptor[]|null);
+ }
+
+ /** Represents a FileOptions. */
+ class FileOptions implements IFileOptions {
+
+ /**
+ * Constructs a new FileOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IFileOptions);
+
+ /** FileOptions javaPackage. */
+ public javaPackage: string;
+
+ /** FileOptions javaOuterClassname. */
+ public javaOuterClassname: string;
+
+ /** FileOptions javaMultipleFiles. */
+ public javaMultipleFiles: boolean;
+
+ /** FileOptions javaGenerateEqualsAndHash. */
+ public javaGenerateEqualsAndHash: boolean;
+
+ /** FileOptions javaStringCheckUtf8. */
+ public javaStringCheckUtf8: boolean;
+
+ /** FileOptions optimizeFor. */
+ public optimizeFor: (google.protobuf.FileOptions.OptimizeMode|keyof typeof google.protobuf.FileOptions.OptimizeMode);
+
+ /** FileOptions goPackage. */
+ public goPackage: string;
+
+ /** FileOptions ccGenericServices. */
+ public ccGenericServices: boolean;
+
+ /** FileOptions javaGenericServices. */
+ public javaGenericServices: boolean;
+
+ /** FileOptions pyGenericServices. */
+ public pyGenericServices: boolean;
+
+ /** FileOptions phpGenericServices. */
+ public phpGenericServices: boolean;
+
+ /** FileOptions deprecated. */
+ public deprecated: boolean;
+
+ /** FileOptions ccEnableArenas. */
+ public ccEnableArenas: boolean;
+
+ /** FileOptions objcClassPrefix. */
+ public objcClassPrefix: string;
+
+ /** FileOptions csharpNamespace. */
+ public csharpNamespace: string;
+
+ /** FileOptions swiftPrefix. */
+ public swiftPrefix: string;
+
+ /** FileOptions phpClassPrefix. */
+ public phpClassPrefix: string;
+
+ /** FileOptions phpNamespace. */
+ public phpNamespace: string;
+
+ /** FileOptions phpMetadataNamespace. */
+ public phpMetadataNamespace: string;
+
+ /** FileOptions rubyPackage. */
+ public rubyPackage: string;
+
+ /** FileOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+
+ /**
+ * Creates a new FileOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FileOptions instance
+ */
+ public static create(properties?: google.protobuf.IFileOptions): google.protobuf.FileOptions;
+
+ /**
+ * Encodes the specified FileOptions message. Does not implicitly {@link google.protobuf.FileOptions.verify|verify} messages.
+ * @param message FileOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IFileOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FileOptions message, length delimited. Does not implicitly {@link google.protobuf.FileOptions.verify|verify} messages.
+ * @param message FileOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IFileOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FileOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FileOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FileOptions;
+
+ /**
+ * Decodes a FileOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FileOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FileOptions;
+
+ /**
+ * Verifies a FileOptions message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FileOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FileOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.FileOptions;
+
+ /**
+ * Creates a plain object from a FileOptions message. Also converts values to other types if specified.
+ * @param message FileOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.FileOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FileOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FileOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace FileOptions {
+
+ /** OptimizeMode enum. */
+ enum OptimizeMode {
+ SPEED = 1,
+ CODE_SIZE = 2,
+ LITE_RUNTIME = 3
+ }
+ }
+
+ /** Properties of a MessageOptions. */
+ interface IMessageOptions {
+
+ /** MessageOptions messageSetWireFormat */
+ messageSetWireFormat?: (boolean|null);
+
+ /** MessageOptions noStandardDescriptorAccessor */
+ noStandardDescriptorAccessor?: (boolean|null);
+
+ /** MessageOptions deprecated */
+ deprecated?: (boolean|null);
+
+ /** MessageOptions mapEntry */
+ mapEntry?: (boolean|null);
+
+ /** MessageOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+
+ /** MessageOptions .google.api.resource */
+ ".google.api.resource"?: (google.api.IResourceDescriptor|null);
+ }
+
+ /** Represents a MessageOptions. */
+ class MessageOptions implements IMessageOptions {
+
+ /**
+ * Constructs a new MessageOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IMessageOptions);
+
+ /** MessageOptions messageSetWireFormat. */
+ public messageSetWireFormat: boolean;
+
+ /** MessageOptions noStandardDescriptorAccessor. */
+ public noStandardDescriptorAccessor: boolean;
+
+ /** MessageOptions deprecated. */
+ public deprecated: boolean;
+
+ /** MessageOptions mapEntry. */
+ public mapEntry: boolean;
+
+ /** MessageOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+
+ /**
+ * Creates a new MessageOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns MessageOptions instance
+ */
+ public static create(properties?: google.protobuf.IMessageOptions): google.protobuf.MessageOptions;
+
+ /**
+ * Encodes the specified MessageOptions message. Does not implicitly {@link google.protobuf.MessageOptions.verify|verify} messages.
+ * @param message MessageOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IMessageOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified MessageOptions message, length delimited. Does not implicitly {@link google.protobuf.MessageOptions.verify|verify} messages.
+ * @param message MessageOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IMessageOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a MessageOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns MessageOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.MessageOptions;
+
+ /**
+ * Decodes a MessageOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns MessageOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.MessageOptions;
+
+ /**
+ * Verifies a MessageOptions message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a MessageOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns MessageOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.MessageOptions;
+
+ /**
+ * Creates a plain object from a MessageOptions message. Also converts values to other types if specified.
+ * @param message MessageOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.MessageOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this MessageOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for MessageOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a FieldOptions. */
+ interface IFieldOptions {
+
+ /** FieldOptions ctype */
+ ctype?: (google.protobuf.FieldOptions.CType|keyof typeof google.protobuf.FieldOptions.CType|null);
+
+ /** FieldOptions packed */
+ packed?: (boolean|null);
+
+ /** FieldOptions jstype */
+ jstype?: (google.protobuf.FieldOptions.JSType|keyof typeof google.protobuf.FieldOptions.JSType|null);
+
+ /** FieldOptions lazy */
+ lazy?: (boolean|null);
+
+ /** FieldOptions unverifiedLazy */
+ unverifiedLazy?: (boolean|null);
+
+ /** FieldOptions deprecated */
+ deprecated?: (boolean|null);
+
+ /** FieldOptions weak */
+ weak?: (boolean|null);
+
+ /** FieldOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+
+ /** FieldOptions .google.api.fieldBehavior */
+ ".google.api.fieldBehavior"?: (google.api.FieldBehavior[]|null);
+
+ /** FieldOptions .google.api.resourceReference */
+ ".google.api.resourceReference"?: (google.api.IResourceReference|null);
+ }
+
+ /** Represents a FieldOptions. */
+ class FieldOptions implements IFieldOptions {
+
+ /**
+ * Constructs a new FieldOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IFieldOptions);
+
+ /** FieldOptions ctype. */
+ public ctype: (google.protobuf.FieldOptions.CType|keyof typeof google.protobuf.FieldOptions.CType);
+
+ /** FieldOptions packed. */
+ public packed: boolean;
+
+ /** FieldOptions jstype. */
+ public jstype: (google.protobuf.FieldOptions.JSType|keyof typeof google.protobuf.FieldOptions.JSType);
+
+ /** FieldOptions lazy. */
+ public lazy: boolean;
+
+ /** FieldOptions unverifiedLazy. */
+ public unverifiedLazy: boolean;
+
+ /** FieldOptions deprecated. */
+ public deprecated: boolean;
+
+ /** FieldOptions weak. */
+ public weak: boolean;
+
+ /** FieldOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+
+ /**
+ * Creates a new FieldOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FieldOptions instance
+ */
+ public static create(properties?: google.protobuf.IFieldOptions): google.protobuf.FieldOptions;
+
+ /**
+ * Encodes the specified FieldOptions message. Does not implicitly {@link google.protobuf.FieldOptions.verify|verify} messages.
+ * @param message FieldOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IFieldOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FieldOptions message, length delimited. Does not implicitly {@link google.protobuf.FieldOptions.verify|verify} messages.
+ * @param message FieldOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IFieldOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FieldOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FieldOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FieldOptions;
+
+ /**
+ * Decodes a FieldOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FieldOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FieldOptions;
+
+ /**
+ * Verifies a FieldOptions message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FieldOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FieldOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.FieldOptions;
+
+ /**
+ * Creates a plain object from a FieldOptions message. Also converts values to other types if specified.
+ * @param message FieldOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.FieldOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FieldOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FieldOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace FieldOptions {
+
+ /** CType enum. */
+ enum CType {
+ STRING = 0,
+ CORD = 1,
+ STRING_PIECE = 2
+ }
+
+ /** JSType enum. */
+ enum JSType {
+ JS_NORMAL = 0,
+ JS_STRING = 1,
+ JS_NUMBER = 2
+ }
+ }
+
+ /** Properties of an OneofOptions. */
+ interface IOneofOptions {
+
+ /** OneofOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+ }
+
+ /** Represents an OneofOptions. */
+ class OneofOptions implements IOneofOptions {
+
+ /**
+ * Constructs a new OneofOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IOneofOptions);
+
+ /** OneofOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+
+ /**
+ * Creates a new OneofOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns OneofOptions instance
+ */
+ public static create(properties?: google.protobuf.IOneofOptions): google.protobuf.OneofOptions;
+
+ /**
+ * Encodes the specified OneofOptions message. Does not implicitly {@link google.protobuf.OneofOptions.verify|verify} messages.
+ * @param message OneofOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IOneofOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified OneofOptions message, length delimited. Does not implicitly {@link google.protobuf.OneofOptions.verify|verify} messages.
+ * @param message OneofOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IOneofOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an OneofOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns OneofOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.OneofOptions;
+
+ /**
+ * Decodes an OneofOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns OneofOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.OneofOptions;
+
+ /**
+ * Verifies an OneofOptions message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an OneofOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns OneofOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.OneofOptions;
+
+ /**
+ * Creates a plain object from an OneofOptions message. Also converts values to other types if specified.
+ * @param message OneofOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.OneofOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this OneofOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for OneofOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an EnumOptions. */
+ interface IEnumOptions {
+
+ /** EnumOptions allowAlias */
+ allowAlias?: (boolean|null);
+
+ /** EnumOptions deprecated */
+ deprecated?: (boolean|null);
+
+ /** EnumOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+ }
+
+ /** Represents an EnumOptions. */
+ class EnumOptions implements IEnumOptions {
+
+ /**
+ * Constructs a new EnumOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IEnumOptions);
+
+ /** EnumOptions allowAlias. */
+ public allowAlias: boolean;
+
+ /** EnumOptions deprecated. */
+ public deprecated: boolean;
+
+ /** EnumOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+
+ /**
+ * Creates a new EnumOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns EnumOptions instance
+ */
+ public static create(properties?: google.protobuf.IEnumOptions): google.protobuf.EnumOptions;
+
+ /**
+ * Encodes the specified EnumOptions message. Does not implicitly {@link google.protobuf.EnumOptions.verify|verify} messages.
+ * @param message EnumOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IEnumOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified EnumOptions message, length delimited. Does not implicitly {@link google.protobuf.EnumOptions.verify|verify} messages.
+ * @param message EnumOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IEnumOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an EnumOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns EnumOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumOptions;
+
+ /**
+ * Decodes an EnumOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns EnumOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumOptions;
+
+ /**
+ * Verifies an EnumOptions message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an EnumOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns EnumOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.EnumOptions;
+
+ /**
+ * Creates a plain object from an EnumOptions message. Also converts values to other types if specified.
+ * @param message EnumOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.EnumOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this EnumOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for EnumOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an EnumValueOptions. */
+ interface IEnumValueOptions {
+
+ /** EnumValueOptions deprecated */
+ deprecated?: (boolean|null);
+
+ /** EnumValueOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+ }
+
+ /** Represents an EnumValueOptions. */
+ class EnumValueOptions implements IEnumValueOptions {
+
+ /**
+ * Constructs a new EnumValueOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IEnumValueOptions);
+
+ /** EnumValueOptions deprecated. */
+ public deprecated: boolean;
+
+ /** EnumValueOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+
+ /**
+ * Creates a new EnumValueOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns EnumValueOptions instance
+ */
+ public static create(properties?: google.protobuf.IEnumValueOptions): google.protobuf.EnumValueOptions;
+
+ /**
+ * Encodes the specified EnumValueOptions message. Does not implicitly {@link google.protobuf.EnumValueOptions.verify|verify} messages.
+ * @param message EnumValueOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IEnumValueOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified EnumValueOptions message, length delimited. Does not implicitly {@link google.protobuf.EnumValueOptions.verify|verify} messages.
+ * @param message EnumValueOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IEnumValueOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an EnumValueOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns EnumValueOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumValueOptions;
+
+ /**
+ * Decodes an EnumValueOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns EnumValueOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumValueOptions;
+
+ /**
+ * Verifies an EnumValueOptions message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an EnumValueOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns EnumValueOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.EnumValueOptions;
+
+ /**
+ * Creates a plain object from an EnumValueOptions message. Also converts values to other types if specified.
+ * @param message EnumValueOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.EnumValueOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this EnumValueOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for EnumValueOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ServiceOptions. */
+ interface IServiceOptions {
+
+ /** ServiceOptions deprecated */
+ deprecated?: (boolean|null);
+
+ /** ServiceOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+
+ /** ServiceOptions .google.api.defaultHost */
+ ".google.api.defaultHost"?: (string|null);
+
+ /** ServiceOptions .google.api.oauthScopes */
+ ".google.api.oauthScopes"?: (string|null);
+ }
+
+ /** Represents a ServiceOptions. */
+ class ServiceOptions implements IServiceOptions {
+
+ /**
+ * Constructs a new ServiceOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IServiceOptions);
+
+ /** ServiceOptions deprecated. */
+ public deprecated: boolean;
+
+ /** ServiceOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+
+ /**
+ * Creates a new ServiceOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ServiceOptions instance
+ */
+ public static create(properties?: google.protobuf.IServiceOptions): google.protobuf.ServiceOptions;
+
+ /**
+ * Encodes the specified ServiceOptions message. Does not implicitly {@link google.protobuf.ServiceOptions.verify|verify} messages.
+ * @param message ServiceOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IServiceOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ServiceOptions message, length delimited. Does not implicitly {@link google.protobuf.ServiceOptions.verify|verify} messages.
+ * @param message ServiceOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IServiceOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ServiceOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ServiceOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.ServiceOptions;
+
+ /**
+ * Decodes a ServiceOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ServiceOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.ServiceOptions;
+
+ /**
+ * Verifies a ServiceOptions message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ServiceOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ServiceOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.ServiceOptions;
+
+ /**
+ * Creates a plain object from a ServiceOptions message. Also converts values to other types if specified.
+ * @param message ServiceOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.ServiceOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ServiceOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ServiceOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a MethodOptions. */
+ interface IMethodOptions {
+
+ /** MethodOptions deprecated */
+ deprecated?: (boolean|null);
+
+ /** MethodOptions idempotencyLevel */
+ idempotencyLevel?: (google.protobuf.MethodOptions.IdempotencyLevel|keyof typeof google.protobuf.MethodOptions.IdempotencyLevel|null);
+
+ /** MethodOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+
+ /** MethodOptions .google.api.http */
+ ".google.api.http"?: (google.api.IHttpRule|null);
+
+ /** MethodOptions .google.api.methodSignature */
+ ".google.api.methodSignature"?: (string[]|null);
+
+ /** MethodOptions .google.longrunning.operationInfo */
+ ".google.longrunning.operationInfo"?: (google.longrunning.IOperationInfo|null);
+ }
+
+ /** Represents a MethodOptions. */
+ class MethodOptions implements IMethodOptions {
+
+ /**
+ * Constructs a new MethodOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IMethodOptions);
+
+ /** MethodOptions deprecated. */
+ public deprecated: boolean;
+
+ /** MethodOptions idempotencyLevel. */
+ public idempotencyLevel: (google.protobuf.MethodOptions.IdempotencyLevel|keyof typeof google.protobuf.MethodOptions.IdempotencyLevel);
+
+ /** MethodOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+
+ /**
+ * Creates a new MethodOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns MethodOptions instance
+ */
+ public static create(properties?: google.protobuf.IMethodOptions): google.protobuf.MethodOptions;
+
+ /**
+ * Encodes the specified MethodOptions message. Does not implicitly {@link google.protobuf.MethodOptions.verify|verify} messages.
+ * @param message MethodOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IMethodOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified MethodOptions message, length delimited. Does not implicitly {@link google.protobuf.MethodOptions.verify|verify} messages.
+ * @param message MethodOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IMethodOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a MethodOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns MethodOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.MethodOptions;
+
+ /**
+ * Decodes a MethodOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns MethodOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.MethodOptions;
+
+ /**
+ * Verifies a MethodOptions message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a MethodOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns MethodOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.MethodOptions;
+
+ /**
+ * Creates a plain object from a MethodOptions message. Also converts values to other types if specified.
+ * @param message MethodOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.MethodOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this MethodOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for MethodOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace MethodOptions {
+
+ /** IdempotencyLevel enum. */
+ enum IdempotencyLevel {
+ IDEMPOTENCY_UNKNOWN = 0,
+ NO_SIDE_EFFECTS = 1,
+ IDEMPOTENT = 2
+ }
+ }
+
+ /** Properties of an UninterpretedOption. */
+ interface IUninterpretedOption {
+
+ /** UninterpretedOption name */
+ name?: (google.protobuf.UninterpretedOption.INamePart[]|null);
+
+ /** UninterpretedOption identifierValue */
+ identifierValue?: (string|null);
+
+ /** UninterpretedOption positiveIntValue */
+ positiveIntValue?: (number|Long|string|null);
+
+ /** UninterpretedOption negativeIntValue */
+ negativeIntValue?: (number|Long|string|null);
+
+ /** UninterpretedOption doubleValue */
+ doubleValue?: (number|null);
+
+ /** UninterpretedOption stringValue */
+ stringValue?: (Uint8Array|string|null);
+
+ /** UninterpretedOption aggregateValue */
+ aggregateValue?: (string|null);
+ }
+
+ /** Represents an UninterpretedOption. */
+ class UninterpretedOption implements IUninterpretedOption {
+
+ /**
+ * Constructs a new UninterpretedOption.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IUninterpretedOption);
+
+ /** UninterpretedOption name. */
+ public name: google.protobuf.UninterpretedOption.INamePart[];
+
+ /** UninterpretedOption identifierValue. */
+ public identifierValue: string;
+
+ /** UninterpretedOption positiveIntValue. */
+ public positiveIntValue: (number|Long|string);
+
+ /** UninterpretedOption negativeIntValue. */
+ public negativeIntValue: (number|Long|string);
+
+ /** UninterpretedOption doubleValue. */
+ public doubleValue: number;
+
+ /** UninterpretedOption stringValue. */
+ public stringValue: (Uint8Array|string);
+
+ /** UninterpretedOption aggregateValue. */
+ public aggregateValue: string;
+
+ /**
+ * Creates a new UninterpretedOption instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns UninterpretedOption instance
+ */
+ public static create(properties?: google.protobuf.IUninterpretedOption): google.protobuf.UninterpretedOption;
+
+ /**
+ * Encodes the specified UninterpretedOption message. Does not implicitly {@link google.protobuf.UninterpretedOption.verify|verify} messages.
+ * @param message UninterpretedOption message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IUninterpretedOption, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified UninterpretedOption message, length delimited. Does not implicitly {@link google.protobuf.UninterpretedOption.verify|verify} messages.
+ * @param message UninterpretedOption message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IUninterpretedOption, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an UninterpretedOption message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns UninterpretedOption
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.UninterpretedOption;
+
+ /**
+ * Decodes an UninterpretedOption message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns UninterpretedOption
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.UninterpretedOption;
+
+ /**
+ * Verifies an UninterpretedOption message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an UninterpretedOption message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns UninterpretedOption
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.UninterpretedOption;
+
+ /**
+ * Creates a plain object from an UninterpretedOption message. Also converts values to other types if specified.
+ * @param message UninterpretedOption
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.UninterpretedOption, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this UninterpretedOption to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for UninterpretedOption
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace UninterpretedOption {
+
+ /** Properties of a NamePart. */
+ interface INamePart {
+
+ /** NamePart namePart */
+ namePart: string;
+
+ /** NamePart isExtension */
+ isExtension: boolean;
+ }
+
+ /** Represents a NamePart. */
+ class NamePart implements INamePart {
+
+ /**
+ * Constructs a new NamePart.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.UninterpretedOption.INamePart);
+
+ /** NamePart namePart. */
+ public namePart: string;
+
+ /** NamePart isExtension. */
+ public isExtension: boolean;
+
+ /**
+ * Creates a new NamePart instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns NamePart instance
+ */
+ public static create(properties?: google.protobuf.UninterpretedOption.INamePart): google.protobuf.UninterpretedOption.NamePart;
+
+ /**
+ * Encodes the specified NamePart message. Does not implicitly {@link google.protobuf.UninterpretedOption.NamePart.verify|verify} messages.
+ * @param message NamePart message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.UninterpretedOption.INamePart, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified NamePart message, length delimited. Does not implicitly {@link google.protobuf.UninterpretedOption.NamePart.verify|verify} messages.
+ * @param message NamePart message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.UninterpretedOption.INamePart, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a NamePart message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns NamePart
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.UninterpretedOption.NamePart;
+
+ /**
+ * Decodes a NamePart message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns NamePart
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.UninterpretedOption.NamePart;
+
+ /**
+ * Verifies a NamePart message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a NamePart message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns NamePart
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.UninterpretedOption.NamePart;
+
+ /**
+ * Creates a plain object from a NamePart message. Also converts values to other types if specified.
+ * @param message NamePart
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.UninterpretedOption.NamePart, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this NamePart to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for NamePart
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of a SourceCodeInfo. */
+ interface ISourceCodeInfo {
+
+ /** SourceCodeInfo location */
+ location?: (google.protobuf.SourceCodeInfo.ILocation[]|null);
+ }
+
+ /** Represents a SourceCodeInfo. */
+ class SourceCodeInfo implements ISourceCodeInfo {
+
+ /**
+ * Constructs a new SourceCodeInfo.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.ISourceCodeInfo);
+
+ /** SourceCodeInfo location. */
+ public location: google.protobuf.SourceCodeInfo.ILocation[];
+
+ /**
+ * Creates a new SourceCodeInfo instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns SourceCodeInfo instance
+ */
+ public static create(properties?: google.protobuf.ISourceCodeInfo): google.protobuf.SourceCodeInfo;
+
+ /**
+ * Encodes the specified SourceCodeInfo message. Does not implicitly {@link google.protobuf.SourceCodeInfo.verify|verify} messages.
+ * @param message SourceCodeInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.ISourceCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified SourceCodeInfo message, length delimited. Does not implicitly {@link google.protobuf.SourceCodeInfo.verify|verify} messages.
+ * @param message SourceCodeInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.ISourceCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a SourceCodeInfo message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns SourceCodeInfo
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.SourceCodeInfo;
+
+ /**
+ * Decodes a SourceCodeInfo message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns SourceCodeInfo
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.SourceCodeInfo;
+
+ /**
+ * Verifies a SourceCodeInfo message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a SourceCodeInfo message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns SourceCodeInfo
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.SourceCodeInfo;
+
+ /**
+ * Creates a plain object from a SourceCodeInfo message. Also converts values to other types if specified.
+ * @param message SourceCodeInfo
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.SourceCodeInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this SourceCodeInfo to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for SourceCodeInfo
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace SourceCodeInfo {
+
+ /** Properties of a Location. */
+ interface ILocation {
+
+ /** Location path */
+ path?: (number[]|null);
+
+ /** Location span */
+ span?: (number[]|null);
+
+ /** Location leadingComments */
+ leadingComments?: (string|null);
+
+ /** Location trailingComments */
+ trailingComments?: (string|null);
+
+ /** Location leadingDetachedComments */
+ leadingDetachedComments?: (string[]|null);
+ }
+
+ /** Represents a Location. */
+ class Location implements ILocation {
+
+ /**
+ * Constructs a new Location.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.SourceCodeInfo.ILocation);
+
+ /** Location path. */
+ public path: number[];
+
+ /** Location span. */
+ public span: number[];
+
+ /** Location leadingComments. */
+ public leadingComments: string;
+
+ /** Location trailingComments. */
+ public trailingComments: string;
+
+ /** Location leadingDetachedComments. */
+ public leadingDetachedComments: string[];
+
+ /**
+ * Creates a new Location instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Location instance
+ */
+ public static create(properties?: google.protobuf.SourceCodeInfo.ILocation): google.protobuf.SourceCodeInfo.Location;
+
+ /**
+ * Encodes the specified Location message. Does not implicitly {@link google.protobuf.SourceCodeInfo.Location.verify|verify} messages.
+ * @param message Location message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.SourceCodeInfo.ILocation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Location message, length delimited. Does not implicitly {@link google.protobuf.SourceCodeInfo.Location.verify|verify} messages.
+ * @param message Location message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.SourceCodeInfo.ILocation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Location message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Location
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.SourceCodeInfo.Location;
+
+ /**
+ * Decodes a Location message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Location
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.SourceCodeInfo.Location;
+
+ /**
+ * Verifies a Location message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Location message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Location
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.SourceCodeInfo.Location;
+
+ /**
+ * Creates a plain object from a Location message. Also converts values to other types if specified.
+ * @param message Location
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.SourceCodeInfo.Location, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Location to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Location
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of a GeneratedCodeInfo. */
+ interface IGeneratedCodeInfo {
+
+ /** GeneratedCodeInfo annotation */
+ annotation?: (google.protobuf.GeneratedCodeInfo.IAnnotation[]|null);
+ }
+
+ /** Represents a GeneratedCodeInfo. */
+ class GeneratedCodeInfo implements IGeneratedCodeInfo {
+
+ /**
+ * Constructs a new GeneratedCodeInfo.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IGeneratedCodeInfo);
+
+ /** GeneratedCodeInfo annotation. */
+ public annotation: google.protobuf.GeneratedCodeInfo.IAnnotation[];
+
+ /**
+ * Creates a new GeneratedCodeInfo instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GeneratedCodeInfo instance
+ */
+ public static create(properties?: google.protobuf.IGeneratedCodeInfo): google.protobuf.GeneratedCodeInfo;
+
+ /**
+ * Encodes the specified GeneratedCodeInfo message. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.verify|verify} messages.
+ * @param message GeneratedCodeInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IGeneratedCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GeneratedCodeInfo message, length delimited. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.verify|verify} messages.
+ * @param message GeneratedCodeInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IGeneratedCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GeneratedCodeInfo message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GeneratedCodeInfo
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.GeneratedCodeInfo;
+
+ /**
+ * Decodes a GeneratedCodeInfo message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GeneratedCodeInfo
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.GeneratedCodeInfo;
+
+ /**
+ * Verifies a GeneratedCodeInfo message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GeneratedCodeInfo message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GeneratedCodeInfo
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.GeneratedCodeInfo;
+
+ /**
+ * Creates a plain object from a GeneratedCodeInfo message. Also converts values to other types if specified.
+ * @param message GeneratedCodeInfo
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.GeneratedCodeInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GeneratedCodeInfo to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GeneratedCodeInfo
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace GeneratedCodeInfo {
+
+ /** Properties of an Annotation. */
+ interface IAnnotation {
+
+ /** Annotation path */
+ path?: (number[]|null);
+
+ /** Annotation sourceFile */
+ sourceFile?: (string|null);
+
+ /** Annotation begin */
+ begin?: (number|null);
+
+ /** Annotation end */
+ end?: (number|null);
+
+ /** Annotation semantic */
+ semantic?: (google.protobuf.GeneratedCodeInfo.Annotation.Semantic|keyof typeof google.protobuf.GeneratedCodeInfo.Annotation.Semantic|null);
+ }
+
+ /** Represents an Annotation. */
+ class Annotation implements IAnnotation {
+
+ /**
+ * Constructs a new Annotation.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.GeneratedCodeInfo.IAnnotation);
+
+ /** Annotation path. */
+ public path: number[];
+
+ /** Annotation sourceFile. */
+ public sourceFile: string;
+
+ /** Annotation begin. */
+ public begin: number;
+
+ /** Annotation end. */
+ public end: number;
+
+ /** Annotation semantic. */
+ public semantic: (google.protobuf.GeneratedCodeInfo.Annotation.Semantic|keyof typeof google.protobuf.GeneratedCodeInfo.Annotation.Semantic);
+
+ /**
+ * Creates a new Annotation instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Annotation instance
+ */
+ public static create(properties?: google.protobuf.GeneratedCodeInfo.IAnnotation): google.protobuf.GeneratedCodeInfo.Annotation;
+
+ /**
+ * Encodes the specified Annotation message. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.Annotation.verify|verify} messages.
+ * @param message Annotation message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.GeneratedCodeInfo.IAnnotation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Annotation message, length delimited. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.Annotation.verify|verify} messages.
+ * @param message Annotation message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.GeneratedCodeInfo.IAnnotation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an Annotation message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Annotation
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.GeneratedCodeInfo.Annotation;
+
+ /**
+ * Decodes an Annotation message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Annotation
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.GeneratedCodeInfo.Annotation;
+
+ /**
+ * Verifies an Annotation message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an Annotation message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Annotation
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.GeneratedCodeInfo.Annotation;
+
+ /**
+ * Creates a plain object from an Annotation message. Also converts values to other types if specified.
+ * @param message Annotation
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.GeneratedCodeInfo.Annotation, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Annotation to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Annotation
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace Annotation {
+
+ /** Semantic enum. */
+ enum Semantic {
+ NONE = 0,
+ SET = 1,
+ ALIAS = 2
+ }
+ }
+ }
+
+ /** Properties of a 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 a DoubleValue. */
+ interface IDoubleValue {
+
+ /** DoubleValue value */
+ value?: (number|null);
+ }
+
+ /** Represents a DoubleValue. */
+ class DoubleValue implements IDoubleValue {
+
+ /**
+ * Constructs a new DoubleValue.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IDoubleValue);
+
+ /** DoubleValue value. */
+ public value: number;
+
+ /**
+ * Creates a new DoubleValue instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DoubleValue instance
+ */
+ public static create(properties?: google.protobuf.IDoubleValue): google.protobuf.DoubleValue;
+
+ /**
+ * Encodes the specified DoubleValue message. Does not implicitly {@link google.protobuf.DoubleValue.verify|verify} messages.
+ * @param message DoubleValue message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IDoubleValue, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DoubleValue message, length delimited. Does not implicitly {@link google.protobuf.DoubleValue.verify|verify} messages.
+ * @param message DoubleValue message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IDoubleValue, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DoubleValue message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DoubleValue
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.DoubleValue;
+
+ /**
+ * Decodes a DoubleValue message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DoubleValue
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.DoubleValue;
+
+ /**
+ * Verifies a DoubleValue message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DoubleValue message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DoubleValue
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.DoubleValue;
+
+ /**
+ * Creates a plain object from a DoubleValue message. Also converts values to other types if specified.
+ * @param message DoubleValue
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.DoubleValue, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DoubleValue to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DoubleValue
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a FloatValue. */
+ interface IFloatValue {
+
+ /** FloatValue value */
+ value?: (number|null);
+ }
+
+ /** Represents a FloatValue. */
+ class FloatValue implements IFloatValue {
+
+ /**
+ * Constructs a new FloatValue.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IFloatValue);
+
+ /** FloatValue value. */
+ public value: number;
+
+ /**
+ * Creates a new FloatValue instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FloatValue instance
+ */
+ public static create(properties?: google.protobuf.IFloatValue): google.protobuf.FloatValue;
+
+ /**
+ * Encodes the specified FloatValue message. Does not implicitly {@link google.protobuf.FloatValue.verify|verify} messages.
+ * @param message FloatValue message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IFloatValue, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FloatValue message, length delimited. Does not implicitly {@link google.protobuf.FloatValue.verify|verify} messages.
+ * @param message FloatValue message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IFloatValue, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FloatValue message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FloatValue
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FloatValue;
+
+ /**
+ * Decodes a FloatValue message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FloatValue
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FloatValue;
+
+ /**
+ * Verifies a FloatValue message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FloatValue message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FloatValue
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.FloatValue;
+
+ /**
+ * Creates a plain object from a FloatValue message. Also converts values to other types if specified.
+ * @param message FloatValue
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.FloatValue, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FloatValue to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FloatValue
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an Int64Value. */
+ interface IInt64Value {
+
+ /** Int64Value value */
+ value?: (number|Long|string|null);
+ }
+
+ /** Represents an Int64Value. */
+ class Int64Value implements IInt64Value {
+
+ /**
+ * Constructs a new Int64Value.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IInt64Value);
+
+ /** Int64Value value. */
+ public value: (number|Long|string);
+
+ /**
+ * Creates a new Int64Value instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Int64Value instance
+ */
+ public static create(properties?: google.protobuf.IInt64Value): google.protobuf.Int64Value;
+
+ /**
+ * Encodes the specified Int64Value message. Does not implicitly {@link google.protobuf.Int64Value.verify|verify} messages.
+ * @param message Int64Value message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IInt64Value, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Int64Value message, length delimited. Does not implicitly {@link google.protobuf.Int64Value.verify|verify} messages.
+ * @param message Int64Value message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IInt64Value, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an Int64Value message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Int64Value
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Int64Value;
+
+ /**
+ * Decodes an Int64Value message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Int64Value
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Int64Value;
+
+ /**
+ * Verifies an Int64Value message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an Int64Value message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Int64Value
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.Int64Value;
+
+ /**
+ * Creates a plain object from an Int64Value message. Also converts values to other types if specified.
+ * @param message Int64Value
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.Int64Value, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Int64Value to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Int64Value
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a UInt64Value. */
+ interface IUInt64Value {
+
+ /** UInt64Value value */
+ value?: (number|Long|string|null);
+ }
+
+ /** Represents a UInt64Value. */
+ class UInt64Value implements IUInt64Value {
+
+ /**
+ * Constructs a new UInt64Value.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IUInt64Value);
+
+ /** UInt64Value value. */
+ public value: (number|Long|string);
+
+ /**
+ * Creates a new UInt64Value instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns UInt64Value instance
+ */
+ public static create(properties?: google.protobuf.IUInt64Value): google.protobuf.UInt64Value;
+
+ /**
+ * Encodes the specified UInt64Value message. Does not implicitly {@link google.protobuf.UInt64Value.verify|verify} messages.
+ * @param message UInt64Value message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IUInt64Value, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified UInt64Value message, length delimited. Does not implicitly {@link google.protobuf.UInt64Value.verify|verify} messages.
+ * @param message UInt64Value message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IUInt64Value, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a UInt64Value message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns UInt64Value
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.UInt64Value;
+
+ /**
+ * Decodes a UInt64Value message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns UInt64Value
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.UInt64Value;
+
+ /**
+ * Verifies a UInt64Value message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a UInt64Value message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns UInt64Value
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.UInt64Value;
+
+ /**
+ * Creates a plain object from a UInt64Value message. Also converts values to other types if specified.
+ * @param message UInt64Value
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.UInt64Value, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this UInt64Value to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for UInt64Value
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an Int32Value. */
+ interface IInt32Value {
+
+ /** Int32Value value */
+ value?: (number|null);
+ }
+
+ /** Represents an Int32Value. */
+ class Int32Value implements IInt32Value {
+
+ /**
+ * Constructs a new Int32Value.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IInt32Value);
+
+ /** Int32Value value. */
+ public value: number;
+
+ /**
+ * Creates a new Int32Value instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Int32Value instance
+ */
+ public static create(properties?: google.protobuf.IInt32Value): google.protobuf.Int32Value;
+
+ /**
+ * Encodes the specified Int32Value message. Does not implicitly {@link google.protobuf.Int32Value.verify|verify} messages.
+ * @param message Int32Value message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IInt32Value, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Int32Value message, length delimited. Does not implicitly {@link google.protobuf.Int32Value.verify|verify} messages.
+ * @param message Int32Value message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IInt32Value, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an Int32Value message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Int32Value
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Int32Value;
+
+ /**
+ * Decodes an Int32Value message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Int32Value
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Int32Value;
+
+ /**
+ * Verifies an Int32Value message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an Int32Value message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Int32Value
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.Int32Value;
+
+ /**
+ * Creates a plain object from an Int32Value message. Also converts values to other types if specified.
+ * @param message Int32Value
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.Int32Value, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Int32Value to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Int32Value
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a UInt32Value. */
+ interface IUInt32Value {
+
+ /** UInt32Value value */
+ value?: (number|null);
+ }
+
+ /** Represents a UInt32Value. */
+ class UInt32Value implements IUInt32Value {
+
+ /**
+ * Constructs a new UInt32Value.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IUInt32Value);
+
+ /** UInt32Value value. */
+ public value: number;
+
+ /**
+ * Creates a new UInt32Value instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns UInt32Value instance
+ */
+ public static create(properties?: google.protobuf.IUInt32Value): google.protobuf.UInt32Value;
+
+ /**
+ * Encodes the specified UInt32Value message. Does not implicitly {@link google.protobuf.UInt32Value.verify|verify} messages.
+ * @param message UInt32Value message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IUInt32Value, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified UInt32Value message, length delimited. Does not implicitly {@link google.protobuf.UInt32Value.verify|verify} messages.
+ * @param message UInt32Value message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IUInt32Value, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a UInt32Value message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns UInt32Value
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.UInt32Value;
+
+ /**
+ * Decodes a UInt32Value message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns UInt32Value
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.UInt32Value;
+
+ /**
+ * Verifies a UInt32Value message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a UInt32Value message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns UInt32Value
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.UInt32Value;
+
+ /**
+ * Creates a plain object from a UInt32Value message. Also converts values to other types if specified.
+ * @param message UInt32Value
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.UInt32Value, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this UInt32Value to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for UInt32Value
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a BoolValue. */
+ interface IBoolValue {
+
+ /** BoolValue value */
+ value?: (boolean|null);
+ }
+
+ /** Represents a BoolValue. */
+ class BoolValue implements IBoolValue {
+
+ /**
+ * Constructs a new BoolValue.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IBoolValue);
+
+ /** BoolValue value. */
+ public value: boolean;
+
+ /**
+ * Creates a new BoolValue instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns BoolValue instance
+ */
+ public static create(properties?: google.protobuf.IBoolValue): google.protobuf.BoolValue;
+
+ /**
+ * Encodes the specified BoolValue message. Does not implicitly {@link google.protobuf.BoolValue.verify|verify} messages.
+ * @param message BoolValue message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IBoolValue, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified BoolValue message, length delimited. Does not implicitly {@link google.protobuf.BoolValue.verify|verify} messages.
+ * @param message BoolValue message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IBoolValue, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a BoolValue message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns BoolValue
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.BoolValue;
+
+ /**
+ * Decodes a BoolValue message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns BoolValue
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.BoolValue;
+
+ /**
+ * Verifies a BoolValue message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a BoolValue message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns BoolValue
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.BoolValue;
+
+ /**
+ * Creates a plain object from a BoolValue message. Also converts values to other types if specified.
+ * @param message BoolValue
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.BoolValue, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this BoolValue to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for BoolValue
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a StringValue. */
+ interface IStringValue {
+
+ /** StringValue value */
+ value?: (string|null);
+ }
+
+ /** Represents a StringValue. */
+ class StringValue implements IStringValue {
+
+ /**
+ * Constructs a new StringValue.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IStringValue);
+
+ /** StringValue value. */
+ public value: string;
+
+ /**
+ * Creates a new StringValue instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns StringValue instance
+ */
+ public static create(properties?: google.protobuf.IStringValue): google.protobuf.StringValue;
+
+ /**
+ * Encodes the specified StringValue message. Does not implicitly {@link google.protobuf.StringValue.verify|verify} messages.
+ * @param message StringValue message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IStringValue, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified StringValue message, length delimited. Does not implicitly {@link google.protobuf.StringValue.verify|verify} messages.
+ * @param message StringValue message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IStringValue, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a StringValue message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns StringValue
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.StringValue;
+
+ /**
+ * Decodes a StringValue message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns StringValue
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.StringValue;
+
+ /**
+ * Verifies a StringValue message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a StringValue message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns StringValue
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.StringValue;
+
+ /**
+ * Creates a plain object from a StringValue message. Also converts values to other types if specified.
+ * @param message StringValue
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.StringValue, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this StringValue to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for StringValue
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a BytesValue. */
+ interface IBytesValue {
+
+ /** BytesValue value */
+ value?: (Uint8Array|string|null);
+ }
+
+ /** Represents a BytesValue. */
+ class BytesValue implements IBytesValue {
+
+ /**
+ * Constructs a new BytesValue.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IBytesValue);
+
+ /** BytesValue value. */
+ public value: (Uint8Array|string);
+
+ /**
+ * Creates a new BytesValue instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns BytesValue instance
+ */
+ public static create(properties?: google.protobuf.IBytesValue): google.protobuf.BytesValue;
+
+ /**
+ * Encodes the specified BytesValue message. Does not implicitly {@link google.protobuf.BytesValue.verify|verify} messages.
+ * @param message BytesValue message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IBytesValue, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified BytesValue message, length delimited. Does not implicitly {@link google.protobuf.BytesValue.verify|verify} messages.
+ * @param message BytesValue message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IBytesValue, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a BytesValue message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns BytesValue
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.BytesValue;
+
+ /**
+ * Decodes a BytesValue message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns BytesValue
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.BytesValue;
+
+ /**
+ * Verifies a BytesValue message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a BytesValue message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns BytesValue
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.BytesValue;
+
+ /**
+ * Creates a plain object from a BytesValue message. Also converts values to other types if specified.
+ * @param message BytesValue
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.BytesValue, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this BytesValue to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for BytesValue
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** 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 FieldMask. */
+ interface IFieldMask {
+
+ /** FieldMask paths */
+ paths?: (string[]|null);
+ }
+
+ /** Represents a FieldMask. */
+ class FieldMask implements IFieldMask {
+
+ /**
+ * Constructs a new FieldMask.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IFieldMask);
+
+ /** FieldMask paths. */
+ public paths: string[];
+
+ /**
+ * Creates a new FieldMask instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FieldMask instance
+ */
+ public static create(properties?: google.protobuf.IFieldMask): google.protobuf.FieldMask;
+
+ /**
+ * Encodes the specified FieldMask message. Does not implicitly {@link google.protobuf.FieldMask.verify|verify} messages.
+ * @param message FieldMask message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IFieldMask, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FieldMask message, length delimited. Does not implicitly {@link google.protobuf.FieldMask.verify|verify} messages.
+ * @param message FieldMask message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IFieldMask, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FieldMask message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FieldMask
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FieldMask;
+
+ /**
+ * Decodes a FieldMask message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FieldMask
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FieldMask;
+
+ /**
+ * Verifies a FieldMask message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FieldMask message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FieldMask
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.FieldMask;
+
+ /**
+ * Creates a plain object from a FieldMask message. Also converts values to other types if specified.
+ * @param message FieldMask
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.FieldMask, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FieldMask to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FieldMask
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an 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;
+ }
+ }
+
+ /** Namespace rpc. */
+ namespace rpc {
+
+ /** Properties of a Status. */
+ interface IStatus {
+
+ /** Status code */
+ code?: (number|null);
+
+ /** Status message */
+ message?: (string|null);
+
+ /** Status details */
+ details?: (google.protobuf.IAny[]|null);
+ }
+
+ /** Represents a Status. */
+ class Status implements IStatus {
+
+ /**
+ * Constructs a new Status.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.rpc.IStatus);
+
+ /** Status code. */
+ public code: number;
+
+ /** Status message. */
+ public message: string;
+
+ /** Status details. */
+ public details: google.protobuf.IAny[];
+
+ /**
+ * Creates a new Status instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Status instance
+ */
+ public static create(properties?: google.rpc.IStatus): google.rpc.Status;
+
+ /**
+ * Encodes the specified Status message. Does not implicitly {@link google.rpc.Status.verify|verify} messages.
+ * @param message Status message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.rpc.IStatus, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Status message, length delimited. Does not implicitly {@link google.rpc.Status.verify|verify} messages.
+ * @param message Status message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.rpc.IStatus, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Status message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Status
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.rpc.Status;
+
+ /**
+ * Decodes a Status message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Status
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.rpc.Status;
+
+ /**
+ * Verifies a Status message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Status message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Status
+ */
+ public static fromObject(object: { [k: string]: any }): google.rpc.Status;
+
+ /**
+ * Creates a plain object from a Status message. Also converts values to other types if specified.
+ * @param message Status
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.rpc.Status, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Status to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Status
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Namespace type. */
+ namespace type {
+
+ /** Properties of a Color. */
+ interface IColor {
+
+ /** Color red */
+ red?: (number|null);
+
+ /** Color green */
+ green?: (number|null);
+
+ /** Color blue */
+ blue?: (number|null);
+
+ /** Color alpha */
+ alpha?: (google.protobuf.IFloatValue|null);
+ }
+
+ /** Represents a Color. */
+ class Color implements IColor {
+
+ /**
+ * Constructs a new Color.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.type.IColor);
+
+ /** Color red. */
+ public red: number;
+
+ /** Color green. */
+ public green: number;
+
+ /** Color blue. */
+ public blue: number;
+
+ /** Color alpha. */
+ public alpha?: (google.protobuf.IFloatValue|null);
+
+ /**
+ * Creates a new Color instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Color instance
+ */
+ public static create(properties?: google.type.IColor): google.type.Color;
+
+ /**
+ * Encodes the specified Color message. Does not implicitly {@link google.type.Color.verify|verify} messages.
+ * @param message Color message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.type.IColor, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Color message, length delimited. Does not implicitly {@link google.type.Color.verify|verify} messages.
+ * @param message Color message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.type.IColor, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Color message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Color
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.type.Color;
+
+ /**
+ * Decodes a Color message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Color
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.type.Color;
+
+ /**
+ * Verifies a Color message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Color message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Color
+ */
+ public static fromObject(object: { [k: string]: any }): google.type.Color;
+
+ /**
+ * Creates a plain object from a Color message. Also converts values to other types if specified.
+ * @param message Color
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.type.Color, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Color to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Color
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Date. */
+ interface IDate {
+
+ /** Date year */
+ year?: (number|null);
+
+ /** Date month */
+ month?: (number|null);
+
+ /** Date day */
+ day?: (number|null);
+ }
+
+ /** Represents a Date. */
+ class Date implements IDate {
+
+ /**
+ * Constructs a new Date.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.type.IDate);
+
+ /** Date year. */
+ public year: number;
+
+ /** Date month. */
+ public month: number;
+
+ /** Date day. */
+ public day: number;
+
+ /**
+ * Creates a new Date instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Date instance
+ */
+ public static create(properties?: google.type.IDate): google.type.Date;
+
+ /**
+ * Encodes the specified Date message. Does not implicitly {@link google.type.Date.verify|verify} messages.
+ * @param message Date message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.type.IDate, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Date message, length delimited. Does not implicitly {@link google.type.Date.verify|verify} messages.
+ * @param message Date message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.type.IDate, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Date message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Date
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.type.Date;
+
+ /**
+ * Decodes a Date message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Date
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.type.Date;
+
+ /**
+ * Verifies a Date message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Date message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Date
+ */
+ public static fromObject(object: { [k: string]: any }): google.type.Date;
+
+ /**
+ * Creates a plain object from a Date message. Also converts values to other types if specified.
+ * @param message Date
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.type.Date, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Date to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Date
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DateTime. */
+ interface IDateTime {
+
+ /** DateTime year */
+ year?: (number|null);
+
+ /** DateTime month */
+ month?: (number|null);
+
+ /** DateTime day */
+ day?: (number|null);
+
+ /** DateTime hours */
+ hours?: (number|null);
+
+ /** DateTime minutes */
+ minutes?: (number|null);
+
+ /** DateTime seconds */
+ seconds?: (number|null);
+
+ /** DateTime nanos */
+ nanos?: (number|null);
+
+ /** DateTime utcOffset */
+ utcOffset?: (google.protobuf.IDuration|null);
+
+ /** DateTime timeZone */
+ timeZone?: (google.type.ITimeZone|null);
+ }
+
+ /** Represents a DateTime. */
+ class DateTime implements IDateTime {
+
+ /**
+ * Constructs a new DateTime.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.type.IDateTime);
+
+ /** DateTime year. */
+ public year: number;
+
+ /** DateTime month. */
+ public month: number;
+
+ /** DateTime day. */
+ public day: number;
+
+ /** DateTime hours. */
+ public hours: number;
+
+ /** DateTime minutes. */
+ public minutes: number;
+
+ /** DateTime seconds. */
+ public seconds: number;
+
+ /** DateTime nanos. */
+ public nanos: number;
+
+ /** DateTime utcOffset. */
+ public utcOffset?: (google.protobuf.IDuration|null);
+
+ /** DateTime timeZone. */
+ public timeZone?: (google.type.ITimeZone|null);
+
+ /** DateTime timeOffset. */
+ public timeOffset?: ("utcOffset"|"timeZone");
+
+ /**
+ * Creates a new DateTime instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DateTime instance
+ */
+ public static create(properties?: google.type.IDateTime): google.type.DateTime;
+
+ /**
+ * Encodes the specified DateTime message. Does not implicitly {@link google.type.DateTime.verify|verify} messages.
+ * @param message DateTime message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.type.IDateTime, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DateTime message, length delimited. Does not implicitly {@link google.type.DateTime.verify|verify} messages.
+ * @param message DateTime message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.type.IDateTime, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DateTime message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DateTime
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.type.DateTime;
+
+ /**
+ * Decodes a DateTime message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DateTime
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.type.DateTime;
+
+ /**
+ * Verifies a DateTime message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DateTime message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DateTime
+ */
+ public static fromObject(object: { [k: string]: any }): google.type.DateTime;
+
+ /**
+ * Creates a plain object from a DateTime message. Also converts values to other types if specified.
+ * @param message DateTime
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.type.DateTime, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DateTime to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DateTime
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a TimeZone. */
+ interface ITimeZone {
+
+ /** TimeZone id */
+ id?: (string|null);
+
+ /** TimeZone version */
+ version?: (string|null);
+ }
+
+ /** Represents a TimeZone. */
+ class TimeZone implements ITimeZone {
+
+ /**
+ * Constructs a new TimeZone.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.type.ITimeZone);
+
+ /** TimeZone id. */
+ public id: string;
+
+ /** TimeZone version. */
+ public version: string;
+
+ /**
+ * Creates a new TimeZone instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns TimeZone instance
+ */
+ public static create(properties?: google.type.ITimeZone): google.type.TimeZone;
+
+ /**
+ * Encodes the specified TimeZone message. Does not implicitly {@link google.type.TimeZone.verify|verify} messages.
+ * @param message TimeZone message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.type.ITimeZone, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified TimeZone message, length delimited. Does not implicitly {@link google.type.TimeZone.verify|verify} messages.
+ * @param message TimeZone message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.type.ITimeZone, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a TimeZone message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns TimeZone
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.type.TimeZone;
+
+ /**
+ * Decodes a TimeZone message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns TimeZone
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.type.TimeZone;
+
+ /**
+ * Verifies a TimeZone message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a TimeZone message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns TimeZone
+ */
+ public static fromObject(object: { [k: string]: any }): google.type.TimeZone;
+
+ /**
+ * Creates a plain object from a TimeZone message. Also converts values to other types if specified.
+ * @param message TimeZone
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.type.TimeZone, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this TimeZone to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for TimeZone
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Money. */
+ interface IMoney {
+
+ /** Money currencyCode */
+ currencyCode?: (string|null);
+
+ /** Money units */
+ units?: (number|Long|string|null);
+
+ /** Money nanos */
+ nanos?: (number|null);
+ }
+
+ /** Represents a Money. */
+ class Money implements IMoney {
+
+ /**
+ * Constructs a new Money.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.type.IMoney);
+
+ /** Money currencyCode. */
+ public currencyCode: string;
+
+ /** Money units. */
+ public units: (number|Long|string);
+
+ /** Money nanos. */
+ public nanos: number;
+
+ /**
+ * Creates a new Money instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Money instance
+ */
+ public static create(properties?: google.type.IMoney): google.type.Money;
+
+ /**
+ * Encodes the specified Money message. Does not implicitly {@link google.type.Money.verify|verify} messages.
+ * @param message Money message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.type.IMoney, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Money message, length delimited. Does not implicitly {@link google.type.Money.verify|verify} messages.
+ * @param message Money message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.type.IMoney, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Money message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Money
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.type.Money;
+
+ /**
+ * Decodes a Money message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Money
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.type.Money;
+
+ /**
+ * Verifies a Money message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Money message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Money
+ */
+ public static fromObject(object: { [k: string]: any }): google.type.Money;
+
+ /**
+ * Creates a plain object from a Money message. Also converts values to other types if specified.
+ * @param message Money
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.type.Money, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Money to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Money
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a PostalAddress. */
+ interface IPostalAddress {
+
+ /** PostalAddress revision */
+ revision?: (number|null);
+
+ /** PostalAddress regionCode */
+ regionCode?: (string|null);
+
+ /** PostalAddress languageCode */
+ languageCode?: (string|null);
+
+ /** PostalAddress postalCode */
+ postalCode?: (string|null);
+
+ /** PostalAddress sortingCode */
+ sortingCode?: (string|null);
+
+ /** PostalAddress administrativeArea */
+ administrativeArea?: (string|null);
+
+ /** PostalAddress locality */
+ locality?: (string|null);
+
+ /** PostalAddress sublocality */
+ sublocality?: (string|null);
+
+ /** PostalAddress addressLines */
+ addressLines?: (string[]|null);
+
+ /** PostalAddress recipients */
+ recipients?: (string[]|null);
+
+ /** PostalAddress organization */
+ organization?: (string|null);
+ }
+
+ /** Represents a PostalAddress. */
+ class PostalAddress implements IPostalAddress {
+
+ /**
+ * Constructs a new PostalAddress.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.type.IPostalAddress);
+
+ /** PostalAddress revision. */
+ public revision: number;
+
+ /** PostalAddress regionCode. */
+ public regionCode: string;
+
+ /** PostalAddress languageCode. */
+ public languageCode: string;
+
+ /** PostalAddress postalCode. */
+ public postalCode: string;
+
+ /** PostalAddress sortingCode. */
+ public sortingCode: string;
+
+ /** PostalAddress administrativeArea. */
+ public administrativeArea: string;
+
+ /** PostalAddress locality. */
+ public locality: string;
+
+ /** PostalAddress sublocality. */
+ public sublocality: string;
+
+ /** PostalAddress addressLines. */
+ public addressLines: string[];
+
+ /** PostalAddress recipients. */
+ public recipients: string[];
+
+ /** PostalAddress organization. */
+ public organization: string;
+
+ /**
+ * Creates a new PostalAddress instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns PostalAddress instance
+ */
+ public static create(properties?: google.type.IPostalAddress): google.type.PostalAddress;
+
+ /**
+ * Encodes the specified PostalAddress message. Does not implicitly {@link google.type.PostalAddress.verify|verify} messages.
+ * @param message PostalAddress message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.type.IPostalAddress, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified PostalAddress message, length delimited. Does not implicitly {@link google.type.PostalAddress.verify|verify} messages.
+ * @param message PostalAddress message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.type.IPostalAddress, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a PostalAddress message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns PostalAddress
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.type.PostalAddress;
+
+ /**
+ * Decodes a PostalAddress message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns PostalAddress
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.type.PostalAddress;
+
+ /**
+ * Verifies a PostalAddress message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a PostalAddress message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns PostalAddress
+ */
+ public static fromObject(object: { [k: string]: any }): google.type.PostalAddress;
+
+ /**
+ * Creates a plain object from a PostalAddress message. Also converts values to other types if specified.
+ * @param message PostalAddress
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.type.PostalAddress, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this PostalAddress to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for PostalAddress
+ * @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-documentai/protos/protos.js b/packages/google-cloud-documentai/protos/protos.js
new file mode 100644
index 00000000000..3a0d67dc16f
--- /dev/null
+++ b/packages/google-cloud-documentai/protos/protos.js
@@ -0,0 +1,97615 @@
+// 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_documentai_protos || ($protobuf.roots._google_cloud_documentai_protos = {});
+
+ $root.google = (function() {
+
+ /**
+ * Namespace google.
+ * @exports google
+ * @namespace
+ */
+ var google = {};
+
+ google.cloud = (function() {
+
+ /**
+ * Namespace cloud.
+ * @memberof google
+ * @namespace
+ */
+ var cloud = {};
+
+ cloud.documentai = (function() {
+
+ /**
+ * Namespace documentai.
+ * @memberof google.cloud
+ * @namespace
+ */
+ var documentai = {};
+
+ documentai.v1 = (function() {
+
+ /**
+ * Namespace v1.
+ * @memberof google.cloud.documentai
+ * @namespace
+ */
+ var v1 = {};
+
+ v1.Barcode = (function() {
+
+ /**
+ * Properties of a Barcode.
+ * @memberof google.cloud.documentai.v1
+ * @interface IBarcode
+ * @property {string|null} [format] Barcode format
+ * @property {string|null} [valueFormat] Barcode valueFormat
+ * @property {string|null} [rawValue] Barcode rawValue
+ */
+
+ /**
+ * Constructs a new Barcode.
+ * @memberof google.cloud.documentai.v1
+ * @classdesc Represents a Barcode.
+ * @implements IBarcode
+ * @constructor
+ * @param {google.cloud.documentai.v1.IBarcode=} [properties] Properties to set
+ */
+ function Barcode(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]];
+ }
+
+ /**
+ * Barcode format.
+ * @member {string} format
+ * @memberof google.cloud.documentai.v1.Barcode
+ * @instance
+ */
+ Barcode.prototype.format = "";
+
+ /**
+ * Barcode valueFormat.
+ * @member {string} valueFormat
+ * @memberof google.cloud.documentai.v1.Barcode
+ * @instance
+ */
+ Barcode.prototype.valueFormat = "";
+
+ /**
+ * Barcode rawValue.
+ * @member {string} rawValue
+ * @memberof google.cloud.documentai.v1.Barcode
+ * @instance
+ */
+ Barcode.prototype.rawValue = "";
+
+ /**
+ * Creates a new Barcode instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.documentai.v1.Barcode
+ * @static
+ * @param {google.cloud.documentai.v1.IBarcode=} [properties] Properties to set
+ * @returns {google.cloud.documentai.v1.Barcode} Barcode instance
+ */
+ Barcode.create = function create(properties) {
+ return new Barcode(properties);
+ };
+
+ /**
+ * Encodes the specified Barcode message. Does not implicitly {@link google.cloud.documentai.v1.Barcode.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.documentai.v1.Barcode
+ * @static
+ * @param {google.cloud.documentai.v1.IBarcode} message Barcode message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Barcode.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.format != null && Object.hasOwnProperty.call(message, "format"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.format);
+ if (message.valueFormat != null && Object.hasOwnProperty.call(message, "valueFormat"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.valueFormat);
+ if (message.rawValue != null && Object.hasOwnProperty.call(message, "rawValue"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.rawValue);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified Barcode message, length delimited. Does not implicitly {@link google.cloud.documentai.v1.Barcode.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.documentai.v1.Barcode
+ * @static
+ * @param {google.cloud.documentai.v1.IBarcode} message Barcode message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Barcode.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a Barcode message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.documentai.v1.Barcode
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.documentai.v1.Barcode} Barcode
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Barcode.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.documentai.v1.Barcode();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.format = reader.string();
+ break;
+ }
+ case 2: {
+ message.valueFormat = reader.string();
+ break;
+ }
+ case 3: {
+ message.rawValue = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a Barcode message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.documentai.v1.Barcode
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.documentai.v1.Barcode} Barcode
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Barcode.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a Barcode message.
+ * @function verify
+ * @memberof google.cloud.documentai.v1.Barcode
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ Barcode.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.format != null && message.hasOwnProperty("format"))
+ if (!$util.isString(message.format))
+ return "format: string expected";
+ if (message.valueFormat != null && message.hasOwnProperty("valueFormat"))
+ if (!$util.isString(message.valueFormat))
+ return "valueFormat: string expected";
+ if (message.rawValue != null && message.hasOwnProperty("rawValue"))
+ if (!$util.isString(message.rawValue))
+ return "rawValue: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a Barcode message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.documentai.v1.Barcode
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.documentai.v1.Barcode} Barcode
+ */
+ Barcode.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.documentai.v1.Barcode)
+ return object;
+ var message = new $root.google.cloud.documentai.v1.Barcode();
+ if (object.format != null)
+ message.format = String(object.format);
+ if (object.valueFormat != null)
+ message.valueFormat = String(object.valueFormat);
+ if (object.rawValue != null)
+ message.rawValue = String(object.rawValue);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a Barcode message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.documentai.v1.Barcode
+ * @static
+ * @param {google.cloud.documentai.v1.Barcode} message Barcode
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ Barcode.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.format = "";
+ object.valueFormat = "";
+ object.rawValue = "";
+ }
+ if (message.format != null && message.hasOwnProperty("format"))
+ object.format = message.format;
+ if (message.valueFormat != null && message.hasOwnProperty("valueFormat"))
+ object.valueFormat = message.valueFormat;
+ if (message.rawValue != null && message.hasOwnProperty("rawValue"))
+ object.rawValue = message.rawValue;
+ return object;
+ };
+
+ /**
+ * Converts this Barcode to JSON.
+ * @function toJSON
+ * @memberof google.cloud.documentai.v1.Barcode
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ Barcode.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for Barcode
+ * @function getTypeUrl
+ * @memberof google.cloud.documentai.v1.Barcode
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ Barcode.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.documentai.v1.Barcode";
+ };
+
+ return Barcode;
+ })();
+
+ v1.Document = (function() {
+
+ /**
+ * Properties of a Document.
+ * @memberof google.cloud.documentai.v1
+ * @interface IDocument
+ * @property {string|null} [uri] Document uri
+ * @property {Uint8Array|null} [content] Document content
+ * @property {string|null} [mimeType] Document mimeType
+ * @property {string|null} [text] Document text
+ * @property {Array.|null} [textStyles] Document textStyles
+ * @property {Array.|null} [pages] Document pages
+ * @property {Array.|null} [entities] Document entities
+ * @property {Array.|null} [entityRelations] Document entityRelations
+ * @property {Array.|null} [textChanges] Document textChanges
+ * @property {google.cloud.documentai.v1.Document.IShardInfo|null} [shardInfo] Document shardInfo
+ * @property {google.rpc.IStatus|null} [error] Document error
+ * @property {Array.|null} [revisions] Document revisions
+ */
+
+ /**
+ * Constructs a new Document.
+ * @memberof google.cloud.documentai.v1
+ * @classdesc Represents a Document.
+ * @implements IDocument
+ * @constructor
+ * @param {google.cloud.documentai.v1.IDocument=} [properties] Properties to set
+ */
+ function Document(properties) {
+ this.textStyles = [];
+ this.pages = [];
+ this.entities = [];
+ this.entityRelations = [];
+ this.textChanges = [];
+ this.revisions = [];
+ 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]];
+ }
+
+ /**
+ * Document uri.
+ * @member {string|null|undefined} uri
+ * @memberof google.cloud.documentai.v1.Document
+ * @instance
+ */
+ Document.prototype.uri = null;
+
+ /**
+ * Document content.
+ * @member {Uint8Array|null|undefined} content
+ * @memberof google.cloud.documentai.v1.Document
+ * @instance
+ */
+ Document.prototype.content = null;
+
+ /**
+ * Document mimeType.
+ * @member {string} mimeType
+ * @memberof google.cloud.documentai.v1.Document
+ * @instance
+ */
+ Document.prototype.mimeType = "";
+
+ /**
+ * Document text.
+ * @member {string} text
+ * @memberof google.cloud.documentai.v1.Document
+ * @instance
+ */
+ Document.prototype.text = "";
+
+ /**
+ * Document textStyles.
+ * @member {Array.} textStyles
+ * @memberof google.cloud.documentai.v1.Document
+ * @instance
+ */
+ Document.prototype.textStyles = $util.emptyArray;
+
+ /**
+ * Document pages.
+ * @member {Array.} pages
+ * @memberof google.cloud.documentai.v1.Document
+ * @instance
+ */
+ Document.prototype.pages = $util.emptyArray;
+
+ /**
+ * Document entities.
+ * @member {Array.} entities
+ * @memberof google.cloud.documentai.v1.Document
+ * @instance
+ */
+ Document.prototype.entities = $util.emptyArray;
+
+ /**
+ * Document entityRelations.
+ * @member {Array.} entityRelations
+ * @memberof google.cloud.documentai.v1.Document
+ * @instance
+ */
+ Document.prototype.entityRelations = $util.emptyArray;
+
+ /**
+ * Document textChanges.
+ * @member {Array.} textChanges
+ * @memberof google.cloud.documentai.v1.Document
+ * @instance
+ */
+ Document.prototype.textChanges = $util.emptyArray;
+
+ /**
+ * Document shardInfo.
+ * @member {google.cloud.documentai.v1.Document.IShardInfo|null|undefined} shardInfo
+ * @memberof google.cloud.documentai.v1.Document
+ * @instance
+ */
+ Document.prototype.shardInfo = null;
+
+ /**
+ * Document error.
+ * @member {google.rpc.IStatus|null|undefined} error
+ * @memberof google.cloud.documentai.v1.Document
+ * @instance
+ */
+ Document.prototype.error = null;
+
+ /**
+ * Document revisions.
+ * @member {Array.} revisions
+ * @memberof google.cloud.documentai.v1.Document
+ * @instance
+ */
+ Document.prototype.revisions = $util.emptyArray;
+
+ // OneOf field names bound to virtual getters and setters
+ var $oneOfFields;
+
+ /**
+ * Document source.
+ * @member {"uri"|"content"|undefined} source
+ * @memberof google.cloud.documentai.v1.Document
+ * @instance
+ */
+ Object.defineProperty(Document.prototype, "source", {
+ get: $util.oneOfGetter($oneOfFields = ["uri", "content"]),
+ set: $util.oneOfSetter($oneOfFields)
+ });
+
+ /**
+ * Creates a new Document instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.documentai.v1.Document
+ * @static
+ * @param {google.cloud.documentai.v1.IDocument=} [properties] Properties to set
+ * @returns {google.cloud.documentai.v1.Document} Document instance
+ */
+ Document.create = function create(properties) {
+ return new Document(properties);
+ };
+
+ /**
+ * Encodes the specified Document message. Does not implicitly {@link google.cloud.documentai.v1.Document.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.documentai.v1.Document
+ * @static
+ * @param {google.cloud.documentai.v1.IDocument} message Document message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Document.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.uri != null && Object.hasOwnProperty.call(message, "uri"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.uri);
+ if (message.content != null && Object.hasOwnProperty.call(message, "content"))
+ writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.content);
+ if (message.mimeType != null && Object.hasOwnProperty.call(message, "mimeType"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.mimeType);
+ if (message.text != null && Object.hasOwnProperty.call(message, "text"))
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.text);
+ if (message.textStyles != null && message.textStyles.length)
+ for (var i = 0; i < message.textStyles.length; ++i)
+ $root.google.cloud.documentai.v1.Document.Style.encode(message.textStyles[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
+ if (message.pages != null && message.pages.length)
+ for (var i = 0; i < message.pages.length; ++i)
+ $root.google.cloud.documentai.v1.Document.Page.encode(message.pages[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
+ if (message.entities != null && message.entities.length)
+ for (var i = 0; i < message.entities.length; ++i)
+ $root.google.cloud.documentai.v1.Document.Entity.encode(message.entities[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
+ if (message.entityRelations != null && message.entityRelations.length)
+ for (var i = 0; i < message.entityRelations.length; ++i)
+ $root.google.cloud.documentai.v1.Document.EntityRelation.encode(message.entityRelations[i], writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim();
+ if (message.shardInfo != null && Object.hasOwnProperty.call(message, "shardInfo"))
+ $root.google.cloud.documentai.v1.Document.ShardInfo.encode(message.shardInfo, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim();
+ if (message.error != null && Object.hasOwnProperty.call(message, "error"))
+ $root.google.rpc.Status.encode(message.error, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim();
+ if (message.revisions != null && message.revisions.length)
+ for (var i = 0; i < message.revisions.length; ++i)
+ $root.google.cloud.documentai.v1.Document.Revision.encode(message.revisions[i], writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim();
+ if (message.textChanges != null && message.textChanges.length)
+ for (var i = 0; i < message.textChanges.length; ++i)
+ $root.google.cloud.documentai.v1.Document.TextChange.encode(message.textChanges[i], writer.uint32(/* id 14, wireType 2 =*/114).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified Document message, length delimited. Does not implicitly {@link google.cloud.documentai.v1.Document.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.documentai.v1.Document
+ * @static
+ * @param {google.cloud.documentai.v1.IDocument} message Document message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Document.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a Document message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.documentai.v1.Document
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.documentai.v1.Document} Document
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Document.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.documentai.v1.Document();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.uri = reader.string();
+ break;
+ }
+ case 2: {
+ message.content = reader.bytes();
+ break;
+ }
+ case 3: {
+ message.mimeType = reader.string();
+ break;
+ }
+ case 4: {
+ message.text = reader.string();
+ break;
+ }
+ case 5: {
+ if (!(message.textStyles && message.textStyles.length))
+ message.textStyles = [];
+ message.textStyles.push($root.google.cloud.documentai.v1.Document.Style.decode(reader, reader.uint32()));
+ break;
+ }
+ case 6: {
+ if (!(message.pages && message.pages.length))
+ message.pages = [];
+ message.pages.push($root.google.cloud.documentai.v1.Document.Page.decode(reader, reader.uint32()));
+ break;
+ }
+ case 7: {
+ if (!(message.entities && message.entities.length))
+ message.entities = [];
+ message.entities.push($root.google.cloud.documentai.v1.Document.Entity.decode(reader, reader.uint32()));
+ break;
+ }
+ case 8: {
+ if (!(message.entityRelations && message.entityRelations.length))
+ message.entityRelations = [];
+ message.entityRelations.push($root.google.cloud.documentai.v1.Document.EntityRelation.decode(reader, reader.uint32()));
+ break;
+ }
+ case 14: {
+ if (!(message.textChanges && message.textChanges.length))
+ message.textChanges = [];
+ message.textChanges.push($root.google.cloud.documentai.v1.Document.TextChange.decode(reader, reader.uint32()));
+ break;
+ }
+ case 9: {
+ message.shardInfo = $root.google.cloud.documentai.v1.Document.ShardInfo.decode(reader, reader.uint32());
+ break;
+ }
+ case 10: {
+ message.error = $root.google.rpc.Status.decode(reader, reader.uint32());
+ break;
+ }
+ case 13: {
+ if (!(message.revisions && message.revisions.length))
+ message.revisions = [];
+ message.revisions.push($root.google.cloud.documentai.v1.Document.Revision.decode(reader, reader.uint32()));
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a Document message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.documentai.v1.Document
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.documentai.v1.Document} Document
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Document.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a Document message.
+ * @function verify
+ * @memberof google.cloud.documentai.v1.Document
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ Document.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ var properties = {};
+ if (message.uri != null && message.hasOwnProperty("uri")) {
+ properties.source = 1;
+ if (!$util.isString(message.uri))
+ return "uri: string expected";
+ }
+ if (message.content != null && message.hasOwnProperty("content")) {
+ if (properties.source === 1)
+ return "source: multiple values";
+ properties.source = 1;
+ if (!(message.content && typeof message.content.length === "number" || $util.isString(message.content)))
+ return "content: buffer expected";
+ }
+ if (message.mimeType != null && message.hasOwnProperty("mimeType"))
+ if (!$util.isString(message.mimeType))
+ return "mimeType: string expected";
+ if (message.text != null && message.hasOwnProperty("text"))
+ if (!$util.isString(message.text))
+ return "text: string expected";
+ if (message.textStyles != null && message.hasOwnProperty("textStyles")) {
+ if (!Array.isArray(message.textStyles))
+ return "textStyles: array expected";
+ for (var i = 0; i < message.textStyles.length; ++i) {
+ var error = $root.google.cloud.documentai.v1.Document.Style.verify(message.textStyles[i]);
+ if (error)
+ return "textStyles." + error;
+ }
+ }
+ if (message.pages != null && message.hasOwnProperty("pages")) {
+ if (!Array.isArray(message.pages))
+ return "pages: array expected";
+ for (var i = 0; i < message.pages.length; ++i) {
+ var error = $root.google.cloud.documentai.v1.Document.Page.verify(message.pages[i]);
+ if (error)
+ return "pages." + error;
+ }
+ }
+ if (message.entities != null && message.hasOwnProperty("entities")) {
+ if (!Array.isArray(message.entities))
+ return "entities: array expected";
+ for (var i = 0; i < message.entities.length; ++i) {
+ var error = $root.google.cloud.documentai.v1.Document.Entity.verify(message.entities[i]);
+ if (error)
+ return "entities." + error;
+ }
+ }
+ if (message.entityRelations != null && message.hasOwnProperty("entityRelations")) {
+ if (!Array.isArray(message.entityRelations))
+ return "entityRelations: array expected";
+ for (var i = 0; i < message.entityRelations.length; ++i) {
+ var error = $root.google.cloud.documentai.v1.Document.EntityRelation.verify(message.entityRelations[i]);
+ if (error)
+ return "entityRelations." + error;
+ }
+ }
+ if (message.textChanges != null && message.hasOwnProperty("textChanges")) {
+ if (!Array.isArray(message.textChanges))
+ return "textChanges: array expected";
+ for (var i = 0; i < message.textChanges.length; ++i) {
+ var error = $root.google.cloud.documentai.v1.Document.TextChange.verify(message.textChanges[i]);
+ if (error)
+ return "textChanges." + error;
+ }
+ }
+ if (message.shardInfo != null && message.hasOwnProperty("shardInfo")) {
+ var error = $root.google.cloud.documentai.v1.Document.ShardInfo.verify(message.shardInfo);
+ if (error)
+ return "shardInfo." + error;
+ }
+ if (message.error != null && message.hasOwnProperty("error")) {
+ var error = $root.google.rpc.Status.verify(message.error);
+ if (error)
+ return "error." + error;
+ }
+ if (message.revisions != null && message.hasOwnProperty("revisions")) {
+ if (!Array.isArray(message.revisions))
+ return "revisions: array expected";
+ for (var i = 0; i < message.revisions.length; ++i) {
+ var error = $root.google.cloud.documentai.v1.Document.Revision.verify(message.revisions[i]);
+ if (error)
+ return "revisions." + error;
+ }
+ }
+ return null;
+ };
+
+ /**
+ * Creates a Document message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.documentai.v1.Document
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.documentai.v1.Document} Document
+ */
+ Document.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.documentai.v1.Document)
+ return object;
+ var message = new $root.google.cloud.documentai.v1.Document();
+ if (object.uri != null)
+ message.uri = String(object.uri);
+ if (object.content != null)
+ if (typeof object.content === "string")
+ $util.base64.decode(object.content, message.content = $util.newBuffer($util.base64.length(object.content)), 0);
+ else if (object.content.length >= 0)
+ message.content = object.content;
+ if (object.mimeType != null)
+ message.mimeType = String(object.mimeType);
+ if (object.text != null)
+ message.text = String(object.text);
+ if (object.textStyles) {
+ if (!Array.isArray(object.textStyles))
+ throw TypeError(".google.cloud.documentai.v1.Document.textStyles: array expected");
+ message.textStyles = [];
+ for (var i = 0; i < object.textStyles.length; ++i) {
+ if (typeof object.textStyles[i] !== "object")
+ throw TypeError(".google.cloud.documentai.v1.Document.textStyles: object expected");
+ message.textStyles[i] = $root.google.cloud.documentai.v1.Document.Style.fromObject(object.textStyles[i]);
+ }
+ }
+ if (object.pages) {
+ if (!Array.isArray(object.pages))
+ throw TypeError(".google.cloud.documentai.v1.Document.pages: array expected");
+ message.pages = [];
+ for (var i = 0; i < object.pages.length; ++i) {
+ if (typeof object.pages[i] !== "object")
+ throw TypeError(".google.cloud.documentai.v1.Document.pages: object expected");
+ message.pages[i] = $root.google.cloud.documentai.v1.Document.Page.fromObject(object.pages[i]);
+ }
+ }
+ if (object.entities) {
+ if (!Array.isArray(object.entities))
+ throw TypeError(".google.cloud.documentai.v1.Document.entities: array expected");
+ message.entities = [];
+ for (var i = 0; i < object.entities.length; ++i) {
+ if (typeof object.entities[i] !== "object")
+ throw TypeError(".google.cloud.documentai.v1.Document.entities: object expected");
+ message.entities[i] = $root.google.cloud.documentai.v1.Document.Entity.fromObject(object.entities[i]);
+ }
+ }
+ if (object.entityRelations) {
+ if (!Array.isArray(object.entityRelations))
+ throw TypeError(".google.cloud.documentai.v1.Document.entityRelations: array expected");
+ message.entityRelations = [];
+ for (var i = 0; i < object.entityRelations.length; ++i) {
+ if (typeof object.entityRelations[i] !== "object")
+ throw TypeError(".google.cloud.documentai.v1.Document.entityRelations: object expected");
+ message.entityRelations[i] = $root.google.cloud.documentai.v1.Document.EntityRelation.fromObject(object.entityRelations[i]);
+ }
+ }
+ if (object.textChanges) {
+ if (!Array.isArray(object.textChanges))
+ throw TypeError(".google.cloud.documentai.v1.Document.textChanges: array expected");
+ message.textChanges = [];
+ for (var i = 0; i < object.textChanges.length; ++i) {
+ if (typeof object.textChanges[i] !== "object")
+ throw TypeError(".google.cloud.documentai.v1.Document.textChanges: object expected");
+ message.textChanges[i] = $root.google.cloud.documentai.v1.Document.TextChange.fromObject(object.textChanges[i]);
+ }
+ }
+ if (object.shardInfo != null) {
+ if (typeof object.shardInfo !== "object")
+ throw TypeError(".google.cloud.documentai.v1.Document.shardInfo: object expected");
+ message.shardInfo = $root.google.cloud.documentai.v1.Document.ShardInfo.fromObject(object.shardInfo);
+ }
+ if (object.error != null) {
+ if (typeof object.error !== "object")
+ throw TypeError(".google.cloud.documentai.v1.Document.error: object expected");
+ message.error = $root.google.rpc.Status.fromObject(object.error);
+ }
+ if (object.revisions) {
+ if (!Array.isArray(object.revisions))
+ throw TypeError(".google.cloud.documentai.v1.Document.revisions: array expected");
+ message.revisions = [];
+ for (var i = 0; i < object.revisions.length; ++i) {
+ if (typeof object.revisions[i] !== "object")
+ throw TypeError(".google.cloud.documentai.v1.Document.revisions: object expected");
+ message.revisions[i] = $root.google.cloud.documentai.v1.Document.Revision.fromObject(object.revisions[i]);
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a Document message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.documentai.v1.Document
+ * @static
+ * @param {google.cloud.documentai.v1.Document} message Document
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ Document.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults) {
+ object.textStyles = [];
+ object.pages = [];
+ object.entities = [];
+ object.entityRelations = [];
+ object.revisions = [];
+ object.textChanges = [];
+ }
+ if (options.defaults) {
+ object.mimeType = "";
+ object.text = "";
+ object.shardInfo = null;
+ object.error = null;
+ }
+ if (message.uri != null && message.hasOwnProperty("uri")) {
+ object.uri = message.uri;
+ if (options.oneofs)
+ object.source = "uri";
+ }
+ if (message.content != null && message.hasOwnProperty("content")) {
+ object.content = options.bytes === String ? $util.base64.encode(message.content, 0, message.content.length) : options.bytes === Array ? Array.prototype.slice.call(message.content) : message.content;
+ if (options.oneofs)
+ object.source = "content";
+ }
+ if (message.mimeType != null && message.hasOwnProperty("mimeType"))
+ object.mimeType = message.mimeType;
+ if (message.text != null && message.hasOwnProperty("text"))
+ object.text = message.text;
+ if (message.textStyles && message.textStyles.length) {
+ object.textStyles = [];
+ for (var j = 0; j < message.textStyles.length; ++j)
+ object.textStyles[j] = $root.google.cloud.documentai.v1.Document.Style.toObject(message.textStyles[j], options);
+ }
+ if (message.pages && message.pages.length) {
+ object.pages = [];
+ for (var j = 0; j < message.pages.length; ++j)
+ object.pages[j] = $root.google.cloud.documentai.v1.Document.Page.toObject(message.pages[j], options);
+ }
+ if (message.entities && message.entities.length) {
+ object.entities = [];
+ for (var j = 0; j < message.entities.length; ++j)
+ object.entities[j] = $root.google.cloud.documentai.v1.Document.Entity.toObject(message.entities[j], options);
+ }
+ if (message.entityRelations && message.entityRelations.length) {
+ object.entityRelations = [];
+ for (var j = 0; j < message.entityRelations.length; ++j)
+ object.entityRelations[j] = $root.google.cloud.documentai.v1.Document.EntityRelation.toObject(message.entityRelations[j], options);
+ }
+ if (message.shardInfo != null && message.hasOwnProperty("shardInfo"))
+ object.shardInfo = $root.google.cloud.documentai.v1.Document.ShardInfo.toObject(message.shardInfo, options);
+ if (message.error != null && message.hasOwnProperty("error"))
+ object.error = $root.google.rpc.Status.toObject(message.error, options);
+ if (message.revisions && message.revisions.length) {
+ object.revisions = [];
+ for (var j = 0; j < message.revisions.length; ++j)
+ object.revisions[j] = $root.google.cloud.documentai.v1.Document.Revision.toObject(message.revisions[j], options);
+ }
+ if (message.textChanges && message.textChanges.length) {
+ object.textChanges = [];
+ for (var j = 0; j < message.textChanges.length; ++j)
+ object.textChanges[j] = $root.google.cloud.documentai.v1.Document.TextChange.toObject(message.textChanges[j], options);
+ }
+ return object;
+ };
+
+ /**
+ * Converts this Document to JSON.
+ * @function toJSON
+ * @memberof google.cloud.documentai.v1.Document
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ Document.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for Document
+ * @function getTypeUrl
+ * @memberof google.cloud.documentai.v1.Document
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ Document.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.documentai.v1.Document";
+ };
+
+ Document.ShardInfo = (function() {
+
+ /**
+ * Properties of a ShardInfo.
+ * @memberof google.cloud.documentai.v1.Document
+ * @interface IShardInfo
+ * @property {number|Long|null} [shardIndex] ShardInfo shardIndex
+ * @property {number|Long|null} [shardCount] ShardInfo shardCount
+ * @property {number|Long|null} [textOffset] ShardInfo textOffset
+ */
+
+ /**
+ * Constructs a new ShardInfo.
+ * @memberof google.cloud.documentai.v1.Document
+ * @classdesc Represents a ShardInfo.
+ * @implements IShardInfo
+ * @constructor
+ * @param {google.cloud.documentai.v1.Document.IShardInfo=} [properties] Properties to set
+ */
+ function ShardInfo(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]];
+ }
+
+ /**
+ * ShardInfo shardIndex.
+ * @member {number|Long} shardIndex
+ * @memberof google.cloud.documentai.v1.Document.ShardInfo
+ * @instance
+ */
+ ShardInfo.prototype.shardIndex = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
+
+ /**
+ * ShardInfo shardCount.
+ * @member {number|Long} shardCount
+ * @memberof google.cloud.documentai.v1.Document.ShardInfo
+ * @instance
+ */
+ ShardInfo.prototype.shardCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
+
+ /**
+ * ShardInfo textOffset.
+ * @member {number|Long} textOffset
+ * @memberof google.cloud.documentai.v1.Document.ShardInfo
+ * @instance
+ */
+ ShardInfo.prototype.textOffset = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
+
+ /**
+ * Creates a new ShardInfo instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.documentai.v1.Document.ShardInfo
+ * @static
+ * @param {google.cloud.documentai.v1.Document.IShardInfo=} [properties] Properties to set
+ * @returns {google.cloud.documentai.v1.Document.ShardInfo} ShardInfo instance
+ */
+ ShardInfo.create = function create(properties) {
+ return new ShardInfo(properties);
+ };
+
+ /**
+ * Encodes the specified ShardInfo message. Does not implicitly {@link google.cloud.documentai.v1.Document.ShardInfo.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.documentai.v1.Document.ShardInfo
+ * @static
+ * @param {google.cloud.documentai.v1.Document.IShardInfo} message ShardInfo message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ShardInfo.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.shardIndex != null && Object.hasOwnProperty.call(message, "shardIndex"))
+ writer.uint32(/* id 1, wireType 0 =*/8).int64(message.shardIndex);
+ if (message.shardCount != null && Object.hasOwnProperty.call(message, "shardCount"))
+ writer.uint32(/* id 2, wireType 0 =*/16).int64(message.shardCount);
+ if (message.textOffset != null && Object.hasOwnProperty.call(message, "textOffset"))
+ writer.uint32(/* id 3, wireType 0 =*/24).int64(message.textOffset);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ShardInfo message, length delimited. Does not implicitly {@link google.cloud.documentai.v1.Document.ShardInfo.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.documentai.v1.Document.ShardInfo
+ * @static
+ * @param {google.cloud.documentai.v1.Document.IShardInfo} message ShardInfo message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ShardInfo.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ShardInfo message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.documentai.v1.Document.ShardInfo
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.documentai.v1.Document.ShardInfo} ShardInfo
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ShardInfo.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.documentai.v1.Document.ShardInfo();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.shardIndex = reader.int64();
+ break;
+ }
+ case 2: {
+ message.shardCount = reader.int64();
+ break;
+ }
+ case 3: {
+ message.textOffset = reader.int64();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ShardInfo message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.documentai.v1.Document.ShardInfo
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.documentai.v1.Document.ShardInfo} ShardInfo
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ShardInfo.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ShardInfo message.
+ * @function verify
+ * @memberof google.cloud.documentai.v1.Document.ShardInfo
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ShardInfo.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.shardIndex != null && message.hasOwnProperty("shardIndex"))
+ if (!$util.isInteger(message.shardIndex) && !(message.shardIndex && $util.isInteger(message.shardIndex.low) && $util.isInteger(message.shardIndex.high)))
+ return "shardIndex: integer|Long expected";
+ if (message.shardCount != null && message.hasOwnProperty("shardCount"))
+ if (!$util.isInteger(message.shardCount) && !(message.shardCount && $util.isInteger(message.shardCount.low) && $util.isInteger(message.shardCount.high)))
+ return "shardCount: integer|Long expected";
+ if (message.textOffset != null && message.hasOwnProperty("textOffset"))
+ if (!$util.isInteger(message.textOffset) && !(message.textOffset && $util.isInteger(message.textOffset.low) && $util.isInteger(message.textOffset.high)))
+ return "textOffset: integer|Long expected";
+ return null;
+ };
+
+ /**
+ * Creates a ShardInfo message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.documentai.v1.Document.ShardInfo
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.documentai.v1.Document.ShardInfo} ShardInfo
+ */
+ ShardInfo.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.documentai.v1.Document.ShardInfo)
+ return object;
+ var message = new $root.google.cloud.documentai.v1.Document.ShardInfo();
+ if (object.shardIndex != null)
+ if ($util.Long)
+ (message.shardIndex = $util.Long.fromValue(object.shardIndex)).unsigned = false;
+ else if (typeof object.shardIndex === "string")
+ message.shardIndex = parseInt(object.shardIndex, 10);
+ else if (typeof object.shardIndex === "number")
+ message.shardIndex = object.shardIndex;
+ else if (typeof object.shardIndex === "object")
+ message.shardIndex = new $util.LongBits(object.shardIndex.low >>> 0, object.shardIndex.high >>> 0).toNumber();
+ if (object.shardCount != null)
+ if ($util.Long)
+ (message.shardCount = $util.Long.fromValue(object.shardCount)).unsigned = false;
+ else if (typeof object.shardCount === "string")
+ message.shardCount = parseInt(object.shardCount, 10);
+ else if (typeof object.shardCount === "number")
+ message.shardCount = object.shardCount;
+ else if (typeof object.shardCount === "object")
+ message.shardCount = new $util.LongBits(object.shardCount.low >>> 0, object.shardCount.high >>> 0).toNumber();
+ if (object.textOffset != null)
+ if ($util.Long)
+ (message.textOffset = $util.Long.fromValue(object.textOffset)).unsigned = false;
+ else if (typeof object.textOffset === "string")
+ message.textOffset = parseInt(object.textOffset, 10);
+ else if (typeof object.textOffset === "number")
+ message.textOffset = object.textOffset;
+ else if (typeof object.textOffset === "object")
+ message.textOffset = new $util.LongBits(object.textOffset.low >>> 0, object.textOffset.high >>> 0).toNumber();
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ShardInfo message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.documentai.v1.Document.ShardInfo
+ * @static
+ * @param {google.cloud.documentai.v1.Document.ShardInfo} message ShardInfo
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ShardInfo.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ if ($util.Long) {
+ var long = new $util.Long(0, 0, false);
+ object.shardIndex = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
+ } else
+ object.shardIndex = options.longs === String ? "0" : 0;
+ if ($util.Long) {
+ var long = new $util.Long(0, 0, false);
+ object.shardCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
+ } else
+ object.shardCount = options.longs === String ? "0" : 0;
+ if ($util.Long) {
+ var long = new $util.Long(0, 0, false);
+ object.textOffset = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
+ } else
+ object.textOffset = options.longs === String ? "0" : 0;
+ }
+ if (message.shardIndex != null && message.hasOwnProperty("shardIndex"))
+ if (typeof message.shardIndex === "number")
+ object.shardIndex = options.longs === String ? String(message.shardIndex) : message.shardIndex;
+ else
+ object.shardIndex = options.longs === String ? $util.Long.prototype.toString.call(message.shardIndex) : options.longs === Number ? new $util.LongBits(message.shardIndex.low >>> 0, message.shardIndex.high >>> 0).toNumber() : message.shardIndex;
+ if (message.shardCount != null && message.hasOwnProperty("shardCount"))
+ if (typeof message.shardCount === "number")
+ object.shardCount = options.longs === String ? String(message.shardCount) : message.shardCount;
+ else
+ object.shardCount = options.longs === String ? $util.Long.prototype.toString.call(message.shardCount) : options.longs === Number ? new $util.LongBits(message.shardCount.low >>> 0, message.shardCount.high >>> 0).toNumber() : message.shardCount;
+ if (message.textOffset != null && message.hasOwnProperty("textOffset"))
+ if (typeof message.textOffset === "number")
+ object.textOffset = options.longs === String ? String(message.textOffset) : message.textOffset;
+ else
+ object.textOffset = options.longs === String ? $util.Long.prototype.toString.call(message.textOffset) : options.longs === Number ? new $util.LongBits(message.textOffset.low >>> 0, message.textOffset.high >>> 0).toNumber() : message.textOffset;
+ return object;
+ };
+
+ /**
+ * Converts this ShardInfo to JSON.
+ * @function toJSON
+ * @memberof google.cloud.documentai.v1.Document.ShardInfo
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ShardInfo.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ShardInfo
+ * @function getTypeUrl
+ * @memberof google.cloud.documentai.v1.Document.ShardInfo
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ShardInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.documentai.v1.Document.ShardInfo";
+ };
+
+ return ShardInfo;
+ })();
+
+ Document.Style = (function() {
+
+ /**
+ * Properties of a Style.
+ * @memberof google.cloud.documentai.v1.Document
+ * @interface IStyle
+ * @property {google.cloud.documentai.v1.Document.ITextAnchor|null} [textAnchor] Style textAnchor
+ * @property {google.type.IColor|null} [color] Style color
+ * @property {google.type.IColor|null} [backgroundColor] Style backgroundColor
+ * @property {string|null} [fontWeight] Style fontWeight
+ * @property {string|null} [textStyle] Style textStyle
+ * @property {string|null} [textDecoration] Style textDecoration
+ * @property {google.cloud.documentai.v1.Document.Style.IFontSize|null} [fontSize] Style fontSize
+ * @property {string|null} [fontFamily] Style fontFamily
+ */
+
+ /**
+ * Constructs a new Style.
+ * @memberof google.cloud.documentai.v1.Document
+ * @classdesc Represents a Style.
+ * @implements IStyle
+ * @constructor
+ * @param {google.cloud.documentai.v1.Document.IStyle=} [properties] Properties to set
+ */
+ function Style(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]];
+ }
+
+ /**
+ * Style textAnchor.
+ * @member {google.cloud.documentai.v1.Document.ITextAnchor|null|undefined} textAnchor
+ * @memberof google.cloud.documentai.v1.Document.Style
+ * @instance
+ */
+ Style.prototype.textAnchor = null;
+
+ /**
+ * Style color.
+ * @member {google.type.IColor|null|undefined} color
+ * @memberof google.cloud.documentai.v1.Document.Style
+ * @instance
+ */
+ Style.prototype.color = null;
+
+ /**
+ * Style backgroundColor.
+ * @member {google.type.IColor|null|undefined} backgroundColor
+ * @memberof google.cloud.documentai.v1.Document.Style
+ * @instance
+ */
+ Style.prototype.backgroundColor = null;
+
+ /**
+ * Style fontWeight.
+ * @member {string} fontWeight
+ * @memberof google.cloud.documentai.v1.Document.Style
+ * @instance
+ */
+ Style.prototype.fontWeight = "";
+
+ /**
+ * Style textStyle.
+ * @member {string} textStyle
+ * @memberof google.cloud.documentai.v1.Document.Style
+ * @instance
+ */
+ Style.prototype.textStyle = "";
+
+ /**
+ * Style textDecoration.
+ * @member {string} textDecoration
+ * @memberof google.cloud.documentai.v1.Document.Style
+ * @instance
+ */
+ Style.prototype.textDecoration = "";
+
+ /**
+ * Style fontSize.
+ * @member {google.cloud.documentai.v1.Document.Style.IFontSize|null|undefined} fontSize
+ * @memberof google.cloud.documentai.v1.Document.Style
+ * @instance
+ */
+ Style.prototype.fontSize = null;
+
+ /**
+ * Style fontFamily.
+ * @member {string} fontFamily
+ * @memberof google.cloud.documentai.v1.Document.Style
+ * @instance
+ */
+ Style.prototype.fontFamily = "";
+
+ /**
+ * Creates a new Style instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.documentai.v1.Document.Style
+ * @static
+ * @param {google.cloud.documentai.v1.Document.IStyle=} [properties] Properties to set
+ * @returns {google.cloud.documentai.v1.Document.Style} Style instance
+ */
+ Style.create = function create(properties) {
+ return new Style(properties);
+ };
+
+ /**
+ * Encodes the specified Style message. Does not implicitly {@link google.cloud.documentai.v1.Document.Style.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.documentai.v1.Document.Style
+ * @static
+ * @param {google.cloud.documentai.v1.Document.IStyle} message Style message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Style.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.textAnchor != null && Object.hasOwnProperty.call(message, "textAnchor"))
+ $root.google.cloud.documentai.v1.Document.TextAnchor.encode(message.textAnchor, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
+ if (message.color != null && Object.hasOwnProperty.call(message, "color"))
+ $root.google.type.Color.encode(message.color, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
+ if (message.backgroundColor != null && Object.hasOwnProperty.call(message, "backgroundColor"))
+ $root.google.type.Color.encode(message.backgroundColor, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
+ if (message.fontWeight != null && Object.hasOwnProperty.call(message, "fontWeight"))
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.fontWeight);
+ if (message.textStyle != null && Object.hasOwnProperty.call(message, "textStyle"))
+ writer.uint32(/* id 5, wireType 2 =*/42).string(message.textStyle);
+ if (message.textDecoration != null && Object.hasOwnProperty.call(message, "textDecoration"))
+ writer.uint32(/* id 6, wireType 2 =*/50).string(message.textDecoration);
+ if (message.fontSize != null && Object.hasOwnProperty.call(message, "fontSize"))
+ $root.google.cloud.documentai.v1.Document.Style.FontSize.encode(message.fontSize, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
+ if (message.fontFamily != null && Object.hasOwnProperty.call(message, "fontFamily"))
+ writer.uint32(/* id 8, wireType 2 =*/66).string(message.fontFamily);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified Style message, length delimited. Does not implicitly {@link google.cloud.documentai.v1.Document.Style.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.documentai.v1.Document.Style
+ * @static
+ * @param {google.cloud.documentai.v1.Document.IStyle} message Style message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Style.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a Style message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.documentai.v1.Document.Style
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.documentai.v1.Document.Style} Style
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Style.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.documentai.v1.Document.Style();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.textAnchor = $root.google.cloud.documentai.v1.Document.TextAnchor.decode(reader, reader.uint32());
+ break;
+ }
+ case 2: {
+ message.color = $root.google.type.Color.decode(reader, reader.uint32());
+ break;
+ }
+ case 3: {
+ message.backgroundColor = $root.google.type.Color.decode(reader, reader.uint32());
+ break;
+ }
+ case 4: {
+ message.fontWeight = reader.string();
+ break;
+ }
+ case 5: {
+ message.textStyle = reader.string();
+ break;
+ }
+ case 6: {
+ message.textDecoration = reader.string();
+ break;
+ }
+ case 7: {
+ message.fontSize = $root.google.cloud.documentai.v1.Document.Style.FontSize.decode(reader, reader.uint32());
+ break;
+ }
+ case 8: {
+ message.fontFamily = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a Style message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.documentai.v1.Document.Style
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.documentai.v1.Document.Style} Style
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Style.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a Style message.
+ * @function verify
+ * @memberof google.cloud.documentai.v1.Document.Style
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ Style.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.textAnchor != null && message.hasOwnProperty("textAnchor")) {
+ var error = $root.google.cloud.documentai.v1.Document.TextAnchor.verify(message.textAnchor);
+ if (error)
+ return "textAnchor." + error;
+ }
+ if (message.color != null && message.hasOwnProperty("color")) {
+ var error = $root.google.type.Color.verify(message.color);
+ if (error)
+ return "color." + error;
+ }
+ if (message.backgroundColor != null && message.hasOwnProperty("backgroundColor")) {
+ var error = $root.google.type.Color.verify(message.backgroundColor);
+ if (error)
+ return "backgroundColor." + error;
+ }
+ if (message.fontWeight != null && message.hasOwnProperty("fontWeight"))
+ if (!$util.isString(message.fontWeight))
+ return "fontWeight: string expected";
+ if (message.textStyle != null && message.hasOwnProperty("textStyle"))
+ if (!$util.isString(message.textStyle))
+ return "textStyle: string expected";
+ if (message.textDecoration != null && message.hasOwnProperty("textDecoration"))
+ if (!$util.isString(message.textDecoration))
+ return "textDecoration: string expected";
+ if (message.fontSize != null && message.hasOwnProperty("fontSize")) {
+ var error = $root.google.cloud.documentai.v1.Document.Style.FontSize.verify(message.fontSize);
+ if (error)
+ return "fontSize." + error;
+ }
+ if (message.fontFamily != null && message.hasOwnProperty("fontFamily"))
+ if (!$util.isString(message.fontFamily))
+ return "fontFamily: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a Style message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.documentai.v1.Document.Style
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.documentai.v1.Document.Style} Style
+ */
+ Style.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.documentai.v1.Document.Style)
+ return object;
+ var message = new $root.google.cloud.documentai.v1.Document.Style();
+ if (object.textAnchor != null) {
+ if (typeof object.textAnchor !== "object")
+ throw TypeError(".google.cloud.documentai.v1.Document.Style.textAnchor: object expected");
+ message.textAnchor = $root.google.cloud.documentai.v1.Document.TextAnchor.fromObject(object.textAnchor);
+ }
+ if (object.color != null) {
+ if (typeof object.color !== "object")
+ throw TypeError(".google.cloud.documentai.v1.Document.Style.color: object expected");
+ message.color = $root.google.type.Color.fromObject(object.color);
+ }
+ if (object.backgroundColor != null) {
+ if (typeof object.backgroundColor !== "object")
+ throw TypeError(".google.cloud.documentai.v1.Document.Style.backgroundColor: object expected");
+ message.backgroundColor = $root.google.type.Color.fromObject(object.backgroundColor);
+ }
+ if (object.fontWeight != null)
+ message.fontWeight = String(object.fontWeight);
+ if (object.textStyle != null)
+ message.textStyle = String(object.textStyle);
+ if (object.textDecoration != null)
+ message.textDecoration = String(object.textDecoration);
+ if (object.fontSize != null) {
+ if (typeof object.fontSize !== "object")
+ throw TypeError(".google.cloud.documentai.v1.Document.Style.fontSize: object expected");
+ message.fontSize = $root.google.cloud.documentai.v1.Document.Style.FontSize.fromObject(object.fontSize);
+ }
+ if (object.fontFamily != null)
+ message.fontFamily = String(object.fontFamily);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a Style message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.documentai.v1.Document.Style
+ * @static
+ * @param {google.cloud.documentai.v1.Document.Style} message Style
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ Style.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.textAnchor = null;
+ object.color = null;
+ object.backgroundColor = null;
+ object.fontWeight = "";
+ object.textStyle = "";
+ object.textDecoration = "";
+ object.fontSize = null;
+ object.fontFamily = "";
+ }
+ if (message.textAnchor != null && message.hasOwnProperty("textAnchor"))
+ object.textAnchor = $root.google.cloud.documentai.v1.Document.TextAnchor.toObject(message.textAnchor, options);
+ if (message.color != null && message.hasOwnProperty("color"))
+ object.color = $root.google.type.Color.toObject(message.color, options);
+ if (message.backgroundColor != null && message.hasOwnProperty("backgroundColor"))
+ object.backgroundColor = $root.google.type.Color.toObject(message.backgroundColor, options);
+ if (message.fontWeight != null && message.hasOwnProperty("fontWeight"))
+ object.fontWeight = message.fontWeight;
+ if (message.textStyle != null && message.hasOwnProperty("textStyle"))
+ object.textStyle = message.textStyle;
+ if (message.textDecoration != null && message.hasOwnProperty("textDecoration"))
+ object.textDecoration = message.textDecoration;
+ if (message.fontSize != null && message.hasOwnProperty("fontSize"))
+ object.fontSize = $root.google.cloud.documentai.v1.Document.Style.FontSize.toObject(message.fontSize, options);
+ if (message.fontFamily != null && message.hasOwnProperty("fontFamily"))
+ object.fontFamily = message.fontFamily;
+ return object;
+ };
+
+ /**
+ * Converts this Style to JSON.
+ * @function toJSON
+ * @memberof google.cloud.documentai.v1.Document.Style
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ Style.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for Style
+ * @function getTypeUrl
+ * @memberof google.cloud.documentai.v1.Document.Style
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ Style.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.documentai.v1.Document.Style";
+ };
+
+ Style.FontSize = (function() {
+
+ /**
+ * Properties of a FontSize.
+ * @memberof google.cloud.documentai.v1.Document.Style
+ * @interface IFontSize
+ * @property {number|null} [size] FontSize size
+ * @property {string|null} [unit] FontSize unit
+ */
+
+ /**
+ * Constructs a new FontSize.
+ * @memberof google.cloud.documentai.v1.Document.Style
+ * @classdesc Represents a FontSize.
+ * @implements IFontSize
+ * @constructor
+ * @param {google.cloud.documentai.v1.Document.Style.IFontSize=} [properties] Properties to set
+ */
+ function FontSize(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]];
+ }
+
+ /**
+ * FontSize size.
+ * @member {number} size
+ * @memberof google.cloud.documentai.v1.Document.Style.FontSize
+ * @instance
+ */
+ FontSize.prototype.size = 0;
+
+ /**
+ * FontSize unit.
+ * @member {string} unit
+ * @memberof google.cloud.documentai.v1.Document.Style.FontSize
+ * @instance
+ */
+ FontSize.prototype.unit = "";
+
+ /**
+ * Creates a new FontSize instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.documentai.v1.Document.Style.FontSize
+ * @static
+ * @param {google.cloud.documentai.v1.Document.Style.IFontSize=} [properties] Properties to set
+ * @returns {google.cloud.documentai.v1.Document.Style.FontSize} FontSize instance
+ */
+ FontSize.create = function create(properties) {
+ return new FontSize(properties);
+ };
+
+ /**
+ * Encodes the specified FontSize message. Does not implicitly {@link google.cloud.documentai.v1.Document.Style.FontSize.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.documentai.v1.Document.Style.FontSize
+ * @static
+ * @param {google.cloud.documentai.v1.Document.Style.IFontSize} message FontSize message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ FontSize.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.size != null && Object.hasOwnProperty.call(message, "size"))
+ writer.uint32(/* id 1, wireType 5 =*/13).float(message.size);
+ if (message.unit != null && Object.hasOwnProperty.call(message, "unit"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.unit);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified FontSize message, length delimited. Does not implicitly {@link google.cloud.documentai.v1.Document.Style.FontSize.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.documentai.v1.Document.Style.FontSize
+ * @static
+ * @param {google.cloud.documentai.v1.Document.Style.IFontSize} message FontSize message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ FontSize.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a FontSize message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.documentai.v1.Document.Style.FontSize
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.documentai.v1.Document.Style.FontSize} FontSize
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ FontSize.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.documentai.v1.Document.Style.FontSize();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.size = reader.float();
+ break;
+ }
+ case 2: {
+ message.unit = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a FontSize message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.documentai.v1.Document.Style.FontSize
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.documentai.v1.Document.Style.FontSize} FontSize
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ FontSize.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a FontSize message.
+ * @function verify
+ * @memberof google.cloud.documentai.v1.Document.Style.FontSize
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ FontSize.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.size != null && message.hasOwnProperty("size"))
+ if (typeof message.size !== "number")
+ return "size: number expected";
+ if (message.unit != null && message.hasOwnProperty("unit"))
+ if (!$util.isString(message.unit))
+ return "unit: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a FontSize message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.documentai.v1.Document.Style.FontSize
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.documentai.v1.Document.Style.FontSize} FontSize
+ */
+ FontSize.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.documentai.v1.Document.Style.FontSize)
+ return object;
+ var message = new $root.google.cloud.documentai.v1.Document.Style.FontSize();
+ if (object.size != null)
+ message.size = Number(object.size);
+ if (object.unit != null)
+ message.unit = String(object.unit);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a FontSize message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.documentai.v1.Document.Style.FontSize
+ * @static
+ * @param {google.cloud.documentai.v1.Document.Style.FontSize} message FontSize
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ FontSize.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.size = 0;
+ object.unit = "";
+ }
+ if (message.size != null && message.hasOwnProperty("size"))
+ object.size = options.json && !isFinite(message.size) ? String(message.size) : message.size;
+ if (message.unit != null && message.hasOwnProperty("unit"))
+ object.unit = message.unit;
+ return object;
+ };
+
+ /**
+ * Converts this FontSize to JSON.
+ * @function toJSON
+ * @memberof google.cloud.documentai.v1.Document.Style.FontSize
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ FontSize.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for FontSize
+ * @function getTypeUrl
+ * @memberof google.cloud.documentai.v1.Document.Style.FontSize
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ FontSize.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.documentai.v1.Document.Style.FontSize";
+ };
+
+ return FontSize;
+ })();
+
+ return Style;
+ })();
+
+ Document.Page = (function() {
+
+ /**
+ * Properties of a Page.
+ * @memberof google.cloud.documentai.v1.Document
+ * @interface IPage
+ * @property {number|null} [pageNumber] Page pageNumber
+ * @property {google.cloud.documentai.v1.Document.Page.IImage|null} [image] Page image
+ * @property {Array.|null} [transforms] Page transforms
+ * @property {google.cloud.documentai.v1.Document.Page.IDimension|null} [dimension] Page dimension
+ * @property {google.cloud.documentai.v1.Document.Page.ILayout|null} [layout] Page layout
+ * @property {Array.|null} [detectedLanguages] Page detectedLanguages
+ * @property {Array.|null} [blocks] Page blocks
+ * @property {Array.|null} [paragraphs] Page paragraphs
+ * @property {Array.|null} [lines] Page lines
+ * @property {Array.|null} [tokens] Page tokens
+ * @property {Array.|null} [visualElements] Page visualElements
+ * @property {Array.|null} [tables] Page tables
+ * @property {Array.|null} [formFields] Page formFields
+ * @property {Array.|null} [symbols] Page symbols
+ * @property {Array.|null} [detectedBarcodes] Page detectedBarcodes
+ * @property {google.cloud.documentai.v1.Document.Page.IImageQualityScores|null} [imageQualityScores] Page imageQualityScores
+ * @property {google.cloud.documentai.v1.Document.IProvenance|null} [provenance] Page provenance
+ */
+
+ /**
+ * Constructs a new Page.
+ * @memberof google.cloud.documentai.v1.Document
+ * @classdesc Represents a Page.
+ * @implements IPage
+ * @constructor
+ * @param {google.cloud.documentai.v1.Document.IPage=} [properties] Properties to set
+ */
+ function Page(properties) {
+ this.transforms = [];
+ this.detectedLanguages = [];
+ this.blocks = [];
+ this.paragraphs = [];
+ this.lines = [];
+ this.tokens = [];
+ this.visualElements = [];
+ this.tables = [];
+ this.formFields = [];
+ this.symbols = [];
+ this.detectedBarcodes = [];
+ 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]];
+ }
+
+ /**
+ * Page pageNumber.
+ * @member {number} pageNumber
+ * @memberof google.cloud.documentai.v1.Document.Page
+ * @instance
+ */
+ Page.prototype.pageNumber = 0;
+
+ /**
+ * Page image.
+ * @member {google.cloud.documentai.v1.Document.Page.IImage|null|undefined} image
+ * @memberof google.cloud.documentai.v1.Document.Page
+ * @instance
+ */
+ Page.prototype.image = null;
+
+ /**
+ * Page transforms.
+ * @member {Array.} transforms
+ * @memberof google.cloud.documentai.v1.Document.Page
+ * @instance
+ */
+ Page.prototype.transforms = $util.emptyArray;
+
+ /**
+ * Page dimension.
+ * @member {google.cloud.documentai.v1.Document.Page.IDimension|null|undefined} dimension
+ * @memberof google.cloud.documentai.v1.Document.Page
+ * @instance
+ */
+ Page.prototype.dimension = null;
+
+ /**
+ * Page layout.
+ * @member {google.cloud.documentai.v1.Document.Page.ILayout|null|undefined} layout
+ * @memberof google.cloud.documentai.v1.Document.Page
+ * @instance
+ */
+ Page.prototype.layout = null;
+
+ /**
+ * Page detectedLanguages.
+ * @member {Array.} detectedLanguages
+ * @memberof google.cloud.documentai.v1.Document.Page
+ * @instance
+ */
+ Page.prototype.detectedLanguages = $util.emptyArray;
+
+ /**
+ * Page blocks.
+ * @member {Array.} blocks
+ * @memberof google.cloud.documentai.v1.Document.Page
+ * @instance
+ */
+ Page.prototype.blocks = $util.emptyArray;
+
+ /**
+ * Page paragraphs.
+ * @member {Array.} paragraphs
+ * @memberof google.cloud.documentai.v1.Document.Page
+ * @instance
+ */
+ Page.prototype.paragraphs = $util.emptyArray;
+
+ /**
+ * Page lines.
+ * @member {Array.} lines
+ * @memberof google.cloud.documentai.v1.Document.Page
+ * @instance
+ */
+ Page.prototype.lines = $util.emptyArray;
+
+ /**
+ * Page tokens.
+ * @member {Array.} tokens
+ * @memberof google.cloud.documentai.v1.Document.Page
+ * @instance
+ */
+ Page.prototype.tokens = $util.emptyArray;
+
+ /**
+ * Page visualElements.
+ * @member {Array.} visualElements
+ * @memberof google.cloud.documentai.v1.Document.Page
+ * @instance
+ */
+ Page.prototype.visualElements = $util.emptyArray;
+
+ /**
+ * Page tables.
+ * @member {Array.} tables
+ * @memberof google.cloud.documentai.v1.Document.Page
+ * @instance
+ */
+ Page.prototype.tables = $util.emptyArray;
+
+ /**
+ * Page formFields.
+ * @member {Array.} formFields
+ * @memberof google.cloud.documentai.v1.Document.Page
+ * @instance
+ */
+ Page.prototype.formFields = $util.emptyArray;
+
+ /**
+ * Page symbols.
+ * @member {Array.} symbols
+ * @memberof google.cloud.documentai.v1.Document.Page
+ * @instance
+ */
+ Page.prototype.symbols = $util.emptyArray;
+
+ /**
+ * Page detectedBarcodes.
+ * @member {Array.} detectedBarcodes
+ * @memberof google.cloud.documentai.v1.Document.Page
+ * @instance
+ */
+ Page.prototype.detectedBarcodes = $util.emptyArray;
+
+ /**
+ * Page imageQualityScores.
+ * @member {google.cloud.documentai.v1.Document.Page.IImageQualityScores|null|undefined} imageQualityScores
+ * @memberof google.cloud.documentai.v1.Document.Page
+ * @instance
+ */
+ Page.prototype.imageQualityScores = null;
+
+ /**
+ * Page provenance.
+ * @member {google.cloud.documentai.v1.Document.IProvenance|null|undefined} provenance
+ * @memberof google.cloud.documentai.v1.Document.Page
+ * @instance
+ */
+ Page.prototype.provenance = null;
+
+ /**
+ * Creates a new Page instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.documentai.v1.Document.Page
+ * @static
+ * @param {google.cloud.documentai.v1.Document.IPage=} [properties] Properties to set
+ * @returns {google.cloud.documentai.v1.Document.Page} Page instance
+ */
+ Page.create = function create(properties) {
+ return new Page(properties);
+ };
+
+ /**
+ * Encodes the specified Page message. Does not implicitly {@link google.cloud.documentai.v1.Document.Page.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.documentai.v1.Document.Page
+ * @static
+ * @param {google.cloud.documentai.v1.Document.IPage} message Page message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Page.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.pageNumber != null && Object.hasOwnProperty.call(message, "pageNumber"))
+ writer.uint32(/* id 1, wireType 0 =*/8).int32(message.pageNumber);
+ if (message.dimension != null && Object.hasOwnProperty.call(message, "dimension"))
+ $root.google.cloud.documentai.v1.Document.Page.Dimension.encode(message.dimension, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
+ if (message.layout != null && Object.hasOwnProperty.call(message, "layout"))
+ $root.google.cloud.documentai.v1.Document.Page.Layout.encode(message.layout, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
+ if (message.detectedLanguages != null && message.detectedLanguages.length)
+ for (var i = 0; i < message.detectedLanguages.length; ++i)
+ $root.google.cloud.documentai.v1.Document.Page.DetectedLanguage.encode(message.detectedLanguages[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
+ if (message.blocks != null && message.blocks.length)
+ for (var i = 0; i < message.blocks.length; ++i)
+ $root.google.cloud.documentai.v1.Document.Page.Block.encode(message.blocks[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
+ if (message.paragraphs != null && message.paragraphs.length)
+ for (var i = 0; i < message.paragraphs.length; ++i)
+ $root.google.cloud.documentai.v1.Document.Page.Paragraph.encode(message.paragraphs[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
+ if (message.lines != null && message.lines.length)
+ for (var i = 0; i < message.lines.length; ++i)
+ $root.google.cloud.documentai.v1.Document.Page.Line.encode(message.lines[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
+ if (message.tokens != null && message.tokens.length)
+ for (var i = 0; i < message.tokens.length; ++i)
+ $root.google.cloud.documentai.v1.Document.Page.Token.encode(message.tokens[i], writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim();
+ if (message.visualElements != null && message.visualElements.length)
+ for (var i = 0; i < message.visualElements.length; ++i)
+ $root.google.cloud.documentai.v1.Document.Page.VisualElement.encode(message.visualElements[i], writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim();
+ if (message.tables != null && message.tables.length)
+ for (var i = 0; i < message.tables.length; ++i)
+ $root.google.cloud.documentai.v1.Document.Page.Table.encode(message.tables[i], writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim();
+ if (message.formFields != null && message.formFields.length)
+ for (var i = 0; i < message.formFields.length; ++i)
+ $root.google.cloud.documentai.v1.Document.Page.FormField.encode(message.formFields[i], writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim();
+ if (message.symbols != null && message.symbols.length)
+ for (var i = 0; i < message.symbols.length; ++i)
+ $root.google.cloud.documentai.v1.Document.Page.Symbol.encode(message.symbols[i], writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim();
+ if (message.image != null && Object.hasOwnProperty.call(message, "image"))
+ $root.google.cloud.documentai.v1.Document.Page.Image.encode(message.image, writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim();
+ if (message.transforms != null && message.transforms.length)
+ for (var i = 0; i < message.transforms.length; ++i)
+ $root.google.cloud.documentai.v1.Document.Page.Matrix.encode(message.transforms[i], writer.uint32(/* id 14, wireType 2 =*/114).fork()).ldelim();
+ if (message.detectedBarcodes != null && message.detectedBarcodes.length)
+ for (var i = 0; i < message.detectedBarcodes.length; ++i)
+ $root.google.cloud.documentai.v1.Document.Page.DetectedBarcode.encode(message.detectedBarcodes[i], writer.uint32(/* id 15, wireType 2 =*/122).fork()).ldelim();
+ if (message.provenance != null && Object.hasOwnProperty.call(message, "provenance"))
+ $root.google.cloud.documentai.v1.Document.Provenance.encode(message.provenance, writer.uint32(/* id 16, wireType 2 =*/130).fork()).ldelim();
+ if (message.imageQualityScores != null && Object.hasOwnProperty.call(message, "imageQualityScores"))
+ $root.google.cloud.documentai.v1.Document.Page.ImageQualityScores.encode(message.imageQualityScores, writer.uint32(/* id 17, wireType 2 =*/138).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified Page message, length delimited. Does not implicitly {@link google.cloud.documentai.v1.Document.Page.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.documentai.v1.Document.Page
+ * @static
+ * @param {google.cloud.documentai.v1.Document.IPage} message Page message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Page.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a Page message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.documentai.v1.Document.Page
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.documentai.v1.Document.Page} Page
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Page.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.documentai.v1.Document.Page();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.pageNumber = reader.int32();
+ break;
+ }
+ case 13: {
+ message.image = $root.google.cloud.documentai.v1.Document.Page.Image.decode(reader, reader.uint32());
+ break;
+ }
+ case 14: {
+ if (!(message.transforms && message.transforms.length))
+ message.transforms = [];
+ message.transforms.push($root.google.cloud.documentai.v1.Document.Page.Matrix.decode(reader, reader.uint32()));
+ break;
+ }
+ case 2: {
+ message.dimension = $root.google.cloud.documentai.v1.Document.Page.Dimension.decode(reader, reader.uint32());
+ break;
+ }
+ case 3: {
+ message.layout = $root.google.cloud.documentai.v1.Document.Page.Layout.decode(reader, reader.uint32());
+ break;
+ }
+ case 4: {
+ if (!(message.detectedLanguages && message.detectedLanguages.length))
+ message.detectedLanguages = [];
+ message.detectedLanguages.push($root.google.cloud.documentai.v1.Document.Page.DetectedLanguage.decode(reader, reader.uint32()));
+ break;
+ }
+ case 5: {
+ if (!(message.blocks && message.blocks.length))
+ message.blocks = [];
+ message.blocks.push($root.google.cloud.documentai.v1.Document.Page.Block.decode(reader, reader.uint32()));
+ break;
+ }
+ case 6: {
+ if (!(message.paragraphs && message.paragraphs.length))
+ message.paragraphs = [];
+ message.paragraphs.push($root.google.cloud.documentai.v1.Document.Page.Paragraph.decode(reader, reader.uint32()));
+ break;
+ }
+ case 7: {
+ if (!(message.lines && message.lines.length))
+ message.lines = [];
+ message.lines.push($root.google.cloud.documentai.v1.Document.Page.Line.decode(reader, reader.uint32()));
+ break;
+ }
+ case 8: {
+ if (!(message.tokens && message.tokens.length))
+ message.tokens = [];
+ message.tokens.push($root.google.cloud.documentai.v1.Document.Page.Token.decode(reader, reader.uint32()));
+ break;
+ }
+ case 9: {
+ if (!(message.visualElements && message.visualElements.length))
+ message.visualElements = [];
+ message.visualElements.push($root.google.cloud.documentai.v1.Document.Page.VisualElement.decode(reader, reader.uint32()));
+ break;
+ }
+ case 10: {
+ if (!(message.tables && message.tables.length))
+ message.tables = [];
+ message.tables.push($root.google.cloud.documentai.v1.Document.Page.Table.decode(reader, reader.uint32()));
+ break;
+ }
+ case 11: {
+ if (!(message.formFields && message.formFields.length))
+ message.formFields = [];
+ message.formFields.push($root.google.cloud.documentai.v1.Document.Page.FormField.decode(reader, reader.uint32()));
+ break;
+ }
+ case 12: {
+ if (!(message.symbols && message.symbols.length))
+ message.symbols = [];
+ message.symbols.push($root.google.cloud.documentai.v1.Document.Page.Symbol.decode(reader, reader.uint32()));
+ break;
+ }
+ case 15: {
+ if (!(message.detectedBarcodes && message.detectedBarcodes.length))
+ message.detectedBarcodes = [];
+ message.detectedBarcodes.push($root.google.cloud.documentai.v1.Document.Page.DetectedBarcode.decode(reader, reader.uint32()));
+ break;
+ }
+ case 17: {
+ message.imageQualityScores = $root.google.cloud.documentai.v1.Document.Page.ImageQualityScores.decode(reader, reader.uint32());
+ break;
+ }
+ case 16: {
+ message.provenance = $root.google.cloud.documentai.v1.Document.Provenance.decode(reader, reader.uint32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a Page message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.documentai.v1.Document.Page
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.documentai.v1.Document.Page} Page
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Page.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a Page message.
+ * @function verify
+ * @memberof google.cloud.documentai.v1.Document.Page
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ Page.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.pageNumber != null && message.hasOwnProperty("pageNumber"))
+ if (!$util.isInteger(message.pageNumber))
+ return "pageNumber: integer expected";
+ if (message.image != null && message.hasOwnProperty("image")) {
+ var error = $root.google.cloud.documentai.v1.Document.Page.Image.verify(message.image);
+ if (error)
+ return "image." + error;
+ }
+ if (message.transforms != null && message.hasOwnProperty("transforms")) {
+ if (!Array.isArray(message.transforms))
+ return "transforms: array expected";
+ for (var i = 0; i < message.transforms.length; ++i) {
+ var error = $root.google.cloud.documentai.v1.Document.Page.Matrix.verify(message.transforms[i]);
+ if (error)
+ return "transforms." + error;
+ }
+ }
+ if (message.dimension != null && message.hasOwnProperty("dimension")) {
+ var error = $root.google.cloud.documentai.v1.Document.Page.Dimension.verify(message.dimension);
+ if (error)
+ return "dimension." + error;
+ }
+ if (message.layout != null && message.hasOwnProperty("layout")) {
+ var error = $root.google.cloud.documentai.v1.Document.Page.Layout.verify(message.layout);
+ if (error)
+ return "layout." + error;
+ }
+ if (message.detectedLanguages != null && message.hasOwnProperty("detectedLanguages")) {
+ if (!Array.isArray(message.detectedLanguages))
+ return "detectedLanguages: array expected";
+ for (var i = 0; i < message.detectedLanguages.length; ++i) {
+ var error = $root.google.cloud.documentai.v1.Document.Page.DetectedLanguage.verify(message.detectedLanguages[i]);
+ if (error)
+ return "detectedLanguages." + error;
+ }
+ }
+ if (message.blocks != null && message.hasOwnProperty("blocks")) {
+ if (!Array.isArray(message.blocks))
+ return "blocks: array expected";
+ for (var i = 0; i < message.blocks.length; ++i) {
+ var error = $root.google.cloud.documentai.v1.Document.Page.Block.verify(message.blocks[i]);
+ if (error)
+ return "blocks." + error;
+ }
+ }
+ if (message.paragraphs != null && message.hasOwnProperty("paragraphs")) {
+ if (!Array.isArray(message.paragraphs))
+ return "paragraphs: array expected";
+ for (var i = 0; i < message.paragraphs.length; ++i) {
+ var error = $root.google.cloud.documentai.v1.Document.Page.Paragraph.verify(message.paragraphs[i]);
+ if (error)
+ return "paragraphs." + error;
+ }
+ }
+ if (message.lines != null && message.hasOwnProperty("lines")) {
+ if (!Array.isArray(message.lines))
+ return "lines: array expected";
+ for (var i = 0; i < message.lines.length; ++i) {
+ var error = $root.google.cloud.documentai.v1.Document.Page.Line.verify(message.lines[i]);
+ if (error)
+ return "lines." + error;
+ }
+ }
+ if (message.tokens != null && message.hasOwnProperty("tokens")) {
+ if (!Array.isArray(message.tokens))
+ return "tokens: array expected";
+ for (var i = 0; i < message.tokens.length; ++i) {
+ var error = $root.google.cloud.documentai.v1.Document.Page.Token.verify(message.tokens[i]);
+ if (error)
+ return "tokens." + error;
+ }
+ }
+ if (message.visualElements != null && message.hasOwnProperty("visualElements")) {
+ if (!Array.isArray(message.visualElements))
+ return "visualElements: array expected";
+ for (var i = 0; i < message.visualElements.length; ++i) {
+ var error = $root.google.cloud.documentai.v1.Document.Page.VisualElement.verify(message.visualElements[i]);
+ if (error)
+ return "visualElements." + error;
+ }
+ }
+ if (message.tables != null && message.hasOwnProperty("tables")) {
+ if (!Array.isArray(message.tables))
+ return "tables: array expected";
+ for (var i = 0; i < message.tables.length; ++i) {
+ var error = $root.google.cloud.documentai.v1.Document.Page.Table.verify(message.tables[i]);
+ if (error)
+ return "tables." + error;
+ }
+ }
+ if (message.formFields != null && message.hasOwnProperty("formFields")) {
+ if (!Array.isArray(message.formFields))
+ return "formFields: array expected";
+ for (var i = 0; i < message.formFields.length; ++i) {
+ var error = $root.google.cloud.documentai.v1.Document.Page.FormField.verify(message.formFields[i]);
+ if (error)
+ return "formFields." + error;
+ }
+ }
+ if (message.symbols != null && message.hasOwnProperty("symbols")) {
+ if (!Array.isArray(message.symbols))
+ return "symbols: array expected";
+ for (var i = 0; i < message.symbols.length; ++i) {
+ var error = $root.google.cloud.documentai.v1.Document.Page.Symbol.verify(message.symbols[i]);
+ if (error)
+ return "symbols." + error;
+ }
+ }
+ if (message.detectedBarcodes != null && message.hasOwnProperty("detectedBarcodes")) {
+ if (!Array.isArray(message.detectedBarcodes))
+ return "detectedBarcodes: array expected";
+ for (var i = 0; i < message.detectedBarcodes.length; ++i) {
+ var error = $root.google.cloud.documentai.v1.Document.Page.DetectedBarcode.verify(message.detectedBarcodes[i]);
+ if (error)
+ return "detectedBarcodes." + error;
+ }
+ }
+ if (message.imageQualityScores != null && message.hasOwnProperty("imageQualityScores")) {
+ var error = $root.google.cloud.documentai.v1.Document.Page.ImageQualityScores.verify(message.imageQualityScores);
+ if (error)
+ return "imageQualityScores." + error;
+ }
+ if (message.provenance != null && message.hasOwnProperty("provenance")) {
+ var error = $root.google.cloud.documentai.v1.Document.Provenance.verify(message.provenance);
+ if (error)
+ return "provenance." + error;
+ }
+ return null;
+ };
+
+ /**
+ * Creates a Page message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.documentai.v1.Document.Page
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.documentai.v1.Document.Page} Page
+ */
+ Page.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.documentai.v1.Document.Page)
+ return object;
+ var message = new $root.google.cloud.documentai.v1.Document.Page();
+ if (object.pageNumber != null)
+ message.pageNumber = object.pageNumber | 0;
+ if (object.image != null) {
+ if (typeof object.image !== "object")
+ throw TypeError(".google.cloud.documentai.v1.Document.Page.image: object expected");
+ message.image = $root.google.cloud.documentai.v1.Document.Page.Image.fromObject(object.image);
+ }
+ if (object.transforms) {
+ if (!Array.isArray(object.transforms))
+ throw TypeError(".google.cloud.documentai.v1.Document.Page.transforms: array expected");
+ message.transforms = [];
+ for (var i = 0; i < object.transforms.length; ++i) {
+ if (typeof object.transforms[i] !== "object")
+ throw TypeError(".google.cloud.documentai.v1.Document.Page.transforms: object expected");
+ message.transforms[i] = $root.google.cloud.documentai.v1.Document.Page.Matrix.fromObject(object.transforms[i]);
+ }
+ }
+ if (object.dimension != null) {
+ if (typeof object.dimension !== "object")
+ throw TypeError(".google.cloud.documentai.v1.Document.Page.dimension: object expected");
+ message.dimension = $root.google.cloud.documentai.v1.Document.Page.Dimension.fromObject(object.dimension);
+ }
+ if (object.layout != null) {
+ if (typeof object.layout !== "object")
+ throw TypeError(".google.cloud.documentai.v1.Document.Page.layout: object expected");
+ message.layout = $root.google.cloud.documentai.v1.Document.Page.Layout.fromObject(object.layout);
+ }
+ if (object.detectedLanguages) {
+ if (!Array.isArray(object.detectedLanguages))
+ throw TypeError(".google.cloud.documentai.v1.Document.Page.detectedLanguages: array expected");
+ message.detectedLanguages = [];
+ for (var i = 0; i < object.detectedLanguages.length; ++i) {
+ if (typeof object.detectedLanguages[i] !== "object")
+ throw TypeError(".google.cloud.documentai.v1.Document.Page.detectedLanguages: object expected");
+ message.detectedLanguages[i] = $root.google.cloud.documentai.v1.Document.Page.DetectedLanguage.fromObject(object.detectedLanguages[i]);
+ }
+ }
+ if (object.blocks) {
+ if (!Array.isArray(object.blocks))
+ throw TypeError(".google.cloud.documentai.v1.Document.Page.blocks: array expected");
+ message.blocks = [];
+ for (var i = 0; i < object.blocks.length; ++i) {
+ if (typeof object.blocks[i] !== "object")
+ throw TypeError(".google.cloud.documentai.v1.Document.Page.blocks: object expected");
+ message.blocks[i] = $root.google.cloud.documentai.v1.Document.Page.Block.fromObject(object.blocks[i]);
+ }
+ }
+ if (object.paragraphs) {
+ if (!Array.isArray(object.paragraphs))
+ throw TypeError(".google.cloud.documentai.v1.Document.Page.paragraphs: array expected");
+ message.paragraphs = [];
+ for (var i = 0; i < object.paragraphs.length; ++i) {
+ if (typeof object.paragraphs[i] !== "object")
+ throw TypeError(".google.cloud.documentai.v1.Document.Page.paragraphs: object expected");
+ message.paragraphs[i] = $root.google.cloud.documentai.v1.Document.Page.Paragraph.fromObject(object.paragraphs[i]);
+ }
+ }
+ if (object.lines) {
+ if (!Array.isArray(object.lines))
+ throw TypeError(".google.cloud.documentai.v1.Document.Page.lines: array expected");
+ message.lines = [];
+ for (var i = 0; i < object.lines.length; ++i) {
+ if (typeof object.lines[i] !== "object")
+ throw TypeError(".google.cloud.documentai.v1.Document.Page.lines: object expected");
+ message.lines[i] = $root.google.cloud.documentai.v1.Document.Page.Line.fromObject(object.lines[i]);
+ }
+ }
+ if (object.tokens) {
+ if (!Array.isArray(object.tokens))
+ throw TypeError(".google.cloud.documentai.v1.Document.Page.tokens: array expected");
+ message.tokens = [];
+ for (var i = 0; i < object.tokens.length; ++i) {
+ if (typeof object.tokens[i] !== "object")
+ throw TypeError(".google.cloud.documentai.v1.Document.Page.tokens: object expected");
+ message.tokens[i] = $root.google.cloud.documentai.v1.Document.Page.Token.fromObject(object.tokens[i]);
+ }
+ }
+ if (object.visualElements) {
+ if (!Array.isArray(object.visualElements))
+ throw TypeError(".google.cloud.documentai.v1.Document.Page.visualElements: array expected");
+ message.visualElements = [];
+ for (var i = 0; i < object.visualElements.length; ++i) {
+ if (typeof object.visualElements[i] !== "object")
+ throw TypeError(".google.cloud.documentai.v1.Document.Page.visualElements: object expected");
+ message.visualElements[i] = $root.google.cloud.documentai.v1.Document.Page.VisualElement.fromObject(object.visualElements[i]);
+ }
+ }
+ if (object.tables) {
+ if (!Array.isArray(object.tables))
+ throw TypeError(".google.cloud.documentai.v1.Document.Page.tables: array expected");
+ message.tables = [];
+ for (var i = 0; i < object.tables.length; ++i) {
+ if (typeof object.tables[i] !== "object")
+ throw TypeError(".google.cloud.documentai.v1.Document.Page.tables: object expected");
+ message.tables[i] = $root.google.cloud.documentai.v1.Document.Page.Table.fromObject(object.tables[i]);
+ }
+ }
+ if (object.formFields) {
+ if (!Array.isArray(object.formFields))
+ throw TypeError(".google.cloud.documentai.v1.Document.Page.formFields: array expected");
+ message.formFields = [];
+ for (var i = 0; i < object.formFields.length; ++i) {
+ if (typeof object.formFields[i] !== "object")
+ throw TypeError(".google.cloud.documentai.v1.Document.Page.formFields: object expected");
+ message.formFields[i] = $root.google.cloud.documentai.v1.Document.Page.FormField.fromObject(object.formFields[i]);
+ }
+ }
+ if (object.symbols) {
+ if (!Array.isArray(object.symbols))
+ throw TypeError(".google.cloud.documentai.v1.Document.Page.symbols: array expected");
+ message.symbols = [];
+ for (var i = 0; i < object.symbols.length; ++i) {
+ if (typeof object.symbols[i] !== "object")
+ throw TypeError(".google.cloud.documentai.v1.Document.Page.symbols: object expected");
+ message.symbols[i] = $root.google.cloud.documentai.v1.Document.Page.Symbol.fromObject(object.symbols[i]);
+ }
+ }
+ if (object.detectedBarcodes) {
+ if (!Array.isArray(object.detectedBarcodes))
+ throw TypeError(".google.cloud.documentai.v1.Document.Page.detectedBarcodes: array expected");
+ message.detectedBarcodes = [];
+ for (var i = 0; i < object.detectedBarcodes.length; ++i) {
+ if (typeof object.detectedBarcodes[i] !== "object")
+ throw TypeError(".google.cloud.documentai.v1.Document.Page.detectedBarcodes: object expected");
+ message.detectedBarcodes[i] = $root.google.cloud.documentai.v1.Document.Page.DetectedBarcode.fromObject(object.detectedBarcodes[i]);
+ }
+ }
+ if (object.imageQualityScores != null) {
+ if (typeof object.imageQualityScores !== "object")
+ throw TypeError(".google.cloud.documentai.v1.Document.Page.imageQualityScores: object expected");
+ message.imageQualityScores = $root.google.cloud.documentai.v1.Document.Page.ImageQualityScores.fromObject(object.imageQualityScores);
+ }
+ if (object.provenance != null) {
+ if (typeof object.provenance !== "object")
+ throw TypeError(".google.cloud.documentai.v1.Document.Page.provenance: object expected");
+ message.provenance = $root.google.cloud.documentai.v1.Document.Provenance.fromObject(object.provenance);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a Page message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.documentai.v1.Document.Page
+ * @static
+ * @param {google.cloud.documentai.v1.Document.Page} message Page
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ Page.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults) {
+ object.detectedLanguages = [];
+ object.blocks = [];
+ object.paragraphs = [];
+ object.lines = [];
+ object.tokens = [];
+ object.visualElements = [];
+ object.tables = [];
+ object.formFields = [];
+ object.symbols = [];
+ object.transforms = [];
+ object.detectedBarcodes = [];
+ }
+ if (options.defaults) {
+ object.pageNumber = 0;
+ object.dimension = null;
+ object.layout = null;
+ object.image = null;
+ object.provenance = null;
+ object.imageQualityScores = null;
+ }
+ if (message.pageNumber != null && message.hasOwnProperty("pageNumber"))
+ object.pageNumber = message.pageNumber;
+ if (message.dimension != null && message.hasOwnProperty("dimension"))
+ object.dimension = $root.google.cloud.documentai.v1.Document.Page.Dimension.toObject(message.dimension, options);
+ if (message.layout != null && message.hasOwnProperty("layout"))
+ object.layout = $root.google.cloud.documentai.v1.Document.Page.Layout.toObject(message.layout, options);
+ if (message.detectedLanguages && message.detectedLanguages.length) {
+ object.detectedLanguages = [];
+ for (var j = 0; j < message.detectedLanguages.length; ++j)
+ object.detectedLanguages[j] = $root.google.cloud.documentai.v1.Document.Page.DetectedLanguage.toObject(message.detectedLanguages[j], options);
+ }
+ if (message.blocks && message.blocks.length) {
+ object.blocks = [];
+ for (var j = 0; j < message.blocks.length; ++j)
+ object.blocks[j] = $root.google.cloud.documentai.v1.Document.Page.Block.toObject(message.blocks[j], options);
+ }
+ if (message.paragraphs && message.paragraphs.length) {
+ object.paragraphs = [];
+ for (var j = 0; j < message.paragraphs.length; ++j)
+ object.paragraphs[j] = $root.google.cloud.documentai.v1.Document.Page.Paragraph.toObject(message.paragraphs[j], options);
+ }
+ if (message.lines && message.lines.length) {
+ object.lines = [];
+ for (var j = 0; j < message.lines.length; ++j)
+ object.lines[j] = $root.google.cloud.documentai.v1.Document.Page.Line.toObject(message.lines[j], options);
+ }
+ if (message.tokens && message.tokens.length) {
+ object.tokens = [];
+ for (var j = 0; j < message.tokens.length; ++j)
+ object.tokens[j] = $root.google.cloud.documentai.v1.Document.Page.Token.toObject(message.tokens[j], options);
+ }
+ if (message.visualElements && message.visualElements.length) {
+ object.visualElements = [];
+ for (var j = 0; j < message.visualElements.length; ++j)
+ object.visualElements[j] = $root.google.cloud.documentai.v1.Document.Page.VisualElement.toObject(message.visualElements[j], options);
+ }
+ if (message.tables && message.tables.length) {
+ object.tables = [];
+ for (var j = 0; j < message.tables.length; ++j)
+ object.tables[j] = $root.google.cloud.documentai.v1.Document.Page.Table.toObject(message.tables[j], options);
+ }
+ if (message.formFields && message.formFields.length) {
+ object.formFields = [];
+ for (var j = 0; j < message.formFields.length; ++j)
+ object.formFields[j] = $root.google.cloud.documentai.v1.Document.Page.FormField.toObject(message.formFields[j], options);
+ }
+ if (message.symbols && message.symbols.length) {
+ object.symbols = [];
+ for (var j = 0; j < message.symbols.length; ++j)
+ object.symbols[j] = $root.google.cloud.documentai.v1.Document.Page.Symbol.toObject(message.symbols[j], options);
+ }
+ if (message.image != null && message.hasOwnProperty("image"))
+ object.image = $root.google.cloud.documentai.v1.Document.Page.Image.toObject(message.image, options);
+ if (message.transforms && message.transforms.length) {
+ object.transforms = [];
+ for (var j = 0; j < message.transforms.length; ++j)
+ object.transforms[j] = $root.google.cloud.documentai.v1.Document.Page.Matrix.toObject(message.transforms[j], options);
+ }
+ if (message.detectedBarcodes && message.detectedBarcodes.length) {
+ object.detectedBarcodes = [];
+ for (var j = 0; j < message.detectedBarcodes.length; ++j)
+ object.detectedBarcodes[j] = $root.google.cloud.documentai.v1.Document.Page.DetectedBarcode.toObject(message.detectedBarcodes[j], options);
+ }
+ if (message.provenance != null && message.hasOwnProperty("provenance"))
+ object.provenance = $root.google.cloud.documentai.v1.Document.Provenance.toObject(message.provenance, options);
+ if (message.imageQualityScores != null && message.hasOwnProperty("imageQualityScores"))
+ object.imageQualityScores = $root.google.cloud.documentai.v1.Document.Page.ImageQualityScores.toObject(message.imageQualityScores, options);
+ return object;
+ };
+
+ /**
+ * Converts this Page to JSON.
+ * @function toJSON
+ * @memberof google.cloud.documentai.v1.Document.Page
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ Page.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for Page
+ * @function getTypeUrl
+ * @memberof google.cloud.documentai.v1.Document.Page
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ Page.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.documentai.v1.Document.Page";
+ };
+
+ Page.Dimension = (function() {
+
+ /**
+ * Properties of a Dimension.
+ * @memberof google.cloud.documentai.v1.Document.Page
+ * @interface IDimension
+ * @property {number|null} [width] Dimension width
+ * @property {number|null} [height] Dimension height
+ * @property {string|null} [unit] Dimension unit
+ */
+
+ /**
+ * Constructs a new Dimension.
+ * @memberof google.cloud.documentai.v1.Document.Page
+ * @classdesc Represents a Dimension.
+ * @implements IDimension
+ * @constructor
+ * @param {google.cloud.documentai.v1.Document.Page.IDimension=} [properties] Properties to set
+ */
+ function Dimension(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]];
+ }
+
+ /**
+ * Dimension width.
+ * @member {number} width
+ * @memberof google.cloud.documentai.v1.Document.Page.Dimension
+ * @instance
+ */
+ Dimension.prototype.width = 0;
+
+ /**
+ * Dimension height.
+ * @member {number} height
+ * @memberof google.cloud.documentai.v1.Document.Page.Dimension
+ * @instance
+ */
+ Dimension.prototype.height = 0;
+
+ /**
+ * Dimension unit.
+ * @member {string} unit
+ * @memberof google.cloud.documentai.v1.Document.Page.Dimension
+ * @instance
+ */
+ Dimension.prototype.unit = "";
+
+ /**
+ * Creates a new Dimension instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.documentai.v1.Document.Page.Dimension
+ * @static
+ * @param {google.cloud.documentai.v1.Document.Page.IDimension=} [properties] Properties to set
+ * @returns {google.cloud.documentai.v1.Document.Page.Dimension} Dimension instance
+ */
+ Dimension.create = function create(properties) {
+ return new Dimension(properties);
+ };
+
+ /**
+ * Encodes the specified Dimension message. Does not implicitly {@link google.cloud.documentai.v1.Document.Page.Dimension.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.documentai.v1.Document.Page.Dimension
+ * @static
+ * @param {google.cloud.documentai.v1.Document.Page.IDimension} message Dimension message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Dimension.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.width != null && Object.hasOwnProperty.call(message, "width"))
+ writer.uint32(/* id 1, wireType 5 =*/13).float(message.width);
+ if (message.height != null && Object.hasOwnProperty.call(message, "height"))
+ writer.uint32(/* id 2, wireType 5 =*/21).float(message.height);
+ if (message.unit != null && Object.hasOwnProperty.call(message, "unit"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.unit);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified Dimension message, length delimited. Does not implicitly {@link google.cloud.documentai.v1.Document.Page.Dimension.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.documentai.v1.Document.Page.Dimension
+ * @static
+ * @param {google.cloud.documentai.v1.Document.Page.IDimension} message Dimension message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Dimension.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a Dimension message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.documentai.v1.Document.Page.Dimension
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.documentai.v1.Document.Page.Dimension} Dimension
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Dimension.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.documentai.v1.Document.Page.Dimension();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.width = reader.float();
+ break;
+ }
+ case 2: {
+ message.height = reader.float();
+ break;
+ }
+ case 3: {
+ message.unit = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a Dimension message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.documentai.v1.Document.Page.Dimension
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.documentai.v1.Document.Page.Dimension} Dimension
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Dimension.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a Dimension message.
+ * @function verify
+ * @memberof google.cloud.documentai.v1.Document.Page.Dimension
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ Dimension.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.width != null && message.hasOwnProperty("width"))
+ if (typeof message.width !== "number")
+ return "width: number expected";
+ if (message.height != null && message.hasOwnProperty("height"))
+ if (typeof message.height !== "number")
+ return "height: number expected";
+ if (message.unit != null && message.hasOwnProperty("unit"))
+ if (!$util.isString(message.unit))
+ return "unit: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a Dimension message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.documentai.v1.Document.Page.Dimension
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.documentai.v1.Document.Page.Dimension} Dimension
+ */
+ Dimension.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.documentai.v1.Document.Page.Dimension)
+ return object;
+ var message = new $root.google.cloud.documentai.v1.Document.Page.Dimension();
+ if (object.width != null)
+ message.width = Number(object.width);
+ if (object.height != null)
+ message.height = Number(object.height);
+ if (object.unit != null)
+ message.unit = String(object.unit);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a Dimension message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.documentai.v1.Document.Page.Dimension
+ * @static
+ * @param {google.cloud.documentai.v1.Document.Page.Dimension} message Dimension
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ Dimension.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.width = 0;
+ object.height = 0;
+ object.unit = "";
+ }
+ if (message.width != null && message.hasOwnProperty("width"))
+ object.width = options.json && !isFinite(message.width) ? String(message.width) : message.width;
+ if (message.height != null && message.hasOwnProperty("height"))
+ object.height = options.json && !isFinite(message.height) ? String(message.height) : message.height;
+ if (message.unit != null && message.hasOwnProperty("unit"))
+ object.unit = message.unit;
+ return object;
+ };
+
+ /**
+ * Converts this Dimension to JSON.
+ * @function toJSON
+ * @memberof google.cloud.documentai.v1.Document.Page.Dimension
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ Dimension.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for Dimension
+ * @function getTypeUrl
+ * @memberof google.cloud.documentai.v1.Document.Page.Dimension
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ Dimension.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.documentai.v1.Document.Page.Dimension";
+ };
+
+ return Dimension;
+ })();
+
+ Page.Image = (function() {
+
+ /**
+ * Properties of an Image.
+ * @memberof google.cloud.documentai.v1.Document.Page
+ * @interface IImage
+ * @property {Uint8Array|null} [content] Image content
+ * @property {string|null} [mimeType] Image mimeType
+ * @property {number|null} [width] Image width
+ * @property {number|null} [height] Image height
+ */
+
+ /**
+ * Constructs a new Image.
+ * @memberof google.cloud.documentai.v1.Document.Page
+ * @classdesc Represents an Image.
+ * @implements IImage
+ * @constructor
+ * @param {google.cloud.documentai.v1.Document.Page.IImage=} [properties] Properties to set
+ */
+ function Image(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]];
+ }
+
+ /**
+ * Image content.
+ * @member {Uint8Array} content
+ * @memberof google.cloud.documentai.v1.Document.Page.Image
+ * @instance
+ */
+ Image.prototype.content = $util.newBuffer([]);
+
+ /**
+ * Image mimeType.
+ * @member {string} mimeType
+ * @memberof google.cloud.documentai.v1.Document.Page.Image
+ * @instance
+ */
+ Image.prototype.mimeType = "";
+
+ /**
+ * Image width.
+ * @member {number} width
+ * @memberof google.cloud.documentai.v1.Document.Page.Image
+ * @instance
+ */
+ Image.prototype.width = 0;
+
+ /**
+ * Image height.
+ * @member {number} height
+ * @memberof google.cloud.documentai.v1.Document.Page.Image
+ * @instance
+ */
+ Image.prototype.height = 0;
+
+ /**
+ * Creates a new Image instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.documentai.v1.Document.Page.Image
+ * @static
+ * @param {google.cloud.documentai.v1.Document.Page.IImage=} [properties] Properties to set
+ * @returns {google.cloud.documentai.v1.Document.Page.Image} Image instance
+ */
+ Image.create = function create(properties) {
+ return new Image(properties);
+ };
+
+ /**
+ * Encodes the specified Image message. Does not implicitly {@link google.cloud.documentai.v1.Document.Page.Image.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.documentai.v1.Document.Page.Image
+ * @static
+ * @param {google.cloud.documentai.v1.Document.Page.IImage} message Image message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Image.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.content != null && Object.hasOwnProperty.call(message, "content"))
+ writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.content);
+ if (message.mimeType != null && Object.hasOwnProperty.call(message, "mimeType"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.mimeType);
+ if (message.width != null && Object.hasOwnProperty.call(message, "width"))
+ writer.uint32(/* id 3, wireType 0 =*/24).int32(message.width);
+ if (message.height != null && Object.hasOwnProperty.call(message, "height"))
+ writer.uint32(/* id 4, wireType 0 =*/32).int32(message.height);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified Image message, length delimited. Does not implicitly {@link google.cloud.documentai.v1.Document.Page.Image.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.documentai.v1.Document.Page.Image
+ * @static
+ * @param {google.cloud.documentai.v1.Document.Page.IImage} message Image message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Image.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes an Image message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.documentai.v1.Document.Page.Image
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.documentai.v1.Document.Page.Image} Image
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Image.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.documentai.v1.Document.Page.Image();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.content = reader.bytes();
+ break;
+ }
+ case 2: {
+ message.mimeType = reader.string();
+ break;
+ }
+ case 3: {
+ message.width = reader.int32();
+ break;
+ }
+ case 4: {
+ message.height = reader.int32();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an Image message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.documentai.v1.Document.Page.Image
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.documentai.v1.Document.Page.Image} Image
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Image.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an Image message.
+ * @function verify
+ * @memberof google.cloud.documentai.v1.Document.Page.Image
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ Image.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.content != null && message.hasOwnProperty("content"))
+ if (!(message.content && typeof message.content.length === "number" || $util.isString(message.content)))
+ return "content: buffer expected";
+ if (message.mimeType != null && message.hasOwnProperty("mimeType"))
+ if (!$util.isString(message.mimeType))
+ return "mimeType: string expected";
+ if (message.width != null && message.hasOwnProperty("width"))
+ if (!$util.isInteger(message.width))
+ return "width: integer expected";
+ if (message.height != null && message.hasOwnProperty("height"))
+ if (!$util.isInteger(message.height))
+ return "height: integer expected";
+ return null;
+ };
+
+ /**
+ * Creates an Image message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.documentai.v1.Document.Page.Image
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.documentai.v1.Document.Page.Image} Image
+ */
+ Image.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.documentai.v1.Document.Page.Image)
+ return object;
+ var message = new $root.google.cloud.documentai.v1.Document.Page.Image();
+ if (object.content != null)
+ if (typeof object.content === "string")
+ $util.base64.decode(object.content, message.content = $util.newBuffer($util.base64.length(object.content)), 0);
+ else if (object.content.length >= 0)
+ message.content = object.content;
+ if (object.mimeType != null)
+ message.mimeType = String(object.mimeType);
+ if (object.width != null)
+ message.width = object.width | 0;
+ if (object.height != null)
+ message.height = object.height | 0;
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an Image message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.documentai.v1.Document.Page.Image
+ * @static
+ * @param {google.cloud.documentai.v1.Document.Page.Image} message Image
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ Image.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ if (options.bytes === String)
+ object.content = "";
+ else {
+ object.content = [];
+ if (options.bytes !== Array)
+ object.content = $util.newBuffer(object.content);
+ }
+ object.mimeType = "";
+ object.width = 0;
+ object.height = 0;
+ }
+ if (message.content != null && message.hasOwnProperty("content"))
+ object.content = options.bytes === String ? $util.base64.encode(message.content, 0, message.content.length) : options.bytes === Array ? Array.prototype.slice.call(message.content) : message.content;
+ if (message.mimeType != null && message.hasOwnProperty("mimeType"))
+ object.mimeType = message.mimeType;
+ if (message.width != null && message.hasOwnProperty("width"))
+ object.width = message.width;
+ if (message.height != null && message.hasOwnProperty("height"))
+ object.height = message.height;
+ return object;
+ };
+
+ /**
+ * Converts this Image to JSON.
+ * @function toJSON
+ * @memberof google.cloud.documentai.v1.Document.Page.Image
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ Image.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for Image
+ * @function getTypeUrl
+ * @memberof google.cloud.documentai.v1.Document.Page.Image
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ Image.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.documentai.v1.Document.Page.Image";
+ };
+
+ return Image;
+ })();
+
+ Page.Matrix = (function() {
+
+ /**
+ * Properties of a Matrix.
+ * @memberof google.cloud.documentai.v1.Document.Page
+ * @interface IMatrix
+ * @property {number|null} [rows] Matrix rows
+ * @property {number|null} [cols] Matrix cols
+ * @property {number|null} [type] Matrix type
+ * @property {Uint8Array|null} [data] Matrix data
+ */
+
+ /**
+ * Constructs a new Matrix.
+ * @memberof google.cloud.documentai.v1.Document.Page
+ * @classdesc Represents a Matrix.
+ * @implements IMatrix
+ * @constructor
+ * @param {google.cloud.documentai.v1.Document.Page.IMatrix=} [properties] Properties to set
+ */
+ function Matrix(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]];
+ }
+
+ /**
+ * Matrix rows.
+ * @member {number} rows
+ * @memberof google.cloud.documentai.v1.Document.Page.Matrix
+ * @instance
+ */
+ Matrix.prototype.rows = 0;
+
+ /**
+ * Matrix cols.
+ * @member {number} cols
+ * @memberof google.cloud.documentai.v1.Document.Page.Matrix
+ * @instance
+ */
+ Matrix.prototype.cols = 0;
+
+ /**
+ * Matrix type.
+ * @member {number} type
+ * @memberof google.cloud.documentai.v1.Document.Page.Matrix
+ * @instance
+ */
+ Matrix.prototype.type = 0;
+
+ /**
+ * Matrix data.
+ * @member {Uint8Array} data
+ * @memberof google.cloud.documentai.v1.Document.Page.Matrix
+ * @instance
+ */
+ Matrix.prototype.data = $util.newBuffer([]);
+
+ /**
+ * Creates a new Matrix instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.documentai.v1.Document.Page.Matrix
+ * @static
+ * @param {google.cloud.documentai.v1.Document.Page.IMatrix=} [properties] Properties to set
+ * @returns {google.cloud.documentai.v1.Document.Page.Matrix} Matrix instance
+ */
+ Matrix.create = function create(properties) {
+ return new Matrix(properties);
+ };
+
+ /**
+ * Encodes the specified Matrix message. Does not implicitly {@link google.cloud.documentai.v1.Document.Page.Matrix.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.documentai.v1.Document.Page.Matrix
+ * @static
+ * @param {google.cloud.documentai.v1.Document.Page.IMatrix} message Matrix message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Matrix.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.rows != null && Object.hasOwnProperty.call(message, "rows"))
+ writer.uint32(/* id 1, wireType 0 =*/8).int32(message.rows);
+ if (message.cols != null && Object.hasOwnProperty.call(message, "cols"))
+ writer.uint32(/* id 2, wireType 0 =*/16).int32(message.cols);
+ if (message.type != null && Object.hasOwnProperty.call(message, "type"))
+ writer.uint32(/* id 3, wireType 0 =*/24).int32(message.type);
+ if (message.data != null && Object.hasOwnProperty.call(message, "data"))
+ writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.data);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified Matrix message, length delimited. Does not implicitly {@link google.cloud.documentai.v1.Document.Page.Matrix.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.documentai.v1.Document.Page.Matrix
+ * @static
+ * @param {google.cloud.documentai.v1.Document.Page.IMatrix} message Matrix message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Matrix.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a Matrix message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.documentai.v1.Document.Page.Matrix
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.documentai.v1.Document.Page.Matrix} Matrix
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Matrix.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.documentai.v1.Document.Page.Matrix();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.rows = reader.int32();
+ break;
+ }
+ case 2: {
+ message.cols = reader.int32();
+ break;
+ }
+ case 3: {
+ message.type = reader.int32();
+ break;
+ }
+ case 4: {
+ message.data = reader.bytes();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a Matrix message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.documentai.v1.Document.Page.Matrix
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.documentai.v1.Document.Page.Matrix} Matrix
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Matrix.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a Matrix message.
+ * @function verify
+ * @memberof google.cloud.documentai.v1.Document.Page.Matrix
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ Matrix.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.rows != null && message.hasOwnProperty("rows"))
+ if (!$util.isInteger(message.rows))
+ return "rows: integer expected";
+ if (message.cols != null && message.hasOwnProperty("cols"))
+ if (!$util.isInteger(message.cols))
+ return "cols: integer expected";
+ if (message.type != null && message.hasOwnProperty("type"))
+ if (!$util.isInteger(message.type))
+ return "type: integer expected";
+ if (message.data != null && message.hasOwnProperty("data"))
+ if (!(message.data && typeof message.data.length === "number" || $util.isString(message.data)))
+ return "data: buffer expected";
+ return null;
+ };
+
+ /**
+ * Creates a Matrix message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.documentai.v1.Document.Page.Matrix
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.documentai.v1.Document.Page.Matrix} Matrix
+ */
+ Matrix.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.documentai.v1.Document.Page.Matrix)
+ return object;
+ var message = new $root.google.cloud.documentai.v1.Document.Page.Matrix();
+ if (object.rows != null)
+ message.rows = object.rows | 0;
+ if (object.cols != null)
+ message.cols = object.cols | 0;
+ if (object.type != null)
+ message.type = object.type | 0;
+ if (object.data != null)
+ if (typeof object.data === "string")
+ $util.base64.decode(object.data, message.data = $util.newBuffer($util.base64.length(object.data)), 0);
+ else if (object.data.length >= 0)
+ message.data = object.data;
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a Matrix message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.documentai.v1.Document.Page.Matrix
+ * @static
+ * @param {google.cloud.documentai.v1.Document.Page.Matrix} message Matrix
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ Matrix.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.rows = 0;
+ object.cols = 0;
+ object.type = 0;
+ if (options.bytes === String)
+ object.data = "";
+ else {
+ object.data = [];
+ if (options.bytes !== Array)
+ object.data = $util.newBuffer(object.data);
+ }
+ }
+ if (message.rows != null && message.hasOwnProperty("rows"))
+ object.rows = message.rows;
+ if (message.cols != null && message.hasOwnProperty("cols"))
+ object.cols = message.cols;
+ if (message.type != null && message.hasOwnProperty("type"))
+ object.type = message.type;
+ if (message.data != null && message.hasOwnProperty("data"))
+ object.data = options.bytes === String ? $util.base64.encode(message.data, 0, message.data.length) : options.bytes === Array ? Array.prototype.slice.call(message.data) : message.data;
+ return object;
+ };
+
+ /**
+ * Converts this Matrix to JSON.
+ * @function toJSON
+ * @memberof google.cloud.documentai.v1.Document.Page.Matrix
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ Matrix.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for Matrix
+ * @function getTypeUrl
+ * @memberof google.cloud.documentai.v1.Document.Page.Matrix
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ Matrix.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.documentai.v1.Document.Page.Matrix";
+ };
+
+ return Matrix;
+ })();
+
+ Page.Layout = (function() {
+
+ /**
+ * Properties of a Layout.
+ * @memberof google.cloud.documentai.v1.Document.Page
+ * @interface ILayout
+ * @property {google.cloud.documentai.v1.Document.ITextAnchor|null} [textAnchor] Layout textAnchor
+ * @property {number|null} [confidence] Layout confidence
+ * @property {google.cloud.documentai.v1.IBoundingPoly|null} [boundingPoly] Layout boundingPoly
+ * @property {google.cloud.documentai.v1.Document.Page.Layout.Orientation|null} [orientation] Layout orientation
+ */
+
+ /**
+ * Constructs a new Layout.
+ * @memberof google.cloud.documentai.v1.Document.Page
+ * @classdesc Represents a Layout.
+ * @implements ILayout
+ * @constructor
+ * @param {google.cloud.documentai.v1.Document.Page.ILayout=} [properties] Properties to set
+ */
+ function Layout(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]];
+ }
+
+ /**
+ * Layout textAnchor.
+ * @member {google.cloud.documentai.v1.Document.ITextAnchor|null|undefined} textAnchor
+ * @memberof google.cloud.documentai.v1.Document.Page.Layout
+ * @instance
+ */
+ Layout.prototype.textAnchor = null;
+
+ /**
+ * Layout confidence.
+ * @member {number} confidence
+ * @memberof google.cloud.documentai.v1.Document.Page.Layout
+ * @instance
+ */
+ Layout.prototype.confidence = 0;
+
+ /**
+ * Layout boundingPoly.
+ * @member {google.cloud.documentai.v1.IBoundingPoly|null|undefined} boundingPoly
+ * @memberof google.cloud.documentai.v1.Document.Page.Layout
+ * @instance
+ */
+ Layout.prototype.boundingPoly = null;
+
+ /**
+ * Layout orientation.
+ * @member {google.cloud.documentai.v1.Document.Page.Layout.Orientation} orientation
+ * @memberof google.cloud.documentai.v1.Document.Page.Layout
+ * @instance
+ */
+ Layout.prototype.orientation = 0;
+
+ /**
+ * Creates a new Layout instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.documentai.v1.Document.Page.Layout
+ * @static
+ * @param {google.cloud.documentai.v1.Document.Page.ILayout=} [properties] Properties to set
+ * @returns {google.cloud.documentai.v1.Document.Page.Layout} Layout instance
+ */
+ Layout.create = function create(properties) {
+ return new Layout(properties);
+ };
+
+ /**
+ * Encodes the specified Layout message. Does not implicitly {@link google.cloud.documentai.v1.Document.Page.Layout.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.documentai.v1.Document.Page.Layout
+ * @static
+ * @param {google.cloud.documentai.v1.Document.Page.ILayout} message Layout message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Layout.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.textAnchor != null && Object.hasOwnProperty.call(message, "textAnchor"))
+ $root.google.cloud.documentai.v1.Document.TextAnchor.encode(message.textAnchor, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
+ if (message.confidence != null && Object.hasOwnProperty.call(message, "confidence"))
+ writer.uint32(/* id 2, wireType 5 =*/21).float(message.confidence);
+ if (message.boundingPoly != null && Object.hasOwnProperty.call(message, "boundingPoly"))
+ $root.google.cloud.documentai.v1.BoundingPoly.encode(message.boundingPoly, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
+ if (message.orientation != null && Object.hasOwnProperty.call(message, "orientation"))
+ writer.uint32(/* id 4, wireType 0 =*/32).int32(message.orientation);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified Layout message, length delimited. Does not implicitly {@link google.cloud.documentai.v1.Document.Page.Layout.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.documentai.v1.Document.Page.Layout
+ * @static
+ * @param {google.cloud.documentai.v1.Document.Page.ILayout} message Layout message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Layout.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a Layout message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.documentai.v1.Document.Page.Layout
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.documentai.v1.Document.Page.Layout} Layout
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Layout.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.documentai.v1.Document.Page.Layout();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.textAnchor = $root.google.cloud.documentai.v1.Document.TextAnchor.decode(reader, reader.uint32());
+ break;
+ }
+ case 2: {
+ message.confidence = reader.float();
+ break;
+ }
+ case 3: {
+ message.boundingPoly = $root.google.cloud.documentai.v1.BoundingPoly.decode(reader, reader.uint32());
+ break;
+ }
+ case 4: {
+ message.orientation = reader.int32();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a Layout message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.documentai.v1.Document.Page.Layout
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.documentai.v1.Document.Page.Layout} Layout
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Layout.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a Layout message.
+ * @function verify
+ * @memberof google.cloud.documentai.v1.Document.Page.Layout
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ Layout.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.textAnchor != null && message.hasOwnProperty("textAnchor")) {
+ var error = $root.google.cloud.documentai.v1.Document.TextAnchor.verify(message.textAnchor);
+ if (error)
+ return "textAnchor." + error;
+ }
+ if (message.confidence != null && message.hasOwnProperty("confidence"))
+ if (typeof message.confidence !== "number")
+ return "confidence: number expected";
+ if (message.boundingPoly != null && message.hasOwnProperty("boundingPoly")) {
+ var error = $root.google.cloud.documentai.v1.BoundingPoly.verify(message.boundingPoly);
+ if (error)
+ return "boundingPoly." + error;
+ }
+ if (message.orientation != null && message.hasOwnProperty("orientation"))
+ switch (message.orientation) {
+ default:
+ return "orientation: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ case 3:
+ case 4:
+ break;
+ }
+ return null;
+ };
+
+ /**
+ * Creates a Layout message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.documentai.v1.Document.Page.Layout
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.documentai.v1.Document.Page.Layout} Layout
+ */
+ Layout.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.documentai.v1.Document.Page.Layout)
+ return object;
+ var message = new $root.google.cloud.documentai.v1.Document.Page.Layout();
+ if (object.textAnchor != null) {
+ if (typeof object.textAnchor !== "object")
+ throw TypeError(".google.cloud.documentai.v1.Document.Page.Layout.textAnchor: object expected");
+ message.textAnchor = $root.google.cloud.documentai.v1.Document.TextAnchor.fromObject(object.textAnchor);
+ }
+ if (object.confidence != null)
+ message.confidence = Number(object.confidence);
+ if (object.boundingPoly != null) {
+ if (typeof object.boundingPoly !== "object")
+ throw TypeError(".google.cloud.documentai.v1.Document.Page.Layout.boundingPoly: object expected");
+ message.boundingPoly = $root.google.cloud.documentai.v1.BoundingPoly.fromObject(object.boundingPoly);
+ }
+ switch (object.orientation) {
+ default:
+ if (typeof object.orientation === "number") {
+ message.orientation = object.orientation;
+ break;
+ }
+ break;
+ case "ORIENTATION_UNSPECIFIED":
+ case 0:
+ message.orientation = 0;
+ break;
+ case "PAGE_UP":
+ case 1:
+ message.orientation = 1;
+ break;
+ case "PAGE_RIGHT":
+ case 2:
+ message.orientation = 2;
+ break;
+ case "PAGE_DOWN":
+ case 3:
+ message.orientation = 3;
+ break;
+ case "PAGE_LEFT":
+ case 4:
+ message.orientation = 4;
+ break;
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a Layout message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.documentai.v1.Document.Page.Layout
+ * @static
+ * @param {google.cloud.documentai.v1.Document.Page.Layout} message Layout
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ Layout.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.textAnchor = null;
+ object.confidence = 0;
+ object.boundingPoly = null;
+ object.orientation = options.enums === String ? "ORIENTATION_UNSPECIFIED" : 0;
+ }
+ if (message.textAnchor != null && message.hasOwnProperty("textAnchor"))
+ object.textAnchor = $root.google.cloud.documentai.v1.Document.TextAnchor.toObject(message.textAnchor, options);
+ if (message.confidence != null && message.hasOwnProperty("confidence"))
+ object.confidence = options.json && !isFinite(message.confidence) ? String(message.confidence) : message.confidence;
+ if (message.boundingPoly != null && message.hasOwnProperty("boundingPoly"))
+ object.boundingPoly = $root.google.cloud.documentai.v1.BoundingPoly.toObject(message.boundingPoly, options);
+ if (message.orientation != null && message.hasOwnProperty("orientation"))
+ object.orientation = options.enums === String ? $root.google.cloud.documentai.v1.Document.Page.Layout.Orientation[message.orientation] === undefined ? message.orientation : $root.google.cloud.documentai.v1.Document.Page.Layout.Orientation[message.orientation] : message.orientation;
+ return object;
+ };
+
+ /**
+ * Converts this Layout to JSON.
+ * @function toJSON
+ * @memberof google.cloud.documentai.v1.Document.Page.Layout
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ Layout.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for Layout
+ * @function getTypeUrl
+ * @memberof google.cloud.documentai.v1.Document.Page.Layout
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ Layout.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.documentai.v1.Document.Page.Layout";
+ };
+
+ /**
+ * Orientation enum.
+ * @name google.cloud.documentai.v1.Document.Page.Layout.Orientation
+ * @enum {number}
+ * @property {number} ORIENTATION_UNSPECIFIED=0 ORIENTATION_UNSPECIFIED value
+ * @property {number} PAGE_UP=1 PAGE_UP value
+ * @property {number} PAGE_RIGHT=2 PAGE_RIGHT value
+ * @property {number} PAGE_DOWN=3 PAGE_DOWN value
+ * @property {number} PAGE_LEFT=4 PAGE_LEFT value
+ */
+ Layout.Orientation = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "ORIENTATION_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "PAGE_UP"] = 1;
+ values[valuesById[2] = "PAGE_RIGHT"] = 2;
+ values[valuesById[3] = "PAGE_DOWN"] = 3;
+ values[valuesById[4] = "PAGE_LEFT"] = 4;
+ return values;
+ })();
+
+ return Layout;
+ })();
+
+ Page.Block = (function() {
+
+ /**
+ * Properties of a Block.
+ * @memberof google.cloud.documentai.v1.Document.Page
+ * @interface IBlock
+ * @property {google.cloud.documentai.v1.Document.Page.ILayout|null} [layout] Block layout
+ * @property {Array.|null} [detectedLanguages] Block detectedLanguages
+ * @property {google.cloud.documentai.v1.Document.IProvenance|null} [provenance] Block provenance
+ */
+
+ /**
+ * Constructs a new Block.
+ * @memberof google.cloud.documentai.v1.Document.Page
+ * @classdesc Represents a Block.
+ * @implements IBlock
+ * @constructor
+ * @param {google.cloud.documentai.v1.Document.Page.IBlock=} [properties] Properties to set
+ */
+ function Block(properties) {
+ this.detectedLanguages = [];
+ 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]];
+ }
+
+ /**
+ * Block layout.
+ * @member {google.cloud.documentai.v1.Document.Page.ILayout|null|undefined} layout
+ * @memberof google.cloud.documentai.v1.Document.Page.Block
+ * @instance
+ */
+ Block.prototype.layout = null;
+
+ /**
+ * Block detectedLanguages.
+ * @member {Array.} detectedLanguages
+ * @memberof google.cloud.documentai.v1.Document.Page.Block
+ * @instance
+ */
+ Block.prototype.detectedLanguages = $util.emptyArray;
+
+ /**
+ * Block provenance.
+ * @member {google.cloud.documentai.v1.Document.IProvenance|null|undefined} provenance
+ * @memberof google.cloud.documentai.v1.Document.Page.Block
+ * @instance
+ */
+ Block.prototype.provenance = null;
+
+ /**
+ * Creates a new Block instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.documentai.v1.Document.Page.Block
+ * @static
+ * @param {google.cloud.documentai.v1.Document.Page.IBlock=} [properties] Properties to set
+ * @returns {google.cloud.documentai.v1.Document.Page.Block} Block instance
+ */
+ Block.create = function create(properties) {
+ return new Block(properties);
+ };
+
+ /**
+ * Encodes the specified Block message. Does not implicitly {@link google.cloud.documentai.v1.Document.Page.Block.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.documentai.v1.Document.Page.Block
+ * @static
+ * @param {google.cloud.documentai.v1.Document.Page.IBlock} message Block message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Block.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.layout != null && Object.hasOwnProperty.call(message, "layout"))
+ $root.google.cloud.documentai.v1.Document.Page.Layout.encode(message.layout, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
+ if (message.detectedLanguages != null && message.detectedLanguages.length)
+ for (var i = 0; i < message.detectedLanguages.length; ++i)
+ $root.google.cloud.documentai.v1.Document.Page.DetectedLanguage.encode(message.detectedLanguages[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
+ if (message.provenance != null && Object.hasOwnProperty.call(message, "provenance"))
+ $root.google.cloud.documentai.v1.Document.Provenance.encode(message.provenance, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified Block message, length delimited. Does not implicitly {@link google.cloud.documentai.v1.Document.Page.Block.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.documentai.v1.Document.Page.Block
+ * @static
+ * @param {google.cloud.documentai.v1.Document.Page.IBlock} message Block message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Block.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a Block message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.documentai.v1.Document.Page.Block
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.documentai.v1.Document.Page.Block} Block
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Block.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.documentai.v1.Document.Page.Block();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.layout = $root.google.cloud.documentai.v1.Document.Page.Layout.decode(reader, reader.uint32());
+ break;
+ }
+ case 2: {
+ if (!(message.detectedLanguages && message.detectedLanguages.length))
+ message.detectedLanguages = [];
+ message.detectedLanguages.push($root.google.cloud.documentai.v1.Document.Page.DetectedLanguage.decode(reader, reader.uint32()));
+ break;
+ }
+ case 3: {
+ message.provenance = $root.google.cloud.documentai.v1.Document.Provenance.decode(reader, reader.uint32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a Block message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.documentai.v1.Document.Page.Block
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.documentai.v1.Document.Page.Block} Block
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Block.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a Block message.
+ * @function verify
+ * @memberof google.cloud.documentai.v1.Document.Page.Block
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ Block.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.layout != null && message.hasOwnProperty("layout")) {
+ var error = $root.google.cloud.documentai.v1.Document.Page.Layout.verify(message.layout);
+ if (error)
+ return "layout." + error;
+ }
+ if (message.detectedLanguages != null && message.hasOwnProperty("detectedLanguages")) {
+ if (!Array.isArray(message.detectedLanguages))
+ return "detectedLanguages: array expected";
+ for (var i = 0; i < message.detectedLanguages.length; ++i) {
+ var error = $root.google.cloud.documentai.v1.Document.Page.DetectedLanguage.verify(message.detectedLanguages[i]);
+ if (error)
+ return "detectedLanguages." + error;
+ }
+ }
+ if (message.provenance != null && message.hasOwnProperty("provenance")) {
+ var error = $root.google.cloud.documentai.v1.Document.Provenance.verify(message.provenance);
+ if (error)
+ return "provenance." + error;
+ }
+ return null;
+ };
+
+ /**
+ * Creates a Block message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.documentai.v1.Document.Page.Block
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.documentai.v1.Document.Page.Block} Block
+ */
+ Block.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.documentai.v1.Document.Page.Block)
+ return object;
+ var message = new $root.google.cloud.documentai.v1.Document.Page.Block();
+ if (object.layout != null) {
+ if (typeof object.layout !== "object")
+ throw TypeError(".google.cloud.documentai.v1.Document.Page.Block.layout: object expected");
+ message.layout = $root.google.cloud.documentai.v1.Document.Page.Layout.fromObject(object.layout);
+ }
+ if (object.detectedLanguages) {
+ if (!Array.isArray(object.detectedLanguages))
+ throw TypeError(".google.cloud.documentai.v1.Document.Page.Block.detectedLanguages: array expected");
+ message.detectedLanguages = [];
+ for (var i = 0; i < object.detectedLanguages.length; ++i) {
+ if (typeof object.detectedLanguages[i] !== "object")
+ throw TypeError(".google.cloud.documentai.v1.Document.Page.Block.detectedLanguages: object expected");
+ message.detectedLanguages[i] = $root.google.cloud.documentai.v1.Document.Page.DetectedLanguage.fromObject(object.detectedLanguages[i]);
+ }
+ }
+ if (object.provenance != null) {
+ if (typeof object.provenance !== "object")
+ throw TypeError(".google.cloud.documentai.v1.Document.Page.Block.provenance: object expected");
+ message.provenance = $root.google.cloud.documentai.v1.Document.Provenance.fromObject(object.provenance);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a Block message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.documentai.v1.Document.Page.Block
+ * @static
+ * @param {google.cloud.documentai.v1.Document.Page.Block} message Block
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ Block.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.detectedLanguages = [];
+ if (options.defaults) {
+ object.layout = null;
+ object.provenance = null;
+ }
+ if (message.layout != null && message.hasOwnProperty("layout"))
+ object.layout = $root.google.cloud.documentai.v1.Document.Page.Layout.toObject(message.layout, options);
+ if (message.detectedLanguages && message.detectedLanguages.length) {
+ object.detectedLanguages = [];
+ for (var j = 0; j < message.detectedLanguages.length; ++j)
+ object.detectedLanguages[j] = $root.google.cloud.documentai.v1.Document.Page.DetectedLanguage.toObject(message.detectedLanguages[j], options);
+ }
+ if (message.provenance != null && message.hasOwnProperty("provenance"))
+ object.provenance = $root.google.cloud.documentai.v1.Document.Provenance.toObject(message.provenance, options);
+ return object;
+ };
+
+ /**
+ * Converts this Block to JSON.
+ * @function toJSON
+ * @memberof google.cloud.documentai.v1.Document.Page.Block
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ Block.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for Block
+ * @function getTypeUrl
+ * @memberof google.cloud.documentai.v1.Document.Page.Block
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ Block.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.documentai.v1.Document.Page.Block";
+ };
+
+ return Block;
+ })();
+
+ Page.Paragraph = (function() {
+
+ /**
+ * Properties of a Paragraph.
+ * @memberof google.cloud.documentai.v1.Document.Page
+ * @interface IParagraph
+ * @property {google.cloud.documentai.v1.Document.Page.ILayout|null} [layout] Paragraph layout
+ * @property {Array.|null} [detectedLanguages] Paragraph detectedLanguages
+ * @property {google.cloud.documentai.v1.Document.IProvenance|null} [provenance] Paragraph provenance
+ */
+
+ /**
+ * Constructs a new Paragraph.
+ * @memberof google.cloud.documentai.v1.Document.Page
+ * @classdesc Represents a Paragraph.
+ * @implements IParagraph
+ * @constructor
+ * @param {google.cloud.documentai.v1.Document.Page.IParagraph=} [properties] Properties to set
+ */
+ function Paragraph(properties) {
+ this.detectedLanguages = [];
+ 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]];
+ }
+
+ /**
+ * Paragraph layout.
+ * @member {google.cloud.documentai.v1.Document.Page.ILayout|null|undefined} layout
+ * @memberof google.cloud.documentai.v1.Document.Page.Paragraph
+ * @instance
+ */
+ Paragraph.prototype.layout = null;
+
+ /**
+ * Paragraph detectedLanguages.
+ * @member {Array.} detectedLanguages
+ * @memberof google.cloud.documentai.v1.Document.Page.Paragraph
+ * @instance
+ */
+ Paragraph.prototype.detectedLanguages = $util.emptyArray;
+
+ /**
+ * Paragraph provenance.
+ * @member {google.cloud.documentai.v1.Document.IProvenance|null|undefined} provenance
+ * @memberof google.cloud.documentai.v1.Document.Page.Paragraph
+ * @instance
+ */
+ Paragraph.prototype.provenance = null;
+
+ /**
+ * Creates a new Paragraph instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.documentai.v1.Document.Page.Paragraph
+ * @static
+ * @param {google.cloud.documentai.v1.Document.Page.IParagraph=} [properties] Properties to set
+ * @returns {google.cloud.documentai.v1.Document.Page.Paragraph} Paragraph instance
+ */
+ Paragraph.create = function create(properties) {
+ return new Paragraph(properties);
+ };
+
+ /**
+ * Encodes the specified Paragraph message. Does not implicitly {@link google.cloud.documentai.v1.Document.Page.Paragraph.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.documentai.v1.Document.Page.Paragraph
+ * @static
+ * @param {google.cloud.documentai.v1.Document.Page.IParagraph} message Paragraph message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Paragraph.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.layout != null && Object.hasOwnProperty.call(message, "layout"))
+ $root.google.cloud.documentai.v1.Document.Page.Layout.encode(message.layout, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
+ if (message.detectedLanguages != null && message.detectedLanguages.length)
+ for (var i = 0; i < message.detectedLanguages.length; ++i)
+ $root.google.cloud.documentai.v1.Document.Page.DetectedLanguage.encode(message.detectedLanguages[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
+ if (message.provenance != null && Object.hasOwnProperty.call(message, "provenance"))
+ $root.google.cloud.documentai.v1.Document.Provenance.encode(message.provenance, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified Paragraph message, length delimited. Does not implicitly {@link google.cloud.documentai.v1.Document.Page.Paragraph.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.documentai.v1.Document.Page.Paragraph
+ * @static
+ * @param {google.cloud.documentai.v1.Document.Page.IParagraph} message Paragraph message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Paragraph.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a Paragraph message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.documentai.v1.Document.Page.Paragraph
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.documentai.v1.Document.Page.Paragraph} Paragraph
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Paragraph.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.documentai.v1.Document.Page.Paragraph();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.layout = $root.google.cloud.documentai.v1.Document.Page.Layout.decode(reader, reader.uint32());
+ break;
+ }
+ case 2: {
+ if (!(message.detectedLanguages && message.detectedLanguages.length))
+ message.detectedLanguages = [];
+ message.detectedLanguages.push($root.google.cloud.documentai.v1.Document.Page.DetectedLanguage.decode(reader, reader.uint32()));
+ break;
+ }
+ case 3: {
+ message.provenance = $root.google.cloud.documentai.v1.Document.Provenance.decode(reader, reader.uint32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a Paragraph message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.documentai.v1.Document.Page.Paragraph
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.documentai.v1.Document.Page.Paragraph} Paragraph
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Paragraph.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a Paragraph message.
+ * @function verify
+ * @memberof google.cloud.documentai.v1.Document.Page.Paragraph
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ Paragraph.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.layout != null && message.hasOwnProperty("layout")) {
+ var error = $root.google.cloud.documentai.v1.Document.Page.Layout.verify(message.layout);
+ if (error)
+ return "layout." + error;
+ }
+ if (message.detectedLanguages != null && message.hasOwnProperty("detectedLanguages")) {
+ if (!Array.isArray(message.detectedLanguages))
+ return "detectedLanguages: array expected";
+ for (var i = 0; i < message.detectedLanguages.length; ++i) {
+ var error = $root.google.cloud.documentai.v1.Document.Page.DetectedLanguage.verify(message.detectedLanguages[i]);
+ if (error)
+ return "detectedLanguages." + error;
+ }
+ }
+ if (message.provenance != null && message.hasOwnProperty("provenance")) {
+ var error = $root.google.cloud.documentai.v1.Document.Provenance.verify(message.provenance);
+ if (error)
+ return "provenance." + error;
+ }
+ return null;
+ };
+
+ /**
+ * Creates a Paragraph message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.documentai.v1.Document.Page.Paragraph
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.documentai.v1.Document.Page.Paragraph} Paragraph
+ */
+ Paragraph.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.documentai.v1.Document.Page.Paragraph)
+ return object;
+ var message = new $root.google.cloud.documentai.v1.Document.Page.Paragraph();
+ if (object.layout != null) {
+ if (typeof object.layout !== "object")
+ throw TypeError(".google.cloud.documentai.v1.Document.Page.Paragraph.layout: object expected");
+ message.layout = $root.google.cloud.documentai.v1.Document.Page.Layout.fromObject(object.layout);
+ }
+ if (object.detectedLanguages) {
+ if (!Array.isArray(object.detectedLanguages))
+ throw TypeError(".google.cloud.documentai.v1.Document.Page.Paragraph.detectedLanguages: array expected");
+ message.detectedLanguages = [];
+ for (var i = 0; i < object.detectedLanguages.length; ++i) {
+ if (typeof object.detectedLanguages[i] !== "object")
+ throw TypeError(".google.cloud.documentai.v1.Document.Page.Paragraph.detectedLanguages: object expected");
+ message.detectedLanguages[i] = $root.google.cloud.documentai.v1.Document.Page.DetectedLanguage.fromObject(object.detectedLanguages[i]);
+ }
+ }
+ if (object.provenance != null) {
+ if (typeof object.provenance !== "object")
+ throw TypeError(".google.cloud.documentai.v1.Document.Page.Paragraph.provenance: object expected");
+ message.provenance = $root.google.cloud.documentai.v1.Document.Provenance.fromObject(object.provenance);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a Paragraph message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.documentai.v1.Document.Page.Paragraph
+ * @static
+ * @param {google.cloud.documentai.v1.Document.Page.Paragraph} message Paragraph
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ Paragraph.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.detectedLanguages = [];
+ if (options.defaults) {
+ object.layout = null;
+ object.provenance = null;
+ }
+ if (message.layout != null && message.hasOwnProperty("layout"))
+ object.layout = $root.google.cloud.documentai.v1.Document.Page.Layout.toObject(message.layout, options);
+ if (message.detectedLanguages && message.detectedLanguages.length) {
+ object.detectedLanguages = [];
+ for (var j = 0; j < message.detectedLanguages.length; ++j)
+ object.detectedLanguages[j] = $root.google.cloud.documentai.v1.Document.Page.DetectedLanguage.toObject(message.detectedLanguages[j], options);
+ }
+ if (message.provenance != null && message.hasOwnProperty("provenance"))
+ object.provenance = $root.google.cloud.documentai.v1.Document.Provenance.toObject(message.provenance, options);
+ return object;
+ };
+
+ /**
+ * Converts this Paragraph to JSON.
+ * @function toJSON
+ * @memberof google.cloud.documentai.v1.Document.Page.Paragraph
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ Paragraph.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for Paragraph
+ * @function getTypeUrl
+ * @memberof google.cloud.documentai.v1.Document.Page.Paragraph
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ Paragraph.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.documentai.v1.Document.Page.Paragraph";
+ };
+
+ return Paragraph;
+ })();
+
+ Page.Line = (function() {
+
+ /**
+ * Properties of a Line.
+ * @memberof google.cloud.documentai.v1.Document.Page
+ * @interface ILine
+ * @property {google.cloud.documentai.v1.Document.Page.ILayout|null} [layout] Line layout
+ * @property {Array.|null} [detectedLanguages] Line detectedLanguages
+ * @property {google.cloud.documentai.v1.Document.IProvenance|null} [provenance] Line provenance
+ */
+
+ /**
+ * Constructs a new Line.
+ * @memberof google.cloud.documentai.v1.Document.Page
+ * @classdesc Represents a Line.
+ * @implements ILine
+ * @constructor
+ * @param {google.cloud.documentai.v1.Document.Page.ILine=} [properties] Properties to set
+ */
+ function Line(properties) {
+ this.detectedLanguages = [];
+ 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]];
+ }
+
+ /**
+ * Line layout.
+ * @member {google.cloud.documentai.v1.Document.Page.ILayout|null|undefined} layout
+ * @memberof google.cloud.documentai.v1.Document.Page.Line
+ * @instance
+ */
+ Line.prototype.layout = null;
+
+ /**
+ * Line detectedLanguages.
+ * @member {Array.} detectedLanguages
+ * @memberof google.cloud.documentai.v1.Document.Page.Line
+ * @instance
+ */
+ Line.prototype.detectedLanguages = $util.emptyArray;
+
+ /**
+ * Line provenance.
+ * @member {google.cloud.documentai.v1.Document.IProvenance|null|undefined} provenance
+ * @memberof google.cloud.documentai.v1.Document.Page.Line
+ * @instance
+ */
+ Line.prototype.provenance = null;
+
+ /**
+ * Creates a new Line instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.documentai.v1.Document.Page.Line
+ * @static
+ * @param {google.cloud.documentai.v1.Document.Page.ILine=} [properties] Properties to set
+ * @returns {google.cloud.documentai.v1.Document.Page.Line} Line instance
+ */
+ Line.create = function create(properties) {
+ return new Line(properties);
+ };
+
+ /**
+ * Encodes the specified Line message. Does not implicitly {@link google.cloud.documentai.v1.Document.Page.Line.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.documentai.v1.Document.Page.Line
+ * @static
+ * @param {google.cloud.documentai.v1.Document.Page.ILine} message Line message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Line.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.layout != null && Object.hasOwnProperty.call(message, "layout"))
+ $root.google.cloud.documentai.v1.Document.Page.Layout.encode(message.layout, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
+ if (message.detectedLanguages != null && message.detectedLanguages.length)
+ for (var i = 0; i < message.detectedLanguages.length; ++i)
+ $root.google.cloud.documentai.v1.Document.Page.DetectedLanguage.encode(message.detectedLanguages[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
+ if (message.provenance != null && Object.hasOwnProperty.call(message, "provenance"))
+ $root.google.cloud.documentai.v1.Document.Provenance.encode(message.provenance, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified Line message, length delimited. Does not implicitly {@link google.cloud.documentai.v1.Document.Page.Line.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.documentai.v1.Document.Page.Line
+ * @static
+ * @param {google.cloud.documentai.v1.Document.Page.ILine} message Line message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Line.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a Line message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.documentai.v1.Document.Page.Line
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.documentai.v1.Document.Page.Line} Line
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Line.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.documentai.v1.Document.Page.Line();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.layout = $root.google.cloud.documentai.v1.Document.Page.Layout.decode(reader, reader.uint32());
+ break;
+ }
+ case 2: {
+ if (!(message.detectedLanguages && message.detectedLanguages.length))
+ message.detectedLanguages = [];
+ message.detectedLanguages.push($root.google.cloud.documentai.v1.Document.Page.DetectedLanguage.decode(reader, reader.uint32()));
+ break;
+ }
+ case 3: {
+ message.provenance = $root.google.cloud.documentai.v1.Document.Provenance.decode(reader, reader.uint32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a Line message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.documentai.v1.Document.Page.Line
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.documentai.v1.Document.Page.Line} Line
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Line.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a Line message.
+ * @function verify
+ * @memberof google.cloud.documentai.v1.Document.Page.Line
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ Line.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.layout != null && message.hasOwnProperty("layout")) {
+ var error = $root.google.cloud.documentai.v1.Document.Page.Layout.verify(message.layout);
+ if (error)
+ return "layout." + error;
+ }
+ if (message.detectedLanguages != null && message.hasOwnProperty("detectedLanguages")) {
+ if (!Array.isArray(message.detectedLanguages))
+ return "detectedLanguages: array expected";
+ for (var i = 0; i < message.detectedLanguages.length; ++i) {
+ var error = $root.google.cloud.documentai.v1.Document.Page.DetectedLanguage.verify(message.detectedLanguages[i]);
+ if (error)
+ return "detectedLanguages." + error;
+ }
+ }
+ if (message.provenance != null && message.hasOwnProperty("provenance")) {
+ var error = $root.google.cloud.documentai.v1.Document.Provenance.verify(message.provenance);
+ if (error)
+ return "provenance." + error;
+ }
+ return null;
+ };
+
+ /**
+ * Creates a Line message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.documentai.v1.Document.Page.Line
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.documentai.v1.Document.Page.Line} Line
+ */
+ Line.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.documentai.v1.Document.Page.Line)
+ return object;
+ var message = new $root.google.cloud.documentai.v1.Document.Page.Line();
+ if (object.layout != null) {
+ if (typeof object.layout !== "object")
+ throw TypeError(".google.cloud.documentai.v1.Document.Page.Line.layout: object expected");
+ message.layout = $root.google.cloud.documentai.v1.Document.Page.Layout.fromObject(object.layout);
+ }
+ if (object.detectedLanguages) {
+ if (!Array.isArray(object.detectedLanguages))
+ throw TypeError(".google.cloud.documentai.v1.Document.Page.Line.detectedLanguages: array expected");
+ message.detectedLanguages = [];
+ for (var i = 0; i < object.detectedLanguages.length; ++i) {
+ if (typeof object.detectedLanguages[i] !== "object")
+ throw TypeError(".google.cloud.documentai.v1.Document.Page.Line.detectedLanguages: object expected");
+ message.detectedLanguages[i] = $root.google.cloud.documentai.v1.Document.Page.DetectedLanguage.fromObject(object.detectedLanguages[i]);
+ }
+ }
+ if (object.provenance != null) {
+ if (typeof object.provenance !== "object")
+ throw TypeError(".google.cloud.documentai.v1.Document.Page.Line.provenance: object expected");
+ message.provenance = $root.google.cloud.documentai.v1.Document.Provenance.fromObject(object.provenance);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a Line message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.documentai.v1.Document.Page.Line
+ * @static
+ * @param {google.cloud.documentai.v1.Document.Page.Line} message Line
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ Line.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.detectedLanguages = [];
+ if (options.defaults) {
+ object.layout = null;
+ object.provenance = null;
+ }
+ if (message.layout != null && message.hasOwnProperty("layout"))
+ object.layout = $root.google.cloud.documentai.v1.Document.Page.Layout.toObject(message.layout, options);
+ if (message.detectedLanguages && message.detectedLanguages.length) {
+ object.detectedLanguages = [];
+ for (var j = 0; j < message.detectedLanguages.length; ++j)
+ object.detectedLanguages[j] = $root.google.cloud.documentai.v1.Document.Page.DetectedLanguage.toObject(message.detectedLanguages[j], options);
+ }
+ if (message.provenance != null && message.hasOwnProperty("provenance"))
+ object.provenance = $root.google.cloud.documentai.v1.Document.Provenance.toObject(message.provenance, options);
+ return object;
+ };
+
+ /**
+ * Converts this Line to JSON.
+ * @function toJSON
+ * @memberof google.cloud.documentai.v1.Document.Page.Line
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ Line.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for Line
+ * @function getTypeUrl
+ * @memberof google.cloud.documentai.v1.Document.Page.Line
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ Line.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.documentai.v1.Document.Page.Line";
+ };
+
+ return Line;
+ })();
+
+ Page.Token = (function() {
+
+ /**
+ * Properties of a Token.
+ * @memberof google.cloud.documentai.v1.Document.Page
+ * @interface IToken
+ * @property {google.cloud.documentai.v1.Document.Page.ILayout|null} [layout] Token layout
+ * @property {google.cloud.documentai.v1.Document.Page.Token.IDetectedBreak|null} [detectedBreak] Token detectedBreak
+ * @property {Array.|null} [detectedLanguages] Token detectedLanguages
+ * @property {google.cloud.documentai.v1.Document.IProvenance|null} [provenance] Token provenance
+ */
+
+ /**
+ * Constructs a new Token.
+ * @memberof google.cloud.documentai.v1.Document.Page
+ * @classdesc Represents a Token.
+ * @implements IToken
+ * @constructor
+ * @param {google.cloud.documentai.v1.Document.Page.IToken=} [properties] Properties to set
+ */
+ function Token(properties) {
+ this.detectedLanguages = [];
+ 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]];
+ }
+
+ /**
+ * Token layout.
+ * @member {google.cloud.documentai.v1.Document.Page.ILayout|null|undefined} layout
+ * @memberof google.cloud.documentai.v1.Document.Page.Token
+ * @instance
+ */
+ Token.prototype.layout = null;
+
+ /**
+ * Token detectedBreak.
+ * @member {google.cloud.documentai.v1.Document.Page.Token.IDetectedBreak|null|undefined} detectedBreak
+ * @memberof google.cloud.documentai.v1.Document.Page.Token
+ * @instance
+ */
+ Token.prototype.detectedBreak = null;
+
+ /**
+ * Token detectedLanguages.
+ * @member {Array.} detectedLanguages
+ * @memberof google.cloud.documentai.v1.Document.Page.Token
+ * @instance
+ */
+ Token.prototype.detectedLanguages = $util.emptyArray;
+
+ /**
+ * Token provenance.
+ * @member {google.cloud.documentai.v1.Document.IProvenance|null|undefined} provenance
+ * @memberof google.cloud.documentai.v1.Document.Page.Token
+ * @instance
+ */
+ Token.prototype.provenance = null;
+
+ /**
+ * Creates a new Token instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.documentai.v1.Document.Page.Token
+ * @static
+ * @param {google.cloud.documentai.v1.Document.Page.IToken=} [properties] Properties to set
+ * @returns {google.cloud.documentai.v1.Document.Page.Token} Token instance
+ */
+ Token.create = function create(properties) {
+ return new Token(properties);
+ };
+
+ /**
+ * Encodes the specified Token message. Does not implicitly {@link google.cloud.documentai.v1.Document.Page.Token.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.documentai.v1.Document.Page.Token
+ * @static
+ * @param {google.cloud.documentai.v1.Document.Page.IToken} message Token message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Token.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.layout != null && Object.hasOwnProperty.call(message, "layout"))
+ $root.google.cloud.documentai.v1.Document.Page.Layout.encode(message.layout, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
+ if (message.detectedBreak != null && Object.hasOwnProperty.call(message, "detectedBreak"))
+ $root.google.cloud.documentai.v1.Document.Page.Token.DetectedBreak.encode(message.detectedBreak, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
+ if (message.detectedLanguages != null && message.detectedLanguages.length)
+ for (var i = 0; i < message.detectedLanguages.length; ++i)
+ $root.google.cloud.documentai.v1.Document.Page.DetectedLanguage.encode(message.detectedLanguages[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
+ if (message.provenance != null && Object.hasOwnProperty.call(message, "provenance"))
+ $root.google.cloud.documentai.v1.Document.Provenance.encode(message.provenance, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified Token message, length delimited. Does not implicitly {@link google.cloud.documentai.v1.Document.Page.Token.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.documentai.v1.Document.Page.Token
+ * @static
+ * @param {google.cloud.documentai.v1.Document.Page.IToken} message Token message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Token.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a Token message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.documentai.v1.Document.Page.Token
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.documentai.v1.Document.Page.Token} Token
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Token.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.documentai.v1.Document.Page.Token();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.layout = $root.google.cloud.documentai.v1.Document.Page.Layout.decode(reader, reader.uint32());
+ break;
+ }
+ case 2: {
+ message.detectedBreak = $root.google.cloud.documentai.v1.Document.Page.Token.DetectedBreak.decode(reader, reader.uint32());
+ break;
+ }
+ case 3: {
+ if (!(message.detectedLanguages && message.detectedLanguages.length))
+ message.detectedLanguages = [];
+ message.detectedLanguages.push($root.google.cloud.documentai.v1.Document.Page.DetectedLanguage.decode(reader, reader.uint32()));
+ break;
+ }
+ case 4: {
+ message.provenance = $root.google.cloud.documentai.v1.Document.Provenance.decode(reader, reader.uint32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a Token message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.documentai.v1.Document.Page.Token
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.documentai.v1.Document.Page.Token} Token
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Token.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a Token message.
+ * @function verify
+ * @memberof google.cloud.documentai.v1.Document.Page.Token
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ Token.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.layout != null && message.hasOwnProperty("layout")) {
+ var error = $root.google.cloud.documentai.v1.Document.Page.Layout.verify(message.layout);
+ if (error)
+ return "layout." + error;
+ }
+ if (message.detectedBreak != null && message.hasOwnProperty("detectedBreak")) {
+ var error = $root.google.cloud.documentai.v1.Document.Page.Token.DetectedBreak.verify(message.detectedBreak);
+ if (error)
+ return "detectedBreak." + error;
+ }
+ if (message.detectedLanguages != null && message.hasOwnProperty("detectedLanguages")) {
+ if (!Array.isArray(message.detectedLanguages))
+ return "detectedLanguages: array expected";
+ for (var i = 0; i < message.detectedLanguages.length; ++i) {
+ var error = $root.google.cloud.documentai.v1.Document.Page.DetectedLanguage.verify(message.detectedLanguages[i]);
+ if (error)
+ return "detectedLanguages." + error;
+ }
+ }
+ if (message.provenance != null && message.hasOwnProperty("provenance")) {
+ var error = $root.google.cloud.documentai.v1.Document.Provenance.verify(message.provenance);
+ if (error)
+ return "provenance." + error;
+ }
+ return null;
+ };
+
+ /**
+ * Creates a Token message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.documentai.v1.Document.Page.Token
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.documentai.v1.Document.Page.Token} Token
+ */
+ Token.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.documentai.v1.Document.Page.Token)
+ return object;
+ var message = new $root.google.cloud.documentai.v1.Document.Page.Token();
+ if (object.layout != null) {
+ if (typeof object.layout !== "object")
+ throw TypeError(".google.cloud.documentai.v1.Document.Page.Token.layout: object expected");
+ message.layout = $root.google.cloud.documentai.v1.Document.Page.Layout.fromObject(object.layout);
+ }
+ if (object.detectedBreak != null) {
+ if (typeof object.detectedBreak !== "object")
+ throw TypeError(".google.cloud.documentai.v1.Document.Page.Token.detectedBreak: object expected");
+ message.detectedBreak = $root.google.cloud.documentai.v1.Document.Page.Token.DetectedBreak.fromObject(object.detectedBreak);
+ }
+ if (object.detectedLanguages) {
+ if (!Array.isArray(object.detectedLanguages))
+ throw TypeError(".google.cloud.documentai.v1.Document.Page.Token.detectedLanguages: array expected");
+ message.detectedLanguages = [];
+ for (var i = 0; i < object.detectedLanguages.length; ++i) {
+ if (typeof object.detectedLanguages[i] !== "object")
+ throw TypeError(".google.cloud.documentai.v1.Document.Page.Token.detectedLanguages: object expected");
+ message.detectedLanguages[i] = $root.google.cloud.documentai.v1.Document.Page.DetectedLanguage.fromObject(object.detectedLanguages[i]);
+ }
+ }
+ if (object.provenance != null) {
+ if (typeof object.provenance !== "object")
+ throw TypeError(".google.cloud.documentai.v1.Document.Page.Token.provenance: object expected");
+ message.provenance = $root.google.cloud.documentai.v1.Document.Provenance.fromObject(object.provenance);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a Token message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.documentai.v1.Document.Page.Token
+ * @static
+ * @param {google.cloud.documentai.v1.Document.Page.Token} message Token
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ Token.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.detectedLanguages = [];
+ if (options.defaults) {
+ object.layout = null;
+ object.detectedBreak = null;
+ object.provenance = null;
+ }
+ if (message.layout != null && message.hasOwnProperty("layout"))
+ object.layout = $root.google.cloud.documentai.v1.Document.Page.Layout.toObject(message.layout, options);
+ if (message.detectedBreak != null && message.hasOwnProperty("detectedBreak"))
+ object.detectedBreak = $root.google.cloud.documentai.v1.Document.Page.Token.DetectedBreak.toObject(message.detectedBreak, options);
+ if (message.detectedLanguages && message.detectedLanguages.length) {
+ object.detectedLanguages = [];
+ for (var j = 0; j < message.detectedLanguages.length; ++j)
+ object.detectedLanguages[j] = $root.google.cloud.documentai.v1.Document.Page.DetectedLanguage.toObject(message.detectedLanguages[j], options);
+ }
+ if (message.provenance != null && message.hasOwnProperty("provenance"))
+ object.provenance = $root.google.cloud.documentai.v1.Document.Provenance.toObject(message.provenance, options);
+ return object;
+ };
+
+ /**
+ * Converts this Token to JSON.
+ * @function toJSON
+ * @memberof google.cloud.documentai.v1.Document.Page.Token
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ Token.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for Token
+ * @function getTypeUrl
+ * @memberof google.cloud.documentai.v1.Document.Page.Token
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ Token.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.documentai.v1.Document.Page.Token";
+ };
+
+ Token.DetectedBreak = (function() {
+
+ /**
+ * Properties of a DetectedBreak.
+ * @memberof google.cloud.documentai.v1.Document.Page.Token
+ * @interface IDetectedBreak
+ * @property {google.cloud.documentai.v1.Document.Page.Token.DetectedBreak.Type|null} [type] DetectedBreak type
+ */
+
+ /**
+ * Constructs a new DetectedBreak.
+ * @memberof google.cloud.documentai.v1.Document.Page.Token
+ * @classdesc Represents a DetectedBreak.
+ * @implements IDetectedBreak
+ * @constructor
+ * @param {google.cloud.documentai.v1.Document.Page.Token.IDetectedBreak=} [properties] Properties to set
+ */
+ function DetectedBreak(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]];
+ }
+
+ /**
+ * DetectedBreak type.
+ * @member {google.cloud.documentai.v1.Document.Page.Token.DetectedBreak.Type} type
+ * @memberof google.cloud.documentai.v1.Document.Page.Token.DetectedBreak
+ * @instance
+ */
+ DetectedBreak.prototype.type = 0;
+
+ /**
+ * Creates a new DetectedBreak instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.documentai.v1.Document.Page.Token.DetectedBreak
+ * @static
+ * @param {google.cloud.documentai.v1.Document.Page.Token.IDetectedBreak=} [properties] Properties to set
+ * @returns {google.cloud.documentai.v1.Document.Page.Token.DetectedBreak} DetectedBreak instance
+ */
+ DetectedBreak.create = function create(properties) {
+ return new DetectedBreak(properties);
+ };
+
+ /**
+ * Encodes the specified DetectedBreak message. Does not implicitly {@link google.cloud.documentai.v1.Document.Page.Token.DetectedBreak.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.documentai.v1.Document.Page.Token.DetectedBreak
+ * @static
+ * @param {google.cloud.documentai.v1.Document.Page.Token.IDetectedBreak} message DetectedBreak message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ DetectedBreak.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.type != null && Object.hasOwnProperty.call(message, "type"))
+ writer.uint32(/* id 1, wireType 0 =*/8).int32(message.type);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified DetectedBreak message, length delimited. Does not implicitly {@link google.cloud.documentai.v1.Document.Page.Token.DetectedBreak.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.documentai.v1.Document.Page.Token.DetectedBreak
+ * @static
+ * @param {google.cloud.documentai.v1.Document.Page.Token.IDetectedBreak} message DetectedBreak message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ DetectedBreak.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a DetectedBreak message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.documentai.v1.Document.Page.Token.DetectedBreak
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.documentai.v1.Document.Page.Token.DetectedBreak} DetectedBreak
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ DetectedBreak.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.documentai.v1.Document.Page.Token.DetectedBreak();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.type = reader.int32();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a DetectedBreak message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.documentai.v1.Document.Page.Token.DetectedBreak
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.documentai.v1.Document.Page.Token.DetectedBreak} DetectedBreak
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ DetectedBreak.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a DetectedBreak message.
+ * @function verify
+ * @memberof google.cloud.documentai.v1.Document.Page.Token.DetectedBreak
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ DetectedBreak.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.type != null && message.hasOwnProperty("type"))
+ switch (message.type) {
+ default:
+ return "type: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ case 3:
+ break;
+ }
+ return null;
+ };
+
+ /**
+ * Creates a DetectedBreak message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.documentai.v1.Document.Page.Token.DetectedBreak
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.documentai.v1.Document.Page.Token.DetectedBreak} DetectedBreak
+ */
+ DetectedBreak.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.documentai.v1.Document.Page.Token.DetectedBreak)
+ return object;
+ var message = new $root.google.cloud.documentai.v1.Document.Page.Token.DetectedBreak();
+ switch (object.type) {
+ default:
+ if (typeof object.type === "number") {
+ message.type = object.type;
+ break;
+ }
+ break;
+ case "TYPE_UNSPECIFIED":
+ case 0:
+ message.type = 0;
+ break;
+ case "SPACE":
+ case 1:
+ message.type = 1;
+ break;
+ case "WIDE_SPACE":
+ case 2:
+ message.type = 2;
+ break;
+ case "HYPHEN":
+ case 3:
+ message.type = 3;
+ break;
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a DetectedBreak message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.documentai.v1.Document.Page.Token.DetectedBreak
+ * @static
+ * @param {google.cloud.documentai.v1.Document.Page.Token.DetectedBreak} message DetectedBreak
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ DetectedBreak.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults)
+ object.type = options.enums === String ? "TYPE_UNSPECIFIED" : 0;
+ if (message.type != null && message.hasOwnProperty("type"))
+ object.type = options.enums === String ? $root.google.cloud.documentai.v1.Document.Page.Token.DetectedBreak.Type[message.type] === undefined ? message.type : $root.google.cloud.documentai.v1.Document.Page.Token.DetectedBreak.Type[message.type] : message.type;
+ return object;
+ };
+
+ /**
+ * Converts this DetectedBreak to JSON.
+ * @function toJSON
+ * @memberof google.cloud.documentai.v1.Document.Page.Token.DetectedBreak
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ DetectedBreak.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for DetectedBreak
+ * @function getTypeUrl
+ * @memberof google.cloud.documentai.v1.Document.Page.Token.DetectedBreak
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ DetectedBreak.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.documentai.v1.Document.Page.Token.DetectedBreak";
+ };
+
+ /**
+ * Type enum.
+ * @name google.cloud.documentai.v1.Document.Page.Token.DetectedBreak.Type
+ * @enum {number}
+ * @property {number} TYPE_UNSPECIFIED=0 TYPE_UNSPECIFIED value
+ * @property {number} SPACE=1 SPACE value
+ * @property {number} WIDE_SPACE=2 WIDE_SPACE value
+ * @property {number} HYPHEN=3 HYPHEN value
+ */
+ DetectedBreak.Type = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "TYPE_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "SPACE"] = 1;
+ values[valuesById[2] = "WIDE_SPACE"] = 2;
+ values[valuesById[3] = "HYPHEN"] = 3;
+ return values;
+ })();
+
+ return DetectedBreak;
+ })();
+
+ return Token;
+ })();
+
+ Page.Symbol = (function() {
+
+ /**
+ * Properties of a Symbol.
+ * @memberof google.cloud.documentai.v1.Document.Page
+ * @interface ISymbol
+ * @property {google.cloud.documentai.v1.Document.Page.ILayout|null} [layout] Symbol layout
+ * @property {Array.|null} [detectedLanguages] Symbol detectedLanguages
+ */
+
+ /**
+ * Constructs a new Symbol.
+ * @memberof google.cloud.documentai.v1.Document.Page
+ * @classdesc Represents a Symbol.
+ * @implements ISymbol
+ * @constructor
+ * @param {google.cloud.documentai.v1.Document.Page.ISymbol=} [properties] Properties to set
+ */
+ function Symbol(properties) {
+ this.detectedLanguages = [];
+ 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]];
+ }
+
+ /**
+ * Symbol layout.
+ * @member {google.cloud.documentai.v1.Document.Page.ILayout|null|undefined} layout
+ * @memberof google.cloud.documentai.v1.Document.Page.Symbol
+ * @instance
+ */
+ Symbol.prototype.layout = null;
+
+ /**
+ * Symbol detectedLanguages.
+ * @member {Array.} detectedLanguages
+ * @memberof google.cloud.documentai.v1.Document.Page.Symbol
+ * @instance
+ */
+ Symbol.prototype.detectedLanguages = $util.emptyArray;
+
+ /**
+ * Creates a new Symbol instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.documentai.v1.Document.Page.Symbol
+ * @static
+ * @param {google.cloud.documentai.v1.Document.Page.ISymbol=} [properties] Properties to set
+ * @returns {google.cloud.documentai.v1.Document.Page.Symbol} Symbol instance
+ */
+ Symbol.create = function create(properties) {
+ return new Symbol(properties);
+ };
+
+ /**
+ * Encodes the specified Symbol message. Does not implicitly {@link google.cloud.documentai.v1.Document.Page.Symbol.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.documentai.v1.Document.Page.Symbol
+ * @static
+ * @param {google.cloud.documentai.v1.Document.Page.ISymbol} message Symbol message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Symbol.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.layout != null && Object.hasOwnProperty.call(message, "layout"))
+ $root.google.cloud.documentai.v1.Document.Page.Layout.encode(message.layout, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
+ if (message.detectedLanguages != null && message.detectedLanguages.length)
+ for (var i = 0; i < message.detectedLanguages.length; ++i)
+ $root.google.cloud.documentai.v1.Document.Page.DetectedLanguage.encode(message.detectedLanguages[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified Symbol message, length delimited. Does not implicitly {@link google.cloud.documentai.v1.Document.Page.Symbol.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.documentai.v1.Document.Page.Symbol
+ * @static
+ * @param {google.cloud.documentai.v1.Document.Page.ISymbol} message Symbol message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Symbol.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a Symbol message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.documentai.v1.Document.Page.Symbol
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.documentai.v1.Document.Page.Symbol} Symbol
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Symbol.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.documentai.v1.Document.Page.Symbol();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.layout = $root.google.cloud.documentai.v1.Document.Page.Layout.decode(reader, reader.uint32());
+ break;
+ }
+ case 2: {
+ if (!(message.detectedLanguages && message.detectedLanguages.length))
+ message.detectedLanguages = [];
+ message.detectedLanguages.push($root.google.cloud.documentai.v1.Document.Page.DetectedLanguage.decode(reader, reader.uint32()));
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a Symbol message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.documentai.v1.Document.Page.Symbol
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.documentai.v1.Document.Page.Symbol} Symbol
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Symbol.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a Symbol message.
+ * @function verify
+ * @memberof google.cloud.documentai.v1.Document.Page.Symbol
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ Symbol.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.layout != null && message.hasOwnProperty("layout")) {
+ var error = $root.google.cloud.documentai.v1.Document.Page.Layout.verify(message.layout);
+ if (error)
+ return "layout." + error;
+ }
+ if (message.detectedLanguages != null && message.hasOwnProperty("detectedLanguages")) {
+ if (!Array.isArray(message.detectedLanguages))
+ return "detectedLanguages: array expected";
+ for (var i = 0; i < message.detectedLanguages.length; ++i) {
+ var error = $root.google.cloud.documentai.v1.Document.Page.DetectedLanguage.verify(message.detectedLanguages[i]);
+ if (error)
+ return "detectedLanguages." + error;
+ }
+ }
+ return null;
+ };
+
+ /**
+ * Creates a Symbol message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.documentai.v1.Document.Page.Symbol
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.documentai.v1.Document.Page.Symbol} Symbol
+ */
+ Symbol.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.documentai.v1.Document.Page.Symbol)
+ return object;
+ var message = new $root.google.cloud.documentai.v1.Document.Page.Symbol();
+ if (object.layout != null) {
+ if (typeof object.layout !== "object")
+ throw TypeError(".google.cloud.documentai.v1.Document.Page.Symbol.layout: object expected");
+ message.layout = $root.google.cloud.documentai.v1.Document.Page.Layout.fromObject(object.layout);
+ }
+ if (object.detectedLanguages) {
+ if (!Array.isArray(object.detectedLanguages))
+ throw TypeError(".google.cloud.documentai.v1.Document.Page.Symbol.detectedLanguages: array expected");
+ message.detectedLanguages = [];
+ for (var i = 0; i < object.detectedLanguages.length; ++i) {
+ if (typeof object.detectedLanguages[i] !== "object")
+ throw TypeError(".google.cloud.documentai.v1.Document.Page.Symbol.detectedLanguages: object expected");
+ message.detectedLanguages[i] = $root.google.cloud.documentai.v1.Document.Page.DetectedLanguage.fromObject(object.detectedLanguages[i]);
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a Symbol message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.documentai.v1.Document.Page.Symbol
+ * @static
+ * @param {google.cloud.documentai.v1.Document.Page.Symbol} message Symbol
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ Symbol.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.detectedLanguages = [];
+ if (options.defaults)
+ object.layout = null;
+ if (message.layout != null && message.hasOwnProperty("layout"))
+ object.layout = $root.google.cloud.documentai.v1.Document.Page.Layout.toObject(message.layout, options);
+ if (message.detectedLanguages && message.detectedLanguages.length) {
+ object.detectedLanguages = [];
+ for (var j = 0; j < message.detectedLanguages.length; ++j)
+ object.detectedLanguages[j] = $root.google.cloud.documentai.v1.Document.Page.DetectedLanguage.toObject(message.detectedLanguages[j], options);
+ }
+ return object;
+ };
+
+ /**
+ * Converts this Symbol to JSON.
+ * @function toJSON
+ * @memberof google.cloud.documentai.v1.Document.Page.Symbol
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ Symbol.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for Symbol
+ * @function getTypeUrl
+ * @memberof google.cloud.documentai.v1.Document.Page.Symbol
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ Symbol.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.documentai.v1.Document.Page.Symbol";
+ };
+
+ return Symbol;
+ })();
+
+ Page.VisualElement = (function() {
+
+ /**
+ * Properties of a VisualElement.
+ * @memberof google.cloud.documentai.v1.Document.Page
+ * @interface IVisualElement
+ * @property {google.cloud.documentai.v1.Document.Page.ILayout|null} [layout] VisualElement layout
+ * @property {string|null} [type] VisualElement type
+ * @property {Array.|null} [detectedLanguages] VisualElement detectedLanguages
+ */
+
+ /**
+ * Constructs a new VisualElement.
+ * @memberof google.cloud.documentai.v1.Document.Page
+ * @classdesc Represents a VisualElement.
+ * @implements IVisualElement
+ * @constructor
+ * @param {google.cloud.documentai.v1.Document.Page.IVisualElement=} [properties] Properties to set
+ */
+ function VisualElement(properties) {
+ this.detectedLanguages = [];
+ 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]];
+ }
+
+ /**
+ * VisualElement layout.
+ * @member {google.cloud.documentai.v1.Document.Page.ILayout|null|undefined} layout
+ * @memberof google.cloud.documentai.v1.Document.Page.VisualElement
+ * @instance
+ */
+ VisualElement.prototype.layout = null;
+
+ /**
+ * VisualElement type.
+ * @member {string} type
+ * @memberof google.cloud.documentai.v1.Document.Page.VisualElement
+ * @instance
+ */
+ VisualElement.prototype.type = "";
+
+ /**
+ * VisualElement detectedLanguages.
+ * @member {Array.} detectedLanguages
+ * @memberof google.cloud.documentai.v1.Document.Page.VisualElement
+ * @instance
+ */
+ VisualElement.prototype.detectedLanguages = $util.emptyArray;
+
+ /**
+ * Creates a new VisualElement instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.documentai.v1.Document.Page.VisualElement
+ * @static
+ * @param {google.cloud.documentai.v1.Document.Page.IVisualElement=} [properties] Properties to set
+ * @returns {google.cloud.documentai.v1.Document.Page.VisualElement} VisualElement instance
+ */
+ VisualElement.create = function create(properties) {
+ return new VisualElement(properties);
+ };
+
+ /**
+ * Encodes the specified VisualElement message. Does not implicitly {@link google.cloud.documentai.v1.Document.Page.VisualElement.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.documentai.v1.Document.Page.VisualElement
+ * @static
+ * @param {google.cloud.documentai.v1.Document.Page.IVisualElement} message VisualElement message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ VisualElement.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.layout != null && Object.hasOwnProperty.call(message, "layout"))
+ $root.google.cloud.documentai.v1.Document.Page.Layout.encode(message.layout, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
+ if (message.type != null && Object.hasOwnProperty.call(message, "type"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.type);
+ if (message.detectedLanguages != null && message.detectedLanguages.length)
+ for (var i = 0; i < message.detectedLanguages.length; ++i)
+ $root.google.cloud.documentai.v1.Document.Page.DetectedLanguage.encode(message.detectedLanguages[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified VisualElement message, length delimited. Does not implicitly {@link google.cloud.documentai.v1.Document.Page.VisualElement.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.documentai.v1.Document.Page.VisualElement
+ * @static
+ * @param {google.cloud.documentai.v1.Document.Page.IVisualElement} message VisualElement message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ VisualElement.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a VisualElement message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.documentai.v1.Document.Page.VisualElement
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.documentai.v1.Document.Page.VisualElement} VisualElement
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ VisualElement.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.documentai.v1.Document.Page.VisualElement();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.layout = $root.google.cloud.documentai.v1.Document.Page.Layout.decode(reader, reader.uint32());
+ break;
+ }
+ case 2: {
+ message.type = reader.string();
+ break;
+ }
+ case 3: {
+ if (!(message.detectedLanguages && message.detectedLanguages.length))
+ message.detectedLanguages = [];
+ message.detectedLanguages.push($root.google.cloud.documentai.v1.Document.Page.DetectedLanguage.decode(reader, reader.uint32()));
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a VisualElement message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.documentai.v1.Document.Page.VisualElement
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.documentai.v1.Document.Page.VisualElement} VisualElement
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ VisualElement.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a VisualElement message.
+ * @function verify
+ * @memberof google.cloud.documentai.v1.Document.Page.VisualElement
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ VisualElement.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.layout != null && message.hasOwnProperty("layout")) {
+ var error = $root.google.cloud.documentai.v1.Document.Page.Layout.verify(message.layout);
+ if (error)
+ return "layout." + error;
+ }
+ if (message.type != null && message.hasOwnProperty("type"))
+ if (!$util.isString(message.type))
+ return "type: string expected";
+ if (message.detectedLanguages != null && message.hasOwnProperty("detectedLanguages")) {
+ if (!Array.isArray(message.detectedLanguages))
+ return "detectedLanguages: array expected";
+ for (var i = 0; i < message.detectedLanguages.length; ++i) {
+ var error = $root.google.cloud.documentai.v1.Document.Page.DetectedLanguage.verify(message.detectedLanguages[i]);
+ if (error)
+ return "detectedLanguages." + error;
+ }
+ }
+ return null;
+ };
+
+ /**
+ * Creates a VisualElement message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.documentai.v1.Document.Page.VisualElement
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.documentai.v1.Document.Page.VisualElement} VisualElement
+ */
+ VisualElement.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.documentai.v1.Document.Page.VisualElement)
+ return object;
+ var message = new $root.google.cloud.documentai.v1.Document.Page.VisualElement();
+ if (object.layout != null) {
+ if (typeof object.layout !== "object")
+ throw TypeError(".google.cloud.documentai.v1.Document.Page.VisualElement.layout: object expected");
+ message.layout = $root.google.cloud.documentai.v1.Document.Page.Layout.fromObject(object.layout);
+ }
+ if (object.type != null)
+ message.type = String(object.type);
+ if (object.detectedLanguages) {
+ if (!Array.isArray(object.detectedLanguages))
+ throw TypeError(".google.cloud.documentai.v1.Document.Page.VisualElement.detectedLanguages: array expected");
+ message.detectedLanguages = [];
+ for (var i = 0; i < object.detectedLanguages.length; ++i) {
+ if (typeof object.detectedLanguages[i] !== "object")
+ throw TypeError(".google.cloud.documentai.v1.Document.Page.VisualElement.detectedLanguages: object expected");
+ message.detectedLanguages[i] = $root.google.cloud.documentai.v1.Document.Page.DetectedLanguage.fromObject(object.detectedLanguages[i]);
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a VisualElement message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.documentai.v1.Document.Page.VisualElement
+ * @static
+ * @param {google.cloud.documentai.v1.Document.Page.VisualElement} message VisualElement
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ VisualElement.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.detectedLanguages = [];
+ if (options.defaults) {
+ object.layout = null;
+ object.type = "";
+ }
+ if (message.layout != null && message.hasOwnProperty("layout"))
+ object.layout = $root.google.cloud.documentai.v1.Document.Page.Layout.toObject(message.layout, options);
+ if (message.type != null && message.hasOwnProperty("type"))
+ object.type = message.type;
+ if (message.detectedLanguages && message.detectedLanguages.length) {
+ object.detectedLanguages = [];
+ for (var j = 0; j < message.detectedLanguages.length; ++j)
+ object.detectedLanguages[j] = $root.google.cloud.documentai.v1.Document.Page.DetectedLanguage.toObject(message.detectedLanguages[j], options);
+ }
+ return object;
+ };
+
+ /**
+ * Converts this VisualElement to JSON.
+ * @function toJSON
+ * @memberof google.cloud.documentai.v1.Document.Page.VisualElement
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ VisualElement.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for VisualElement
+ * @function getTypeUrl
+ * @memberof google.cloud.documentai.v1.Document.Page.VisualElement
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ VisualElement.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.documentai.v1.Document.Page.VisualElement";
+ };
+
+ return VisualElement;
+ })();
+
+ Page.Table = (function() {
+
+ /**
+ * Properties of a Table.
+ * @memberof google.cloud.documentai.v1.Document.Page
+ * @interface ITable
+ * @property {google.cloud.documentai.v1.Document.Page.ILayout|null} [layout] Table layout
+ * @property {Array.|null} [headerRows] Table headerRows
+ * @property {Array.|null} [bodyRows] Table bodyRows
+ * @property {Array.|null} [detectedLanguages] Table detectedLanguages
+ * @property {google.cloud.documentai.v1.Document.IProvenance|null} [provenance] Table provenance
+ */
+
+ /**
+ * Constructs a new Table.
+ * @memberof google.cloud.documentai.v1.Document.Page
+ * @classdesc Represents a Table.
+ * @implements ITable
+ * @constructor
+ * @param {google.cloud.documentai.v1.Document.Page.ITable=} [properties] Properties to set
+ */
+ function Table(properties) {
+ this.headerRows = [];
+ this.bodyRows = [];
+ this.detectedLanguages = [];
+ 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]];
+ }
+
+ /**
+ * Table layout.
+ * @member {google.cloud.documentai.v1.Document.Page.ILayout|null|undefined} layout
+ * @memberof google.cloud.documentai.v1.Document.Page.Table
+ * @instance
+ */
+ Table.prototype.layout = null;
+
+ /**
+ * Table headerRows.
+ * @member {Array.} headerRows
+ * @memberof google.cloud.documentai.v1.Document.Page.Table
+ * @instance
+ */
+ Table.prototype.headerRows = $util.emptyArray;
+
+ /**
+ * Table bodyRows.
+ * @member {Array.} bodyRows
+ * @memberof google.cloud.documentai.v1.Document.Page.Table
+ * @instance
+ */
+ Table.prototype.bodyRows = $util.emptyArray;
+
+ /**
+ * Table detectedLanguages.
+ * @member {Array.} detectedLanguages
+ * @memberof google.cloud.documentai.v1.Document.Page.Table
+ * @instance
+ */
+ Table.prototype.detectedLanguages = $util.emptyArray;
+
+ /**
+ * Table provenance.
+ * @member {google.cloud.documentai.v1.Document.IProvenance|null|undefined} provenance
+ * @memberof google.cloud.documentai.v1.Document.Page.Table
+ * @instance
+ */
+ Table.prototype.provenance = null;
+
+ /**
+ * Creates a new Table instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.documentai.v1.Document.Page.Table
+ * @static
+ * @param {google.cloud.documentai.v1.Document.Page.ITable=} [properties] Properties to set
+ * @returns {google.cloud.documentai.v1.Document.Page.Table} Table instance
+ */
+ Table.create = function create(properties) {
+ return new Table(properties);
+ };
+
+ /**
+ * Encodes the specified Table message. Does not implicitly {@link google.cloud.documentai.v1.Document.Page.Table.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.documentai.v1.Document.Page.Table
+ * @static
+ * @param {google.cloud.documentai.v1.Document.Page.ITable} message Table message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Table.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.layout != null && Object.hasOwnProperty.call(message, "layout"))
+ $root.google.cloud.documentai.v1.Document.Page.Layout.encode(message.layout, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
+ if (message.headerRows != null && message.headerRows.length)
+ for (var i = 0; i < message.headerRows.length; ++i)
+ $root.google.cloud.documentai.v1.Document.Page.Table.TableRow.encode(message.headerRows[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
+ if (message.bodyRows != null && message.bodyRows.length)
+ for (var i = 0; i < message.bodyRows.length; ++i)
+ $root.google.cloud.documentai.v1.Document.Page.Table.TableRow.encode(message.bodyRows[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
+ if (message.detectedLanguages != null && message.detectedLanguages.length)
+ for (var i = 0; i < message.detectedLanguages.length; ++i)
+ $root.google.cloud.documentai.v1.Document.Page.DetectedLanguage.encode(message.detectedLanguages[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
+ if (message.provenance != null && Object.hasOwnProperty.call(message, "provenance"))
+ $root.google.cloud.documentai.v1.Document.Provenance.encode(message.provenance, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified Table message, length delimited. Does not implicitly {@link google.cloud.documentai.v1.Document.Page.Table.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.documentai.v1.Document.Page.Table
+ * @static
+ * @param {google.cloud.documentai.v1.Document.Page.ITable} message Table message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Table.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a Table message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.documentai.v1.Document.Page.Table
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.documentai.v1.Document.Page.Table} Table
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Table.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.documentai.v1.Document.Page.Table();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.layout = $root.google.cloud.documentai.v1.Document.Page.Layout.decode(reader, reader.uint32());
+ break;
+ }
+ case 2: {
+ if (!(message.headerRows && message.headerRows.length))
+ message.headerRows = [];
+ message.headerRows.push($root.google.cloud.documentai.v1.Document.Page.Table.TableRow.decode(reader, reader.uint32()));
+ break;
+ }
+ case 3: {
+ if (!(message.bodyRows && message.bodyRows.length))
+ message.bodyRows = [];
+ message.bodyRows.push($root.google.cloud.documentai.v1.Document.Page.Table.TableRow.decode(reader, reader.uint32()));
+ break;
+ }
+ case 4: {
+ if (!(message.detectedLanguages && message.detectedLanguages.length))
+ message.detectedLanguages = [];
+ message.detectedLanguages.push($root.google.cloud.documentai.v1.Document.Page.DetectedLanguage.decode(reader, reader.uint32()));
+ break;
+ }
+ case 5: {
+ message.provenance = $root.google.cloud.documentai.v1.Document.Provenance.decode(reader, reader.uint32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a Table message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.documentai.v1.Document.Page.Table
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.documentai.v1.Document.Page.Table} Table
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Table.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a Table message.
+ * @function verify
+ * @memberof google.cloud.documentai.v1.Document.Page.Table
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ Table.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.layout != null && message.hasOwnProperty("layout")) {
+ var error = $root.google.cloud.documentai.v1.Document.Page.Layout.verify(message.layout);
+ if (error)
+ return "layout." + error;
+ }
+ if (message.headerRows != null && message.hasOwnProperty("headerRows")) {
+ if (!Array.isArray(message.headerRows))
+ return "headerRows: array expected";
+ for (var i = 0; i < message.headerRows.length; ++i) {
+ var error = $root.google.cloud.documentai.v1.Document.Page.Table.TableRow.verify(message.headerRows[i]);
+ if (error)
+ return "headerRows." + error;
+ }
+ }
+ if (message.bodyRows != null && message.hasOwnProperty("bodyRows")) {
+ if (!Array.isArray(message.bodyRows))
+ return "bodyRows: array expected";
+ for (var i = 0; i < message.bodyRows.length; ++i) {
+ var error = $root.google.cloud.documentai.v1.Document.Page.Table.TableRow.verify(message.bodyRows[i]);
+ if (error)
+ return "bodyRows." + error;
+ }
+ }
+ if (message.detectedLanguages != null && message.hasOwnProperty("detectedLanguages")) {
+ if (!Array.isArray(message.detectedLanguages))
+ return "detectedLanguages: array expected";
+ for (var i = 0; i < message.detectedLanguages.length; ++i) {
+ var error = $root.google.cloud.documentai.v1.Document.Page.DetectedLanguage.verify(message.detectedLanguages[i]);
+ if (error)
+ return "detectedLanguages." + error;
+ }
+ }
+ if (message.provenance != null && message.hasOwnProperty("provenance")) {
+ var error = $root.google.cloud.documentai.v1.Document.Provenance.verify(message.provenance);
+ if (error)
+ return "provenance." + error;
+ }
+ return null;
+ };
+
+ /**
+ * Creates a Table message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.documentai.v1.Document.Page.Table
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.documentai.v1.Document.Page.Table} Table
+ */
+ Table.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.documentai.v1.Document.Page.Table)
+ return object;
+ var message = new $root.google.cloud.documentai.v1.Document.Page.Table();
+ if (object.layout != null) {
+ if (typeof object.layout !== "object")
+ throw TypeError(".google.cloud.documentai.v1.Document.Page.Table.layout: object expected");
+ message.layout = $root.google.cloud.documentai.v1.Document.Page.Layout.fromObject(object.layout);
+ }
+ if (object.headerRows) {
+ if (!Array.isArray(object.headerRows))
+ throw TypeError(".google.cloud.documentai.v1.Document.Page.Table.headerRows: array expected");
+ message.headerRows = [];
+ for (var i = 0; i < object.headerRows.length; ++i) {
+ if (typeof object.headerRows[i] !== "object")
+ throw TypeError(".google.cloud.documentai.v1.Document.Page.Table.headerRows: object expected");
+ message.headerRows[i] = $root.google.cloud.documentai.v1.Document.Page.Table.TableRow.fromObject(object.headerRows[i]);
+ }
+ }
+ if (object.bodyRows) {
+ if (!Array.isArray(object.bodyRows))
+ throw TypeError(".google.cloud.documentai.v1.Document.Page.Table.bodyRows: array expected");
+ message.bodyRows = [];
+ for (var i = 0; i < object.bodyRows.length; ++i) {
+ if (typeof object.bodyRows[i] !== "object")
+ throw TypeError(".google.cloud.documentai.v1.Document.Page.Table.bodyRows: object expected");
+ message.bodyRows[i] = $root.google.cloud.documentai.v1.Document.Page.Table.TableRow.fromObject(object.bodyRows[i]);
+ }
+ }
+ if (object.detectedLanguages) {
+ if (!Array.isArray(object.detectedLanguages))
+ throw TypeError(".google.cloud.documentai.v1.Document.Page.Table.detectedLanguages: array expected");
+ message.detectedLanguages = [];
+ for (var i = 0; i < object.detectedLanguages.length; ++i) {
+ if (typeof object.detectedLanguages[i] !== "object")
+ throw TypeError(".google.cloud.documentai.v1.Document.Page.Table.detectedLanguages: object expected");
+ message.detectedLanguages[i] = $root.google.cloud.documentai.v1.Document.Page.DetectedLanguage.fromObject(object.detectedLanguages[i]);
+ }
+ }
+ if (object.provenance != null) {
+ if (typeof object.provenance !== "object")
+ throw TypeError(".google.cloud.documentai.v1.Document.Page.Table.provenance: object expected");
+ message.provenance = $root.google.cloud.documentai.v1.Document.Provenance.fromObject(object.provenance);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a Table message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.documentai.v1.Document.Page.Table
+ * @static
+ * @param {google.cloud.documentai.v1.Document.Page.Table} message Table
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ Table.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults) {
+ object.headerRows = [];
+ object.bodyRows = [];
+ object.detectedLanguages = [];
+ }
+ if (options.defaults) {
+ object.layout = null;
+ object.provenance = null;
+ }
+ if (message.layout != null && message.hasOwnProperty("layout"))
+ object.layout = $root.google.cloud.documentai.v1.Document.Page.Layout.toObject(message.layout, options);
+ if (message.headerRows && message.headerRows.length) {
+ object.headerRows = [];
+ for (var j = 0; j < message.headerRows.length; ++j)
+ object.headerRows[j] = $root.google.cloud.documentai.v1.Document.Page.Table.TableRow.toObject(message.headerRows[j], options);
+ }
+ if (message.bodyRows && message.bodyRows.length) {
+ object.bodyRows = [];
+ for (var j = 0; j < message.bodyRows.length; ++j)
+ object.bodyRows[j] = $root.google.cloud.documentai.v1.Document.Page.Table.TableRow.toObject(message.bodyRows[j], options);
+ }
+ if (message.detectedLanguages && message.detectedLanguages.length) {
+ object.detectedLanguages = [];
+ for (var j = 0; j < message.detectedLanguages.length; ++j)
+ object.detectedLanguages[j] = $root.google.cloud.documentai.v1.Document.Page.DetectedLanguage.toObject(message.detectedLanguages[j], options);
+ }
+ if (message.provenance != null && message.hasOwnProperty("provenance"))
+ object.provenance = $root.google.cloud.documentai.v1.Document.Provenance.toObject(message.provenance, options);
+ return object;
+ };
+
+ /**
+ * Converts this Table to JSON.
+ * @function toJSON
+ * @memberof google.cloud.documentai.v1.Document.Page.Table
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ Table.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for Table
+ * @function getTypeUrl
+ * @memberof google.cloud.documentai.v1.Document.Page.Table
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ Table.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.documentai.v1.Document.Page.Table";
+ };
+
+ Table.TableRow = (function() {
+
+ /**
+ * Properties of a TableRow.
+ * @memberof google.cloud.documentai.v1.Document.Page.Table
+ * @interface ITableRow
+ * @property {Array.|null} [cells] TableRow cells
+ */
+
+ /**
+ * Constructs a new TableRow.
+ * @memberof google.cloud.documentai.v1.Document.Page.Table
+ * @classdesc Represents a TableRow.
+ * @implements ITableRow
+ * @constructor
+ * @param {google.cloud.documentai.v1.Document.Page.Table.ITableRow=} [properties] Properties to set
+ */
+ function TableRow(properties) {
+ this.cells = [];
+ 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]];
+ }
+
+ /**
+ * TableRow cells.
+ * @member {Array.} cells
+ * @memberof google.cloud.documentai.v1.Document.Page.Table.TableRow
+ * @instance
+ */
+ TableRow.prototype.cells = $util.emptyArray;
+
+ /**
+ * Creates a new TableRow instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.documentai.v1.Document.Page.Table.TableRow
+ * @static
+ * @param {google.cloud.documentai.v1.Document.Page.Table.ITableRow=} [properties] Properties to set
+ * @returns {google.cloud.documentai.v1.Document.Page.Table.TableRow} TableRow instance
+ */
+ TableRow.create = function create(properties) {
+ return new TableRow(properties);
+ };
+
+ /**
+ * Encodes the specified TableRow message. Does not implicitly {@link google.cloud.documentai.v1.Document.Page.Table.TableRow.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.documentai.v1.Document.Page.Table.TableRow
+ * @static
+ * @param {google.cloud.documentai.v1.Document.Page.Table.ITableRow} message TableRow message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ TableRow.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.cells != null && message.cells.length)
+ for (var i = 0; i < message.cells.length; ++i)
+ $root.google.cloud.documentai.v1.Document.Page.Table.TableCell.encode(message.cells[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified TableRow message, length delimited. Does not implicitly {@link google.cloud.documentai.v1.Document.Page.Table.TableRow.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.documentai.v1.Document.Page.Table.TableRow
+ * @static
+ * @param {google.cloud.documentai.v1.Document.Page.Table.ITableRow} message TableRow message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ TableRow.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a TableRow message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.documentai.v1.Document.Page.Table.TableRow
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.documentai.v1.Document.Page.Table.TableRow} TableRow
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ TableRow.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.documentai.v1.Document.Page.Table.TableRow();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ if (!(message.cells && message.cells.length))
+ message.cells = [];
+ message.cells.push($root.google.cloud.documentai.v1.Document.Page.Table.TableCell.decode(reader, reader.uint32()));
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a TableRow message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.documentai.v1.Document.Page.Table.TableRow
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.documentai.v1.Document.Page.Table.TableRow} TableRow
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ TableRow.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a TableRow message.
+ * @function verify
+ * @memberof google.cloud.documentai.v1.Document.Page.Table.TableRow
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ TableRow.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.cells != null && message.hasOwnProperty("cells")) {
+ if (!Array.isArray(message.cells))
+ return "cells: array expected";
+ for (var i = 0; i < message.cells.length; ++i) {
+ var error = $root.google.cloud.documentai.v1.Document.Page.Table.TableCell.verify(message.cells[i]);
+ if (error)
+ return "cells." + error;
+ }
+ }
+ return null;
+ };
+
+ /**
+ * Creates a TableRow message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.documentai.v1.Document.Page.Table.TableRow
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.documentai.v1.Document.Page.Table.TableRow} TableRow
+ */
+ TableRow.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.documentai.v1.Document.Page.Table.TableRow)
+ return object;
+ var message = new $root.google.cloud.documentai.v1.Document.Page.Table.TableRow();
+ if (object.cells) {
+ if (!Array.isArray(object.cells))
+ throw TypeError(".google.cloud.documentai.v1.Document.Page.Table.TableRow.cells: array expected");
+ message.cells = [];
+ for (var i = 0; i < object.cells.length; ++i) {
+ if (typeof object.cells[i] !== "object")
+ throw TypeError(".google.cloud.documentai.v1.Document.Page.Table.TableRow.cells: object expected");
+ message.cells[i] = $root.google.cloud.documentai.v1.Document.Page.Table.TableCell.fromObject(object.cells[i]);
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a TableRow message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.documentai.v1.Document.Page.Table.TableRow
+ * @static
+ * @param {google.cloud.documentai.v1.Document.Page.Table.TableRow} message TableRow
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ TableRow.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.cells = [];
+ if (message.cells && message.cells.length) {
+ object.cells = [];
+ for (var j = 0; j < message.cells.length; ++j)
+ object.cells[j] = $root.google.cloud.documentai.v1.Document.Page.Table.TableCell.toObject(message.cells[j], options);
+ }
+ return object;
+ };
+
+ /**
+ * Converts this TableRow to JSON.
+ * @function toJSON
+ * @memberof google.cloud.documentai.v1.Document.Page.Table.TableRow
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ TableRow.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for TableRow
+ * @function getTypeUrl
+ * @memberof google.cloud.documentai.v1.Document.Page.Table.TableRow
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ TableRow.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.documentai.v1.Document.Page.Table.TableRow";
+ };
+
+ return TableRow;
+ })();
+
+ Table.TableCell = (function() {
+
+ /**
+ * Properties of a TableCell.
+ * @memberof google.cloud.documentai.v1.Document.Page.Table
+ * @interface ITableCell
+ * @property {google.cloud.documentai.v1.Document.Page.ILayout|null} [layout] TableCell layout
+ * @property {number|null} [rowSpan] TableCell rowSpan
+ * @property {number|null} [colSpan] TableCell colSpan
+ * @property {Array.|null} [detectedLanguages] TableCell detectedLanguages
+ */
+
+ /**
+ * Constructs a new TableCell.
+ * @memberof google.cloud.documentai.v1.Document.Page.Table
+ * @classdesc Represents a TableCell.
+ * @implements ITableCell
+ * @constructor
+ * @param {google.cloud.documentai.v1.Document.Page.Table.ITableCell=} [properties] Properties to set
+ */
+ function TableCell(properties) {
+ this.detectedLanguages = [];
+ 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]];
+ }
+
+ /**
+ * TableCell layout.
+ * @member {google.cloud.documentai.v1.Document.Page.ILayout|null|undefined} layout
+ * @memberof google.cloud.documentai.v1.Document.Page.Table.TableCell
+ * @instance
+ */
+ TableCell.prototype.layout = null;
+
+ /**
+ * TableCell rowSpan.
+ * @member {number} rowSpan
+ * @memberof google.cloud.documentai.v1.Document.Page.Table.TableCell
+ * @instance
+ */
+ TableCell.prototype.rowSpan = 0;
+
+ /**
+ * TableCell colSpan.
+ * @member {number} colSpan
+ * @memberof google.cloud.documentai.v1.Document.Page.Table.TableCell
+ * @instance
+ */
+ TableCell.prototype.colSpan = 0;
+
+ /**
+ * TableCell detectedLanguages.
+ * @member {Array.} detectedLanguages
+ * @memberof google.cloud.documentai.v1.Document.Page.Table.TableCell
+ * @instance
+ */
+ TableCell.prototype.detectedLanguages = $util.emptyArray;
+
+ /**
+ * Creates a new TableCell instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.documentai.v1.Document.Page.Table.TableCell
+ * @static
+ * @param {google.cloud.documentai.v1.Document.Page.Table.ITableCell=} [properties] Properties to set
+ * @returns {google.cloud.documentai.v1.Document.Page.Table.TableCell} TableCell instance
+ */
+ TableCell.create = function create(properties) {
+ return new TableCell(properties);
+ };
+
+ /**
+ * Encodes the specified TableCell message. Does not implicitly {@link google.cloud.documentai.v1.Document.Page.Table.TableCell.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.documentai.v1.Document.Page.Table.TableCell
+ * @static
+ * @param {google.cloud.documentai.v1.Document.Page.Table.ITableCell} message TableCell message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ TableCell.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.layout != null && Object.hasOwnProperty.call(message, "layout"))
+ $root.google.cloud.documentai.v1.Document.Page.Layout.encode(message.layout, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
+ if (message.rowSpan != null && Object.hasOwnProperty.call(message, "rowSpan"))
+ writer.uint32(/* id 2, wireType 0 =*/16).int32(message.rowSpan);
+ if (message.colSpan != null && Object.hasOwnProperty.call(message, "colSpan"))
+ writer.uint32(/* id 3, wireType 0 =*/24).int32(message.colSpan);
+ if (message.detectedLanguages != null && message.detectedLanguages.length)
+ for (var i = 0; i < message.detectedLanguages.length; ++i)
+ $root.google.cloud.documentai.v1.Document.Page.DetectedLanguage.encode(message.detectedLanguages[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified TableCell message, length delimited. Does not implicitly {@link google.cloud.documentai.v1.Document.Page.Table.TableCell.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.documentai.v1.Document.Page.Table.TableCell
+ * @static
+ * @param {google.cloud.documentai.v1.Document.Page.Table.ITableCell} message TableCell message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ TableCell.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a TableCell message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.documentai.v1.Document.Page.Table.TableCell
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.documentai.v1.Document.Page.Table.TableCell} TableCell
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ TableCell.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.documentai.v1.Document.Page.Table.TableCell();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.layout = $root.google.cloud.documentai.v1.Document.Page.Layout.decode(reader, reader.uint32());
+ break;
+ }
+ case 2: {
+ message.rowSpan = reader.int32();
+ break;
+ }
+ case 3: {
+ message.colSpan = reader.int32();
+ break;
+ }
+ case 4: {
+ if (!(message.detectedLanguages && message.detectedLanguages.length))
+ message.detectedLanguages = [];
+ message.detectedLanguages.push($root.google.cloud.documentai.v1.Document.Page.DetectedLanguage.decode(reader, reader.uint32()));
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a TableCell message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.documentai.v1.Document.Page.Table.TableCell
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.documentai.v1.Document.Page.Table.TableCell} TableCell
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ TableCell.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a TableCell message.
+ * @function verify
+ * @memberof google.cloud.documentai.v1.Document.Page.Table.TableCell
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ TableCell.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.layout != null && message.hasOwnProperty("layout")) {
+ var error = $root.google.cloud.documentai.v1.Document.Page.Layout.verify(message.layout);
+ if (error)
+ return "layout." + error;
+ }
+ if (message.rowSpan != null && message.hasOwnProperty("rowSpan"))
+ if (!$util.isInteger(message.rowSpan))
+ return "rowSpan: integer expected";
+ if (message.colSpan != null && message.hasOwnProperty("colSpan"))
+ if (!$util.isInteger(message.colSpan))
+ return "colSpan: integer expected";
+ if (message.detectedLanguages != null && message.hasOwnProperty("detectedLanguages")) {
+ if (!Array.isArray(message.detectedLanguages))
+ return "detectedLanguages: array expected";
+ for (var i = 0; i < message.detectedLanguages.length; ++i) {
+ var error = $root.google.cloud.documentai.v1.Document.Page.DetectedLanguage.verify(message.detectedLanguages[i]);
+ if (error)
+ return "detectedLanguages." + error;
+ }
+ }
+ return null;
+ };
+
+ /**
+ * Creates a TableCell message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.documentai.v1.Document.Page.Table.TableCell
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.documentai.v1.Document.Page.Table.TableCell} TableCell
+ */
+ TableCell.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.documentai.v1.Document.Page.Table.TableCell)
+ return object;
+ var message = new $root.google.cloud.documentai.v1.Document.Page.Table.TableCell();
+ if (object.layout != null) {
+ if (typeof object.layout !== "object")
+ throw TypeError(".google.cloud.documentai.v1.Document.Page.Table.TableCell.layout: object expected");
+ message.layout = $root.google.cloud.documentai.v1.Document.Page.Layout.fromObject(object.layout);
+ }
+ if (object.rowSpan != null)
+ message.rowSpan = object.rowSpan | 0;
+ if (object.colSpan != null)
+ message.colSpan = object.colSpan | 0;
+ if (object.detectedLanguages) {
+ if (!Array.isArray(object.detectedLanguages))
+ throw TypeError(".google.cloud.documentai.v1.Document.Page.Table.TableCell.detectedLanguages: array expected");
+ message.detectedLanguages = [];
+ for (var i = 0; i < object.detectedLanguages.length; ++i) {
+ if (typeof object.detectedLanguages[i] !== "object")
+ throw TypeError(".google.cloud.documentai.v1.Document.Page.Table.TableCell.detectedLanguages: object expected");
+ message.detectedLanguages[i] = $root.google.cloud.documentai.v1.Document.Page.DetectedLanguage.fromObject(object.detectedLanguages[i]);
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a TableCell message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.documentai.v1.Document.Page.Table.TableCell
+ * @static
+ * @param {google.cloud.documentai.v1.Document.Page.Table.TableCell} message TableCell
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ TableCell.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.detectedLanguages = [];
+ if (options.defaults) {
+ object.layout = null;
+ object.rowSpan = 0;
+ object.colSpan = 0;
+ }
+ if (message.layout != null && message.hasOwnProperty("layout"))
+ object.layout = $root.google.cloud.documentai.v1.Document.Page.Layout.toObject(message.layout, options);
+ if (message.rowSpan != null && message.hasOwnProperty("rowSpan"))
+ object.rowSpan = message.rowSpan;
+ if (message.colSpan != null && message.hasOwnProperty("colSpan"))
+ object.colSpan = message.colSpan;
+ if (message.detectedLanguages && message.detectedLanguages.length) {
+ object.detectedLanguages = [];
+ for (var j = 0; j < message.detectedLanguages.length; ++j)
+ object.detectedLanguages[j] = $root.google.cloud.documentai.v1.Document.Page.DetectedLanguage.toObject(message.detectedLanguages[j], options);
+ }
+ return object;
+ };
+
+ /**
+ * Converts this TableCell to JSON.
+ * @function toJSON
+ * @memberof google.cloud.documentai.v1.Document.Page.Table.TableCell
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ TableCell.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for TableCell
+ * @function getTypeUrl
+ * @memberof google.cloud.documentai.v1.Document.Page.Table.TableCell
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ TableCell.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.documentai.v1.Document.Page.Table.TableCell";
+ };
+
+ return TableCell;
+ })();
+
+ return Table;
+ })();
+
+ Page.FormField = (function() {
+
+ /**
+ * Properties of a FormField.
+ * @memberof google.cloud.documentai.v1.Document.Page
+ * @interface IFormField
+ * @property {google.cloud.documentai.v1.Document.Page.ILayout|null} [fieldName] FormField fieldName
+ * @property {google.cloud.documentai.v1.Document.Page.ILayout|null} [fieldValue] FormField fieldValue
+ * @property {Array.|null} [nameDetectedLanguages] FormField nameDetectedLanguages
+ * @property {Array.|null} [valueDetectedLanguages] FormField valueDetectedLanguages
+ * @property {string|null} [valueType] FormField valueType
+ * @property {string|null} [correctedKeyText] FormField correctedKeyText
+ * @property {string|null} [correctedValueText] FormField correctedValueText
+ * @property {google.cloud.documentai.v1.Document.IProvenance|null} [provenance] FormField provenance
+ */
+
+ /**
+ * Constructs a new FormField.
+ * @memberof google.cloud.documentai.v1.Document.Page
+ * @classdesc Represents a FormField.
+ * @implements IFormField
+ * @constructor
+ * @param {google.cloud.documentai.v1.Document.Page.IFormField=} [properties] Properties to set
+ */
+ function FormField(properties) {
+ this.nameDetectedLanguages = [];
+ this.valueDetectedLanguages = [];
+ 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]];
+ }
+
+ /**
+ * FormField fieldName.
+ * @member {google.cloud.documentai.v1.Document.Page.ILayout|null|undefined} fieldName
+ * @memberof google.cloud.documentai.v1.Document.Page.FormField
+ * @instance
+ */
+ FormField.prototype.fieldName = null;
+
+ /**
+ * FormField fieldValue.
+ * @member {google.cloud.documentai.v1.Document.Page.ILayout|null|undefined} fieldValue
+ * @memberof google.cloud.documentai.v1.Document.Page.FormField
+ * @instance
+ */
+ FormField.prototype.fieldValue = null;
+
+ /**
+ * FormField nameDetectedLanguages.
+ * @member {Array.} nameDetectedLanguages
+ * @memberof google.cloud.documentai.v1.Document.Page.FormField
+ * @instance
+ */
+ FormField.prototype.nameDetectedLanguages = $util.emptyArray;
+
+ /**
+ * FormField valueDetectedLanguages.
+ * @member {Array.} valueDetectedLanguages
+ * @memberof google.cloud.documentai.v1.Document.Page.FormField
+ * @instance
+ */
+ FormField.prototype.valueDetectedLanguages = $util.emptyArray;
+
+ /**
+ * FormField valueType.
+ * @member {string} valueType
+ * @memberof google.cloud.documentai.v1.Document.Page.FormField
+ * @instance
+ */
+ FormField.prototype.valueType = "";
+
+ /**
+ * FormField correctedKeyText.
+ * @member {string} correctedKeyText
+ * @memberof google.cloud.documentai.v1.Document.Page.FormField
+ * @instance
+ */
+ FormField.prototype.correctedKeyText = "";
+
+ /**
+ * FormField correctedValueText.
+ * @member {string} correctedValueText
+ * @memberof google.cloud.documentai.v1.Document.Page.FormField
+ * @instance
+ */
+ FormField.prototype.correctedValueText = "";
+
+ /**
+ * FormField provenance.
+ * @member {google.cloud.documentai.v1.Document.IProvenance|null|undefined} provenance
+ * @memberof google.cloud.documentai.v1.Document.Page.FormField
+ * @instance
+ */
+ FormField.prototype.provenance = null;
+
+ /**
+ * Creates a new FormField instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.documentai.v1.Document.Page.FormField
+ * @static
+ * @param {google.cloud.documentai.v1.Document.Page.IFormField=} [properties] Properties to set
+ * @returns {google.cloud.documentai.v1.Document.Page.FormField} FormField instance
+ */
+ FormField.create = function create(properties) {
+ return new FormField(properties);
+ };
+
+ /**
+ * Encodes the specified FormField message. Does not implicitly {@link google.cloud.documentai.v1.Document.Page.FormField.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.documentai.v1.Document.Page.FormField
+ * @static
+ * @param {google.cloud.documentai.v1.Document.Page.IFormField} message FormField message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ FormField.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.fieldName != null && Object.hasOwnProperty.call(message, "fieldName"))
+ $root.google.cloud.documentai.v1.Document.Page.Layout.encode(message.fieldName, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
+ if (message.fieldValue != null && Object.hasOwnProperty.call(message, "fieldValue"))
+ $root.google.cloud.documentai.v1.Document.Page.Layout.encode(message.fieldValue, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
+ if (message.nameDetectedLanguages != null && message.nameDetectedLanguages.length)
+ for (var i = 0; i < message.nameDetectedLanguages.length; ++i)
+ $root.google.cloud.documentai.v1.Document.Page.DetectedLanguage.encode(message.nameDetectedLanguages[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
+ if (message.valueDetectedLanguages != null && message.valueDetectedLanguages.length)
+ for (var i = 0; i < message.valueDetectedLanguages.length; ++i)
+ $root.google.cloud.documentai.v1.Document.Page.DetectedLanguage.encode(message.valueDetectedLanguages[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
+ if (message.valueType != null && Object.hasOwnProperty.call(message, "valueType"))
+ writer.uint32(/* id 5, wireType 2 =*/42).string(message.valueType);
+ if (message.correctedKeyText != null && Object.hasOwnProperty.call(message, "correctedKeyText"))
+ writer.uint32(/* id 6, wireType 2 =*/50).string(message.correctedKeyText);
+ if (message.correctedValueText != null && Object.hasOwnProperty.call(message, "correctedValueText"))
+ writer.uint32(/* id 7, wireType 2 =*/58).string(message.correctedValueText);
+ if (message.provenance != null && Object.hasOwnProperty.call(message, "provenance"))
+ $root.google.cloud.documentai.v1.Document.Provenance.encode(message.provenance, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified FormField message, length delimited. Does not implicitly {@link google.cloud.documentai.v1.Document.Page.FormField.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.documentai.v1.Document.Page.FormField
+ * @static
+ * @param {google.cloud.documentai.v1.Document.Page.IFormField} message FormField message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ FormField.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a FormField message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.documentai.v1.Document.Page.FormField
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.documentai.v1.Document.Page.FormField} FormField
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ FormField.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.documentai.v1.Document.Page.FormField();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.fieldName = $root.google.cloud.documentai.v1.Document.Page.Layout.decode(reader, reader.uint32());
+ break;
+ }
+ case 2: {
+ message.fieldValue = $root.google.cloud.documentai.v1.Document.Page.Layout.decode(reader, reader.uint32());
+ break;
+ }
+ case 3: {
+ if (!(message.nameDetectedLanguages && message.nameDetectedLanguages.length))
+ message.nameDetectedLanguages = [];
+ message.nameDetectedLanguages.push($root.google.cloud.documentai.v1.Document.Page.DetectedLanguage.decode(reader, reader.uint32()));
+ break;
+ }
+ case 4: {
+ if (!(message.valueDetectedLanguages && message.valueDetectedLanguages.length))
+ message.valueDetectedLanguages = [];
+ message.valueDetectedLanguages.push($root.google.cloud.documentai.v1.Document.Page.DetectedLanguage.decode(reader, reader.uint32()));
+ break;
+ }
+ case 5: {
+ message.valueType = reader.string();
+ break;
+ }
+ case 6: {
+ message.correctedKeyText = reader.string();
+ break;
+ }
+ case 7: {
+ message.correctedValueText = reader.string();
+ break;
+ }
+ case 8: {
+ message.provenance = $root.google.cloud.documentai.v1.Document.Provenance.decode(reader, reader.uint32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a FormField message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.documentai.v1.Document.Page.FormField
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.documentai.v1.Document.Page.FormField} FormField
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ FormField.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a FormField message.
+ * @function verify
+ * @memberof google.cloud.documentai.v1.Document.Page.FormField
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ FormField.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.fieldName != null && message.hasOwnProperty("fieldName")) {
+ var error = $root.google.cloud.documentai.v1.Document.Page.Layout.verify(message.fieldName);
+ if (error)
+ return "fieldName." + error;
+ }
+ if (message.fieldValue != null && message.hasOwnProperty("fieldValue")) {
+ var error = $root.google.cloud.documentai.v1.Document.Page.Layout.verify(message.fieldValue);
+ if (error)
+ return "fieldValue." + error;
+ }
+ if (message.nameDetectedLanguages != null && message.hasOwnProperty("nameDetectedLanguages")) {
+ if (!Array.isArray(message.nameDetectedLanguages))
+ return "nameDetectedLanguages: array expected";
+ for (var i = 0; i < message.nameDetectedLanguages.length; ++i) {
+ var error = $root.google.cloud.documentai.v1.Document.Page.DetectedLanguage.verify(message.nameDetectedLanguages[i]);
+ if (error)
+ return "nameDetectedLanguages." + error;
+ }
+ }
+ if (message.valueDetectedLanguages != null && message.hasOwnProperty("valueDetectedLanguages")) {
+ if (!Array.isArray(message.valueDetectedLanguages))
+ return "valueDetectedLanguages: array expected";
+ for (var i = 0; i < message.valueDetectedLanguages.length; ++i) {
+ var error = $root.google.cloud.documentai.v1.Document.Page.DetectedLanguage.verify(message.valueDetectedLanguages[i]);
+ if (error)
+ return "valueDetectedLanguages." + error;
+ }
+ }
+ if (message.valueType != null && message.hasOwnProperty("valueType"))
+ if (!$util.isString(message.valueType))
+ return "valueType: string expected";
+ if (message.correctedKeyText != null && message.hasOwnProperty("correctedKeyText"))
+ if (!$util.isString(message.correctedKeyText))
+ return "correctedKeyText: string expected";
+ if (message.correctedValueText != null && message.hasOwnProperty("correctedValueText"))
+ if (!$util.isString(message.correctedValueText))
+ return "correctedValueText: string expected";
+ if (message.provenance != null && message.hasOwnProperty("provenance")) {
+ var error = $root.google.cloud.documentai.v1.Document.Provenance.verify(message.provenance);
+ if (error)
+ return "provenance." + error;
+ }
+ return null;
+ };
+
+ /**
+ * Creates a FormField message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.documentai.v1.Document.Page.FormField
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.documentai.v1.Document.Page.FormField} FormField
+ */
+ FormField.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.documentai.v1.Document.Page.FormField)
+ return object;
+ var message = new $root.google.cloud.documentai.v1.Document.Page.FormField();
+ if (object.fieldName != null) {
+ if (typeof object.fieldName !== "object")
+ throw TypeError(".google.cloud.documentai.v1.Document.Page.FormField.fieldName: object expected");
+ message.fieldName = $root.google.cloud.documentai.v1.Document.Page.Layout.fromObject(object.fieldName);
+ }
+ if (object.fieldValue != null) {
+ if (typeof object.fieldValue !== "object")
+ throw TypeError(".google.cloud.documentai.v1.Document.Page.FormField.fieldValue: object expected");
+ message.fieldValue = $root.google.cloud.documentai.v1.Document.Page.Layout.fromObject(object.fieldValue);
+ }
+ if (object.nameDetectedLanguages) {
+ if (!Array.isArray(object.nameDetectedLanguages))
+ throw TypeError(".google.cloud.documentai.v1.Document.Page.FormField.nameDetectedLanguages: array expected");
+ message.nameDetectedLanguages = [];
+ for (var i = 0; i < object.nameDetectedLanguages.length; ++i) {
+ if (typeof object.nameDetectedLanguages[i] !== "object")
+ throw TypeError(".google.cloud.documentai.v1.Document.Page.FormField.nameDetectedLanguages: object expected");
+ message.nameDetectedLanguages[i] = $root.google.cloud.documentai.v1.Document.Page.DetectedLanguage.fromObject(object.nameDetectedLanguages[i]);
+ }
+ }
+ if (object.valueDetectedLanguages) {
+ if (!Array.isArray(object.valueDetectedLanguages))
+ throw TypeError(".google.cloud.documentai.v1.Document.Page.FormField.valueDetectedLanguages: array expected");
+ message.valueDetectedLanguages = [];
+ for (var i = 0; i < object.valueDetectedLanguages.length; ++i) {
+ if (typeof object.valueDetectedLanguages[i] !== "object")
+ throw TypeError(".google.cloud.documentai.v1.Document.Page.FormField.valueDetectedLanguages: object expected");
+ message.valueDetectedLanguages[i] = $root.google.cloud.documentai.v1.Document.Page.DetectedLanguage.fromObject(object.valueDetectedLanguages[i]);
+ }
+ }
+ if (object.valueType != null)
+ message.valueType = String(object.valueType);
+ if (object.correctedKeyText != null)
+ message.correctedKeyText = String(object.correctedKeyText);
+ if (object.correctedValueText != null)
+ message.correctedValueText = String(object.correctedValueText);
+ if (object.provenance != null) {
+ if (typeof object.provenance !== "object")
+ throw TypeError(".google.cloud.documentai.v1.Document.Page.FormField.provenance: object expected");
+ message.provenance = $root.google.cloud.documentai.v1.Document.Provenance.fromObject(object.provenance);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a FormField message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.documentai.v1.Document.Page.FormField
+ * @static
+ * @param {google.cloud.documentai.v1.Document.Page.FormField} message FormField
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ FormField.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults) {
+ object.nameDetectedLanguages = [];
+ object.valueDetectedLanguages = [];
+ }
+ if (options.defaults) {
+ object.fieldName = null;
+ object.fieldValue = null;
+ object.valueType = "";
+ object.correctedKeyText = "";
+ object.correctedValueText = "";
+ object.provenance = null;
+ }
+ if (message.fieldName != null && message.hasOwnProperty("fieldName"))
+ object.fieldName = $root.google.cloud.documentai.v1.Document.Page.Layout.toObject(message.fieldName, options);
+ if (message.fieldValue != null && message.hasOwnProperty("fieldValue"))
+ object.fieldValue = $root.google.cloud.documentai.v1.Document.Page.Layout.toObject(message.fieldValue, options);
+ if (message.nameDetectedLanguages && message.nameDetectedLanguages.length) {
+ object.nameDetectedLanguages = [];
+ for (var j = 0; j < message.nameDetectedLanguages.length; ++j)
+ object.nameDetectedLanguages[j] = $root.google.cloud.documentai.v1.Document.Page.DetectedLanguage.toObject(message.nameDetectedLanguages[j], options);
+ }
+ if (message.valueDetectedLanguages && message.valueDetectedLanguages.length) {
+ object.valueDetectedLanguages = [];
+ for (var j = 0; j < message.valueDetectedLanguages.length; ++j)
+ object.valueDetectedLanguages[j] = $root.google.cloud.documentai.v1.Document.Page.DetectedLanguage.toObject(message.valueDetectedLanguages[j], options);
+ }
+ if (message.valueType != null && message.hasOwnProperty("valueType"))
+ object.valueType = message.valueType;
+ if (message.correctedKeyText != null && message.hasOwnProperty("correctedKeyText"))
+ object.correctedKeyText = message.correctedKeyText;
+ if (message.correctedValueText != null && message.hasOwnProperty("correctedValueText"))
+ object.correctedValueText = message.correctedValueText;
+ if (message.provenance != null && message.hasOwnProperty("provenance"))
+ object.provenance = $root.google.cloud.documentai.v1.Document.Provenance.toObject(message.provenance, options);
+ return object;
+ };
+
+ /**
+ * Converts this FormField to JSON.
+ * @function toJSON
+ * @memberof google.cloud.documentai.v1.Document.Page.FormField
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ FormField.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for FormField
+ * @function getTypeUrl
+ * @memberof google.cloud.documentai.v1.Document.Page.FormField
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ FormField.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.documentai.v1.Document.Page.FormField";
+ };
+
+ return FormField;
+ })();
+
+ Page.DetectedBarcode = (function() {
+
+ /**
+ * Properties of a DetectedBarcode.
+ * @memberof google.cloud.documentai.v1.Document.Page
+ * @interface IDetectedBarcode
+ * @property {google.cloud.documentai.v1.Document.Page.ILayout|null} [layout] DetectedBarcode layout
+ * @property {google.cloud.documentai.v1.IBarcode|null} [barcode] DetectedBarcode barcode
+ */
+
+ /**
+ * Constructs a new DetectedBarcode.
+ * @memberof google.cloud.documentai.v1.Document.Page
+ * @classdesc Represents a DetectedBarcode.
+ * @implements IDetectedBarcode
+ * @constructor
+ * @param {google.cloud.documentai.v1.Document.Page.IDetectedBarcode=} [properties] Properties to set
+ */
+ function DetectedBarcode(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]];
+ }
+
+ /**
+ * DetectedBarcode layout.
+ * @member {google.cloud.documentai.v1.Document.Page.ILayout|null|undefined} layout
+ * @memberof google.cloud.documentai.v1.Document.Page.DetectedBarcode
+ * @instance
+ */
+ DetectedBarcode.prototype.layout = null;
+
+ /**
+ * DetectedBarcode barcode.
+ * @member {google.cloud.documentai.v1.IBarcode|null|undefined} barcode
+ * @memberof google.cloud.documentai.v1.Document.Page.DetectedBarcode
+ * @instance
+ */
+ DetectedBarcode.prototype.barcode = null;
+
+ /**
+ * Creates a new DetectedBarcode instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.documentai.v1.Document.Page.DetectedBarcode
+ * @static
+ * @param {google.cloud.documentai.v1.Document.Page.IDetectedBarcode=} [properties] Properties to set
+ * @returns {google.cloud.documentai.v1.Document.Page.DetectedBarcode} DetectedBarcode instance
+ */
+ DetectedBarcode.create = function create(properties) {
+ return new DetectedBarcode(properties);
+ };
+
+ /**
+ * Encodes the specified DetectedBarcode message. Does not implicitly {@link google.cloud.documentai.v1.Document.Page.DetectedBarcode.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.documentai.v1.Document.Page.DetectedBarcode
+ * @static
+ * @param {google.cloud.documentai.v1.Document.Page.IDetectedBarcode} message DetectedBarcode message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ DetectedBarcode.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.layout != null && Object.hasOwnProperty.call(message, "layout"))
+ $root.google.cloud.documentai.v1.Document.Page.Layout.encode(message.layout, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
+ if (message.barcode != null && Object.hasOwnProperty.call(message, "barcode"))
+ $root.google.cloud.documentai.v1.Barcode.encode(message.barcode, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified DetectedBarcode message, length delimited. Does not implicitly {@link google.cloud.documentai.v1.Document.Page.DetectedBarcode.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.documentai.v1.Document.Page.DetectedBarcode
+ * @static
+ * @param {google.cloud.documentai.v1.Document.Page.IDetectedBarcode} message DetectedBarcode message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ DetectedBarcode.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a DetectedBarcode message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.documentai.v1.Document.Page.DetectedBarcode
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.documentai.v1.Document.Page.DetectedBarcode} DetectedBarcode
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ DetectedBarcode.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.documentai.v1.Document.Page.DetectedBarcode();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.layout = $root.google.cloud.documentai.v1.Document.Page.Layout.decode(reader, reader.uint32());
+ break;
+ }
+ case 2: {
+ message.barcode = $root.google.cloud.documentai.v1.Barcode.decode(reader, reader.uint32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a DetectedBarcode message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.documentai.v1.Document.Page.DetectedBarcode
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.documentai.v1.Document.Page.DetectedBarcode} DetectedBarcode
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ DetectedBarcode.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a DetectedBarcode message.
+ * @function verify
+ * @memberof google.cloud.documentai.v1.Document.Page.DetectedBarcode
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ DetectedBarcode.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.layout != null && message.hasOwnProperty("layout")) {
+ var error = $root.google.cloud.documentai.v1.Document.Page.Layout.verify(message.layout);
+ if (error)
+ return "layout." + error;
+ }
+ if (message.barcode != null && message.hasOwnProperty("barcode")) {
+ var error = $root.google.cloud.documentai.v1.Barcode.verify(message.barcode);
+ if (error)
+ return "barcode." + error;
+ }
+ return null;
+ };
+
+ /**
+ * Creates a DetectedBarcode message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.documentai.v1.Document.Page.DetectedBarcode
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.documentai.v1.Document.Page.DetectedBarcode} DetectedBarcode
+ */
+ DetectedBarcode.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.documentai.v1.Document.Page.DetectedBarcode)
+ return object;
+ var message = new $root.google.cloud.documentai.v1.Document.Page.DetectedBarcode();
+ if (object.layout != null) {
+ if (typeof object.layout !== "object")
+ throw TypeError(".google.cloud.documentai.v1.Document.Page.DetectedBarcode.layout: object expected");
+ message.layout = $root.google.cloud.documentai.v1.Document.Page.Layout.fromObject(object.layout);
+ }
+ if (object.barcode != null) {
+ if (typeof object.barcode !== "object")
+ throw TypeError(".google.cloud.documentai.v1.Document.Page.DetectedBarcode.barcode: object expected");
+ message.barcode = $root.google.cloud.documentai.v1.Barcode.fromObject(object.barcode);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a DetectedBarcode message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.documentai.v1.Document.Page.DetectedBarcode
+ * @static
+ * @param {google.cloud.documentai.v1.Document.Page.DetectedBarcode} message DetectedBarcode
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ DetectedBarcode.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.layout = null;
+ object.barcode = null;
+ }
+ if (message.layout != null && message.hasOwnProperty("layout"))
+ object.layout = $root.google.cloud.documentai.v1.Document.Page.Layout.toObject(message.layout, options);
+ if (message.barcode != null && message.hasOwnProperty("barcode"))
+ object.barcode = $root.google.cloud.documentai.v1.Barcode.toObject(message.barcode, options);
+ return object;
+ };
+
+ /**
+ * Converts this DetectedBarcode to JSON.
+ * @function toJSON
+ * @memberof google.cloud.documentai.v1.Document.Page.DetectedBarcode
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ DetectedBarcode.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for DetectedBarcode
+ * @function getTypeUrl
+ * @memberof google.cloud.documentai.v1.Document.Page.DetectedBarcode
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ DetectedBarcode.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.documentai.v1.Document.Page.DetectedBarcode";
+ };
+
+ return DetectedBarcode;
+ })();
+
+ Page.DetectedLanguage = (function() {
+
+ /**
+ * Properties of a DetectedLanguage.
+ * @memberof google.cloud.documentai.v1.Document.Page
+ * @interface IDetectedLanguage
+ * @property {string|null} [languageCode] DetectedLanguage languageCode
+ * @property {number|null} [confidence] DetectedLanguage confidence
+ */
+
+ /**
+ * Constructs a new DetectedLanguage.
+ * @memberof google.cloud.documentai.v1.Document.Page
+ * @classdesc Represents a DetectedLanguage.
+ * @implements IDetectedLanguage
+ * @constructor
+ * @param {google.cloud.documentai.v1.Document.Page.IDetectedLanguage=} [properties] Properties to set
+ */
+ function DetectedLanguage(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]];
+ }
+
+ /**
+ * DetectedLanguage languageCode.
+ * @member {string} languageCode
+ * @memberof google.cloud.documentai.v1.Document.Page.DetectedLanguage
+ * @instance
+ */
+ DetectedLanguage.prototype.languageCode = "";
+
+ /**
+ * DetectedLanguage confidence.
+ * @member {number} confidence
+ * @memberof google.cloud.documentai.v1.Document.Page.DetectedLanguage
+ * @instance
+ */
+ DetectedLanguage.prototype.confidence = 0;
+
+ /**
+ * Creates a new DetectedLanguage instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.documentai.v1.Document.Page.DetectedLanguage
+ * @static
+ * @param {google.cloud.documentai.v1.Document.Page.IDetectedLanguage=} [properties] Properties to set
+ * @returns {google.cloud.documentai.v1.Document.Page.DetectedLanguage} DetectedLanguage instance
+ */
+ DetectedLanguage.create = function create(properties) {
+ return new DetectedLanguage(properties);
+ };
+
+ /**
+ * Encodes the specified DetectedLanguage message. Does not implicitly {@link google.cloud.documentai.v1.Document.Page.DetectedLanguage.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.documentai.v1.Document.Page.DetectedLanguage
+ * @static
+ * @param {google.cloud.documentai.v1.Document.Page.IDetectedLanguage} message DetectedLanguage message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ DetectedLanguage.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.languageCode != null && Object.hasOwnProperty.call(message, "languageCode"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.languageCode);
+ if (message.confidence != null && Object.hasOwnProperty.call(message, "confidence"))
+ writer.uint32(/* id 2, wireType 5 =*/21).float(message.confidence);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified DetectedLanguage message, length delimited. Does not implicitly {@link google.cloud.documentai.v1.Document.Page.DetectedLanguage.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.documentai.v1.Document.Page.DetectedLanguage
+ * @static
+ * @param {google.cloud.documentai.v1.Document.Page.IDetectedLanguage} message DetectedLanguage message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ DetectedLanguage.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a DetectedLanguage message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.documentai.v1.Document.Page.DetectedLanguage
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.documentai.v1.Document.Page.DetectedLanguage} DetectedLanguage
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ DetectedLanguage.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.documentai.v1.Document.Page.DetectedLanguage();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.languageCode = reader.string();
+ break;
+ }
+ case 2: {
+ message.confidence = reader.float();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a DetectedLanguage message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.documentai.v1.Document.Page.DetectedLanguage
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.documentai.v1.Document.Page.DetectedLanguage} DetectedLanguage
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ DetectedLanguage.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a DetectedLanguage message.
+ * @function verify
+ * @memberof google.cloud.documentai.v1.Document.Page.DetectedLanguage
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ DetectedLanguage.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.languageCode != null && message.hasOwnProperty("languageCode"))
+ if (!$util.isString(message.languageCode))
+ return "languageCode: string expected";
+ if (message.confidence != null && message.hasOwnProperty("confidence"))
+ if (typeof message.confidence !== "number")
+ return "confidence: number expected";
+ return null;
+ };
+
+ /**
+ * Creates a DetectedLanguage message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.documentai.v1.Document.Page.DetectedLanguage
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.documentai.v1.Document.Page.DetectedLanguage} DetectedLanguage
+ */
+ DetectedLanguage.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.documentai.v1.Document.Page.DetectedLanguage)
+ return object;
+ var message = new $root.google.cloud.documentai.v1.Document.Page.DetectedLanguage();
+ if (object.languageCode != null)
+ message.languageCode = String(object.languageCode);
+ if (object.confidence != null)
+ message.confidence = Number(object.confidence);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a DetectedLanguage message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.documentai.v1.Document.Page.DetectedLanguage
+ * @static
+ * @param {google.cloud.documentai.v1.Document.Page.DetectedLanguage} message DetectedLanguage
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ DetectedLanguage.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.languageCode = "";
+ object.confidence = 0;
+ }
+ if (message.languageCode != null && message.hasOwnProperty("languageCode"))
+ object.languageCode = message.languageCode;
+ if (message.confidence != null && message.hasOwnProperty("confidence"))
+ object.confidence = options.json && !isFinite(message.confidence) ? String(message.confidence) : message.confidence;
+ return object;
+ };
+
+ /**
+ * Converts this DetectedLanguage to JSON.
+ * @function toJSON
+ * @memberof google.cloud.documentai.v1.Document.Page.DetectedLanguage
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ DetectedLanguage.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for DetectedLanguage
+ * @function getTypeUrl
+ * @memberof google.cloud.documentai.v1.Document.Page.DetectedLanguage
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ DetectedLanguage.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.documentai.v1.Document.Page.DetectedLanguage";
+ };
+
+ return DetectedLanguage;
+ })();
+
+ Page.ImageQualityScores = (function() {
+
+ /**
+ * Properties of an ImageQualityScores.
+ * @memberof google.cloud.documentai.v1.Document.Page
+ * @interface IImageQualityScores
+ * @property {number|null} [qualityScore] ImageQualityScores qualityScore
+ * @property {Array.|null} [detectedDefects] ImageQualityScores detectedDefects
+ */
+
+ /**
+ * Constructs a new ImageQualityScores.
+ * @memberof google.cloud.documentai.v1.Document.Page
+ * @classdesc Represents an ImageQualityScores.
+ * @implements IImageQualityScores
+ * @constructor
+ * @param {google.cloud.documentai.v1.Document.Page.IImageQualityScores=} [properties] Properties to set
+ */
+ function ImageQualityScores(properties) {
+ this.detectedDefects = [];
+ 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]];
+ }
+
+ /**
+ * ImageQualityScores qualityScore.
+ * @member {number} qualityScore
+ * @memberof google.cloud.documentai.v1.Document.Page.ImageQualityScores
+ * @instance
+ */
+ ImageQualityScores.prototype.qualityScore = 0;
+
+ /**
+ * ImageQualityScores detectedDefects.
+ * @member {Array.} detectedDefects
+ * @memberof google.cloud.documentai.v1.Document.Page.ImageQualityScores
+ * @instance
+ */
+ ImageQualityScores.prototype.detectedDefects = $util.emptyArray;
+
+ /**
+ * Creates a new ImageQualityScores instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.documentai.v1.Document.Page.ImageQualityScores
+ * @static
+ * @param {google.cloud.documentai.v1.Document.Page.IImageQualityScores=} [properties] Properties to set
+ * @returns {google.cloud.documentai.v1.Document.Page.ImageQualityScores} ImageQualityScores instance
+ */
+ ImageQualityScores.create = function create(properties) {
+ return new ImageQualityScores(properties);
+ };
+
+ /**
+ * Encodes the specified ImageQualityScores message. Does not implicitly {@link google.cloud.documentai.v1.Document.Page.ImageQualityScores.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.documentai.v1.Document.Page.ImageQualityScores
+ * @static
+ * @param {google.cloud.documentai.v1.Document.Page.IImageQualityScores} message ImageQualityScores message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ImageQualityScores.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.qualityScore != null && Object.hasOwnProperty.call(message, "qualityScore"))
+ writer.uint32(/* id 1, wireType 5 =*/13).float(message.qualityScore);
+ if (message.detectedDefects != null && message.detectedDefects.length)
+ for (var i = 0; i < message.detectedDefects.length; ++i)
+ $root.google.cloud.documentai.v1.Document.Page.ImageQualityScores.DetectedDefect.encode(message.detectedDefects[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ImageQualityScores message, length delimited. Does not implicitly {@link google.cloud.documentai.v1.Document.Page.ImageQualityScores.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.documentai.v1.Document.Page.ImageQualityScores
+ * @static
+ * @param {google.cloud.documentai.v1.Document.Page.IImageQualityScores} message ImageQualityScores message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ImageQualityScores.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes an ImageQualityScores message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.documentai.v1.Document.Page.ImageQualityScores
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.documentai.v1.Document.Page.ImageQualityScores} ImageQualityScores
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ImageQualityScores.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.documentai.v1.Document.Page.ImageQualityScores();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.qualityScore = reader.float();
+ break;
+ }
+ case 2: {
+ if (!(message.detectedDefects && message.detectedDefects.length))
+ message.detectedDefects = [];
+ message.detectedDefects.push($root.google.cloud.documentai.v1.Document.Page.ImageQualityScores.DetectedDefect.decode(reader, reader.uint32()));
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an ImageQualityScores message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.documentai.v1.Document.Page.ImageQualityScores
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.documentai.v1.Document.Page.ImageQualityScores} ImageQualityScores
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ImageQualityScores.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an ImageQualityScores message.
+ * @function verify
+ * @memberof google.cloud.documentai.v1.Document.Page.ImageQualityScores
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ImageQualityScores.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.qualityScore != null && message.hasOwnProperty("qualityScore"))
+ if (typeof message.qualityScore !== "number")
+ return "qualityScore: number expected";
+ if (message.detectedDefects != null && message.hasOwnProperty("detectedDefects")) {
+ if (!Array.isArray(message.detectedDefects))
+ return "detectedDefects: array expected";
+ for (var i = 0; i < message.detectedDefects.length; ++i) {
+ var error = $root.google.cloud.documentai.v1.Document.Page.ImageQualityScores.DetectedDefect.verify(message.detectedDefects[i]);
+ if (error)
+ return "detectedDefects." + error;
+ }
+ }
+ return null;
+ };
+
+ /**
+ * Creates an ImageQualityScores message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.documentai.v1.Document.Page.ImageQualityScores
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.documentai.v1.Document.Page.ImageQualityScores} ImageQualityScores
+ */
+ ImageQualityScores.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.documentai.v1.Document.Page.ImageQualityScores)
+ return object;
+ var message = new $root.google.cloud.documentai.v1.Document.Page.ImageQualityScores();
+ if (object.qualityScore != null)
+ message.qualityScore = Number(object.qualityScore);
+ if (object.detectedDefects) {
+ if (!Array.isArray(object.detectedDefects))
+ throw TypeError(".google.cloud.documentai.v1.Document.Page.ImageQualityScores.detectedDefects: array expected");
+ message.detectedDefects = [];
+ for (var i = 0; i < object.detectedDefects.length; ++i) {
+ if (typeof object.detectedDefects[i] !== "object")
+ throw TypeError(".google.cloud.documentai.v1.Document.Page.ImageQualityScores.detectedDefects: object expected");
+ message.detectedDefects[i] = $root.google.cloud.documentai.v1.Document.Page.ImageQualityScores.DetectedDefect.fromObject(object.detectedDefects[i]);
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an ImageQualityScores message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.documentai.v1.Document.Page.ImageQualityScores
+ * @static
+ * @param {google.cloud.documentai.v1.Document.Page.ImageQualityScores} message ImageQualityScores
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ImageQualityScores.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.detectedDefects = [];
+ if (options.defaults)
+ object.qualityScore = 0;
+ if (message.qualityScore != null && message.hasOwnProperty("qualityScore"))
+ object.qualityScore = options.json && !isFinite(message.qualityScore) ? String(message.qualityScore) : message.qualityScore;
+ if (message.detectedDefects && message.detectedDefects.length) {
+ object.detectedDefects = [];
+ for (var j = 0; j < message.detectedDefects.length; ++j)
+ object.detectedDefects[j] = $root.google.cloud.documentai.v1.Document.Page.ImageQualityScores.DetectedDefect.toObject(message.detectedDefects[j], options);
+ }
+ return object;
+ };
+
+ /**
+ * Converts this ImageQualityScores to JSON.
+ * @function toJSON
+ * @memberof google.cloud.documentai.v1.Document.Page.ImageQualityScores
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ImageQualityScores.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ImageQualityScores
+ * @function getTypeUrl
+ * @memberof google.cloud.documentai.v1.Document.Page.ImageQualityScores
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ImageQualityScores.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.documentai.v1.Document.Page.ImageQualityScores";
+ };
+
+ ImageQualityScores.DetectedDefect = (function() {
+
+ /**
+ * Properties of a DetectedDefect.
+ * @memberof google.cloud.documentai.v1.Document.Page.ImageQualityScores
+ * @interface IDetectedDefect
+ * @property {string|null} [type] DetectedDefect type
+ * @property {number|null} [confidence] DetectedDefect confidence
+ */
+
+ /**
+ * Constructs a new DetectedDefect.
+ * @memberof google.cloud.documentai.v1.Document.Page.ImageQualityScores
+ * @classdesc Represents a DetectedDefect.
+ * @implements IDetectedDefect
+ * @constructor
+ * @param {google.cloud.documentai.v1.Document.Page.ImageQualityScores.IDetectedDefect=} [properties] Properties to set
+ */
+ function DetectedDefect(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]];
+ }
+
+ /**
+ * DetectedDefect type.
+ * @member {string} type
+ * @memberof google.cloud.documentai.v1.Document.Page.ImageQualityScores.DetectedDefect
+ * @instance
+ */
+ DetectedDefect.prototype.type = "";
+
+ /**
+ * DetectedDefect confidence.
+ * @member {number} confidence
+ * @memberof google.cloud.documentai.v1.Document.Page.ImageQualityScores.DetectedDefect
+ * @instance
+ */
+ DetectedDefect.prototype.confidence = 0;
+
+ /**
+ * Creates a new DetectedDefect instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.documentai.v1.Document.Page.ImageQualityScores.DetectedDefect
+ * @static
+ * @param {google.cloud.documentai.v1.Document.Page.ImageQualityScores.IDetectedDefect=} [properties] Properties to set
+ * @returns {google.cloud.documentai.v1.Document.Page.ImageQualityScores.DetectedDefect} DetectedDefect instance
+ */
+ DetectedDefect.create = function create(properties) {
+ return new DetectedDefect(properties);
+ };
+
+ /**
+ * Encodes the specified DetectedDefect message. Does not implicitly {@link google.cloud.documentai.v1.Document.Page.ImageQualityScores.DetectedDefect.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.documentai.v1.Document.Page.ImageQualityScores.DetectedDefect
+ * @static
+ * @param {google.cloud.documentai.v1.Document.Page.ImageQualityScores.IDetectedDefect} message DetectedDefect message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ DetectedDefect.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.type != null && Object.hasOwnProperty.call(message, "type"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.type);
+ if (message.confidence != null && Object.hasOwnProperty.call(message, "confidence"))
+ writer.uint32(/* id 2, wireType 5 =*/21).float(message.confidence);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified DetectedDefect message, length delimited. Does not implicitly {@link google.cloud.documentai.v1.Document.Page.ImageQualityScores.DetectedDefect.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.documentai.v1.Document.Page.ImageQualityScores.DetectedDefect
+ * @static
+ * @param {google.cloud.documentai.v1.Document.Page.ImageQualityScores.IDetectedDefect} message DetectedDefect message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ DetectedDefect.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a DetectedDefect message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.documentai.v1.Document.Page.ImageQualityScores.DetectedDefect
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.documentai.v1.Document.Page.ImageQualityScores.DetectedDefect} DetectedDefect
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ DetectedDefect.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.documentai.v1.Document.Page.ImageQualityScores.DetectedDefect();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.type = reader.string();
+ break;
+ }
+ case 2: {
+ message.confidence = reader.float();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a DetectedDefect message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.documentai.v1.Document.Page.ImageQualityScores.DetectedDefect
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.documentai.v1.Document.Page.ImageQualityScores.DetectedDefect} DetectedDefect
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ DetectedDefect.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a DetectedDefect message.
+ * @function verify
+ * @memberof google.cloud.documentai.v1.Document.Page.ImageQualityScores.DetectedDefect
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ DetectedDefect.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.type != null && message.hasOwnProperty("type"))
+ if (!$util.isString(message.type))
+ return "type: string expected";
+ if (message.confidence != null && message.hasOwnProperty("confidence"))
+ if (typeof message.confidence !== "number")
+ return "confidence: number expected";
+ return null;
+ };
+
+ /**
+ * Creates a DetectedDefect message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.documentai.v1.Document.Page.ImageQualityScores.DetectedDefect
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.documentai.v1.Document.Page.ImageQualityScores.DetectedDefect} DetectedDefect
+ */
+ DetectedDefect.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.documentai.v1.Document.Page.ImageQualityScores.DetectedDefect)
+ return object;
+ var message = new $root.google.cloud.documentai.v1.Document.Page.ImageQualityScores.DetectedDefect();
+ if (object.type != null)
+ message.type = String(object.type);
+ if (object.confidence != null)
+ message.confidence = Number(object.confidence);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a DetectedDefect message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.documentai.v1.Document.Page.ImageQualityScores.DetectedDefect
+ * @static
+ * @param {google.cloud.documentai.v1.Document.Page.ImageQualityScores.DetectedDefect} message DetectedDefect
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ DetectedDefect.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.type = "";
+ object.confidence = 0;
+ }
+ if (message.type != null && message.hasOwnProperty("type"))
+ object.type = message.type;
+ if (message.confidence != null && message.hasOwnProperty("confidence"))
+ object.confidence = options.json && !isFinite(message.confidence) ? String(message.confidence) : message.confidence;
+ return object;
+ };
+
+ /**
+ * Converts this DetectedDefect to JSON.
+ * @function toJSON
+ * @memberof google.cloud.documentai.v1.Document.Page.ImageQualityScores.DetectedDefect
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ DetectedDefect.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for DetectedDefect
+ * @function getTypeUrl
+ * @memberof google.cloud.documentai.v1.Document.Page.ImageQualityScores.DetectedDefect
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ DetectedDefect.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.documentai.v1.Document.Page.ImageQualityScores.DetectedDefect";
+ };
+
+ return DetectedDefect;
+ })();
+
+ return ImageQualityScores;
+ })();
+
+ return Page;
+ })();
+
+ Document.Entity = (function() {
+
+ /**
+ * Properties of an Entity.
+ * @memberof google.cloud.documentai.v1.Document
+ * @interface IEntity
+ * @property {google.cloud.documentai.v1.Document.ITextAnchor|null} [textAnchor] Entity textAnchor
+ * @property {string|null} [type] Entity type
+ * @property {string|null} [mentionText] Entity mentionText
+ * @property {string|null} [mentionId] Entity mentionId
+ * @property {number|null} [confidence] Entity confidence
+ * @property {google.cloud.documentai.v1.Document.IPageAnchor|null} [pageAnchor] Entity pageAnchor
+ * @property {string|null} [id] Entity id
+ * @property {google.cloud.documentai.v1.Document.Entity.INormalizedValue|null} [normalizedValue] Entity normalizedValue
+ * @property {Array.|null} [properties] Entity properties
+ * @property {google.cloud.documentai.v1.Document.IProvenance|null} [provenance] Entity provenance
+ * @property {boolean|null} [redacted] Entity redacted
+ */
+
+ /**
+ * Constructs a new Entity.
+ * @memberof google.cloud.documentai.v1.Document
+ * @classdesc Represents an Entity.
+ * @implements IEntity
+ * @constructor
+ * @param {google.cloud.documentai.v1.Document.IEntity=} [properties] Properties to set
+ */
+ function Entity(properties) {
+ this.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]];
+ }
+
+ /**
+ * Entity textAnchor.
+ * @member {google.cloud.documentai.v1.Document.ITextAnchor|null|undefined} textAnchor
+ * @memberof google.cloud.documentai.v1.Document.Entity
+ * @instance
+ */
+ Entity.prototype.textAnchor = null;
+
+ /**
+ * Entity type.
+ * @member {string} type
+ * @memberof google.cloud.documentai.v1.Document.Entity
+ * @instance
+ */
+ Entity.prototype.type = "";
+
+ /**
+ * Entity mentionText.
+ * @member {string} mentionText
+ * @memberof google.cloud.documentai.v1.Document.Entity
+ * @instance
+ */
+ Entity.prototype.mentionText = "";
+
+ /**
+ * Entity mentionId.
+ * @member {string} mentionId
+ * @memberof google.cloud.documentai.v1.Document.Entity
+ * @instance
+ */
+ Entity.prototype.mentionId = "";
+
+ /**
+ * Entity confidence.
+ * @member {number} confidence
+ * @memberof google.cloud.documentai.v1.Document.Entity
+ * @instance
+ */
+ Entity.prototype.confidence = 0;
+
+ /**
+ * Entity pageAnchor.
+ * @member {google.cloud.documentai.v1.Document.IPageAnchor|null|undefined} pageAnchor
+ * @memberof google.cloud.documentai.v1.Document.Entity
+ * @instance
+ */
+ Entity.prototype.pageAnchor = null;
+
+ /**
+ * Entity id.
+ * @member {string} id
+ * @memberof google.cloud.documentai.v1.Document.Entity
+ * @instance
+ */
+ Entity.prototype.id = "";
+
+ /**
+ * Entity normalizedValue.
+ * @member {google.cloud.documentai.v1.Document.Entity.INormalizedValue|null|undefined} normalizedValue
+ * @memberof google.cloud.documentai.v1.Document.Entity
+ * @instance
+ */
+ Entity.prototype.normalizedValue = null;
+
+ /**
+ * Entity properties.
+ * @member {Array.} properties
+ * @memberof google.cloud.documentai.v1.Document.Entity
+ * @instance
+ */
+ Entity.prototype.properties = $util.emptyArray;
+
+ /**
+ * Entity provenance.
+ * @member {google.cloud.documentai.v1.Document.IProvenance|null|undefined} provenance
+ * @memberof google.cloud.documentai.v1.Document.Entity
+ * @instance
+ */
+ Entity.prototype.provenance = null;
+
+ /**
+ * Entity redacted.
+ * @member {boolean} redacted
+ * @memberof google.cloud.documentai.v1.Document.Entity
+ * @instance
+ */
+ Entity.prototype.redacted = false;
+
+ /**
+ * Creates a new Entity instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.documentai.v1.Document.Entity
+ * @static
+ * @param {google.cloud.documentai.v1.Document.IEntity=} [properties] Properties to set
+ * @returns {google.cloud.documentai.v1.Document.Entity} Entity instance
+ */
+ Entity.create = function create(properties) {
+ return new Entity(properties);
+ };
+
+ /**
+ * Encodes the specified Entity message. Does not implicitly {@link google.cloud.documentai.v1.Document.Entity.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.documentai.v1.Document.Entity
+ * @static
+ * @param {google.cloud.documentai.v1.Document.IEntity} message Entity message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Entity.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.textAnchor != null && Object.hasOwnProperty.call(message, "textAnchor"))
+ $root.google.cloud.documentai.v1.Document.TextAnchor.encode(message.textAnchor, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
+ if (message.type != null && Object.hasOwnProperty.call(message, "type"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.type);
+ if (message.mentionText != null && Object.hasOwnProperty.call(message, "mentionText"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.mentionText);
+ if (message.mentionId != null && Object.hasOwnProperty.call(message, "mentionId"))
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.mentionId);
+ if (message.confidence != null && Object.hasOwnProperty.call(message, "confidence"))
+ writer.uint32(/* id 5, wireType 5 =*/45).float(message.confidence);
+ if (message.pageAnchor != null && Object.hasOwnProperty.call(message, "pageAnchor"))
+ $root.google.cloud.documentai.v1.Document.PageAnchor.encode(message.pageAnchor, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
+ if (message.id != null && Object.hasOwnProperty.call(message, "id"))
+ writer.uint32(/* id 7, wireType 2 =*/58).string(message.id);
+ if (message.normalizedValue != null && Object.hasOwnProperty.call(message, "normalizedValue"))
+ $root.google.cloud.documentai.v1.Document.Entity.NormalizedValue.encode(message.normalizedValue, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim();
+ if (message.properties != null && message.properties.length)
+ for (var i = 0; i < message.properties.length; ++i)
+ $root.google.cloud.documentai.v1.Document.Entity.encode(message.properties[i], writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim();
+ if (message.provenance != null && Object.hasOwnProperty.call(message, "provenance"))
+ $root.google.cloud.documentai.v1.Document.Provenance.encode(message.provenance, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim();
+ if (message.redacted != null && Object.hasOwnProperty.call(message, "redacted"))
+ writer.uint32(/* id 12, wireType 0 =*/96).bool(message.redacted);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified Entity message, length delimited. Does not implicitly {@link google.cloud.documentai.v1.Document.Entity.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.documentai.v1.Document.Entity
+ * @static
+ * @param {google.cloud.documentai.v1.Document.IEntity} message Entity message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Entity.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes an Entity message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.documentai.v1.Document.Entity
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.documentai.v1.Document.Entity} Entity
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Entity.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.documentai.v1.Document.Entity();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.textAnchor = $root.google.cloud.documentai.v1.Document.TextAnchor.decode(reader, reader.uint32());
+ break;
+ }
+ case 2: {
+ message.type = reader.string();
+ break;
+ }
+ case 3: {
+ message.mentionText = reader.string();
+ break;
+ }
+ case 4: {
+ message.mentionId = reader.string();
+ break;
+ }
+ case 5: {
+ message.confidence = reader.float();
+ break;
+ }
+ case 6: {
+ message.pageAnchor = $root.google.cloud.documentai.v1.Document.PageAnchor.decode(reader, reader.uint32());
+ break;
+ }
+ case 7: {
+ message.id = reader.string();
+ break;
+ }
+ case 9: {
+ message.normalizedValue = $root.google.cloud.documentai.v1.Document.Entity.NormalizedValue.decode(reader, reader.uint32());
+ break;
+ }
+ case 10: {
+ if (!(message.properties && message.properties.length))
+ message.properties = [];
+ message.properties.push($root.google.cloud.documentai.v1.Document.Entity.decode(reader, reader.uint32()));
+ break;
+ }
+ case 11: {
+ message.provenance = $root.google.cloud.documentai.v1.Document.Provenance.decode(reader, reader.uint32());
+ break;
+ }
+ case 12: {
+ message.redacted = reader.bool();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an Entity message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.documentai.v1.Document.Entity
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.documentai.v1.Document.Entity} Entity
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Entity.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an Entity message.
+ * @function verify
+ * @memberof google.cloud.documentai.v1.Document.Entity
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ Entity.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.textAnchor != null && message.hasOwnProperty("textAnchor")) {
+ var error = $root.google.cloud.documentai.v1.Document.TextAnchor.verify(message.textAnchor);
+ if (error)
+ return "textAnchor." + error;
+ }
+ if (message.type != null && message.hasOwnProperty("type"))
+ if (!$util.isString(message.type))
+ return "type: string expected";
+ if (message.mentionText != null && message.hasOwnProperty("mentionText"))
+ if (!$util.isString(message.mentionText))
+ return "mentionText: string expected";
+ if (message.mentionId != null && message.hasOwnProperty("mentionId"))
+ if (!$util.isString(message.mentionId))
+ return "mentionId: string expected";
+ if (message.confidence != null && message.hasOwnProperty("confidence"))
+ if (typeof message.confidence !== "number")
+ return "confidence: number expected";
+ if (message.pageAnchor != null && message.hasOwnProperty("pageAnchor")) {
+ var error = $root.google.cloud.documentai.v1.Document.PageAnchor.verify(message.pageAnchor);
+ if (error)
+ return "pageAnchor." + error;
+ }
+ if (message.id != null && message.hasOwnProperty("id"))
+ if (!$util.isString(message.id))
+ return "id: string expected";
+ if (message.normalizedValue != null && message.hasOwnProperty("normalizedValue")) {
+ var error = $root.google.cloud.documentai.v1.Document.Entity.NormalizedValue.verify(message.normalizedValue);
+ if (error)
+ return "normalizedValue." + error;
+ }
+ if (message.properties != null && message.hasOwnProperty("properties")) {
+ if (!Array.isArray(message.properties))
+ return "properties: array expected";
+ for (var i = 0; i < message.properties.length; ++i) {
+ var error = $root.google.cloud.documentai.v1.Document.Entity.verify(message.properties[i]);
+ if (error)
+ return "properties." + error;
+ }
+ }
+ if (message.provenance != null && message.hasOwnProperty("provenance")) {
+ var error = $root.google.cloud.documentai.v1.Document.Provenance.verify(message.provenance);
+ if (error)
+ return "provenance." + error;
+ }
+ if (message.redacted != null && message.hasOwnProperty("redacted"))
+ if (typeof message.redacted !== "boolean")
+ return "redacted: boolean expected";
+ return null;
+ };
+
+ /**
+ * Creates an Entity message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.documentai.v1.Document.Entity
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.documentai.v1.Document.Entity} Entity
+ */
+ Entity.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.documentai.v1.Document.Entity)
+ return object;
+ var message = new $root.google.cloud.documentai.v1.Document.Entity();
+ if (object.textAnchor != null) {
+ if (typeof object.textAnchor !== "object")
+ throw TypeError(".google.cloud.documentai.v1.Document.Entity.textAnchor: object expected");
+ message.textAnchor = $root.google.cloud.documentai.v1.Document.TextAnchor.fromObject(object.textAnchor);
+ }
+ if (object.type != null)
+ message.type = String(object.type);
+ if (object.mentionText != null)
+ message.mentionText = String(object.mentionText);
+ if (object.mentionId != null)
+ message.mentionId = String(object.mentionId);
+ if (object.confidence != null)
+ message.confidence = Number(object.confidence);
+ if (object.pageAnchor != null) {
+ if (typeof object.pageAnchor !== "object")
+ throw TypeError(".google.cloud.documentai.v1.Document.Entity.pageAnchor: object expected");
+ message.pageAnchor = $root.google.cloud.documentai.v1.Document.PageAnchor.fromObject(object.pageAnchor);
+ }
+ if (object.id != null)
+ message.id = String(object.id);
+ if (object.normalizedValue != null) {
+ if (typeof object.normalizedValue !== "object")
+ throw TypeError(".google.cloud.documentai.v1.Document.Entity.normalizedValue: object expected");
+ message.normalizedValue = $root.google.cloud.documentai.v1.Document.Entity.NormalizedValue.fromObject(object.normalizedValue);
+ }
+ if (object.properties) {
+ if (!Array.isArray(object.properties))
+ throw TypeError(".google.cloud.documentai.v1.Document.Entity.properties: array expected");
+ message.properties = [];
+ for (var i = 0; i < object.properties.length; ++i) {
+ if (typeof object.properties[i] !== "object")
+ throw TypeError(".google.cloud.documentai.v1.Document.Entity.properties: object expected");
+ message.properties[i] = $root.google.cloud.documentai.v1.Document.Entity.fromObject(object.properties[i]);
+ }
+ }
+ if (object.provenance != null) {
+ if (typeof object.provenance !== "object")
+ throw TypeError(".google.cloud.documentai.v1.Document.Entity.provenance: object expected");
+ message.provenance = $root.google.cloud.documentai.v1.Document.Provenance.fromObject(object.provenance);
+ }
+ if (object.redacted != null)
+ message.redacted = Boolean(object.redacted);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an Entity message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.documentai.v1.Document.Entity
+ * @static
+ * @param {google.cloud.documentai.v1.Document.Entity} message Entity
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ Entity.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.properties = [];
+ if (options.defaults) {
+ object.textAnchor = null;
+ object.type = "";
+ object.mentionText = "";
+ object.mentionId = "";
+ object.confidence = 0;
+ object.pageAnchor = null;
+ object.id = "";
+ object.normalizedValue = null;
+ object.provenance = null;
+ object.redacted = false;
+ }
+ if (message.textAnchor != null && message.hasOwnProperty("textAnchor"))
+ object.textAnchor = $root.google.cloud.documentai.v1.Document.TextAnchor.toObject(message.textAnchor, options);
+ if (message.type != null && message.hasOwnProperty("type"))
+ object.type = message.type;
+ if (message.mentionText != null && message.hasOwnProperty("mentionText"))
+ object.mentionText = message.mentionText;
+ if (message.mentionId != null && message.hasOwnProperty("mentionId"))
+ object.mentionId = message.mentionId;
+ if (message.confidence != null && message.hasOwnProperty("confidence"))
+ object.confidence = options.json && !isFinite(message.confidence) ? String(message.confidence) : message.confidence;
+ if (message.pageAnchor != null && message.hasOwnProperty("pageAnchor"))
+ object.pageAnchor = $root.google.cloud.documentai.v1.Document.PageAnchor.toObject(message.pageAnchor, options);
+ if (message.id != null && message.hasOwnProperty("id"))
+ object.id = message.id;
+ if (message.normalizedValue != null && message.hasOwnProperty("normalizedValue"))
+ object.normalizedValue = $root.google.cloud.documentai.v1.Document.Entity.NormalizedValue.toObject(message.normalizedValue, options);
+ if (message.properties && message.properties.length) {
+ object.properties = [];
+ for (var j = 0; j < message.properties.length; ++j)
+ object.properties[j] = $root.google.cloud.documentai.v1.Document.Entity.toObject(message.properties[j], options);
+ }
+ if (message.provenance != null && message.hasOwnProperty("provenance"))
+ object.provenance = $root.google.cloud.documentai.v1.Document.Provenance.toObject(message.provenance, options);
+ if (message.redacted != null && message.hasOwnProperty("redacted"))
+ object.redacted = message.redacted;
+ return object;
+ };
+
+ /**
+ * Converts this Entity to JSON.
+ * @function toJSON
+ * @memberof google.cloud.documentai.v1.Document.Entity
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ Entity.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for Entity
+ * @function getTypeUrl
+ * @memberof google.cloud.documentai.v1.Document.Entity
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ Entity.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.documentai.v1.Document.Entity";
+ };
+
+ Entity.NormalizedValue = (function() {
+
+ /**
+ * Properties of a NormalizedValue.
+ * @memberof google.cloud.documentai.v1.Document.Entity
+ * @interface INormalizedValue
+ * @property {google.type.IMoney|null} [moneyValue] NormalizedValue moneyValue
+ * @property {google.type.IDate|null} [dateValue] NormalizedValue dateValue
+ * @property {google.type.IDateTime|null} [datetimeValue] NormalizedValue datetimeValue
+ * @property {google.type.IPostalAddress|null} [addressValue] NormalizedValue addressValue
+ * @property {boolean|null} [booleanValue] NormalizedValue booleanValue
+ * @property {number|null} [integerValue] NormalizedValue integerValue
+ * @property {number|null} [floatValue] NormalizedValue floatValue
+ * @property {string|null} [text] NormalizedValue text
+ */
+
+ /**
+ * Constructs a new NormalizedValue.
+ * @memberof google.cloud.documentai.v1.Document.Entity
+ * @classdesc Represents a NormalizedValue.
+ * @implements INormalizedValue
+ * @constructor
+ * @param {google.cloud.documentai.v1.Document.Entity.INormalizedValue=} [properties] Properties to set
+ */
+ function NormalizedValue(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]];
+ }
+
+ /**
+ * NormalizedValue moneyValue.
+ * @member {google.type.IMoney|null|undefined} moneyValue
+ * @memberof google.cloud.documentai.v1.Document.Entity.NormalizedValue
+ * @instance
+ */
+ NormalizedValue.prototype.moneyValue = null;
+
+ /**
+ * NormalizedValue dateValue.
+ * @member {google.type.IDate|null|undefined} dateValue
+ * @memberof google.cloud.documentai.v1.Document.Entity.NormalizedValue
+ * @instance
+ */
+ NormalizedValue.prototype.dateValue = null;
+
+ /**
+ * NormalizedValue datetimeValue.
+ * @member {google.type.IDateTime|null|undefined} datetimeValue
+ * @memberof google.cloud.documentai.v1.Document.Entity.NormalizedValue
+ * @instance
+ */
+ NormalizedValue.prototype.datetimeValue = null;
+
+ /**
+ * NormalizedValue addressValue.
+ * @member {google.type.IPostalAddress|null|undefined} addressValue
+ * @memberof google.cloud.documentai.v1.Document.Entity.NormalizedValue
+ * @instance
+ */
+ NormalizedValue.prototype.addressValue = null;
+
+ /**
+ * NormalizedValue booleanValue.
+ * @member {boolean|null|undefined} booleanValue
+ * @memberof google.cloud.documentai.v1.Document.Entity.NormalizedValue
+ * @instance
+ */
+ NormalizedValue.prototype.booleanValue = null;
+
+ /**
+ * NormalizedValue integerValue.
+ * @member {number|null|undefined} integerValue
+ * @memberof google.cloud.documentai.v1.Document.Entity.NormalizedValue
+ * @instance
+ */
+ NormalizedValue.prototype.integerValue = null;
+
+ /**
+ * NormalizedValue floatValue.
+ * @member {number|null|undefined} floatValue
+ * @memberof google.cloud.documentai.v1.Document.Entity.NormalizedValue
+ * @instance
+ */
+ NormalizedValue.prototype.floatValue = null;
+
+ /**
+ * NormalizedValue text.
+ * @member {string} text
+ * @memberof google.cloud.documentai.v1.Document.Entity.NormalizedValue
+ * @instance
+ */
+ NormalizedValue.prototype.text = "";
+
+ // OneOf field names bound to virtual getters and setters
+ var $oneOfFields;
+
+ /**
+ * NormalizedValue structuredValue.
+ * @member {"moneyValue"|"dateValue"|"datetimeValue"|"addressValue"|"booleanValue"|"integerValue"|"floatValue"|undefined} structuredValue
+ * @memberof google.cloud.documentai.v1.Document.Entity.NormalizedValue
+ * @instance
+ */
+ Object.defineProperty(NormalizedValue.prototype, "structuredValue", {
+ get: $util.oneOfGetter($oneOfFields = ["moneyValue", "dateValue", "datetimeValue", "addressValue", "booleanValue", "integerValue", "floatValue"]),
+ set: $util.oneOfSetter($oneOfFields)
+ });
+
+ /**
+ * Creates a new NormalizedValue instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.documentai.v1.Document.Entity.NormalizedValue
+ * @static
+ * @param {google.cloud.documentai.v1.Document.Entity.INormalizedValue=} [properties] Properties to set
+ * @returns {google.cloud.documentai.v1.Document.Entity.NormalizedValue} NormalizedValue instance
+ */
+ NormalizedValue.create = function create(properties) {
+ return new NormalizedValue(properties);
+ };
+
+ /**
+ * Encodes the specified NormalizedValue message. Does not implicitly {@link google.cloud.documentai.v1.Document.Entity.NormalizedValue.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.documentai.v1.Document.Entity.NormalizedValue
+ * @static
+ * @param {google.cloud.documentai.v1.Document.Entity.INormalizedValue} message NormalizedValue message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ NormalizedValue.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.text != null && Object.hasOwnProperty.call(message, "text"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.text);
+ if (message.moneyValue != null && Object.hasOwnProperty.call(message, "moneyValue"))
+ $root.google.type.Money.encode(message.moneyValue, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
+ if (message.dateValue != null && Object.hasOwnProperty.call(message, "dateValue"))
+ $root.google.type.Date.encode(message.dateValue, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
+ if (message.datetimeValue != null && Object.hasOwnProperty.call(message, "datetimeValue"))
+ $root.google.type.DateTime.encode(message.datetimeValue, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
+ if (message.addressValue != null && Object.hasOwnProperty.call(message, "addressValue"))
+ $root.google.type.PostalAddress.encode(message.addressValue, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
+ if (message.booleanValue != null && Object.hasOwnProperty.call(message, "booleanValue"))
+ writer.uint32(/* id 6, wireType 0 =*/48).bool(message.booleanValue);
+ if (message.integerValue != null && Object.hasOwnProperty.call(message, "integerValue"))
+ writer.uint32(/* id 7, wireType 0 =*/56).int32(message.integerValue);
+ if (message.floatValue != null && Object.hasOwnProperty.call(message, "floatValue"))
+ writer.uint32(/* id 8, wireType 5 =*/69).float(message.floatValue);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified NormalizedValue message, length delimited. Does not implicitly {@link google.cloud.documentai.v1.Document.Entity.NormalizedValue.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.documentai.v1.Document.Entity.NormalizedValue
+ * @static
+ * @param {google.cloud.documentai.v1.Document.Entity.INormalizedValue} message NormalizedValue message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ NormalizedValue.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a NormalizedValue message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.documentai.v1.Document.Entity.NormalizedValue
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.documentai.v1.Document.Entity.NormalizedValue} NormalizedValue
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ NormalizedValue.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.documentai.v1.Document.Entity.NormalizedValue();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 2: {
+ message.moneyValue = $root.google.type.Money.decode(reader, reader.uint32());
+ break;
+ }
+ case 3: {
+ message.dateValue = $root.google.type.Date.decode(reader, reader.uint32());
+ break;
+ }
+ case 4: {
+ message.datetimeValue = $root.google.type.DateTime.decode(reader, reader.uint32());
+ break;
+ }
+ case 5: {
+ message.addressValue = $root.google.type.PostalAddress.decode(reader, reader.uint32());
+ break;
+ }
+ case 6: {
+ message.booleanValue = reader.bool();
+ break;
+ }
+ case 7: {
+ message.integerValue = reader.int32();
+ break;
+ }
+ case 8: {
+ message.floatValue = reader.float();
+ break;
+ }
+ case 1: {
+ message.text = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a NormalizedValue message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.documentai.v1.Document.Entity.NormalizedValue
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.documentai.v1.Document.Entity.NormalizedValue} NormalizedValue
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ NormalizedValue.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a NormalizedValue message.
+ * @function verify
+ * @memberof google.cloud.documentai.v1.Document.Entity.NormalizedValue
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ NormalizedValue.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ var properties = {};
+ if (message.moneyValue != null && message.hasOwnProperty("moneyValue")) {
+ properties.structuredValue = 1;
+ {
+ var error = $root.google.type.Money.verify(message.moneyValue);
+ if (error)
+ return "moneyValue." + error;
+ }
+ }
+ if (message.dateValue != null && message.hasOwnProperty("dateValue")) {
+ if (properties.structuredValue === 1)
+ return "structuredValue: multiple values";
+ properties.structuredValue = 1;
+ {
+ var error = $root.google.type.Date.verify(message.dateValue);
+ if (error)
+ return "dateValue." + error;
+ }
+ }
+ if (message.datetimeValue != null && message.hasOwnProperty("datetimeValue")) {
+ if (properties.structuredValue === 1)
+ return "structuredValue: multiple values";
+ properties.structuredValue = 1;
+ {
+ var error = $root.google.type.DateTime.verify(message.datetimeValue);
+ if (error)
+ return "datetimeValue." + error;
+ }
+ }
+ if (message.addressValue != null && message.hasOwnProperty("addressValue")) {
+ if (properties.structuredValue === 1)
+ return "structuredValue: multiple values";
+ properties.structuredValue = 1;
+ {
+ var error = $root.google.type.PostalAddress.verify(message.addressValue);
+ if (error)
+ return "addressValue." + error;
+ }
+ }
+ if (message.booleanValue != null && message.hasOwnProperty("booleanValue")) {
+ if (properties.structuredValue === 1)
+ return "structuredValue: multiple values";
+ properties.structuredValue = 1;
+ if (typeof message.booleanValue !== "boolean")
+ return "booleanValue: boolean expected";
+ }
+ if (message.integerValue != null && message.hasOwnProperty("integerValue")) {
+ if (properties.structuredValue === 1)
+ return "structuredValue: multiple values";
+ properties.structuredValue = 1;
+ if (!$util.isInteger(message.integerValue))
+ return "integerValue: integer expected";
+ }
+ if (message.floatValue != null && message.hasOwnProperty("floatValue")) {
+ if (properties.structuredValue === 1)
+ return "structuredValue: multiple values";
+ properties.structuredValue = 1;
+ if (typeof message.floatValue !== "number")
+ return "floatValue: number expected";
+ }
+ if (message.text != null && message.hasOwnProperty("text"))
+ if (!$util.isString(message.text))
+ return "text: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a NormalizedValue message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.documentai.v1.Document.Entity.NormalizedValue
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.documentai.v1.Document.Entity.NormalizedValue} NormalizedValue
+ */
+ NormalizedValue.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.documentai.v1.Document.Entity.NormalizedValue)
+ return object;
+ var message = new $root.google.cloud.documentai.v1.Document.Entity.NormalizedValue();
+ if (object.moneyValue != null) {
+ if (typeof object.moneyValue !== "object")
+ throw TypeError(".google.cloud.documentai.v1.Document.Entity.NormalizedValue.moneyValue: object expected");
+ message.moneyValue = $root.google.type.Money.fromObject(object.moneyValue);
+ }
+ if (object.dateValue != null) {
+ if (typeof object.dateValue !== "object")
+ throw TypeError(".google.cloud.documentai.v1.Document.Entity.NormalizedValue.dateValue: object expected");
+ message.dateValue = $root.google.type.Date.fromObject(object.dateValue);
+ }
+ if (object.datetimeValue != null) {
+ if (typeof object.datetimeValue !== "object")
+ throw TypeError(".google.cloud.documentai.v1.Document.Entity.NormalizedValue.datetimeValue: object expected");
+ message.datetimeValue = $root.google.type.DateTime.fromObject(object.datetimeValue);
+ }
+ if (object.addressValue != null) {
+ if (typeof object.addressValue !== "object")
+ throw TypeError(".google.cloud.documentai.v1.Document.Entity.NormalizedValue.addressValue: object expected");
+ message.addressValue = $root.google.type.PostalAddress.fromObject(object.addressValue);
+ }
+ if (object.booleanValue != null)
+ message.booleanValue = Boolean(object.booleanValue);
+ if (object.integerValue != null)
+ message.integerValue = object.integerValue | 0;
+ if (object.floatValue != null)
+ message.floatValue = Number(object.floatValue);
+ if (object.text != null)
+ message.text = String(object.text);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a NormalizedValue message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.documentai.v1.Document.Entity.NormalizedValue
+ * @static
+ * @param {google.cloud.documentai.v1.Document.Entity.NormalizedValue} message NormalizedValue
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ NormalizedValue.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults)
+ object.text = "";
+ if (message.text != null && message.hasOwnProperty("text"))
+ object.text = message.text;
+ if (message.moneyValue != null && message.hasOwnProperty("moneyValue")) {
+ object.moneyValue = $root.google.type.Money.toObject(message.moneyValue, options);
+ if (options.oneofs)
+ object.structuredValue = "moneyValue";
+ }
+ if (message.dateValue != null && message.hasOwnProperty("dateValue")) {
+ object.dateValue = $root.google.type.Date.toObject(message.dateValue, options);
+ if (options.oneofs)
+ object.structuredValue = "dateValue";
+ }
+ if (message.datetimeValue != null && message.hasOwnProperty("datetimeValue")) {
+ object.datetimeValue = $root.google.type.DateTime.toObject(message.datetimeValue, options);
+ if (options.oneofs)
+ object.structuredValue = "datetimeValue";
+ }
+ if (message.addressValue != null && message.hasOwnProperty("addressValue")) {
+ object.addressValue = $root.google.type.PostalAddress.toObject(message.addressValue, options);
+ if (options.oneofs)
+ object.structuredValue = "addressValue";
+ }
+ if (message.booleanValue != null && message.hasOwnProperty("booleanValue")) {
+ object.booleanValue = message.booleanValue;
+ if (options.oneofs)
+ object.structuredValue = "booleanValue";
+ }
+ if (message.integerValue != null && message.hasOwnProperty("integerValue")) {
+ object.integerValue = message.integerValue;
+ if (options.oneofs)
+ object.structuredValue = "integerValue";
+ }
+ if (message.floatValue != null && message.hasOwnProperty("floatValue")) {
+ object.floatValue = options.json && !isFinite(message.floatValue) ? String(message.floatValue) : message.floatValue;
+ if (options.oneofs)
+ object.structuredValue = "floatValue";
+ }
+ return object;
+ };
+
+ /**
+ * Converts this NormalizedValue to JSON.
+ * @function toJSON
+ * @memberof google.cloud.documentai.v1.Document.Entity.NormalizedValue
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ NormalizedValue.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for NormalizedValue
+ * @function getTypeUrl
+ * @memberof google.cloud.documentai.v1.Document.Entity.NormalizedValue
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ NormalizedValue.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.documentai.v1.Document.Entity.NormalizedValue";
+ };
+
+ return NormalizedValue;
+ })();
+
+ return Entity;
+ })();
+
+ Document.EntityRelation = (function() {
+
+ /**
+ * Properties of an EntityRelation.
+ * @memberof google.cloud.documentai.v1.Document
+ * @interface IEntityRelation
+ * @property {string|null} [subjectId] EntityRelation subjectId
+ * @property {string|null} [objectId] EntityRelation objectId
+ * @property {string|null} [relation] EntityRelation relation
+ */
+
+ /**
+ * Constructs a new EntityRelation.
+ * @memberof google.cloud.documentai.v1.Document
+ * @classdesc Represents an EntityRelation.
+ * @implements IEntityRelation
+ * @constructor
+ * @param {google.cloud.documentai.v1.Document.IEntityRelation=} [properties] Properties to set
+ */
+ function EntityRelation(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]];
+ }
+
+ /**
+ * EntityRelation subjectId.
+ * @member {string} subjectId
+ * @memberof google.cloud.documentai.v1.Document.EntityRelation
+ * @instance
+ */
+ EntityRelation.prototype.subjectId = "";
+
+ /**
+ * EntityRelation objectId.
+ * @member {string} objectId
+ * @memberof google.cloud.documentai.v1.Document.EntityRelation
+ * @instance
+ */
+ EntityRelation.prototype.objectId = "";
+
+ /**
+ * EntityRelation relation.
+ * @member {string} relation
+ * @memberof google.cloud.documentai.v1.Document.EntityRelation
+ * @instance
+ */
+ EntityRelation.prototype.relation = "";
+
+ /**
+ * Creates a new EntityRelation instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.documentai.v1.Document.EntityRelation
+ * @static
+ * @param {google.cloud.documentai.v1.Document.IEntityRelation=} [properties] Properties to set
+ * @returns {google.cloud.documentai.v1.Document.EntityRelation} EntityRelation instance
+ */
+ EntityRelation.create = function create(properties) {
+ return new EntityRelation(properties);
+ };
+
+ /**
+ * Encodes the specified EntityRelation message. Does not implicitly {@link google.cloud.documentai.v1.Document.EntityRelation.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.documentai.v1.Document.EntityRelation
+ * @static
+ * @param {google.cloud.documentai.v1.Document.IEntityRelation} message EntityRelation message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ EntityRelation.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.subjectId != null && Object.hasOwnProperty.call(message, "subjectId"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.subjectId);
+ if (message.objectId != null && Object.hasOwnProperty.call(message, "objectId"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.objectId);
+ if (message.relation != null && Object.hasOwnProperty.call(message, "relation"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.relation);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified EntityRelation message, length delimited. Does not implicitly {@link google.cloud.documentai.v1.Document.EntityRelation.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.documentai.v1.Document.EntityRelation
+ * @static
+ * @param {google.cloud.documentai.v1.Document.IEntityRelation} message EntityRelation message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ EntityRelation.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes an EntityRelation message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.documentai.v1.Document.EntityRelation
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.documentai.v1.Document.EntityRelation} EntityRelation
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ EntityRelation.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.documentai.v1.Document.EntityRelation();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.subjectId = reader.string();
+ break;
+ }
+ case 2: {
+ message.objectId = reader.string();
+ break;
+ }
+ case 3: {
+ message.relation = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an EntityRelation message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.documentai.v1.Document.EntityRelation
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.documentai.v1.Document.EntityRelation} EntityRelation
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ EntityRelation.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an EntityRelation message.
+ * @function verify
+ * @memberof google.cloud.documentai.v1.Document.EntityRelation
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ EntityRelation.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.subjectId != null && message.hasOwnProperty("subjectId"))
+ if (!$util.isString(message.subjectId))
+ return "subjectId: string expected";
+ if (message.objectId != null && message.hasOwnProperty("objectId"))
+ if (!$util.isString(message.objectId))
+ return "objectId: string expected";
+ if (message.relation != null && message.hasOwnProperty("relation"))
+ if (!$util.isString(message.relation))
+ return "relation: string expected";
+ return null;
+ };
+
+ /**
+ * Creates an EntityRelation message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.documentai.v1.Document.EntityRelation
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.documentai.v1.Document.EntityRelation} EntityRelation
+ */
+ EntityRelation.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.documentai.v1.Document.EntityRelation)
+ return object;
+ var message = new $root.google.cloud.documentai.v1.Document.EntityRelation();
+ if (object.subjectId != null)
+ message.subjectId = String(object.subjectId);
+ if (object.objectId != null)
+ message.objectId = String(object.objectId);
+ if (object.relation != null)
+ message.relation = String(object.relation);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an EntityRelation message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.documentai.v1.Document.EntityRelation
+ * @static
+ * @param {google.cloud.documentai.v1.Document.EntityRelation} message EntityRelation
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ EntityRelation.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.subjectId = "";
+ object.objectId = "";
+ object.relation = "";
+ }
+ if (message.subjectId != null && message.hasOwnProperty("subjectId"))
+ object.subjectId = message.subjectId;
+ if (message.objectId != null && message.hasOwnProperty("objectId"))
+ object.objectId = message.objectId;
+ if (message.relation != null && message.hasOwnProperty("relation"))
+ object.relation = message.relation;
+ return object;
+ };
+
+ /**
+ * Converts this EntityRelation to JSON.
+ * @function toJSON
+ * @memberof google.cloud.documentai.v1.Document.EntityRelation
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ EntityRelation.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for EntityRelation
+ * @function getTypeUrl
+ * @memberof google.cloud.documentai.v1.Document.EntityRelation
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ EntityRelation.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.documentai.v1.Document.EntityRelation";
+ };
+
+ return EntityRelation;
+ })();
+
+ Document.TextAnchor = (function() {
+
+ /**
+ * Properties of a TextAnchor.
+ * @memberof google.cloud.documentai.v1.Document
+ * @interface ITextAnchor
+ * @property {Array.|null} [textSegments] TextAnchor textSegments
+ * @property {string|null} [content] TextAnchor content
+ */
+
+ /**
+ * Constructs a new TextAnchor.
+ * @memberof google.cloud.documentai.v1.Document
+ * @classdesc Represents a TextAnchor.
+ * @implements ITextAnchor
+ * @constructor
+ * @param {google.cloud.documentai.v1.Document.ITextAnchor=} [properties] Properties to set
+ */
+ function TextAnchor(properties) {
+ this.textSegments = [];
+ 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]];
+ }
+
+ /**
+ * TextAnchor textSegments.
+ * @member {Array.} textSegments
+ * @memberof google.cloud.documentai.v1.Document.TextAnchor
+ * @instance
+ */
+ TextAnchor.prototype.textSegments = $util.emptyArray;
+
+ /**
+ * TextAnchor content.
+ * @member {string} content
+ * @memberof google.cloud.documentai.v1.Document.TextAnchor
+ * @instance
+ */
+ TextAnchor.prototype.content = "";
+
+ /**
+ * Creates a new TextAnchor instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.documentai.v1.Document.TextAnchor
+ * @static
+ * @param {google.cloud.documentai.v1.Document.ITextAnchor=} [properties] Properties to set
+ * @returns {google.cloud.documentai.v1.Document.TextAnchor} TextAnchor instance
+ */
+ TextAnchor.create = function create(properties) {
+ return new TextAnchor(properties);
+ };
+
+ /**
+ * Encodes the specified TextAnchor message. Does not implicitly {@link google.cloud.documentai.v1.Document.TextAnchor.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.documentai.v1.Document.TextAnchor
+ * @static
+ * @param {google.cloud.documentai.v1.Document.ITextAnchor} message TextAnchor message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ TextAnchor.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.textSegments != null && message.textSegments.length)
+ for (var i = 0; i < message.textSegments.length; ++i)
+ $root.google.cloud.documentai.v1.Document.TextAnchor.TextSegment.encode(message.textSegments[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
+ if (message.content != null && Object.hasOwnProperty.call(message, "content"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.content);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified TextAnchor message, length delimited. Does not implicitly {@link google.cloud.documentai.v1.Document.TextAnchor.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.documentai.v1.Document.TextAnchor
+ * @static
+ * @param {google.cloud.documentai.v1.Document.ITextAnchor} message TextAnchor message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ TextAnchor.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a TextAnchor message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.documentai.v1.Document.TextAnchor
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.documentai.v1.Document.TextAnchor} TextAnchor
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ TextAnchor.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.documentai.v1.Document.TextAnchor();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ if (!(message.textSegments && message.textSegments.length))
+ message.textSegments = [];
+ message.textSegments.push($root.google.cloud.documentai.v1.Document.TextAnchor.TextSegment.decode(reader, reader.uint32()));
+ break;
+ }
+ case 2: {
+ message.content = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a TextAnchor message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.documentai.v1.Document.TextAnchor
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.documentai.v1.Document.TextAnchor} TextAnchor
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ TextAnchor.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a TextAnchor message.
+ * @function verify
+ * @memberof google.cloud.documentai.v1.Document.TextAnchor
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ TextAnchor.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.textSegments != null && message.hasOwnProperty("textSegments")) {
+ if (!Array.isArray(message.textSegments))
+ return "textSegments: array expected";
+ for (var i = 0; i < message.textSegments.length; ++i) {
+ var error = $root.google.cloud.documentai.v1.Document.TextAnchor.TextSegment.verify(message.textSegments[i]);
+ if (error)
+ return "textSegments." + error;
+ }
+ }
+ if (message.content != null && message.hasOwnProperty("content"))
+ if (!$util.isString(message.content))
+ return "content: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a TextAnchor message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.documentai.v1.Document.TextAnchor
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.documentai.v1.Document.TextAnchor} TextAnchor
+ */
+ TextAnchor.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.documentai.v1.Document.TextAnchor)
+ return object;
+ var message = new $root.google.cloud.documentai.v1.Document.TextAnchor();
+ if (object.textSegments) {
+ if (!Array.isArray(object.textSegments))
+ throw TypeError(".google.cloud.documentai.v1.Document.TextAnchor.textSegments: array expected");
+ message.textSegments = [];
+ for (var i = 0; i < object.textSegments.length; ++i) {
+ if (typeof object.textSegments[i] !== "object")
+ throw TypeError(".google.cloud.documentai.v1.Document.TextAnchor.textSegments: object expected");
+ message.textSegments[i] = $root.google.cloud.documentai.v1.Document.TextAnchor.TextSegment.fromObject(object.textSegments[i]);
+ }
+ }
+ if (object.content != null)
+ message.content = String(object.content);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a TextAnchor message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.documentai.v1.Document.TextAnchor
+ * @static
+ * @param {google.cloud.documentai.v1.Document.TextAnchor} message TextAnchor
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ TextAnchor.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.textSegments = [];
+ if (options.defaults)
+ object.content = "";
+ if (message.textSegments && message.textSegments.length) {
+ object.textSegments = [];
+ for (var j = 0; j < message.textSegments.length; ++j)
+ object.textSegments[j] = $root.google.cloud.documentai.v1.Document.TextAnchor.TextSegment.toObject(message.textSegments[j], options);
+ }
+ if (message.content != null && message.hasOwnProperty("content"))
+ object.content = message.content;
+ return object;
+ };
+
+ /**
+ * Converts this TextAnchor to JSON.
+ * @function toJSON
+ * @memberof google.cloud.documentai.v1.Document.TextAnchor
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ TextAnchor.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for TextAnchor
+ * @function getTypeUrl
+ * @memberof google.cloud.documentai.v1.Document.TextAnchor
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ TextAnchor.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.documentai.v1.Document.TextAnchor";
+ };
+
+ TextAnchor.TextSegment = (function() {
+
+ /**
+ * Properties of a TextSegment.
+ * @memberof google.cloud.documentai.v1.Document.TextAnchor
+ * @interface ITextSegment
+ * @property {number|Long|null} [startIndex] TextSegment startIndex
+ * @property {number|Long|null} [endIndex] TextSegment endIndex
+ */
+
+ /**
+ * Constructs a new TextSegment.
+ * @memberof google.cloud.documentai.v1.Document.TextAnchor
+ * @classdesc Represents a TextSegment.
+ * @implements ITextSegment
+ * @constructor
+ * @param {google.cloud.documentai.v1.Document.TextAnchor.ITextSegment=} [properties] Properties to set
+ */
+ function TextSegment(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]];
+ }
+
+ /**
+ * TextSegment startIndex.
+ * @member {number|Long} startIndex
+ * @memberof google.cloud.documentai.v1.Document.TextAnchor.TextSegment
+ * @instance
+ */
+ TextSegment.prototype.startIndex = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
+
+ /**
+ * TextSegment endIndex.
+ * @member {number|Long} endIndex
+ * @memberof google.cloud.documentai.v1.Document.TextAnchor.TextSegment
+ * @instance
+ */
+ TextSegment.prototype.endIndex = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
+
+ /**
+ * Creates a new TextSegment instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.documentai.v1.Document.TextAnchor.TextSegment
+ * @static
+ * @param {google.cloud.documentai.v1.Document.TextAnchor.ITextSegment=} [properties] Properties to set
+ * @returns {google.cloud.documentai.v1.Document.TextAnchor.TextSegment} TextSegment instance
+ */
+ TextSegment.create = function create(properties) {
+ return new TextSegment(properties);
+ };
+
+ /**
+ * Encodes the specified TextSegment message. Does not implicitly {@link google.cloud.documentai.v1.Document.TextAnchor.TextSegment.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.documentai.v1.Document.TextAnchor.TextSegment
+ * @static
+ * @param {google.cloud.documentai.v1.Document.TextAnchor.ITextSegment} message TextSegment message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ TextSegment.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.startIndex != null && Object.hasOwnProperty.call(message, "startIndex"))
+ writer.uint32(/* id 1, wireType 0 =*/8).int64(message.startIndex);
+ if (message.endIndex != null && Object.hasOwnProperty.call(message, "endIndex"))
+ writer.uint32(/* id 2, wireType 0 =*/16).int64(message.endIndex);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified TextSegment message, length delimited. Does not implicitly {@link google.cloud.documentai.v1.Document.TextAnchor.TextSegment.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.documentai.v1.Document.TextAnchor.TextSegment
+ * @static
+ * @param {google.cloud.documentai.v1.Document.TextAnchor.ITextSegment} message TextSegment message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ TextSegment.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a TextSegment message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.documentai.v1.Document.TextAnchor.TextSegment
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.documentai.v1.Document.TextAnchor.TextSegment} TextSegment
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ TextSegment.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.documentai.v1.Document.TextAnchor.TextSegment();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.startIndex = reader.int64();
+ break;
+ }
+ case 2: {
+ message.endIndex = reader.int64();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a TextSegment message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.documentai.v1.Document.TextAnchor.TextSegment
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.documentai.v1.Document.TextAnchor.TextSegment} TextSegment
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ TextSegment.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a TextSegment message.
+ * @function verify
+ * @memberof google.cloud.documentai.v1.Document.TextAnchor.TextSegment
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ TextSegment.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.startIndex != null && message.hasOwnProperty("startIndex"))
+ if (!$util.isInteger(message.startIndex) && !(message.startIndex && $util.isInteger(message.startIndex.low) && $util.isInteger(message.startIndex.high)))
+ return "startIndex: integer|Long expected";
+ if (message.endIndex != null && message.hasOwnProperty("endIndex"))
+ if (!$util.isInteger(message.endIndex) && !(message.endIndex && $util.isInteger(message.endIndex.low) && $util.isInteger(message.endIndex.high)))
+ return "endIndex: integer|Long expected";
+ return null;
+ };
+
+ /**
+ * Creates a TextSegment message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.documentai.v1.Document.TextAnchor.TextSegment
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.documentai.v1.Document.TextAnchor.TextSegment} TextSegment
+ */
+ TextSegment.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.documentai.v1.Document.TextAnchor.TextSegment)
+ return object;
+ var message = new $root.google.cloud.documentai.v1.Document.TextAnchor.TextSegment();
+ if (object.startIndex != null)
+ if ($util.Long)
+ (message.startIndex = $util.Long.fromValue(object.startIndex)).unsigned = false;
+ else if (typeof object.startIndex === "string")
+ message.startIndex = parseInt(object.startIndex, 10);
+ else if (typeof object.startIndex === "number")
+ message.startIndex = object.startIndex;
+ else if (typeof object.startIndex === "object")
+ message.startIndex = new $util.LongBits(object.startIndex.low >>> 0, object.startIndex.high >>> 0).toNumber();
+ if (object.endIndex != null)
+ if ($util.Long)
+ (message.endIndex = $util.Long.fromValue(object.endIndex)).unsigned = false;
+ else if (typeof object.endIndex === "string")
+ message.endIndex = parseInt(object.endIndex, 10);
+ else if (typeof object.endIndex === "number")
+ message.endIndex = object.endIndex;
+ else if (typeof object.endIndex === "object")
+ message.endIndex = new $util.LongBits(object.endIndex.low >>> 0, object.endIndex.high >>> 0).toNumber();
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a TextSegment message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.documentai.v1.Document.TextAnchor.TextSegment
+ * @static
+ * @param {google.cloud.documentai.v1.Document.TextAnchor.TextSegment} message TextSegment
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ TextSegment.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ if ($util.Long) {
+ var long = new $util.Long(0, 0, false);
+ object.startIndex = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
+ } else
+ object.startIndex = options.longs === String ? "0" : 0;
+ if ($util.Long) {
+ var long = new $util.Long(0, 0, false);
+ object.endIndex = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
+ } else
+ object.endIndex = options.longs === String ? "0" : 0;
+ }
+ if (message.startIndex != null && message.hasOwnProperty("startIndex"))
+ if (typeof message.startIndex === "number")
+ object.startIndex = options.longs === String ? String(message.startIndex) : message.startIndex;
+ else
+ object.startIndex = options.longs === String ? $util.Long.prototype.toString.call(message.startIndex) : options.longs === Number ? new $util.LongBits(message.startIndex.low >>> 0, message.startIndex.high >>> 0).toNumber() : message.startIndex;
+ if (message.endIndex != null && message.hasOwnProperty("endIndex"))
+ if (typeof message.endIndex === "number")
+ object.endIndex = options.longs === String ? String(message.endIndex) : message.endIndex;
+ else
+ object.endIndex = options.longs === String ? $util.Long.prototype.toString.call(message.endIndex) : options.longs === Number ? new $util.LongBits(message.endIndex.low >>> 0, message.endIndex.high >>> 0).toNumber() : message.endIndex;
+ return object;
+ };
+
+ /**
+ * Converts this TextSegment to JSON.
+ * @function toJSON
+ * @memberof google.cloud.documentai.v1.Document.TextAnchor.TextSegment
+ * @instance
+ * @returns {Object.