From 323500241d4470668ea5db5bd597808425c4d3e4 Mon Sep 17 00:00:00 2001
From: "owlbot-bootstrapper[bot]"
<104649659+owlbot-bootstrapper[bot]@users.noreply.github.com>
Date: Thu, 27 Oct 2022 13:59:58 -0400
Subject: [PATCH 01/11] feat: add initial files for
google.cloud.contentwarehouse.v1 (#3454)
---
.../.OwlBot.yaml | 17 +
.../.eslintignore | 7 +
.../.eslintrc.json | 3 +
.../.gitattributes | 4 +
.../google-cloud-contentwarehouse/.gitignore | 14 +
.../google-cloud-contentwarehouse/.jsdoc.js | 55 +
.../google-cloud-contentwarehouse/.mocharc.js | 29 +
packages/google-cloud-contentwarehouse/.nycrc | 24 +
.../.prettierignore | 6 +
.../.prettierrc.js | 17 +
.../.repo-metadata.json | 15 +
.../CODE_OF_CONDUCT.md | 94 +
.../CONTRIBUTING.md | 76 +
.../google-cloud-contentwarehouse/LICENSE | 202 +
.../google-cloud-contentwarehouse/README.md | 214 +
.../linkinator.config.json | 16 +
.../package.json | 66 +
.../v1/async_document_service_request.proto | 35 +
.../cloud/contentwarehouse/v1/common.proto | 140 +
.../cloud/contentwarehouse/v1/document.proto | 310 +
.../v1/document_link_service.proto | 227 +
.../contentwarehouse/v1/document_schema.proto | 166 +
.../v1/document_schema_service.proto | 174 +
.../v1/document_service.proto | 249 +
.../v1/document_service_request.proto | 279 +
.../cloud/contentwarehouse/v1/filters.proto | 206 +
.../cloud/contentwarehouse/v1/histogram.proto | 102 +
.../contentwarehouse/v1/rule_engine.proto | 276 +
.../contentwarehouse/v1/ruleset_service.proto | 77 +
.../v1/ruleset_service_request.proto | 118 +
.../contentwarehouse/v1/synonymset.proto | 58 +
.../v1/synonymset_service.proto | 83 +
.../v1/synonymset_service_request.proto | 122 +
.../google/cloud/documentai/v1/barcode.proto | 67 +
.../google/cloud/documentai/v1/document.proto | 782 +
.../cloud/documentai/v1/document_io.proto | 84 +
.../v1/document_processor_service.proto | 799 +
.../cloud/documentai/v1/document_schema.proto | 140 +
.../google/cloud/documentai/v1/geometry.proto | 55 +
.../documentai/v1/operation_metadata.proto | 66 +
.../cloud/documentai/v1/processor.proto | 185 +
.../cloud/documentai/v1/processor_type.proto | 63 +
.../protos/protos.d.ts | 22971 ++++++
.../protos/protos.js | 57589 ++++++++++++++++
.../protos/protos.json | 5166 ++
.../samples/README.md | 536 +
...ument_link_service.create_document_link.js | 74 +
...ument_link_service.delete_document_link.js | 68 +
...cument_link_service.list_linked_sources.js | 84 +
...cument_link_service.list_linked_targets.js | 68 +
...t_schema_service.create_document_schema.js | 66 +
...t_schema_service.delete_document_schema.js | 61 +
...ment_schema_service.get_document_schema.js | 61 +
...nt_schema_service.list_document_schemas.js | 78 +
...t_schema_service.update_document_schema.js | 68 +
.../v1/document_service.create_document.js | 89 +
.../v1/document_service.delete_document.js | 70 +
.../v1/document_service.fetch_acl.js | 74 +
.../v1/document_service.get_document.js | 69 +
.../v1/document_service.search_documents.js | 151 +
.../generated/v1/document_service.set_acl.js | 80 +
.../v1/document_service.update_document.js | 83 +
.../v1/rule_set_service.create_rule_set.js | 67 +
.../v1/rule_set_service.delete_rule_set.js | 63 +
.../v1/rule_set_service.get_rule_set.js | 63 +
.../v1/rule_set_service.list_rule_sets.js | 78 +
.../v1/rule_set_service.update_rule_set.js | 68 +
...data.google.cloud.contentwarehouse.v1.json | 1231 +
.../synonym_set_service.create_synonym_set.js | 67 +
.../synonym_set_service.delete_synonym_set.js | 63 +
.../v1/synonym_set_service.get_synonym_set.js | 63 +
.../synonym_set_service.list_synonym_sets.js | 78 +
.../synonym_set_service.update_synonym_set.js | 68 +
.../samples/package.json | 24 +
.../samples/quickstart.js | 76 +
.../samples/test/quickstart.js | 35 +
.../src/index.ts | 49 +
.../src/v1/document_link_service_client.ts | 1269 +
.../document_link_service_client_config.json | 46 +
.../v1/document_link_service_proto_list.json | 21 +
.../src/v1/document_schema_service_client.ts | 1387 +
...document_schema_service_client_config.json | 63 +
.../document_schema_service_proto_list.json | 21 +
.../src/v1/document_service_client.ts | 1788 +
.../v1/document_service_client_config.json | 73 +
.../src/v1/document_service_proto_list.json | 21 +
.../src/v1/gapic_metadata.json | 359 +
.../src/v1/index.ts | 23 +
.../src/v1/rule_set_service_client.ts | 1320 +
.../v1/rule_set_service_client_config.json | 63 +
.../src/v1/rule_set_service_proto_list.json | 21 +
.../src/v1/synonym_set_service_client.ts | 1345 +
.../v1/synonym_set_service_client_config.json | 63 +
.../v1/synonym_set_service_proto_list.json | 21 +
.../system-test/fixtures/sample/src/index.js | 33 +
.../system-test/fixtures/sample/src/index.ts | 66 +
.../system-test/install.ts | 51 +
.../test/gapic_document_link_service_v1.ts | 1448 +
.../test/gapic_document_schema_service_v1.ts | 1608 +
.../test/gapic_document_service_v1.ts | 1771 +
.../test/gapic_rule_set_service_v1.ts | 1510 +
.../test/gapic_synonym_set_service_v1.ts | 1513 +
.../tsconfig.json | 19 +
.../webpack.config.js | 64 +
release-please-config.json | 3 +-
105 files changed, 111310 insertions(+), 1 deletion(-)
create mode 100644 packages/google-cloud-contentwarehouse/.OwlBot.yaml
create mode 100644 packages/google-cloud-contentwarehouse/.eslintignore
create mode 100644 packages/google-cloud-contentwarehouse/.eslintrc.json
create mode 100644 packages/google-cloud-contentwarehouse/.gitattributes
create mode 100644 packages/google-cloud-contentwarehouse/.gitignore
create mode 100644 packages/google-cloud-contentwarehouse/.jsdoc.js
create mode 100644 packages/google-cloud-contentwarehouse/.mocharc.js
create mode 100644 packages/google-cloud-contentwarehouse/.nycrc
create mode 100644 packages/google-cloud-contentwarehouse/.prettierignore
create mode 100644 packages/google-cloud-contentwarehouse/.prettierrc.js
create mode 100644 packages/google-cloud-contentwarehouse/.repo-metadata.json
create mode 100644 packages/google-cloud-contentwarehouse/CODE_OF_CONDUCT.md
create mode 100644 packages/google-cloud-contentwarehouse/CONTRIBUTING.md
create mode 100644 packages/google-cloud-contentwarehouse/LICENSE
create mode 100644 packages/google-cloud-contentwarehouse/README.md
create mode 100644 packages/google-cloud-contentwarehouse/linkinator.config.json
create mode 100644 packages/google-cloud-contentwarehouse/package.json
create mode 100644 packages/google-cloud-contentwarehouse/protos/google/cloud/contentwarehouse/v1/async_document_service_request.proto
create mode 100644 packages/google-cloud-contentwarehouse/protos/google/cloud/contentwarehouse/v1/common.proto
create mode 100644 packages/google-cloud-contentwarehouse/protos/google/cloud/contentwarehouse/v1/document.proto
create mode 100644 packages/google-cloud-contentwarehouse/protos/google/cloud/contentwarehouse/v1/document_link_service.proto
create mode 100644 packages/google-cloud-contentwarehouse/protos/google/cloud/contentwarehouse/v1/document_schema.proto
create mode 100644 packages/google-cloud-contentwarehouse/protos/google/cloud/contentwarehouse/v1/document_schema_service.proto
create mode 100644 packages/google-cloud-contentwarehouse/protos/google/cloud/contentwarehouse/v1/document_service.proto
create mode 100644 packages/google-cloud-contentwarehouse/protos/google/cloud/contentwarehouse/v1/document_service_request.proto
create mode 100644 packages/google-cloud-contentwarehouse/protos/google/cloud/contentwarehouse/v1/filters.proto
create mode 100644 packages/google-cloud-contentwarehouse/protos/google/cloud/contentwarehouse/v1/histogram.proto
create mode 100644 packages/google-cloud-contentwarehouse/protos/google/cloud/contentwarehouse/v1/rule_engine.proto
create mode 100644 packages/google-cloud-contentwarehouse/protos/google/cloud/contentwarehouse/v1/ruleset_service.proto
create mode 100644 packages/google-cloud-contentwarehouse/protos/google/cloud/contentwarehouse/v1/ruleset_service_request.proto
create mode 100644 packages/google-cloud-contentwarehouse/protos/google/cloud/contentwarehouse/v1/synonymset.proto
create mode 100644 packages/google-cloud-contentwarehouse/protos/google/cloud/contentwarehouse/v1/synonymset_service.proto
create mode 100644 packages/google-cloud-contentwarehouse/protos/google/cloud/contentwarehouse/v1/synonymset_service_request.proto
create mode 100644 packages/google-cloud-contentwarehouse/protos/google/cloud/documentai/v1/barcode.proto
create mode 100644 packages/google-cloud-contentwarehouse/protos/google/cloud/documentai/v1/document.proto
create mode 100644 packages/google-cloud-contentwarehouse/protos/google/cloud/documentai/v1/document_io.proto
create mode 100644 packages/google-cloud-contentwarehouse/protos/google/cloud/documentai/v1/document_processor_service.proto
create mode 100644 packages/google-cloud-contentwarehouse/protos/google/cloud/documentai/v1/document_schema.proto
create mode 100644 packages/google-cloud-contentwarehouse/protos/google/cloud/documentai/v1/geometry.proto
create mode 100644 packages/google-cloud-contentwarehouse/protos/google/cloud/documentai/v1/operation_metadata.proto
create mode 100644 packages/google-cloud-contentwarehouse/protos/google/cloud/documentai/v1/processor.proto
create mode 100644 packages/google-cloud-contentwarehouse/protos/google/cloud/documentai/v1/processor_type.proto
create mode 100644 packages/google-cloud-contentwarehouse/protos/protos.d.ts
create mode 100644 packages/google-cloud-contentwarehouse/protos/protos.js
create mode 100644 packages/google-cloud-contentwarehouse/protos/protos.json
create mode 100644 packages/google-cloud-contentwarehouse/samples/README.md
create mode 100644 packages/google-cloud-contentwarehouse/samples/generated/v1/document_link_service.create_document_link.js
create mode 100644 packages/google-cloud-contentwarehouse/samples/generated/v1/document_link_service.delete_document_link.js
create mode 100644 packages/google-cloud-contentwarehouse/samples/generated/v1/document_link_service.list_linked_sources.js
create mode 100644 packages/google-cloud-contentwarehouse/samples/generated/v1/document_link_service.list_linked_targets.js
create mode 100644 packages/google-cloud-contentwarehouse/samples/generated/v1/document_schema_service.create_document_schema.js
create mode 100644 packages/google-cloud-contentwarehouse/samples/generated/v1/document_schema_service.delete_document_schema.js
create mode 100644 packages/google-cloud-contentwarehouse/samples/generated/v1/document_schema_service.get_document_schema.js
create mode 100644 packages/google-cloud-contentwarehouse/samples/generated/v1/document_schema_service.list_document_schemas.js
create mode 100644 packages/google-cloud-contentwarehouse/samples/generated/v1/document_schema_service.update_document_schema.js
create mode 100644 packages/google-cloud-contentwarehouse/samples/generated/v1/document_service.create_document.js
create mode 100644 packages/google-cloud-contentwarehouse/samples/generated/v1/document_service.delete_document.js
create mode 100644 packages/google-cloud-contentwarehouse/samples/generated/v1/document_service.fetch_acl.js
create mode 100644 packages/google-cloud-contentwarehouse/samples/generated/v1/document_service.get_document.js
create mode 100644 packages/google-cloud-contentwarehouse/samples/generated/v1/document_service.search_documents.js
create mode 100644 packages/google-cloud-contentwarehouse/samples/generated/v1/document_service.set_acl.js
create mode 100644 packages/google-cloud-contentwarehouse/samples/generated/v1/document_service.update_document.js
create mode 100644 packages/google-cloud-contentwarehouse/samples/generated/v1/rule_set_service.create_rule_set.js
create mode 100644 packages/google-cloud-contentwarehouse/samples/generated/v1/rule_set_service.delete_rule_set.js
create mode 100644 packages/google-cloud-contentwarehouse/samples/generated/v1/rule_set_service.get_rule_set.js
create mode 100644 packages/google-cloud-contentwarehouse/samples/generated/v1/rule_set_service.list_rule_sets.js
create mode 100644 packages/google-cloud-contentwarehouse/samples/generated/v1/rule_set_service.update_rule_set.js
create mode 100644 packages/google-cloud-contentwarehouse/samples/generated/v1/snippet_metadata.google.cloud.contentwarehouse.v1.json
create mode 100644 packages/google-cloud-contentwarehouse/samples/generated/v1/synonym_set_service.create_synonym_set.js
create mode 100644 packages/google-cloud-contentwarehouse/samples/generated/v1/synonym_set_service.delete_synonym_set.js
create mode 100644 packages/google-cloud-contentwarehouse/samples/generated/v1/synonym_set_service.get_synonym_set.js
create mode 100644 packages/google-cloud-contentwarehouse/samples/generated/v1/synonym_set_service.list_synonym_sets.js
create mode 100644 packages/google-cloud-contentwarehouse/samples/generated/v1/synonym_set_service.update_synonym_set.js
create mode 100644 packages/google-cloud-contentwarehouse/samples/package.json
create mode 100644 packages/google-cloud-contentwarehouse/samples/quickstart.js
create mode 100644 packages/google-cloud-contentwarehouse/samples/test/quickstart.js
create mode 100644 packages/google-cloud-contentwarehouse/src/index.ts
create mode 100644 packages/google-cloud-contentwarehouse/src/v1/document_link_service_client.ts
create mode 100644 packages/google-cloud-contentwarehouse/src/v1/document_link_service_client_config.json
create mode 100644 packages/google-cloud-contentwarehouse/src/v1/document_link_service_proto_list.json
create mode 100644 packages/google-cloud-contentwarehouse/src/v1/document_schema_service_client.ts
create mode 100644 packages/google-cloud-contentwarehouse/src/v1/document_schema_service_client_config.json
create mode 100644 packages/google-cloud-contentwarehouse/src/v1/document_schema_service_proto_list.json
create mode 100644 packages/google-cloud-contentwarehouse/src/v1/document_service_client.ts
create mode 100644 packages/google-cloud-contentwarehouse/src/v1/document_service_client_config.json
create mode 100644 packages/google-cloud-contentwarehouse/src/v1/document_service_proto_list.json
create mode 100644 packages/google-cloud-contentwarehouse/src/v1/gapic_metadata.json
create mode 100644 packages/google-cloud-contentwarehouse/src/v1/index.ts
create mode 100644 packages/google-cloud-contentwarehouse/src/v1/rule_set_service_client.ts
create mode 100644 packages/google-cloud-contentwarehouse/src/v1/rule_set_service_client_config.json
create mode 100644 packages/google-cloud-contentwarehouse/src/v1/rule_set_service_proto_list.json
create mode 100644 packages/google-cloud-contentwarehouse/src/v1/synonym_set_service_client.ts
create mode 100644 packages/google-cloud-contentwarehouse/src/v1/synonym_set_service_client_config.json
create mode 100644 packages/google-cloud-contentwarehouse/src/v1/synonym_set_service_proto_list.json
create mode 100644 packages/google-cloud-contentwarehouse/system-test/fixtures/sample/src/index.js
create mode 100644 packages/google-cloud-contentwarehouse/system-test/fixtures/sample/src/index.ts
create mode 100644 packages/google-cloud-contentwarehouse/system-test/install.ts
create mode 100644 packages/google-cloud-contentwarehouse/test/gapic_document_link_service_v1.ts
create mode 100644 packages/google-cloud-contentwarehouse/test/gapic_document_schema_service_v1.ts
create mode 100644 packages/google-cloud-contentwarehouse/test/gapic_document_service_v1.ts
create mode 100644 packages/google-cloud-contentwarehouse/test/gapic_rule_set_service_v1.ts
create mode 100644 packages/google-cloud-contentwarehouse/test/gapic_synonym_set_service_v1.ts
create mode 100644 packages/google-cloud-contentwarehouse/tsconfig.json
create mode 100644 packages/google-cloud-contentwarehouse/webpack.config.js
diff --git a/packages/google-cloud-contentwarehouse/.OwlBot.yaml b/packages/google-cloud-contentwarehouse/.OwlBot.yaml
new file mode 100644
index 000000000000..55525059a4ab
--- /dev/null
+++ b/packages/google-cloud-contentwarehouse/.OwlBot.yaml
@@ -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
+#
+# 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-copy-regex:
+ - source: /google/cloud/contentwarehouse/(.*)/.*-nodejs
+ dest: /owl-bot-staging/google-cloud-contentwarehouse/$1
\ No newline at end of file
diff --git a/packages/google-cloud-contentwarehouse/.eslintignore b/packages/google-cloud-contentwarehouse/.eslintignore
new file mode 100644
index 000000000000..ea5b04aebe68
--- /dev/null
+++ b/packages/google-cloud-contentwarehouse/.eslintignore
@@ -0,0 +1,7 @@
+**/node_modules
+**/coverage
+test/fixtures
+build/
+docs/
+protos/
+samples/generated/
diff --git a/packages/google-cloud-contentwarehouse/.eslintrc.json b/packages/google-cloud-contentwarehouse/.eslintrc.json
new file mode 100644
index 000000000000..782153495464
--- /dev/null
+++ b/packages/google-cloud-contentwarehouse/.eslintrc.json
@@ -0,0 +1,3 @@
+{
+ "extends": "./node_modules/gts"
+}
diff --git a/packages/google-cloud-contentwarehouse/.gitattributes b/packages/google-cloud-contentwarehouse/.gitattributes
new file mode 100644
index 000000000000..33739cb74e44
--- /dev/null
+++ b/packages/google-cloud-contentwarehouse/.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-contentwarehouse/.gitignore b/packages/google-cloud-contentwarehouse/.gitignore
new file mode 100644
index 000000000000..5d32b23782f3
--- /dev/null
+++ b/packages/google-cloud-contentwarehouse/.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-contentwarehouse/.jsdoc.js b/packages/google-cloud-contentwarehouse/.jsdoc.js
new file mode 100644
index 000000000000..53260dc06f09
--- /dev/null
+++ b/packages/google-cloud-contentwarehouse/.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/contentwarehouse',
+ theme: 'lumen',
+ default: {
+ outputSourceFiles: false
+ }
+ },
+ markdown: {
+ idInHeadings: true
+ }
+};
diff --git a/packages/google-cloud-contentwarehouse/.mocharc.js b/packages/google-cloud-contentwarehouse/.mocharc.js
new file mode 100644
index 000000000000..cdb7b7521602
--- /dev/null
+++ b/packages/google-cloud-contentwarehouse/.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-contentwarehouse/.nycrc b/packages/google-cloud-contentwarehouse/.nycrc
new file mode 100644
index 000000000000..b18d5472b62b
--- /dev/null
+++ b/packages/google-cloud-contentwarehouse/.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-contentwarehouse/.prettierignore b/packages/google-cloud-contentwarehouse/.prettierignore
new file mode 100644
index 000000000000..9340ad9b86d3
--- /dev/null
+++ b/packages/google-cloud-contentwarehouse/.prettierignore
@@ -0,0 +1,6 @@
+**/node_modules
+**/coverage
+test/fixtures
+build/
+docs/
+protos/
diff --git a/packages/google-cloud-contentwarehouse/.prettierrc.js b/packages/google-cloud-contentwarehouse/.prettierrc.js
new file mode 100644
index 000000000000..d546a4ad5460
--- /dev/null
+++ b/packages/google-cloud-contentwarehouse/.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-contentwarehouse/.repo-metadata.json b/packages/google-cloud-contentwarehouse/.repo-metadata.json
new file mode 100644
index 000000000000..fdc44275e299
--- /dev/null
+++ b/packages/google-cloud-contentwarehouse/.repo-metadata.json
@@ -0,0 +1,15 @@
+{
+ "name": "contentwarehouse",
+ "name_pretty": "Document AI Warehouse",
+ "product_documentation": "cloud.google.com/document-warehouse/",
+ "client_documentation": "https://cloud.google.com/nodejs/docs/reference/contentwarehouse/latest",
+ "issue_tracker": "https://github.com/googleapis/google-cloud-node/issues",
+ "release_level": "beta",
+ "language": "nodejs",
+ "repo": "googleapis/google-cloud-node",
+ "distribution_name": "@google-cloud/contentwarehouse",
+ "api_id": "google.cloud.contentwarehouse.v1",
+ "default_version": "v1",
+ "requires_billing": true,
+ "library_type": "GAPIC_AUTO"
+}
diff --git a/packages/google-cloud-contentwarehouse/CODE_OF_CONDUCT.md b/packages/google-cloud-contentwarehouse/CODE_OF_CONDUCT.md
new file mode 100644
index 000000000000..2add2547a812
--- /dev/null
+++ b/packages/google-cloud-contentwarehouse/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-contentwarehouse/CONTRIBUTING.md b/packages/google-cloud-contentwarehouse/CONTRIBUTING.md
new file mode 100644
index 000000000000..d326531bf688
--- /dev/null
+++ b/packages/google-cloud-contentwarehouse/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 Warehouse 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=google.cloud.contentwarehouse.v1
+[auth]: https://cloud.google.com/docs/authentication/getting-started
\ No newline at end of file
diff --git a/packages/google-cloud-contentwarehouse/LICENSE b/packages/google-cloud-contentwarehouse/LICENSE
new file mode 100644
index 000000000000..d64569567334
--- /dev/null
+++ b/packages/google-cloud-contentwarehouse/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-contentwarehouse/README.md b/packages/google-cloud-contentwarehouse/README.md
new file mode 100644
index 000000000000..aee9f6b5ddf0
--- /dev/null
+++ b/packages/google-cloud-contentwarehouse/README.md
@@ -0,0 +1,214 @@
+[//]: # "This README.md file is auto-generated, all changes to this file will be lost."
+[//]: # "To regenerate it, use `python -m synthtool`."
+
+
+# [Document AI Warehouse: Node.js Client](https://github.com/googleapis/google-cloud-node)
+
+[](https://cloud.google.com/terms/launch-stages)
+[](https://www.npmjs.org/package/@google-cloud/contentwarehouse)
+
+
+
+
+Document AI Warehouse client for Node.js
+
+
+A comprehensive list of changes in each version may be found in
+[the CHANGELOG](https://github.com/googleapis/google-cloud-node/blob/main/CHANGELOG.md).
+
+* [Document AI Warehouse Node.js Client API Reference][client-docs]
+* [Document AI Warehouse Documentation][product-docs]
+* [github.com/googleapis/google-cloud-node](https://github.com/googleapis/google-cloud-node)
+
+Read more about the client libraries for Cloud APIs, including the older
+Google APIs Client Libraries, in [Client Libraries Explained][explained].
+
+[explained]: https://cloud.google.com/apis/docs/client-libraries-explained
+
+**Table of contents:**
+
+
+* [Quickstart](#quickstart)
+ * [Before you begin](#before-you-begin)
+ * [Installing the client library](#installing-the-client-library)
+ * [Using the client library](#using-the-client-library)
+* [Samples](#samples)
+* [Versioning](#versioning)
+* [Contributing](#contributing)
+* [License](#license)
+
+## Quickstart
+
+### Before you begin
+
+1. [Select or create a Cloud Platform project][projects].
+1. [Enable billing for your project][billing].
+1. [Enable the Document AI Warehouse 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/contentwarehouse
+```
+
+
+### Using the client library
+
+```javascript
+/**
+ * This snippet has been automatically generated and should be regarded as a code template only.
+ * It will require modifications to work.
+ * It may require correct/in-range values for request initialization.
+ * TODO(developer): Uncomment these variables before running the sample.
+ */
+/**
+ * Required. The parent, which owns this collection of document.
+ * Format: projects/{project_number}/locations/{location}.
+ */
+// const parent = 'abc123'
+/**
+ * The maximum number of rule sets to return. The service may return
+ * fewer than this value.
+ * If unspecified, at most 50 rule sets will be returned.
+ * The maximum value is 1000; values above 1000 will be coerced to 1000.
+ */
+// const pageSize = 1234
+/**
+ * A page token, received from a previous `ListRuleSets` call.
+ * Provide this to retrieve the subsequent page.
+ * When paginating, all other parameters provided to `ListRuleSets`
+ * must match the call that provided the page token.
+ */
+// const pageToken = 'abc123'
+
+// Imports the Contentwarehouse library
+const {RuleSetServiceClient} = require('@google-cloud/contentwarehouse').v1;
+
+// Instantiates a client
+const contentwarehouseClient = new RuleSetServiceClient();
+
+async function callListRuleSets() {
+ // Construct request
+ const request = {
+ parent,
+ };
+
+ // Run request
+ const iterable = await contentwarehouseClient.listRuleSetsAsync(request);
+ for await (const response of iterable) {
+ console.log(response);
+ }
+}
+
+callListRuleSets();
+
+```
+
+
+
+## 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_link_service.create_document_link | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-contentwarehouse/samples/generated/v1/document_link_service.create_document_link.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-contentwarehouse/samples/generated/v1/document_link_service.create_document_link.js,samples/README.md) |
+| Document_link_service.delete_document_link | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-contentwarehouse/samples/generated/v1/document_link_service.delete_document_link.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-contentwarehouse/samples/generated/v1/document_link_service.delete_document_link.js,samples/README.md) |
+| Document_link_service.list_linked_sources | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-contentwarehouse/samples/generated/v1/document_link_service.list_linked_sources.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-contentwarehouse/samples/generated/v1/document_link_service.list_linked_sources.js,samples/README.md) |
+| Document_link_service.list_linked_targets | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-contentwarehouse/samples/generated/v1/document_link_service.list_linked_targets.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-contentwarehouse/samples/generated/v1/document_link_service.list_linked_targets.js,samples/README.md) |
+| Document_schema_service.create_document_schema | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-contentwarehouse/samples/generated/v1/document_schema_service.create_document_schema.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-contentwarehouse/samples/generated/v1/document_schema_service.create_document_schema.js,samples/README.md) |
+| Document_schema_service.delete_document_schema | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-contentwarehouse/samples/generated/v1/document_schema_service.delete_document_schema.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-contentwarehouse/samples/generated/v1/document_schema_service.delete_document_schema.js,samples/README.md) |
+| Document_schema_service.get_document_schema | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-contentwarehouse/samples/generated/v1/document_schema_service.get_document_schema.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-contentwarehouse/samples/generated/v1/document_schema_service.get_document_schema.js,samples/README.md) |
+| Document_schema_service.list_document_schemas | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-contentwarehouse/samples/generated/v1/document_schema_service.list_document_schemas.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-contentwarehouse/samples/generated/v1/document_schema_service.list_document_schemas.js,samples/README.md) |
+| Document_schema_service.update_document_schema | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-contentwarehouse/samples/generated/v1/document_schema_service.update_document_schema.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-contentwarehouse/samples/generated/v1/document_schema_service.update_document_schema.js,samples/README.md) |
+| Document_service.create_document | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-contentwarehouse/samples/generated/v1/document_service.create_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-contentwarehouse/samples/generated/v1/document_service.create_document.js,samples/README.md) |
+| Document_service.delete_document | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-contentwarehouse/samples/generated/v1/document_service.delete_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-contentwarehouse/samples/generated/v1/document_service.delete_document.js,samples/README.md) |
+| Document_service.fetch_acl | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-contentwarehouse/samples/generated/v1/document_service.fetch_acl.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-contentwarehouse/samples/generated/v1/document_service.fetch_acl.js,samples/README.md) |
+| Document_service.get_document | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-contentwarehouse/samples/generated/v1/document_service.get_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-contentwarehouse/samples/generated/v1/document_service.get_document.js,samples/README.md) |
+| Document_service.search_documents | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-contentwarehouse/samples/generated/v1/document_service.search_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-contentwarehouse/samples/generated/v1/document_service.search_documents.js,samples/README.md) |
+| Document_service.set_acl | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-contentwarehouse/samples/generated/v1/document_service.set_acl.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-contentwarehouse/samples/generated/v1/document_service.set_acl.js,samples/README.md) |
+| Document_service.update_document | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-contentwarehouse/samples/generated/v1/document_service.update_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-contentwarehouse/samples/generated/v1/document_service.update_document.js,samples/README.md) |
+| Rule_set_service.create_rule_set | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-contentwarehouse/samples/generated/v1/rule_set_service.create_rule_set.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-contentwarehouse/samples/generated/v1/rule_set_service.create_rule_set.js,samples/README.md) |
+| Rule_set_service.delete_rule_set | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-contentwarehouse/samples/generated/v1/rule_set_service.delete_rule_set.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-contentwarehouse/samples/generated/v1/rule_set_service.delete_rule_set.js,samples/README.md) |
+| Rule_set_service.get_rule_set | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-contentwarehouse/samples/generated/v1/rule_set_service.get_rule_set.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-contentwarehouse/samples/generated/v1/rule_set_service.get_rule_set.js,samples/README.md) |
+| Rule_set_service.list_rule_sets | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-contentwarehouse/samples/generated/v1/rule_set_service.list_rule_sets.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-contentwarehouse/samples/generated/v1/rule_set_service.list_rule_sets.js,samples/README.md) |
+| Rule_set_service.update_rule_set | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-contentwarehouse/samples/generated/v1/rule_set_service.update_rule_set.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-contentwarehouse/samples/generated/v1/rule_set_service.update_rule_set.js,samples/README.md) |
+| Synonym_set_service.create_synonym_set | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-contentwarehouse/samples/generated/v1/synonym_set_service.create_synonym_set.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-contentwarehouse/samples/generated/v1/synonym_set_service.create_synonym_set.js,samples/README.md) |
+| Synonym_set_service.delete_synonym_set | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-contentwarehouse/samples/generated/v1/synonym_set_service.delete_synonym_set.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-contentwarehouse/samples/generated/v1/synonym_set_service.delete_synonym_set.js,samples/README.md) |
+| Synonym_set_service.get_synonym_set | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-contentwarehouse/samples/generated/v1/synonym_set_service.get_synonym_set.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-contentwarehouse/samples/generated/v1/synonym_set_service.get_synonym_set.js,samples/README.md) |
+| Synonym_set_service.list_synonym_sets | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-contentwarehouse/samples/generated/v1/synonym_set_service.list_synonym_sets.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-contentwarehouse/samples/generated/v1/synonym_set_service.list_synonym_sets.js,samples/README.md) |
+| Synonym_set_service.update_synonym_set | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-contentwarehouse/samples/generated/v1/synonym_set_service.update_synonym_set.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-contentwarehouse/samples/generated/v1/synonym_set_service.update_synonym_set.js,samples/README.md) |
+| Quickstart | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-contentwarehouse/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-contentwarehouse/samples/quickstart.js,samples/README.md) |
+| Quickstart | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-contentwarehouse/samples/test/quickstart.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-contentwarehouse/samples/test/quickstart.js,samples/README.md) |
+
+
+
+The [Document AI Warehouse 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/contentwarehouse@legacy-8` installs client libraries
+for versions compatible with Node.js 8.
+
+## Versioning
+
+This library follows [Semantic Versioning](http://semver.org/).
+
+
+
+
+This library is considered to be in **beta**. This means it is expected to be
+mostly stable while we work toward a general availability release; however,
+complete stability is not guaranteed. We will address issues and requests
+against beta libraries with a high 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/contentwarehouse/latest
+[product-docs]: cloud.google.com/document-warehouse/
+[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=google.cloud.contentwarehouse.v1
+[auth]: https://cloud.google.com/docs/authentication/getting-started
diff --git a/packages/google-cloud-contentwarehouse/linkinator.config.json b/packages/google-cloud-contentwarehouse/linkinator.config.json
new file mode 100644
index 000000000000..befd23c86335
--- /dev/null
+++ b/packages/google-cloud-contentwarehouse/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-contentwarehouse/package.json b/packages/google-cloud-contentwarehouse/package.json
new file mode 100644
index 000000000000..2d4706fa7a77
--- /dev/null
+++ b/packages/google-cloud-contentwarehouse/package.json
@@ -0,0 +1,66 @@
+{
+ "name": "@google-cloud/contentwarehouse",
+ "version": "0.0.0",
+ "description": "Document AI Warehouse client for Node.js",
+ "repository": "googleapis/google-cloud-node",
+ "license": "Apache-2.0",
+ "author": "Google LLC",
+ "main": "build/src/index.js",
+ "files": [
+ "build/src",
+ "build/protos"
+ ],
+ "keywords": [
+ "google apis client",
+ "google api client",
+ "google apis",
+ "google api",
+ "google",
+ "google cloud platform",
+ "google cloud",
+ "cloud",
+ "google contentwarehouse",
+ "contentwarehouse",
+ "Document AI Warehouse"
+ ],
+ "scripts": {
+ "clean": "gts clean",
+ "compile": "tsc -p . && cp -r protos build/",
+ "compile-protos": "compileProtos src",
+ "docs": "jsdoc -c .jsdoc.js",
+ "predocs-test": "npm run docs",
+ "docs-test": "linkinator docs",
+ "fix": "gts fix",
+ "lint": "gts check",
+ "prepare": "npm run compile-protos && npm run compile",
+ "system-test": "npm run compile && c8 mocha build/system-test",
+ "test": "c8 mocha build/test",
+ "samples-test": "npm run compile && cd samples/ && npm link ../ && npm i && npm test",
+ "prelint": "cd samples; npm link ../; npm i"
+ },
+ "dependencies": {
+ "google-gax": "^3.0.1"
+ },
+ "devDependencies": {
+ "@types/mocha": "^9.0.0",
+ "@types/node": "^16.0.0",
+ "@types/sinon": "^10.0.0",
+ "c8": "^7.3.5",
+ "gts": "^3.1.0",
+ "jsdoc": "^3.6.6",
+ "jsdoc-fresh": "^2.0.0",
+ "jsdoc-region-tag": "^2.0.0",
+ "linkinator": "^4.0.0",
+ "mocha": "^9.2.2",
+ "null-loader": "^4.0.1",
+ "pack-n-play": "^1.0.0-2",
+ "sinon": "^14.0.0",
+ "ts-loader": "^9.0.0",
+ "typescript": "^4.6.4",
+ "webpack": "^5.9.0",
+ "webpack-cli": "^4.2.0"
+ },
+ "engines": {
+ "node": ">=12.0.0"
+ }
+}
diff --git a/packages/google-cloud-contentwarehouse/protos/google/cloud/contentwarehouse/v1/async_document_service_request.proto b/packages/google-cloud-contentwarehouse/protos/google/cloud/contentwarehouse/v1/async_document_service_request.proto
new file mode 100644
index 000000000000..368ddf3f8ccb
--- /dev/null
+++ b/packages/google-cloud-contentwarehouse/protos/google/cloud/contentwarehouse/v1/async_document_service_request.proto
@@ -0,0 +1,35 @@
+// 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.contentwarehouse.v1;
+
+import "google/api/field_behavior.proto";
+import "google/api/resource.proto";
+
+option go_package = "google.golang.org/genproto/googleapis/cloud/contentwarehouse/v1;contentwarehouse";
+option java_multiple_files = true;
+option java_outer_classname = "AsyncDocumentServiceRequestProto";
+option java_package = "com.google.cloud.contentwarehouse.v1";
+
+// Metadata object for CreateDocument request (currently empty).
+message CreateDocumentMetadata {
+
+}
+
+// Metadata object for UpdateDocument request (currently empty).
+message UpdateDocumentMetadata {
+
+}
diff --git a/packages/google-cloud-contentwarehouse/protos/google/cloud/contentwarehouse/v1/common.proto b/packages/google-cloud-contentwarehouse/protos/google/cloud/contentwarehouse/v1/common.proto
new file mode 100644
index 000000000000..9be7e86a34da
--- /dev/null
+++ b/packages/google-cloud-contentwarehouse/protos/google/cloud/contentwarehouse/v1/common.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.contentwarehouse.v1;
+
+import "google/api/resource.proto";
+import "google/protobuf/field_mask.proto";
+
+option go_package = "google.golang.org/genproto/googleapis/cloud/contentwarehouse/v1;contentwarehouse";
+option java_multiple_files = true;
+option java_outer_classname = "CommonProto";
+option java_package = "com.google.cloud.contentwarehouse.v1";
+option (google.api.resource_definition) = {
+ type: "contentwarehouse.googleapis.com/Location"
+ pattern: "projects/{project}/locations/{location}"
+};
+
+// Meta information is used to improve the performance of the service.
+message RequestMetadata {
+ // Provides user unique identification and groups information.
+ UserInfo user_info = 1;
+}
+
+// Additional information returned to client, such as debugging information.
+message ResponseMetadata {
+ // A unique id associated with this call. This id is logged for tracking
+ // purpose.
+ string request_id = 1;
+}
+
+message UserInfo {
+ // A unique user identification string, as determined by the client.
+ // The maximum number of allowed characters is 255.
+ // Allowed characters include numbers 0 to 9, uppercase and lowercase letters,
+ // and restricted special symbols (:, @, +, -, _, ~)
+ // The format is "user:xxxx@example.com";
+ string id = 1;
+
+ // The unique group identifications which the user is belong to.
+ // The format is "group:yyyy@example.com";
+ repeated string group_ids = 2;
+}
+
+// Options for Update operations.
+message UpdateOptions {
+ // Type for update.
+ UpdateType update_type = 1;
+
+ // Field mask for merging Document fields.
+ // For the `FieldMask` definition,
+ // see
+ // https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
+ google.protobuf.FieldMask update_mask = 2;
+
+ // Options for merging.
+ MergeFieldsOptions merge_fields_options = 3;
+}
+
+// Options for merging updated fields.
+message MergeFieldsOptions {
+ // When merging message fields, the default behavior is to merge
+ // the content of two message fields together. If you instead want to use
+ // the field from the source message to replace the corresponding field in
+ // the destination message, set this flag to true. When this flag is set,
+ // specified submessage fields that are missing in source will be cleared in
+ // destination.
+ optional bool replace_message_fields = 1;
+
+ // When merging repeated fields, the default behavior is to append
+ // entries from the source repeated field to the destination repeated field.
+ // If you instead want to keep only the entries from the source repeated
+ // field, set this flag to true.
+ //
+ // If you want to replace a repeated field within a message field on the
+ // destination message, you must set both replace_repeated_fields and
+ // replace_message_fields to true, otherwise the repeated fields will be
+ // appended.
+ optional bool replace_repeated_fields = 2;
+}
+
+// Update type of the requests.
+enum UpdateType {
+ // Defaults to full replace behavior, ie. FULL_REPLACE.
+ UPDATE_TYPE_UNSPECIFIED = 0;
+
+ // Fully replace all the fields. Any field masks will be ignored.
+ UPDATE_TYPE_REPLACE = 1;
+
+ // Merge the fields into the existing entities.
+ UPDATE_TYPE_MERGE = 2;
+
+ // Inserts the properties by names.
+ UPDATE_TYPE_INSERT_PROPERTIES_BY_NAMES = 3;
+
+ // Replace the properties by names.
+ UPDATE_TYPE_REPLACE_PROPERTIES_BY_NAMES = 4;
+
+ // Delete the properties by names.
+ UPDATE_TYPE_DELETE_PROPERTIES_BY_NAMES = 5;
+}
+
+// Type of database used by the customer
+enum DatabaseType {
+ // This value is required by protobuf best practices
+ DB_UNKNOWN = 0;
+
+ // Internal Spanner
+ DB_INFRA_SPANNER = 1;
+
+ // Cloud Sql with a Postgres Sql instance
+ DB_CLOUD_SQL_POSTGRES = 2;
+}
+
+// Access Control Mode.
+enum AccessControlMode {
+ // This value is required by protobuf best practices
+ ACL_MODE_UNKNOWN = 0;
+
+ // Universal Access: No document level access control.
+ ACL_MODE_UNIVERSAL_ACCESS = 1;
+
+ // Document level access control with customer own Identity Service.
+ ACL_MODE_DOCUMENT_LEVEL_ACCESS_CONTROL_BYOID = 2;
+
+ // Document level access control using Google Cloud Identity.
+ ACL_MODE_DOCUMENT_LEVEL_ACCESS_CONTROL_GCI = 3;
+}
diff --git a/packages/google-cloud-contentwarehouse/protos/google/cloud/contentwarehouse/v1/document.proto b/packages/google-cloud-contentwarehouse/protos/google/cloud/contentwarehouse/v1/document.proto
new file mode 100644
index 000000000000..5ec6c2ec686e
--- /dev/null
+++ b/packages/google-cloud-contentwarehouse/protos/google/cloud/contentwarehouse/v1/document.proto
@@ -0,0 +1,310 @@
+// 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.contentwarehouse.v1;
+
+import "google/api/field_behavior.proto";
+import "google/api/resource.proto";
+import "google/cloud/documentai/v1/document.proto";
+import "google/protobuf/timestamp.proto";
+import "google/type/datetime.proto";
+
+option go_package = "google.golang.org/genproto/googleapis/cloud/contentwarehouse/v1;contentwarehouse";
+option java_multiple_files = true;
+option java_outer_classname = "DocumentProto";
+option java_package = "com.google.cloud.contentwarehouse.v1";
+
+// Defines the structure for content warehouse document proto.
+message Document {
+ option (google.api.resource) = {
+ type: "contentwarehouse.googleapis.com/Document"
+ pattern: "projects/{project}/locations/{location}/documents/{document}"
+ pattern: "projects/{project}/locations/{location}/documents/referenceId/{reference_id}"
+ };
+
+ // The resource name of the document.
+ // Format:
+ // projects/{project_number}/locations/{location}/documents/{document_id}.
+ //
+ // The name is ignored when creating a document.
+ string name = 1;
+
+ // The reference ID set by customers. Must be unique per project and location.
+ string reference_id = 11;
+
+ // Required. Display name of the document given by the user. This name will be displayed
+ // in the UI.
+ // Customer can populate this field with the name of the document. This
+ // differs from the 'title' field as 'title' is optional and stores the top
+ // heading in the document.
+ string display_name = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // Title that describes the document.
+ // This is usually present in the top section of the document, and is a
+ // mandatory field for the question-answering feature.
+ string title = 18;
+
+ // Uri to display the document, for example, in the UI.
+ string display_uri = 17;
+
+ // The Document schema name.
+ // Format:
+ // projects/{project_number}/locations/{location}/documentSchemas/{document_schema_id}.
+ string document_schema_name = 3 [(google.api.resource_reference) = {
+ type: "contentwarehouse.googleapis.com/DocumentSchema"
+ }];
+
+ oneof structured_content {
+ // Other document format, such as PPTX, XLXS
+ string plain_text = 15;
+
+ // Document AI format to save the structured content, including OCR.
+ google.cloud.documentai.v1.Document cloud_ai_document = 4;
+ }
+
+ // A path linked to structured content file.
+ string structured_content_uri = 16;
+
+ // Raw document file.
+ oneof raw_document {
+ // Raw document file in Cloud Storage path.
+ string raw_document_path = 5;
+
+ // Raw document content.
+ bytes inline_raw_document = 6;
+ }
+
+ // List of values that are user supplied metadata.
+ repeated Property properties = 7;
+
+ // Output only. The time when the document is last updated.
+ google.protobuf.Timestamp update_time = 8 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The time when the document is created.
+ google.protobuf.Timestamp create_time = 9 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // This is used when DocAI was not used to load the document and parsing/
+ // extracting is needed for the inline_raw_document. For example, if
+ // inline_raw_document is the byte representation of a PDF file, then
+ // this should be set to: RAW_DOCUMENT_FILE_TYPE_PDF.
+ RawDocumentFileType raw_document_file_type = 10;
+
+ // If true, makes the document visible to asynchronous policies and rules.
+ bool async_enabled = 12;
+
+ // If true, text extraction will not be performed.
+ bool text_extraction_disabled = 19;
+
+ // The user who creates the document.
+ string creator = 13;
+
+ // The user who lastly updates the document.
+ string updater = 14;
+}
+
+// References to the documents.
+message DocumentReference {
+ // Required. Name of the referenced document.
+ string document_name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "contentwarehouse.googleapis.com/Document"
+ }
+ ];
+
+ // display_name of the referenced document; this name does not need to be
+ // consistent to the display_name in the Document proto, depending on the ACL
+ // constraint.
+ string display_name = 2;
+
+ // Stores the subset of the referenced document's content.
+ // This is useful to allow user peek the information of the referenced
+ // document.
+ string snippet = 3;
+
+ // The document type of the document being referenced.
+ bool document_is_folder = 4;
+
+ // Output only. The time when the document is last updated.
+ google.protobuf.Timestamp update_time = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The time when the document is created.
+ google.protobuf.Timestamp create_time = 6 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The time when the document is deleted.
+ google.protobuf.Timestamp delete_time = 7 [(google.api.field_behavior) = OUTPUT_ONLY];
+}
+
+// Property of a document.
+message Property {
+ // Required. Must match the name of a PropertyDefinition in the DocumentSchema.
+ string name = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Type of the property.
+ // Must match the property_options type of the matching PropertyDefinition.
+ // Value of the Property parsed into a specific data type.
+ // Specific type value(s) obtained from Document AIs Property.mention_text
+ // field.
+ oneof values {
+ // Integer property values.
+ IntegerArray integer_values = 2;
+
+ // Float property values.
+ FloatArray float_values = 3;
+
+ // String/text property values.
+ TextArray text_values = 4;
+
+ // Enum property values.
+ EnumArray enum_values = 5;
+
+ // Nested structured data property values.
+ PropertyArray property_values = 6;
+
+ // Date time property values.
+ // It is not supported by CMEK compliant deployment.
+ DateTimeArray date_time_values = 7;
+
+ // Map property values.
+ MapProperty map_property = 8;
+
+ // Timestamp property values.
+ // It is not supported by CMEK compliant deployment.
+ TimestampArray timestamp_values = 9;
+ }
+}
+
+// Integer values.
+message IntegerArray {
+ // List of integer values.
+ repeated int32 values = 1;
+}
+
+// Float values.
+message FloatArray {
+ // List of float values.
+ repeated float values = 1;
+}
+
+// String/text values.
+message TextArray {
+ // List of text values.
+ repeated string values = 1;
+}
+
+// Enum values.
+message EnumArray {
+ // List of enum values.
+ repeated string values = 1;
+}
+
+// DateTime values.
+message DateTimeArray {
+ // List of datetime values.
+ // Both OffsetDateTime and ZonedDateTime are supported.
+ repeated google.type.DateTime values = 1;
+}
+
+// Timestamp values.
+message TimestampArray {
+ // List of timestamp values.
+ repeated TimestampValue values = 1;
+}
+
+// Timestamp value type.
+message TimestampValue {
+ oneof value {
+ // Timestamp value
+ google.protobuf.Timestamp timestamp_value = 1;
+
+ // The string must represent a valid instant in UTC and is parsed using
+ // java.time.format.DateTimeFormatter.ISO_INSTANT.
+ // e.g. "2013-09-29T18:46:19Z"
+ string text_value = 2;
+ }
+}
+
+// Property values.
+message PropertyArray {
+ // List of property values.
+ repeated Property properties = 1;
+}
+
+// Map property value.
+// Represents a structured entries of key value pairs, consisting of field names
+// which map to dynamically typed values.
+message MapProperty {
+ // Unordered map of dynamically typed values.
+ map fields = 1;
+}
+
+// `Value` represents a dynamically typed value which can be either be
+// a float, a integer, a string, or a datetime value. A producer of value is
+// expected to set one of these variants. Absence of any variant indicates an
+// error.
+message Value {
+ // The kind of value.
+ oneof kind {
+ // Represents a float value.
+ float float_value = 1;
+
+ // Represents a integer value.
+ int32 int_value = 2;
+
+ // Represents a string value.
+ string string_value = 3;
+
+ // Represents an enum value.
+ EnumValue enum_value = 4;
+
+ // Represents a datetime value.
+ google.type.DateTime datetime_value = 5;
+
+ // Represents a timestamp value.
+ TimestampValue timestamp_value = 6;
+
+ // Represents a boolean value.
+ bool boolean_value = 7;
+ }
+}
+
+// Represents the string value of the enum field.
+message EnumValue {
+ // String value of the enum field. This must match defined set of enums
+ // in document schema using EnumTypeOptions.
+ string value = 1;
+}
+
+// When a raw document is supplied, this indicates the file format
+enum RawDocumentFileType {
+ // No raw document specified or it is non-parsable
+ RAW_DOCUMENT_FILE_TYPE_UNSPECIFIED = 0;
+
+ // Adobe PDF format
+ RAW_DOCUMENT_FILE_TYPE_PDF = 1;
+
+ // Microsoft Word format
+ RAW_DOCUMENT_FILE_TYPE_DOCX = 2;
+
+ // Microsoft Excel format
+ RAW_DOCUMENT_FILE_TYPE_XLSX = 3;
+
+ // Microsoft Powerpoint format
+ RAW_DOCUMENT_FILE_TYPE_PPTX = 4;
+
+ // UTF-8 encoded text format
+ RAW_DOCUMENT_FILE_TYPE_TEXT = 5;
+}
diff --git a/packages/google-cloud-contentwarehouse/protos/google/cloud/contentwarehouse/v1/document_link_service.proto b/packages/google-cloud-contentwarehouse/protos/google/cloud/contentwarehouse/v1/document_link_service.proto
new file mode 100644
index 000000000000..a5a14d8dcbf4
--- /dev/null
+++ b/packages/google-cloud-contentwarehouse/protos/google/cloud/contentwarehouse/v1/document_link_service.proto
@@ -0,0 +1,227 @@
+// 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.contentwarehouse.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/contentwarehouse/v1/common.proto";
+import "google/cloud/contentwarehouse/v1/document.proto";
+import "google/protobuf/empty.proto";
+import "google/protobuf/timestamp.proto";
+
+option go_package = "google.golang.org/genproto/googleapis/cloud/contentwarehouse/v1;contentwarehouse";
+option java_multiple_files = true;
+option java_outer_classname = "DocumentLinkServiceProto";
+option java_package = "com.google.cloud.contentwarehouse.v1";
+
+// This service lets you manage document-links.
+// Document-Links are treated as sub-resources under source documents.
+service DocumentLinkService {
+ option (google.api.default_host) = "contentwarehouse.googleapis.com";
+ option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform";
+
+ // Return all target document-links from the document.
+ rpc ListLinkedTargets(ListLinkedTargetsRequest) returns (ListLinkedTargetsResponse) {
+ option (google.api.http) = {
+ post: "/v1/{parent=projects/*/locations/*/documents/*}/linkedTargets"
+ body: "*"
+ };
+ option (google.api.method_signature) = "parent";
+ }
+
+ // Return all source document-links from the document.
+ rpc ListLinkedSources(ListLinkedSourcesRequest) returns (ListLinkedSourcesResponse) {
+ option (google.api.http) = {
+ post: "/v1/{parent=projects/*/locations/*/documents/*}/linkedSources"
+ body: "*"
+ };
+ option (google.api.method_signature) = "parent";
+ }
+
+ // Create a link between a source document and a target document.
+ rpc CreateDocumentLink(CreateDocumentLinkRequest) returns (DocumentLink) {
+ option (google.api.http) = {
+ post: "/v1/{parent=projects/*/locations/*/documents/*}/documentLinks"
+ body: "*"
+ };
+ option (google.api.method_signature) = "parent,document_link";
+ }
+
+ // Remove the link between the source and target documents.
+ rpc DeleteDocumentLink(DeleteDocumentLinkRequest) returns (google.protobuf.Empty) {
+ option (google.api.http) = {
+ post: "/v1/{name=projects/*/locations/*/documents/*/documentLinks/*}:delete"
+ body: "*"
+ };
+ option (google.api.method_signature) = "name";
+ }
+}
+
+// Response message for DocumentLinkService.ListLinkedTargets.
+message ListLinkedTargetsResponse {
+ // Target document-links.
+ repeated DocumentLink document_links = 1;
+
+ // A token, which can be sent as `page_token` to retrieve the next page.
+ // If this field is omitted, there are no subsequent pages.
+ string next_page_token = 2;
+}
+
+// Request message for DocumentLinkService.ListLinkedTargets.
+message ListLinkedTargetsRequest {
+ // Required. The name of the document, for which all target links are returned.
+ // Format:
+ // projects/{project_number}/locations/{location}/documents/{target_document_id}.
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "contentwarehouse.googleapis.com/Document"
+ }
+ ];
+
+ // The meta information collected about the document creator, used to enforce
+ // access control for the service.
+ RequestMetadata request_metadata = 2;
+}
+
+// Response message for DocumentLinkService.ListLinkedSources.
+message ListLinkedSourcesResponse {
+ // Source document-links.
+ repeated DocumentLink document_links = 1;
+
+ // A token, which can be sent as `page_token` to retrieve the next page.
+ // If this field is omitted, there are no subsequent pages.
+ string next_page_token = 2;
+}
+
+// Response message for DocumentLinkService.ListLinkedSources.
+message ListLinkedSourcesRequest {
+ // Required. The name of the document, for which all source links are returned.
+ // Format:
+ // projects/{project_number}/locations/{location}/documents/{source_document_id}.
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "contentwarehouse.googleapis.com/Document"
+ }
+ ];
+
+ // The maximum number of document-links to return. The service may return
+ // fewer than this value.
+ //
+ // If unspecified, at most 50 document-links will be returned.
+ // The maximum value is 1000; values above 1000 will be coerced to 1000.
+ int32 page_size = 3;
+
+ // A page token, received from a previous `ListLinkedSources` call.
+ // Provide this to retrieve the subsequent page.
+ //
+ // When paginating, all other parameters provided to `ListLinkedSources`
+ // must match the call that provided the page token.
+ string page_token = 4;
+
+ // The meta information collected about the document creator, used to enforce
+ // access control for the service.
+ RequestMetadata request_metadata = 2;
+}
+
+// A document-link between source and target document.
+message DocumentLink {
+ option (google.api.resource) = {
+ type: "contentwarehouse.googleapis.com/DocumentLink"
+ pattern: "projects/{project}/locations/{location}/documents/{document}/documentLinks/{document_link}"
+ };
+
+ // The state of a document-link.
+ enum State {
+ // Unknown state of documentlink.
+ STATE_UNSPECIFIED = 0;
+
+ // The documentlink has both source and target documents detected.
+ ACTIVE = 1;
+
+ // Target document is deleted, and mark the documentlink as soft-deleted.
+ SOFT_DELETED = 2;
+ }
+
+ // Name of this document-link.
+ // It is required that the parent derived form the name to be consistent with
+ // the source document reference. Otherwise an exception will be thrown.
+ // Format:
+ // projects/{project_number}/locations/{location}/documents/{source_document_id}/documentLinks/{document_link_id}.
+ string name = 1;
+
+ // Document references of the source document.
+ DocumentReference source_document_reference = 2;
+
+ // Document references of the target document.
+ DocumentReference target_document_reference = 3;
+
+ // Description of this document-link.
+ string description = 4;
+
+ // Output only. The time when the documentLink is last updated.
+ google.protobuf.Timestamp update_time = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The time when the documentLink is created.
+ google.protobuf.Timestamp create_time = 6 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // The state of the documentlink. If target node has been deleted, the
+ // link is marked as invalid. Removing a source node will result in removal
+ // of all associated links.
+ State state = 7;
+}
+
+// Request message for DocumentLinkService.CreateDocumentLink.
+message CreateDocumentLinkRequest {
+ // Required. Parent of the document-link to be created.
+ // parent of document-link should be a document.
+ // Format:
+ // projects/{project_number}/locations/{location}/documents/{source_document_id}.
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "contentwarehouse.googleapis.com/Document"
+ }
+ ];
+
+ // Required. Document links associated with the source documents (source_document_id).
+ DocumentLink document_link = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // The meta information collected about the document creator, used to enforce
+ // access control for the service.
+ RequestMetadata request_metadata = 3;
+}
+
+// Request message for DocumentLinkService.DeleteDocumentLink.
+message DeleteDocumentLinkRequest {
+ // Required. The name of the document-link to be deleted.
+ // Format:
+ // projects/{project_number}/locations/{location}/documents/{source_document_id}/documentLinks/{document_link_id}.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "contentwarehouse.googleapis.com/DocumentLink"
+ }
+ ];
+
+ // The meta information collected about the document creator, used to enforce
+ // access control for the service.
+ RequestMetadata request_metadata = 2;
+}
diff --git a/packages/google-cloud-contentwarehouse/protos/google/cloud/contentwarehouse/v1/document_schema.proto b/packages/google-cloud-contentwarehouse/protos/google/cloud/contentwarehouse/v1/document_schema.proto
new file mode 100644
index 000000000000..fae52e4c51e1
--- /dev/null
+++ b/packages/google-cloud-contentwarehouse/protos/google/cloud/contentwarehouse/v1/document_schema.proto
@@ -0,0 +1,166 @@
+// 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.contentwarehouse.v1;
+
+import "google/api/field_behavior.proto";
+import "google/api/resource.proto";
+import "google/protobuf/timestamp.proto";
+
+option go_package = "google.golang.org/genproto/googleapis/cloud/contentwarehouse/v1;contentwarehouse";
+option java_multiple_files = true;
+option java_outer_classname = "DocumentSchemaProto";
+option java_package = "com.google.cloud.contentwarehouse.v1";
+
+// A document schema used to define document structure.
+message DocumentSchema {
+ option (google.api.resource) = {
+ type: "contentwarehouse.googleapis.com/DocumentSchema"
+ pattern: "projects/{project}/locations/{location}/documentSchemas/{document_schema}"
+ };
+
+ // The resource name of the document schema.
+ // Format:
+ // projects/{project_number}/locations/{location}/documentSchemas/{document_schema_id}.
+ //
+ // The name is ignored when creating a document schema.
+ string name = 1;
+
+ // Required. Name of the schema given by the user. Must be unique per customer.
+ string display_name = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // Document details.
+ repeated PropertyDefinition property_definitions = 3;
+
+ // Document Type, true refers the document is a folder, otherwise it is
+ // a typical document.
+ bool document_is_folder = 4;
+
+ // Output only. The time when the document schema is last updated.
+ google.protobuf.Timestamp update_time = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The time when the document schema is created.
+ google.protobuf.Timestamp create_time = 6 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Schema description.
+ string description = 7;
+}
+
+// Defines the metadata for a schema property.
+message PropertyDefinition {
+ // Required. The name of the metadata property.
+ // Must be unique within a document schema and is case insensitive.
+ // Names must be non-blank, start with a letter, and can contain alphanumeric
+ // characters and: /, :, -, _, and .
+ string name = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // The display-name for the property, used for front-end.
+ string display_name = 12;
+
+ // Whether the property can have multiple values.
+ bool is_repeatable = 2;
+
+ // Whether the property can be filtered. If this is a sub-property, all the
+ // parent properties must be marked filterable.
+ bool is_filterable = 3;
+
+ // Indicates that the property should be included in a global search.
+ bool is_searchable = 4;
+
+ // Whether the property is user supplied metadata.
+ bool is_metadata = 5;
+
+ // Whether the property is mandatory.
+ // Default is 'false', i.e. populating property value can be skipped.
+ // If 'true' then user must populate the value for this property.
+ bool is_required = 14;
+
+ // Type of the property.
+ oneof value_type_options {
+ // Integer property.
+ IntegerTypeOptions integer_type_options = 7;
+
+ // Float property.
+ FloatTypeOptions float_type_options = 8;
+
+ // Text/string property.
+ TextTypeOptions text_type_options = 9;
+
+ // Nested structured data property.
+ PropertyTypeOptions property_type_options = 10;
+
+ // Enum/categorical property.
+ EnumTypeOptions enum_type_options = 11;
+
+ // Date time property.
+ // It is not supported by CMEK compliant deployment.
+ DateTimeTypeOptions date_time_type_options = 13;
+
+ // Map property.
+ MapTypeOptions map_type_options = 15;
+
+ // Timestamp property.
+ // It is not supported by CMEK compliant deployment.
+ TimestampTypeOptions timestamp_type_options = 16;
+ }
+}
+
+// Configurations for an integer property.
+message IntegerTypeOptions {
+
+}
+
+// Configurations for a float property.
+message FloatTypeOptions {
+
+}
+
+// Configurations for a text property.
+message TextTypeOptions {
+
+}
+
+// Configurations for a date time property.
+message DateTimeTypeOptions {
+
+}
+
+// Configurations for a Map property.
+message MapTypeOptions {
+
+}
+
+// Configurations for a timestamp property.
+message TimestampTypeOptions {
+
+}
+
+// Configurations for a nested structured data property.
+message PropertyTypeOptions {
+ // Required. List of property definitions.
+ repeated PropertyDefinition property_definitions = 1 [(google.api.field_behavior) = REQUIRED];
+}
+
+// Configurations for an enum/categorical property.
+message EnumTypeOptions {
+ // Required. List of possible enum values.
+ repeated string possible_values = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Make sure the Enum property value provided in the document is in the
+ // possile value list during document creation. The validation check runs by
+ // default.
+ bool validation_check_disabled = 2;
+}
diff --git a/packages/google-cloud-contentwarehouse/protos/google/cloud/contentwarehouse/v1/document_schema_service.proto b/packages/google-cloud-contentwarehouse/protos/google/cloud/contentwarehouse/v1/document_schema_service.proto
new file mode 100644
index 000000000000..9c570695045a
--- /dev/null
+++ b/packages/google-cloud-contentwarehouse/protos/google/cloud/contentwarehouse/v1/document_schema_service.proto
@@ -0,0 +1,174 @@
+// 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.contentwarehouse.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/contentwarehouse/v1/document_schema.proto";
+import "google/protobuf/empty.proto";
+
+option go_package = "google.golang.org/genproto/googleapis/cloud/contentwarehouse/v1;contentwarehouse";
+option java_multiple_files = true;
+option java_outer_classname = "DocumentSchemaServiceProto";
+option java_package = "com.google.cloud.contentwarehouse.v1";
+
+// (go/id-aip-list) to add a finite deadline and enable fail_fast.
+
+// This service lets you manage document schema.
+service DocumentSchemaService {
+ option (google.api.default_host) = "contentwarehouse.googleapis.com";
+ option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform";
+
+ // Creates a document schema.
+ rpc CreateDocumentSchema(CreateDocumentSchemaRequest) returns (DocumentSchema) {
+ option (google.api.http) = {
+ post: "/v1/{parent=projects/*/locations/*}/documentSchemas"
+ body: "document_schema"
+ };
+ option (google.api.method_signature) = "parent,document_schema";
+ }
+
+ // Updates a Document Schema. Returns INVALID_ARGUMENT if the name of the
+ // Document Schema is non-empty and does not equal the existing name.
+ // Supports only appending new properties, adding new ENUM possible values,
+ // and updating the [EnumTypeOptions.validation_check_disabled][google.cloud.contentwarehouse.v1.EnumTypeOptions.validation_check_disabled] flag for
+ // ENUM possible values. Updating existing properties will result into
+ // INVALID_ARGUMENT.
+ rpc UpdateDocumentSchema(UpdateDocumentSchemaRequest) returns (DocumentSchema) {
+ option (google.api.http) = {
+ patch: "/v1/{name=projects/*/locations/*/documentSchemas/*}"
+ body: "*"
+ };
+ option (google.api.method_signature) = "name,document_schema";
+ }
+
+ // Gets a document schema. Returns NOT_FOUND if the document schema does not
+ // exist.
+ rpc GetDocumentSchema(GetDocumentSchemaRequest) returns (DocumentSchema) {
+ option (google.api.http) = {
+ get: "/v1/{name=projects/*/locations/*/documentSchemas/*}"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // Deletes a document schema. Returns NOT_FOUND if the document schema does
+ // not exist. Returns BAD_REQUEST if the document schema has documents
+ // depending on it.
+ rpc DeleteDocumentSchema(DeleteDocumentSchemaRequest) returns (google.protobuf.Empty) {
+ option (google.api.http) = {
+ delete: "/v1/{name=projects/*/locations/*/documentSchemas/*}"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // Lists document schemas.
+ rpc ListDocumentSchemas(ListDocumentSchemasRequest) returns (ListDocumentSchemasResponse) {
+ option (google.api.http) = {
+ get: "/v1/{parent=projects/*/locations/*}/documentSchemas"
+ };
+ option (google.api.method_signature) = "parent";
+ }
+}
+
+// Request message for DocumentSchemaService.CreateDocumentSchema.
+message CreateDocumentSchemaRequest {
+ // Required. The parent name.
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "contentwarehouse.googleapis.com/Location"
+ }
+ ];
+
+ // Required. The document schema to create.
+ DocumentSchema document_schema = 2 [(google.api.field_behavior) = REQUIRED];
+}
+
+// Request message for DocumentSchemaService.GetDocumentSchema.
+message GetDocumentSchemaRequest {
+ // Required. The name of the document schema to retrieve.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "contentwarehouse.googleapis.com/DocumentSchema"
+ }
+ ];
+}
+
+// Request message for DocumentSchemaService.UpdateDocumentSchema.
+message UpdateDocumentSchemaRequest {
+ // Required. The name of the document schema to update.
+ // Format:
+ // projects/{project_number}/locations/{location}/documentSchemas/{document_schema_id}.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "contentwarehouse.googleapis.com/DocumentSchema"
+ }
+ ];
+
+ // Required. The document schema to update with.
+ DocumentSchema document_schema = 2 [(google.api.field_behavior) = REQUIRED];
+}
+
+// Request message for DocumentSchemaService.DeleteDocumentSchema.
+message DeleteDocumentSchemaRequest {
+ // Required. The name of the document schema to delete.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "contentwarehouse.googleapis.com/DocumentSchema"
+ }
+ ];
+}
+
+// Request message for DocumentSchemaService.ListDocumentSchemas.
+message ListDocumentSchemasRequest {
+ // Required. The parent, which owns this collection of document schemas.
+ // Format: projects/{project_number}/locations/{location}.
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "contentwarehouse.googleapis.com/Location"
+ }
+ ];
+
+ // The maximum number of document schemas to return. The service may return
+ // fewer than this value.
+ // If unspecified, at most 50 document schemas will be returned.
+ // The maximum value is 1000; values above 1000 will be coerced to 1000.
+ int32 page_size = 2;
+
+ // A page token, received from a previous `ListDocumentSchemas` call.
+ // Provide this to retrieve the subsequent page.
+ //
+ // When paginating, all other parameters provided to `ListDocumentSchemas`
+ // must match the call that provided the page token.
+ string page_token = 3;
+}
+
+// Response message for DocumentSchemaService.ListDocumentSchemas.
+message ListDocumentSchemasResponse {
+ // The document schemas from the specified parent.
+ repeated DocumentSchema document_schemas = 1;
+
+ // A token, which can be sent as `page_token` to retrieve the next page.
+ // If this field is omitted, there are no subsequent pages.
+ string next_page_token = 2;
+}
diff --git a/packages/google-cloud-contentwarehouse/protos/google/cloud/contentwarehouse/v1/document_service.proto b/packages/google-cloud-contentwarehouse/protos/google/cloud/contentwarehouse/v1/document_service.proto
new file mode 100644
index 000000000000..e0c1c8750881
--- /dev/null
+++ b/packages/google-cloud-contentwarehouse/protos/google/cloud/contentwarehouse/v1/document_service.proto
@@ -0,0 +1,249 @@
+// 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.contentwarehouse.v1;
+
+import "google/api/annotations.proto";
+import "google/api/client.proto";
+import "google/api/resource.proto";
+import "google/cloud/contentwarehouse/v1/common.proto";
+import "google/cloud/contentwarehouse/v1/document.proto";
+import "google/cloud/contentwarehouse/v1/document_service_request.proto";
+import "google/cloud/contentwarehouse/v1/histogram.proto";
+import "google/cloud/contentwarehouse/v1/rule_engine.proto";
+import "google/iam/v1/policy.proto";
+import "google/protobuf/empty.proto";
+
+option go_package = "google.golang.org/genproto/googleapis/cloud/contentwarehouse/v1;contentwarehouse";
+option java_multiple_files = true;
+option java_outer_classname = "DocumentServiceProto";
+option java_package = "com.google.cloud.contentwarehouse.v1";
+
+// This service lets you manage document.
+service DocumentService {
+ option (google.api.default_host) = "contentwarehouse.googleapis.com";
+ option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform";
+
+ // Creates a document.
+ rpc CreateDocument(CreateDocumentRequest) returns (CreateDocumentResponse) {
+ option (google.api.http) = {
+ post: "/v1/{parent=projects/*/locations/*}/documents"
+ body: "*"
+ };
+ option (google.api.method_signature) = "parent,document";
+ }
+
+ // Gets a document. Returns NOT_FOUND if the document does not exist.
+ rpc GetDocument(GetDocumentRequest) returns (Document) {
+ option (google.api.http) = {
+ post: "/v1/{name=projects/*/locations/*/documents/*}:get"
+ body: "*"
+ additional_bindings {
+ post: "/v1/{name=projects/*/locations/*/documents/referenceId/*}:get"
+ body: "*"
+ }
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // Updates a document. Returns INVALID_ARGUMENT if the name of the document
+ // is non-empty and does not equal the existing name.
+ rpc UpdateDocument(UpdateDocumentRequest) returns (UpdateDocumentResponse) {
+ option (google.api.http) = {
+ patch: "/v1/{name=projects/*/locations/*/documents/*}"
+ body: "*"
+ additional_bindings {
+ patch: "/v1/{name=projects/*/locations/*/documents/referenceId/*}"
+ body: "*"
+ }
+ };
+ option (google.api.method_signature) = "name,document";
+ }
+
+ // Deletes a document. Returns NOT_FOUND if the document does not exist.
+ rpc DeleteDocument(DeleteDocumentRequest) returns (google.protobuf.Empty) {
+ option (google.api.http) = {
+ post: "/v1/{name=projects/*/locations/*/documents/*}:delete"
+ body: "*"
+ additional_bindings {
+ post: "/v1/{name=projects/*/locations/*/documents/referenceId/*}:delete"
+ body: "*"
+ }
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // Searches for documents using provided [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest].
+ // This call only returns documents that the caller has permission to search
+ // against.
+ rpc SearchDocuments(SearchDocumentsRequest) returns (SearchDocumentsResponse) {
+ option (google.api.http) = {
+ post: "/v1/{parent=projects/*/locations/*}/documents:search"
+ body: "*"
+ };
+ option (google.api.method_signature) = "parent";
+ }
+
+ // Gets the access control policy for a resource. Returns NOT_FOUND error if
+ // the resource does not exist. Returns an empty policy if the resource exists
+ // but does not have a policy set.
+ rpc FetchAcl(FetchAclRequest) returns (FetchAclResponse) {
+ option (google.api.http) = {
+ post: "/v1/{resource=projects/*/locations/*/documents/*}:fetchAcl"
+ body: "*"
+ additional_bindings {
+ post: "/v1/{resource=projects/*}:fetchAcl"
+ body: "*"
+ }
+ };
+ option (google.api.method_signature) = "resource";
+ }
+
+ // Sets the access control policy for a resource. Replaces any existing
+ // policy.
+ rpc SetAcl(SetAclRequest) returns (SetAclResponse) {
+ option (google.api.http) = {
+ post: "/v1/{resource=projects/*/locations/*/documents/*}:setAcl"
+ body: "*"
+ additional_bindings {
+ post: "/v1/{resource=projects/*}:setAcl"
+ body: "*"
+ }
+ };
+ option (google.api.method_signature) = "resource,policy";
+ }
+}
+
+// Response message for DocumentService.CreateDocument.
+message CreateDocumentResponse {
+ // Document created after executing create request.
+ Document document = 1;
+
+ // Output from Rule Engine recording the rule evaluator and action executor's
+ // output.
+ //
+ // Refer format in: google/cloud/contentwarehouse/v1/rule_engine.proto
+ RuleEngineOutput rule_engine_output = 2;
+
+ // Additional information for the API invocation, such as the request tracking
+ // id.
+ ResponseMetadata metadata = 3;
+}
+
+// Response message for DocumentService.UpdateDocument.
+message UpdateDocumentResponse {
+ // Updated document after executing update request.
+ Document document = 1;
+
+ // Output from Rule Engine recording the rule evaluator and action executor's
+ // output.
+ //
+ // Refer format in: google/cloud/contentwarehouse/v1/rule_engine.proto
+ RuleEngineOutput rule_engine_output = 2;
+
+ // Additional information for the API invocation, such as the request tracking
+ // id.
+ ResponseMetadata metadata = 3;
+}
+
+// Additional result info for the question-answering feature.
+message QAResult {
+ // A text span in the search text snippet that represents a highlighted
+ // section (answer context, highly relevant sentence, etc.).
+ message Highlight {
+ // Start index of the highlight.
+ int32 start_index = 1;
+
+ // End index of the highlight, exclusive.
+ int32 end_index = 2;
+ }
+
+ // Highlighted sections in the snippet.
+ repeated Highlight highlights = 1;
+
+ // The calibrated confidence score for this document, in the range
+ // [0., 1.]. This represents the confidence level for whether the returned
+ // document and snippet answers the user's query.
+ float confidence_score = 2;
+}
+
+// Response message for DocumentService.SearchDocuments.
+message SearchDocumentsResponse {
+ // Document entry with metadata inside [SearchDocumentsResponse][google.cloud.contentwarehouse.v1.SearchDocumentsResponse]
+ message MatchingDocument {
+ // Document that matches the specified [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest].
+ // This document only contains indexed metadata information.
+ Document document = 1;
+
+ // Contains snippets of text from the document full raw text that most
+ // closely match a search query's keywords, if available. All HTML tags in
+ // the original fields are stripped when returned in this field, and
+ // matching query keywords are enclosed in HTML bold tags.
+ //
+ // If the question-answering feature is enabled, this field will instead
+ // contain a snippet that answers the user's natural-language query. No HTML
+ // bold tags will be present, and highlights in the answer snippet can be
+ // found in [QAResult.highlights][google.cloud.contentwarehouse.v1.QAResult.highlights].
+ string search_text_snippet = 2;
+
+ // Experimental.
+ // Additional result info if the question-answering feature is enabled.
+ QAResult qa_result = 3;
+ }
+
+ // The document entities that match the specified [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest].
+ repeated MatchingDocument matching_documents = 1;
+
+ // The token that specifies the starting position of the next page of results.
+ // This field is empty if there are no more results.
+ string next_page_token = 2;
+
+ // The total number of matched documents which is available only if the client
+ // set [SearchDocumentsRequest.require_total_size][google.cloud.contentwarehouse.v1.SearchDocumentsRequest.require_total_size] to `true`. Otherwise, the
+ // value will be `-1`. `total_size` will max at "100,000". If this
+ // is returned, then it can be assumed that the count is equal to or greater
+ // than 100,000. Typically a UI would handle this condition by displaying
+ // "of many", for example: "Displaying 10 of many".
+ int32 total_size = 3;
+
+ // Additional information for the API invocation, such as the request tracking
+ // id.
+ ResponseMetadata metadata = 4;
+
+ // The histogram results that match with the specified
+ // [SearchDocumentsRequest.histogram_queries][google.cloud.contentwarehouse.v1.SearchDocumentsRequest.histogram_queries].
+ repeated HistogramQueryResult histogram_query_results = 6;
+}
+
+// Response message for DocumentService.FetchAcl.
+message FetchAclResponse {
+ // The IAM policy.
+ google.iam.v1.Policy policy = 1;
+
+ // Additional information for the API invocation, such as the request tracking
+ // id.
+ ResponseMetadata metadata = 2;
+}
+
+// Response message for DocumentService.SetAcl.
+message SetAclResponse {
+ // The policy will be attached to a resource (e.g. projecct, document).
+ google.iam.v1.Policy policy = 1;
+
+ // Additional information for the API invocation, such as the request tracking
+ // id.
+ ResponseMetadata metadata = 2;
+}
diff --git a/packages/google-cloud-contentwarehouse/protos/google/cloud/contentwarehouse/v1/document_service_request.proto b/packages/google-cloud-contentwarehouse/protos/google/cloud/contentwarehouse/v1/document_service_request.proto
new file mode 100644
index 000000000000..56b06af5b796
--- /dev/null
+++ b/packages/google-cloud-contentwarehouse/protos/google/cloud/contentwarehouse/v1/document_service_request.proto
@@ -0,0 +1,279 @@
+// 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.contentwarehouse.v1;
+
+import "google/api/field_behavior.proto";
+import "google/api/resource.proto";
+import "google/cloud/contentwarehouse/v1/common.proto";
+import "google/cloud/contentwarehouse/v1/document.proto";
+import "google/cloud/contentwarehouse/v1/filters.proto";
+import "google/cloud/contentwarehouse/v1/histogram.proto";
+import "google/iam/v1/policy.proto";
+import "google/protobuf/field_mask.proto";
+
+option go_package = "google.golang.org/genproto/googleapis/cloud/contentwarehouse/v1;contentwarehouse";
+option java_multiple_files = true;
+option java_outer_classname = "DocumentServiceRequestProto";
+option java_package = "com.google.cloud.contentwarehouse.v1";
+
+// Request Option for processing Cloud AI Document in CW Document.
+message CloudAIDocumentOption {
+ // Whether to convert all the entities to properties.
+ bool enable_entities_conversions = 1;
+
+ // If set, only selected entities will be converted to properties.
+ map customized_entities_properties_conversions = 2;
+}
+
+// Request message for DocumentService.CreateDocument.
+message CreateDocumentRequest {
+ // Required. The parent name.
+ // Format: projects/{project_number}/locations/{location}.
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "contentwarehouse.googleapis.com/Location"
+ }
+ ];
+
+ // Required. The document to create.
+ Document document = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // The meta information collected about the end user, used to enforce access
+ // control for the service.
+ RequestMetadata request_metadata = 3;
+
+ // Default document policy during creation. Conditions defined in the policy
+ // will be ignored.
+ google.iam.v1.Policy policy = 4;
+
+ // Request Option for processing Cloud AI Document in CW Document.
+ CloudAIDocumentOption cloud_ai_document_option = 5;
+
+ // Field mask for creating Document fields. If mask path is empty,
+ // it means all fields are masked.
+ // For the `FieldMask` definition,
+ // see
+ // https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
+ google.protobuf.FieldMask create_mask = 6;
+}
+
+// Request message for DocumentService.GetDocument.
+message GetDocumentRequest {
+ // Required. The name of the document to retrieve.
+ // Format:
+ // projects/{project_number}/locations/{location}/documents/{document_id} or
+ // projects/{project_number}/locations/{location}/documents/referenceId/{reference_id}.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "contentwarehouse.googleapis.com/Document"
+ }
+ ];
+
+ // The meta information collected about the end user, used to enforce access
+ // control for the service.
+ RequestMetadata request_metadata = 2;
+}
+
+// Request message for DocumentService.UpdateDocument.
+message UpdateDocumentRequest {
+ // Required. The name of the document to update.
+ // Format:
+ // projects/{project_number}/locations/{location}/documents/{document_id}
+ // or
+ // projects/{project_number}/locations/{location}/documents/referenceId/{reference_id}.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "contentwarehouse.googleapis.com/Document"
+ }
+ ];
+
+ // Required. The document to update.
+ Document document = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // The meta information collected about the end user, used to enforce access
+ // control for the service.
+ RequestMetadata request_metadata = 3;
+
+ // Request Option for processing Cloud AI Document in CW Document.
+ CloudAIDocumentOption cloud_ai_document_option = 5;
+
+ // Options for the update operation.
+ UpdateOptions update_options = 6;
+}
+
+// Request message for DocumentService.DeleteDocument.
+message DeleteDocumentRequest {
+ // Required. The name of the document to delete.
+ // Format:
+ // projects/{project_number}/locations/{location}/documents/{document_id}
+ // or
+ // projects/{project_number}/locations/{location}/documents/referenceId/{reference_id}.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "contentwarehouse.googleapis.com/Document"
+ }
+ ];
+
+ // The meta information collected about the end user, used to enforce access
+ // control for the service.
+ RequestMetadata request_metadata = 2;
+}
+
+// Request message for DocumentService.SearchDocuments.
+message SearchDocumentsRequest {
+ // Required. The parent, which owns this collection of documents.
+ // Format: projects/{project_number}/locations/{location}.
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "contentwarehouse.googleapis.com/Location"
+ }
+ ];
+
+ // The meta information collected about the end user, used to enforce access
+ // control and improve the search quality of the service.
+ RequestMetadata request_metadata = 3;
+
+ // Query used to search against documents (keyword, filters, etc.).
+ DocumentQuery document_query = 4;
+
+ // An integer that specifies the current offset (that is, starting result
+ // location, amongst the documents deemed by the API as relevant) in search
+ // results. This field is only considered if [page_token][google.cloud.contentwarehouse.v1.SearchDocumentsRequest.page_token] is unset.
+ //
+ // The maximum allowed value is 5000. Otherwise an error is thrown.
+ //
+ // For example, 0 means to return results starting from the first matching
+ // document, and 10 means to return from the 11th document. This can be used
+ // for pagination, (for example, pageSize = 10 and offset = 10 means to return
+ // from the second page).
+ int32 offset = 5;
+
+ // A limit on the number of documents returned in the search results.
+ // Increasing this value above the default value of 10 can increase search
+ // response time. The value can be between 1 and 100.
+ int32 page_size = 6;
+
+ // The token specifying the current offset within search results.
+ // See [SearchDocumentsResponse.next_page_token][google.cloud.contentwarehouse.v1.SearchDocumentsResponse.next_page_token] for an explanation of how
+ // to obtain the next set of query results.
+ string page_token = 7;
+
+ // The criteria determining how search results are sorted. For non-empty
+ // query, default is `"relevance desc"`. For empty query, default is
+ // `"upload_date desc"`.
+ //
+ // Supported options are:
+ //
+ // * `"relevance desc"`: By relevance descending, as determined by the API
+ // algorithms.
+ // * `"upload_date desc"`: By upload date descending.
+ // * `"upload_date"`: By upload date ascending.
+ // * `"update_date desc"`: By last updated date descending.
+ // * `"update_date"`: By last updated date ascending.
+ string order_by = 8;
+
+ // An expression specifying a histogram request against matching
+ // documents. Expression syntax is an aggregation function call with
+ // histogram facets and other options.
+ //
+ // The following aggregation functions are supported:
+ //
+ // * `count(string_histogram_facet)`: Count the number of matching entities
+ // for each distinct attribute value.
+ //
+ // Data types:
+ //
+ // * Histogram facet (aka filterable properties): Facet names with format
+ // <schema id>.<facet>. Facets will have the
+ // format of: [a-zA-Z][a-zA-Z0-9_:/-.]. If the facet is a child
+ // facet, then the parent hierarchy needs to be specified separated by
+ // dots in the prefix after the schema id. Thus, the format for a multi-
+ // level facet is: <schema id>.<parent facet name>.
+ // <child facet name>. Example:
+ // schema123.root_parent_facet.middle_facet.child_facet
+ // * DocumentSchemaId: (with no schema id prefix) to get
+ // histograms for each document type (returns the schema id path, e.g.
+ // projects/12345/locations/us-west/documentSchemas/abc123).
+ //
+ // Example expression:
+ //
+ // * Document type counts:
+ // count('DocumentSchemaId')
+ //
+ // * For schema id, abc123, get the counts for MORTGAGE_TYPE:
+ // count('abc123.MORTGAGE_TYPE')
+ repeated HistogramQuery histogram_queries = 9;
+
+ // Optional. Controls if the search document request requires the return of a total size
+ // of matched documents. See [SearchDocumentsResponse.total_size][google.cloud.contentwarehouse.v1.SearchDocumentsResponse.total_size].
+ //
+ // Enabling this flag may adversely impact performance. Hint: If this is
+ // used with pagination, set this flag on the initial query but set this
+ // to false on subsequent page calls (keep the total count locally).
+ //
+ // Defaults to false.
+ bool require_total_size = 10;
+
+ // Experimental, do not use.
+ // The limit on the number of documents returned for the question-answering
+ // feature. To enable the question-answering feature, set
+ // [DocumentQuery].[is_nl_query][] to true.
+ int32 qa_size_limit = 11;
+}
+
+// Request message for DocumentService.FetchAcl
+message FetchAclRequest {
+ // Required. REQUIRED: The resource for which the policy is being requested.
+ // Format for document:
+ // projects/{project_number}/locations/{location}/documents/{document_id}.
+ // Format for project: projects/{project_number}.
+ string resource = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // The meta information collected about the end user, used to enforce access
+ // control for the service.
+ RequestMetadata request_metadata = 2;
+
+ // For Get Project ACL only. Authorization check for end user will be ignored
+ // when project_owner=true.
+ bool project_owner = 3;
+}
+
+// Request message for DocumentService.SetAcl.
+message SetAclRequest {
+ // Required. REQUIRED: The resource for which the policy is being requested.
+ // Format for document:
+ // projects/{project_number}/locations/{location}/documents/{document_id}.
+ // Format for project: projects/{project_number}.
+ string resource = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. REQUIRED: The complete policy to be applied to the `resource`. The size of
+ // the policy is limited to a few 10s of KB.
+ google.iam.v1.Policy policy = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // The meta information collected about the end user, used to enforce access
+ // control for the service.
+ RequestMetadata request_metadata = 3;
+
+ // For Set Project ACL only. Authorization check for end user will be ignored
+ // when project_owner=true.
+ bool project_owner = 4;
+}
diff --git a/packages/google-cloud-contentwarehouse/protos/google/cloud/contentwarehouse/v1/filters.proto b/packages/google-cloud-contentwarehouse/protos/google/cloud/contentwarehouse/v1/filters.proto
new file mode 100644
index 000000000000..52e39ca90a27
--- /dev/null
+++ b/packages/google-cloud-contentwarehouse/protos/google/cloud/contentwarehouse/v1/filters.proto
@@ -0,0 +1,206 @@
+// 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.contentwarehouse.v1;
+
+import "google/api/resource.proto";
+import "google/type/interval.proto";
+
+option go_package = "google.golang.org/genproto/googleapis/cloud/contentwarehouse/v1;contentwarehouse";
+option java_multiple_files = true;
+option java_outer_classname = "FiltersProto";
+option java_package = "com.google.cloud.contentwarehouse.v1";
+
+message DocumentQuery {
+ // The query string that matches against the full text of the document and
+ // the searchable properties.
+ // The maximum number of allowed characters is 255.
+ string query = 1;
+
+ // Experimental, do not use.
+ // If the query is a natural language question. False by default. If true,
+ // then the question-answering feature will be used instead of search, and
+ // `result_count` in [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest] must be set. In addition, all
+ // other input fields related to search (pagination, histograms, etc.) will be
+ // ignored.
+ bool is_nl_query = 12;
+
+ // This filter specifies a structured syntax to match against the
+ // [PropertyDefinition].[is_filterable][] marked as `true`. The syntax for
+ // this expression is a subset of SQL syntax.
+ //
+ // Supported operators are: `=`, `!=`, `<`, `<=`, `>`, and `>=` where the left
+ // of the operator is a property name and the right of the operator is a
+ // number or a quoted string. You must escape backslash (\\) and quote (\")
+ // characters. Supported functions are `LOWER([property_name])` to perform a
+ // case insensitive match and `EMPTY([property_name])` to filter on the
+ // existence of a key.
+ //
+ // Boolean expressions (AND/OR/NOT) are supported up to 3 levels of nesting
+ // (for example, "((A AND B AND C) OR NOT D) AND E"), a maximum of 100
+ // comparisons or functions are allowed in the expression. The expression must
+ // be < 6000 bytes in length.
+ //
+ // Sample Query:
+ // `(LOWER(driving_license)="class \"a\"" OR EMPTY(driving_license)) AND
+ // driving_years > 10`
+ string custom_property_filter = 4 [deprecated = true];
+
+ // Documents created/updated within a range specified by this filter are
+ // searched against.
+ repeated TimeFilter time_filters = 5;
+
+ // This filter specifies the exact document schema
+ // [Document.document_schema_name][google.cloud.contentwarehouse.v1.Document.document_schema_name] of the documents to search against.
+ //
+ // If a value isn't specified, documents within the search results are
+ // associated with any schema. If multiple values are specified, documents
+ // within the search results may be associated with any of the specified
+ // schemas.
+ //
+ // At most 20 document schema names are allowed.
+ repeated string document_schema_names = 6;
+
+ // This filter specifies a structured syntax to match against the
+ // [PropertyDefinition.is_filterable][google.cloud.contentwarehouse.v1.PropertyDefinition.is_filterable] marked as `true`. The relationship
+ // between the PropertyFilters is OR.
+ repeated PropertyFilter property_filter = 7;
+
+ // This filter specifies the types of files to return: ALL, FOLDER, or FILE.
+ // If FOLDER or FILE is specified, then only either folders or files will be
+ // returned, respectively. If ALL is specified, both folders and files will be
+ // returned.
+ //
+ // If no value is specified, ALL files will be returned.
+ FileTypeFilter file_type_filter = 8;
+
+ // Search all the documents under this specified folder.
+ // Format:
+ // projects/{project_number}/locations/{location}/documents/{document_id}.
+ string folder_name_filter = 9;
+
+ // For custom synonyms.
+ // Customers provide the synonyms based on context. One customer can provide
+ // multiple set of synonyms based on different context. The search query will
+ // be expanded based on the custom synonyms of the query context set.
+ // By default, no custom synonyms wll be applied if no query context is
+ // provided.
+ // It is not supported for CMEK compliant deployment.
+ repeated string query_context = 10;
+
+ // The exact creator(s) of the documents to search against.
+ //
+ // If a value isn't specified, documents within the search results are
+ // associated with any creator. If multiple values are specified, documents
+ // within the search results may be associated with any of the specified
+ // creators.
+ repeated string document_creator_filter = 11;
+}
+
+// Filter on create timestamp or update timestamp of documents.
+message TimeFilter {
+ // Time field used in TimeFilter.
+ enum TimeField {
+ // Default value.
+ TIME_FIELD_UNSPECIFIED = 0;
+
+ // Earliest document create time.
+ CREATE_TIME = 1;
+
+ // Latest document update time.
+ UPDATE_TIME = 2;
+ }
+
+ google.type.Interval time_range = 1;
+
+ // Specifies which time field to filter documents on.
+ //
+ // Defaults to [TimeField.UPLOAD_TIME][].
+ TimeField time_field = 2;
+}
+
+message PropertyFilter {
+ // The Document schema name [Document.document_schema_name][google.cloud.contentwarehouse.v1.Document.document_schema_name].
+ // Format:
+ // projects/{project_number}/locations/{location}/documentSchemas/{document_schema_id}.
+ string document_schema_name = 1 [(google.api.resource_reference) = {
+ type: "contentwarehouse.googleapis.com/DocumentSchema"
+ }];
+
+ // The filter condition.
+ // The syntax for this expression is a subset of SQL syntax.
+ //
+ // Supported operators are: `=`, `!=`, `<`, `<=`, `>`, `>=`, and `~~` where
+ // the left of the operator is a property name and the right of the operator
+ // is a number or a quoted string. You must escape backslash (\\) and quote
+ // (\") characters.
+ //
+ // `~~` is the LIKE operator. The right of the operator must be a string. The
+ // only supported property data type for LIKE is text_values. It provides
+ // semantic search functionality by parsing, stemming and doing synonyms
+ // expansion against the input query. It matches if the property contains
+ // semantic similar content to the query. It is not regex matching or wildcard
+ // matching. For example, "property.company ~~ \"google\"" will match records
+ // whose property `property.compnay` have values like "Google Inc.", "Google
+ // LLC" or "Google Company".
+ //
+ // Supported functions are `LOWER([property_name])` to perform a
+ // case insensitive match and `EMPTY([property_name])` to filter on the
+ // existence of a key.
+ //
+ // Boolean expressions (AND/OR/NOT) are supported up to 3 levels of nesting
+ // (for example, "((A AND B AND C) OR NOT D) AND E"), a maximum of 100
+ // comparisons or functions are allowed in the expression. The expression must
+ // be < 6000 bytes in length.
+ //
+ // Only properties that are marked filterable are allowed
+ // ([PropertyDefinition.is_filterable][google.cloud.contentwarehouse.v1.PropertyDefinition.is_filterable]). Property names do not need to be
+ // prefixed by the document schema id (as is the case with histograms),
+ // however property names will need to be prefixed by its parent hierarchy, if
+ // any. For example: top_property_name.sub_property_name.
+ //
+ // Sample Query:
+ // `(LOWER(driving_license)="class \"a\"" OR EMPTY(driving_license)) AND
+ // driving_years > 10`
+ //
+ //
+ // CMEK compliant deployment only supports:
+ //
+ // * Operators: `=`, `<`, `<=`, `>`, and `>=`.
+ // * Boolean expressions: AND and OR.
+ string condition = 2;
+}
+
+// Filter for the specific types of documents returned.
+message FileTypeFilter {
+ // Representation of the types of files.
+ enum FileType {
+ // Default document type. If set, disables the filter.
+ FILE_TYPE_UNSPECIFIED = 0;
+
+ // Returns all document types, including folders.
+ ALL = 1;
+
+ // Returns only folders.
+ FOLDER = 2;
+
+ // Returns only non-folder documents.
+ DOCUMENT = 3;
+ }
+
+ // The type of files to return.
+ FileType file_type = 1;
+}
diff --git a/packages/google-cloud-contentwarehouse/protos/google/cloud/contentwarehouse/v1/histogram.proto b/packages/google-cloud-contentwarehouse/protos/google/cloud/contentwarehouse/v1/histogram.proto
new file mode 100644
index 000000000000..ce25e7a8c3fa
--- /dev/null
+++ b/packages/google-cloud-contentwarehouse/protos/google/cloud/contentwarehouse/v1/histogram.proto
@@ -0,0 +1,102 @@
+// 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.contentwarehouse.v1;
+
+import "google/api/field_behavior.proto";
+import "google/api/resource.proto";
+
+option go_package = "google.golang.org/genproto/googleapis/cloud/contentwarehouse/v1;contentwarehouse";
+option java_multiple_files = true;
+option java_outer_classname = "HistogramProto";
+option java_package = "com.google.cloud.contentwarehouse.v1";
+
+// The histogram request.
+message HistogramQuery {
+ // An expression specifies a histogram request against matching documents for
+ // searches.
+ //
+ // See [SearchDocumentsRequest.histogram_queries][google.cloud.contentwarehouse.v1.SearchDocumentsRequest.histogram_queries] for details about syntax.
+ string histogram_query = 1;
+
+ // Controls if the histogram query requires the return of a precise count.
+ // Enable this flag may adversely impact performance.
+ //
+ // Defaults to true.
+ bool require_precise_result_size = 2;
+
+ // Optional. Filter the result of histogram query by the property names. It only works
+ // with histogram query count('FilterableProperties').
+ // It is an optional. It will perform histogram on all the property names for
+ // all the document schemas. Setting this field will have a better
+ // performance.
+ HistogramQueryPropertyNameFilter filters = 3 [(google.api.field_behavior) = OPTIONAL];
+}
+
+message HistogramQueryPropertyNameFilter {
+ // The result of the histogram query count('FilterableProperties') using
+ // HISTOGRAM_YAXIS_DOCUMENT will be:
+ // invoice_id: 2
+ // address: 1
+ // payment_method: 2
+ // line_item_description: 1
+ enum HistogramYAxis {
+ // Count the documents per property name.
+ HISTOGRAM_YAXIS_DOCUMENT = 0;
+
+ // Count the properties per property name.
+ HISTOGRAM_YAXIS_PROPERTY = 1;
+ }
+
+ // This filter specifies the exact document schema(s)
+ // [Document.document_schema_name][google.cloud.contentwarehouse.v1.Document.document_schema_name] to run histogram query against.
+ // It is optional. It will perform histogram for property names for all the
+ // document schemas if it is not set.
+ //
+ // At most 10 document schema names are allowed.
+ // Format:
+ // projects/{project_number}/locations/{location}/documentSchemas/{document_schema_id}.
+ repeated string document_schemas = 1 [(google.api.resource_reference) = {
+ type: "contentwarehouse.googleapis.com/DocumentSchema"
+ }];
+
+ // It is optional. It will perform histogram for all the property names if it
+ // is not set.
+ // The properties need to be defined with the is_filterable flag set to
+ // true and the name of the property should be in the format:
+ // "schemaId.propertyName". The property needs to be defined in the schema.
+ // Example: the schema id is abc. Then the name of property for property
+ // MORTGAGE_TYPE will be "abc.MORTGAGE_TYPE".
+ repeated string property_names = 2;
+
+ // By default, the y_axis is HISTOGRAM_YAXIS_DOCUMENT if this field is not
+ // set.
+ HistogramYAxis y_axis = 3;
+}
+
+// Histogram result that matches [HistogramQuery][google.cloud.contentwarehouse.v1.HistogramQuery] specified in searches.
+message HistogramQueryResult {
+ // Requested histogram expression.
+ string histogram_query = 1;
+
+ // A map from the values of the facet associated with distinct values to the
+ // number of matching entries with corresponding value.
+ //
+ // The key format is:
+ //
+ // * (for string histogram) string values stored in the field.
+ map histogram = 2;
+}
diff --git a/packages/google-cloud-contentwarehouse/protos/google/cloud/contentwarehouse/v1/rule_engine.proto b/packages/google-cloud-contentwarehouse/protos/google/cloud/contentwarehouse/v1/rule_engine.proto
new file mode 100644
index 000000000000..7badc7b788a7
--- /dev/null
+++ b/packages/google-cloud-contentwarehouse/protos/google/cloud/contentwarehouse/v1/rule_engine.proto
@@ -0,0 +1,276 @@
+// 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.contentwarehouse.v1;
+
+import "google/api/field_behavior.proto";
+import "google/api/resource.proto";
+import "google/iam/v1/policy.proto";
+
+option go_package = "google.golang.org/genproto/googleapis/cloud/contentwarehouse/v1;contentwarehouse";
+option java_multiple_files = true;
+option java_outer_classname = "RuleEngineProto";
+option java_package = "com.google.cloud.contentwarehouse.v1";
+
+// Represents a set of rules from a single customer.
+message RuleSet {
+ option (google.api.resource) = {
+ type: "contentwarehouse.googleapis.com/RuleSet"
+ pattern: "projects/{project}/locations/{location}/ruleSets/{rule_set}"
+ };
+
+ // The resource name of the rule set. Managed internally.
+ // Format:
+ // projects/{project_number}/locations/{location}/ruleSet/{rule_set_id}.
+ //
+ // The name is ignored when creating a rule set.
+ string name = 6;
+
+ // Short description of the rule-set.
+ string description = 1;
+
+ // Source of the rules i.e., customer name.
+ string source = 2;
+
+ // List of rules given by the customer.
+ repeated Rule rules = 3;
+}
+
+// Represents the rule for a content warehouse trigger.
+message Rule {
+ enum TriggerType {
+ UNKNOWN = 0;
+
+ // Trigger for create document action.
+ ON_CREATE = 1;
+
+ // Trigger for update document action.
+ ON_UPDATE = 4;
+ }
+
+ // Short description of the rule and its context.
+ string description = 1;
+
+ // ID of the rule. It has to be unique across all the examples.
+ // This is managed internally.
+ string rule_id = 2;
+
+ // Identifies the trigger type for running the policy.
+ TriggerType trigger_type = 3;
+
+ // Represents the conditional expression to be evaluated.
+ // Expression should evaluate to a boolean result.
+ // When the condition is true actions are executed.
+ // Example: user_role = "hsbc_role_1" AND doc.salary > 20000
+ string condition = 4;
+
+ // List of actions that are executed when the rule is satisfied.
+ repeated Action actions = 5;
+}
+
+// Represents the action triggered by Rule Engine when the rule is true.
+message Action {
+ // ID of the action. Managed internally.
+ string action_id = 1;
+
+ oneof action {
+ // Action triggering access control operations.
+ AccessControlAction access_control = 2;
+
+ // Action triggering data validation operations.
+ DataValidationAction data_validation = 3;
+
+ // Action triggering data update operations.
+ DataUpdateAction data_update = 4;
+
+ // Action triggering create document link operation.
+ AddToFolderAction add_to_folder = 5;
+
+ // Action publish to Pub/Sub operation.
+ PublishAction publish_to_pub_sub = 6;
+
+ // Action removing a document from a folder.
+ RemoveFromFolderAction remove_from_folder_action = 9;
+
+ // Action deleting the document.
+ DeleteDocumentAction delete_document_action = 10;
+ }
+}
+
+// Represents the action responsible for access control list management
+// operations.
+message AccessControlAction {
+ // Type of ACL modification operation.
+ enum OperationType {
+ UNKNOWN = 0;
+
+ // Adds newly given policy bindings in the existing bindings list.
+ ADD_POLICY_BINDING = 1;
+
+ // Removes newly given policy bindings from the existing bindings list.
+ REMOVE_POLICY_BINDING = 2;
+
+ // Replaces existing policy bindings with the given policy binding list
+ REPLACE_POLICY_BINDING = 3;
+ }
+
+ // Identifies the type of operation.
+ OperationType operation_type = 1;
+
+ // Represents the new policy from which bindings are added, removed or
+ // replaced based on the type of the operation. the policy is limited to a few
+ // 10s of KB.
+ google.iam.v1.Policy policy = 2;
+}
+
+// Represents the action responsible for data validation operations.
+message DataValidationAction {
+ // Map of (K, V) -> (field, string condition to be evaluated on the field)
+ // E.g., ("age", "age > 18 && age < 60") entry triggers validation of field
+ // age with the given condition. Map entries will be ANDed during validation.
+ map conditions = 1;
+}
+
+// Represents the action responsible for properties update operations.
+message DataUpdateAction {
+ // Map of (K, V) -> (valid name of the field, new value of the field)
+ // E.g., ("age", "60") entry triggers update of field age with a value of 60.
+ // If the field is not present then new entry is added.
+ // During update action execution, value strings will be casted to
+ // appropriate types.
+ map entries = 1;
+}
+
+// Represents the action responsible for adding document under a folder.
+message AddToFolderAction {
+ // Names of the folder under which new document is to be added.
+ // Format:
+ // projects/{project_number}/locations/{location}/documents/{document_id}.
+ repeated string folders = 1 [(google.api.resource_reference) = {
+ type: "contentwarehouse.googleapis.com/Document"
+ }];
+}
+
+// Represents the action responsible for remove a document from a specific
+// folder.
+message RemoveFromFolderAction {
+ // Condition of the action to be executed.
+ string condition = 1;
+
+ // Name of the folder under which new document is to be added.
+ // Format:
+ // projects/{project_number}/locations/{location}/documents/{document_id}.
+ string folder = 2 [(google.api.resource_reference) = {
+ type: "contentwarehouse.googleapis.com/Document"
+ }];
+}
+
+// Represents the action responsible for publishing messages to a Pub/Sub topic.
+message PublishAction {
+ // The topic id in the Pub/Sub service for which messages will be published
+ // to.
+ string topic_id = 1;
+
+ // Messages to be published.
+ repeated string messages = 2;
+}
+
+// Represents the action responsible for deleting the document.
+message DeleteDocumentAction {
+ // Boolean field to select between hard vs soft delete options.
+ // Set 'true' for 'hard delete' and 'false' for 'soft delete'.
+ bool enable_hard_delete = 1;
+}
+
+// Records the output of Rule Engine including rule evaluation and actions
+// result.
+message RuleEngineOutput {
+ // Name of the document against which the rules and actions were evaluated.
+ string document_name = 3;
+
+ // Output from Rule Evaluator containing matched, unmatched and invalid rules.
+ RuleEvaluatorOutput rule_evaluator_output = 1;
+
+ // Output from Action Executor containing rule and corresponding actions
+ // execution result.
+ ActionExecutorOutput action_executor_output = 2;
+}
+
+// Represents the output of the Rule Evaluator.
+message RuleEvaluatorOutput {
+ // List of rules fetched from database for the given request trigger type.
+ repeated Rule triggered_rules = 1;
+
+ // A subset of triggered rules that are evaluated true for a given request.
+ repeated Rule matched_rules = 2;
+
+ // A subset of triggered rules that failed the validation check(s) after
+ // parsing.
+ repeated InvalidRule invalid_rules = 3;
+}
+
+// A triggered rule that failed the validation check(s) after parsing.
+message InvalidRule {
+ // Triggered rule.
+ Rule rule = 1;
+
+ // Validation error on a parsed expression.
+ string error = 2;
+}
+
+// Represents the output of the Action Executor.
+message ActionExecutorOutput {
+ // List of rule and corresponding actions result.
+ repeated RuleActionsPair rule_actions_pairs = 1;
+}
+
+// Represents a rule and outputs of associated actions.
+message RuleActionsPair {
+ // Represents the rule.
+ Rule rule = 1;
+
+ // Outputs of executing the actions associated with the above rule.
+ repeated ActionOutput action_outputs = 2;
+}
+
+// Represents the result of executing an action.
+message ActionOutput {
+ // Represents execution state of the action.
+ enum State {
+ UNKNOWN = 0;
+
+ // State indicating action executed successfully.
+ ACTION_SUCCEEDED = 1;
+
+ // State indicating action failed.
+ ACTION_FAILED = 2;
+
+ // State indicating action timed out.
+ ACTION_TIMED_OUT = 3;
+
+ // State indicating action is pending.
+ ACTION_PENDING = 4;
+ }
+
+ // ID of the action.
+ string action_id = 1;
+
+ // State of an action.
+ State action_state = 2;
+
+ // Action execution output message.
+ string output_message = 3;
+}
diff --git a/packages/google-cloud-contentwarehouse/protos/google/cloud/contentwarehouse/v1/ruleset_service.proto b/packages/google-cloud-contentwarehouse/protos/google/cloud/contentwarehouse/v1/ruleset_service.proto
new file mode 100644
index 000000000000..091367eabee3
--- /dev/null
+++ b/packages/google-cloud-contentwarehouse/protos/google/cloud/contentwarehouse/v1/ruleset_service.proto
@@ -0,0 +1,77 @@
+// 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.contentwarehouse.v1;
+
+import "google/api/annotations.proto";
+import "google/api/client.proto";
+import "google/cloud/contentwarehouse/v1/rule_engine.proto";
+import "google/cloud/contentwarehouse/v1/ruleset_service_request.proto";
+import "google/protobuf/empty.proto";
+
+option go_package = "google.golang.org/genproto/googleapis/cloud/contentwarehouse/v1;contentwarehouse";
+option java_multiple_files = true;
+option java_outer_classname = "RuleSetServiceProto";
+option java_package = "com.google.cloud.contentwarehouse.v1";
+
+// Service to manage customer specific RuleSets.
+service RuleSetService {
+ option (google.api.default_host) = "contentwarehouse.googleapis.com";
+ option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform";
+
+ // Creates a ruleset.
+ rpc CreateRuleSet(CreateRuleSetRequest) returns (RuleSet) {
+ option (google.api.http) = {
+ post: "/v1/{parent=projects/*/locations/*}/ruleSets"
+ body: "rule_set"
+ };
+ option (google.api.method_signature) = "parent,rule_set";
+ }
+
+ // Gets a ruleset. Returns NOT_FOUND if the ruleset does not exist.
+ rpc GetRuleSet(GetRuleSetRequest) returns (RuleSet) {
+ option (google.api.http) = {
+ get: "/v1/{name=projects/*/locations/*/ruleSets/*}"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // Updates a ruleset. Returns INVALID_ARGUMENT if the name of the ruleset
+ // is non-empty and does not equal the existing name.
+ rpc UpdateRuleSet(UpdateRuleSetRequest) returns (RuleSet) {
+ option (google.api.http) = {
+ patch: "/v1/{name=projects/*/locations/*/ruleSets/*}"
+ body: "*"
+ };
+ option (google.api.method_signature) = "name,rule_set";
+ }
+
+ // Deletes a ruleset. Returns NOT_FOUND if the document does not exist.
+ rpc DeleteRuleSet(DeleteRuleSetRequest) returns (google.protobuf.Empty) {
+ option (google.api.http) = {
+ delete: "/v1/{name=projects/*/locations/*/ruleSets/*}"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // Lists rulesets.
+ rpc ListRuleSets(ListRuleSetsRequest) returns (ListRuleSetsResponse) {
+ option (google.api.http) = {
+ get: "/v1/{parent=projects/*/locations/*}/ruleSets"
+ };
+ option (google.api.method_signature) = "parent";
+ }
+}
diff --git a/packages/google-cloud-contentwarehouse/protos/google/cloud/contentwarehouse/v1/ruleset_service_request.proto b/packages/google-cloud-contentwarehouse/protos/google/cloud/contentwarehouse/v1/ruleset_service_request.proto
new file mode 100644
index 000000000000..61d12510680b
--- /dev/null
+++ b/packages/google-cloud-contentwarehouse/protos/google/cloud/contentwarehouse/v1/ruleset_service_request.proto
@@ -0,0 +1,118 @@
+// 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.contentwarehouse.v1;
+
+import "google/api/field_behavior.proto";
+import "google/api/resource.proto";
+import "google/cloud/contentwarehouse/v1/rule_engine.proto";
+
+option go_package = "google.golang.org/genproto/googleapis/cloud/contentwarehouse/v1;contentwarehouse";
+option java_multiple_files = true;
+option java_outer_classname = "RuleSetServiceRequestProto";
+option java_package = "com.google.cloud.contentwarehouse.v1";
+
+// Request message for RuleSetService.CreateRuleSet.
+message CreateRuleSetRequest {
+ // Required. The parent name.
+ // Format: projects/{project_number}/locations/{location}.
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "contentwarehouse.googleapis.com/Location"
+ }
+ ];
+
+ // Required. The rule set to create.
+ RuleSet rule_set = 2 [(google.api.field_behavior) = REQUIRED];
+}
+
+// Request message for RuleSetService.GetRuleSet.
+message GetRuleSetRequest {
+ // Required. The name of the rule set to retrieve.
+ // Format:
+ // projects/{project_number}/locations/{location}/ruleSets/{rule_set_id}.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "contentwarehouse.googleapis.com/RuleSet"
+ }
+ ];
+}
+
+// Request message for RuleSetService.UpdateRuleSet.
+message UpdateRuleSetRequest {
+ // Required. The name of the rule set to update.
+ // Format:
+ // projects/{project_number}/locations/{location}/ruleSets/{rule_set_id}.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "contentwarehouse.googleapis.com/RuleSet"
+ }
+ ];
+
+ // Required. The rule set to update.
+ RuleSet rule_set = 2 [(google.api.field_behavior) = REQUIRED];
+}
+
+// Request message for RuleSetService.DeleteRuleSet.
+message DeleteRuleSetRequest {
+ // Required. The name of the rule set to delete.
+ // Format:
+ // projects/{project_number}/locations/{location}/ruleSets/{rule_set_id}.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "contentwarehouse.googleapis.com/RuleSet"
+ }
+ ];
+}
+
+// Request message for RuleSetService.ListRuleSets.
+message ListRuleSetsRequest {
+ // Required. The parent, which owns this collection of document.
+ // Format: projects/{project_number}/locations/{location}.
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "contentwarehouse.googleapis.com/Location"
+ }
+ ];
+
+ // The maximum number of rule sets to return. The service may return
+ // fewer than this value.
+ // If unspecified, at most 50 rule sets will be returned.
+ // The maximum value is 1000; values above 1000 will be coerced to 1000.
+ int32 page_size = 2;
+
+ // A page token, received from a previous `ListRuleSets` call.
+ // Provide this to retrieve the subsequent page.
+ //
+ // When paginating, all other parameters provided to `ListRuleSets`
+ // must match the call that provided the page token.
+ string page_token = 3;
+}
+
+// Response message for RuleSetService.ListRuleSets.
+message ListRuleSetsResponse {
+ // The rule sets from the specified parent.
+ repeated RuleSet rule_sets = 1;
+
+ // A token, which can be sent as `page_token` to retrieve the next page.
+ // If this field is omitted, there are no subsequent pages.
+ string next_page_token = 2;
+}
diff --git a/packages/google-cloud-contentwarehouse/protos/google/cloud/contentwarehouse/v1/synonymset.proto b/packages/google-cloud-contentwarehouse/protos/google/cloud/contentwarehouse/v1/synonymset.proto
new file mode 100644
index 000000000000..d4f23e0571ec
--- /dev/null
+++ b/packages/google-cloud-contentwarehouse/protos/google/cloud/contentwarehouse/v1/synonymset.proto
@@ -0,0 +1,58 @@
+// 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.contentwarehouse.v1;
+
+import "google/api/resource.proto";
+
+option go_package = "google.golang.org/genproto/googleapis/cloud/contentwarehouse/v1;contentwarehouse";
+option java_multiple_files = true;
+option java_outer_classname = "SynonymSetProto";
+option java_package = "com.google.cloud.contentwarehouse.v1";
+
+// Represents a list of synonyms for a given context.
+// For example a context "sales" could contain:
+// Synonym 1: sale, invoice, bill, order
+// Synonym 2: money, credit, finance, payment
+// Synonym 3: shipping, freight, transport
+// Each SynonymSets should be disjoint
+message SynonymSet {
+ option (google.api.resource) = {
+ type: "contentwarehouse.googleapis.com/SynonymSet"
+ pattern: "projects/{project}/locations/{location}/synonymSets/{context}"
+ };
+
+ // Represents a list of words given by the customer
+ // All these words are synonyms of each other.
+ message Synonym {
+ // For example: sale, invoice, bill, order
+ repeated string words = 1;
+ }
+
+ // The resource name of the SynonymSet
+ // This is mandatory for google.api.resource.
+ // Format:
+ // projects/{project_number}/locations/{location}/synonymSets/{context}.
+ string name = 1;
+
+ // This is a freeform field. Example contexts can be "sales," "engineering,"
+ // "real estate," "accounting," etc.
+ // The context can be supplied during search requests.
+ string context = 2;
+
+ // List of Synonyms for the context.
+ repeated Synonym synonyms = 3;
+}
diff --git a/packages/google-cloud-contentwarehouse/protos/google/cloud/contentwarehouse/v1/synonymset_service.proto b/packages/google-cloud-contentwarehouse/protos/google/cloud/contentwarehouse/v1/synonymset_service.proto
new file mode 100644
index 000000000000..39acfd112ae8
--- /dev/null
+++ b/packages/google-cloud-contentwarehouse/protos/google/cloud/contentwarehouse/v1/synonymset_service.proto
@@ -0,0 +1,83 @@
+// 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.contentwarehouse.v1;
+
+import "google/api/annotations.proto";
+import "google/api/client.proto";
+import "google/cloud/contentwarehouse/v1/synonymset.proto";
+import "google/cloud/contentwarehouse/v1/synonymset_service_request.proto";
+import "google/protobuf/empty.proto";
+
+option go_package = "google.golang.org/genproto/googleapis/cloud/contentwarehouse/v1;contentwarehouse";
+option java_multiple_files = true;
+option java_outer_classname = "SynonymSetServiceProto";
+option java_package = "com.google.cloud.contentwarehouse.v1";
+
+// A Service that manage/custom customer specified SynonymSets.
+service SynonymSetService {
+ option (google.api.default_host) = "contentwarehouse.googleapis.com";
+ option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform";
+
+ // Creates a SynonymSet for a single context.
+ // Throws an ALREADY_EXISTS exception if a synonymset already exists
+ // for the context.
+ rpc CreateSynonymSet(CreateSynonymSetRequest) returns (SynonymSet) {
+ option (google.api.http) = {
+ post: "/v1/{parent=projects/*/locations/*}/synonymSets"
+ body: "synonym_set"
+ };
+ option (google.api.method_signature) = "parent,synonym_set";
+ }
+
+ // Gets a SynonymSet for a particular context.
+ // Throws a NOT_FOUND exception if the Synonymset
+ // does not exist
+ rpc GetSynonymSet(GetSynonymSetRequest) returns (SynonymSet) {
+ option (google.api.http) = {
+ get: "/v1/{name=projects/*/locations/*/synonymSets/*}"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // Remove the existing SynonymSet for the context and replaces it
+ // with a new one.
+ // Throws a NOT_FOUND exception if the SynonymSet is not found.
+ rpc UpdateSynonymSet(UpdateSynonymSetRequest) returns (SynonymSet) {
+ option (google.api.http) = {
+ patch: "/v1/{name=projects/*/locations/*/synonymSets/*}"
+ body: "synonym_set"
+ };
+ option (google.api.method_signature) = "name,synonym_set";
+ }
+
+ // Deletes a SynonymSet for a given context.
+ // Throws a NOT_FOUND exception if the SynonymSet is not found.
+ rpc DeleteSynonymSet(DeleteSynonymSetRequest) returns (google.protobuf.Empty) {
+ option (google.api.http) = {
+ delete: "/v1/{name=projects/*/locations/*/synonymSets/*}"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // Returns all SynonymSets (for all contexts) for the specified location.
+ rpc ListSynonymSets(ListSynonymSetsRequest) returns (ListSynonymSetsResponse) {
+ option (google.api.http) = {
+ get: "/v1/{parent=projects/*/locations/*}/synonymSets"
+ };
+ option (google.api.method_signature) = "parent";
+ }
+}
diff --git a/packages/google-cloud-contentwarehouse/protos/google/cloud/contentwarehouse/v1/synonymset_service_request.proto b/packages/google-cloud-contentwarehouse/protos/google/cloud/contentwarehouse/v1/synonymset_service_request.proto
new file mode 100644
index 000000000000..8d1955456d33
--- /dev/null
+++ b/packages/google-cloud-contentwarehouse/protos/google/cloud/contentwarehouse/v1/synonymset_service_request.proto
@@ -0,0 +1,122 @@
+// 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.contentwarehouse.v1;
+
+import "google/api/field_behavior.proto";
+import "google/api/resource.proto";
+import "google/cloud/contentwarehouse/v1/synonymset.proto";
+
+option go_package = "google.golang.org/genproto/googleapis/cloud/contentwarehouse/v1;contentwarehouse";
+option java_multiple_files = true;
+option java_outer_classname = "SynonymSetServiceRequestProto";
+option java_package = "com.google.cloud.contentwarehouse.v1";
+
+// Request message for SynonymSetService.CreateSynonymSet.
+message CreateSynonymSetRequest {
+ // Required. The parent name.
+ // Format: projects/{project_number}/locations/{location}.
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "contentwarehouse.googleapis.com/Location"
+ }
+ ];
+
+ // Required. The synonymSet to be created for a context
+ SynonymSet synonym_set = 2 [(google.api.field_behavior) = REQUIRED];
+}
+
+// Request message for SynonymSetService.GetSynonymSet.
+// Will return synonymSet for a certain context.
+message GetSynonymSetRequest {
+ // Required. The name of the synonymSet to retrieve
+ // Format:
+ // projects/{project_number}/locations/{location}/synonymSets/{context}.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "contentwarehouse.googleapis.com/SynonymSet"
+ }
+ ];
+}
+
+// Request message for SynonymSetService.ListSynonymSets.
+// Will return all synonymSets belonging to the customer project.
+message ListSynonymSetsRequest {
+ // Required. The parent name.
+ // Format: projects/{project_number}/locations/{location}.
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "contentwarehouse.googleapis.com/Location"
+ }
+ ];
+
+ // The maximum number of synonymSets to return. The service may return
+ // fewer than this value.
+ // If unspecified, at most 50 rule sets will be returned.
+ // The maximum value is 1000; values above 1000 will be coerced to 1000.
+ int32 page_size = 2;
+
+ // A page token, received from a previous `ListSynonymSets` call.
+ // Provide this to retrieve the subsequent page.
+ //
+ // When paginating, all other parameters provided to `ListSynonymSets`
+ // must match the call that provided the page token.
+ string page_token = 3;
+}
+
+// Response message for SynonymSetService.ListSynonymSets.
+message ListSynonymSetsResponse {
+ // The synonymSets from the specified parent.
+ repeated SynonymSet synonym_sets = 1;
+
+ // A page token, received from a previous `ListSynonymSets` call.
+ // Provide this to retrieve the subsequent page.
+ string next_page_token = 2;
+}
+
+// Request message for SynonymSetService.UpdateSynonymSet.
+// Removes the SynonymSet for the specified context and replaces
+// it with the SynonymSet in this request.
+message UpdateSynonymSetRequest {
+ // Required. The name of the synonymSet to update
+ // Format:
+ // projects/{project_number}/locations/{location}/synonymSets/{context}.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "contentwarehouse.googleapis.com/SynonymSet"
+ }
+ ];
+
+ // Required. The synonymSet to be updated for the customer
+ SynonymSet synonym_set = 2 [(google.api.field_behavior) = REQUIRED];
+}
+
+// Request message for SynonymSetService.DeleteSynonymSet.
+message DeleteSynonymSetRequest {
+ // Required. The name of the synonymSet to delete
+ // Format:
+ // projects/{project_number}/locations/{location}/synonymSets/{context}.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "contentwarehouse.googleapis.com/SynonymSet"
+ }
+ ];
+}
diff --git a/packages/google-cloud-contentwarehouse/protos/google/cloud/documentai/v1/barcode.proto b/packages/google-cloud-contentwarehouse/protos/google/cloud/documentai/v1/barcode.proto
new file mode 100644
index 000000000000..28e588d6c6e3
--- /dev/null
+++ b/packages/google-cloud-contentwarehouse/protos/google/cloud/documentai/v1/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.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-contentwarehouse/protos/google/cloud/documentai/v1/document.proto b/packages/google-cloud-contentwarehouse/protos/google/cloud/documentai/v1/document.proto
new file mode 100644
index 000000000000..d8bbf6b574d4
--- /dev/null
+++ b/packages/google-cloud-contentwarehouse/protos/google/cloud/documentai/v1/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.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;
+ }
+
+ // 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;
+ }
+
+ // 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;
+ }
+
+ // 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;
+ }
+
+ // 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;
+ }
+
+ // 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;
+ }
+
+ // 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;
+ }
+
+ // 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;
+
+ // 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.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 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.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;
+ }
+
+ // 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]. 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-contentwarehouse/protos/google/cloud/documentai/v1/document_io.proto b/packages/google-cloud-contentwarehouse/protos/google/cloud/documentai/v1/document_io.proto
new file mode 100644
index 000000000000..17630a03592a
--- /dev/null
+++ b/packages/google-cloud-contentwarehouse/protos/google/cloud/documentai/v1/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.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 = "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].
+ 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-contentwarehouse/protos/google/cloud/documentai/v1/document_processor_service.proto b/packages/google-cloud-contentwarehouse/protos/google/cloud/documentai/v1/document_processor_service.proto
new file mode 100644
index 000000000000..9c944f259a0d
--- /dev/null
+++ b/packages/google-cloud-contentwarehouse/protos/google/cloud/documentai/v1/document_processor_service.proto
@@ -0,0 +1,799 @@
+// 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.
+ 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-contentwarehouse/protos/google/cloud/documentai/v1/document_schema.proto b/packages/google-cloud-contentwarehouse/protos/google/cloud/documentai/v1/document_schema.proto
new file mode 100644
index 000000000000..24bd42285d9e
--- /dev/null
+++ b/packages/google-cloud-contentwarehouse/protos/google/cloud/documentai/v1/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.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-contentwarehouse/protos/google/cloud/documentai/v1/geometry.proto b/packages/google-cloud-contentwarehouse/protos/google/cloud/documentai/v1/geometry.proto
new file mode 100644
index 000000000000..7471ef012475
--- /dev/null
+++ b/packages/google-cloud-contentwarehouse/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-contentwarehouse/protos/google/cloud/documentai/v1/operation_metadata.proto b/packages/google-cloud-contentwarehouse/protos/google/cloud/documentai/v1/operation_metadata.proto
new file mode 100644
index 000000000000..5698b0a4f3cc
--- /dev/null
+++ b/packages/google-cloud-contentwarehouse/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-contentwarehouse/protos/google/cloud/documentai/v1/processor.proto b/packages/google-cloud-contentwarehouse/protos/google/cloud/documentai/v1/processor.proto
new file mode 100644
index 000000000000..b7eb95ef3f56
--- /dev/null
+++ b/packages/google-cloud-contentwarehouse/protos/google/cloud/documentai/v1/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.v1;
+
+import "google/api/field_behavior.proto";
+import "google/api/resource.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 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-contentwarehouse/protos/google/cloud/documentai/v1/processor_type.proto b/packages/google-cloud-contentwarehouse/protos/google/cloud/documentai/v1/processor_type.proto
new file mode 100644
index 000000000000..dd5ef4700112
--- /dev/null
+++ b/packages/google-cloud-contentwarehouse/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 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-contentwarehouse/protos/protos.d.ts b/packages/google-cloud-contentwarehouse/protos/protos.d.ts
new file mode 100644
index 000000000000..dd5d960f0725
--- /dev/null
+++ b/packages/google-cloud-contentwarehouse/protos/protos.d.ts
@@ -0,0 +1,22971 @@
+// Copyright 2022 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+import Long = require("long");
+import type {protobuf as $protobuf} from "google-gax";
+/** Namespace google. */
+export namespace google {
+
+ /** Namespace cloud. */
+ namespace cloud {
+
+ /** Namespace contentwarehouse. */
+ namespace contentwarehouse {
+
+ /** Namespace v1. */
+ namespace v1 {
+
+ /** Properties of a CreateDocumentMetadata. */
+ interface ICreateDocumentMetadata {
+ }
+
+ /** Represents a CreateDocumentMetadata. */
+ class CreateDocumentMetadata implements ICreateDocumentMetadata {
+
+ /**
+ * Constructs a new CreateDocumentMetadata.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.contentwarehouse.v1.ICreateDocumentMetadata);
+
+ /**
+ * Creates a new CreateDocumentMetadata instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CreateDocumentMetadata instance
+ */
+ public static create(properties?: google.cloud.contentwarehouse.v1.ICreateDocumentMetadata): google.cloud.contentwarehouse.v1.CreateDocumentMetadata;
+
+ /**
+ * Encodes the specified CreateDocumentMetadata message. Does not implicitly {@link google.cloud.contentwarehouse.v1.CreateDocumentMetadata.verify|verify} messages.
+ * @param message CreateDocumentMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.contentwarehouse.v1.ICreateDocumentMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CreateDocumentMetadata message, length delimited. Does not implicitly {@link google.cloud.contentwarehouse.v1.CreateDocumentMetadata.verify|verify} messages.
+ * @param message CreateDocumentMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.contentwarehouse.v1.ICreateDocumentMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CreateDocumentMetadata message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CreateDocumentMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.contentwarehouse.v1.CreateDocumentMetadata;
+
+ /**
+ * Decodes a CreateDocumentMetadata message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CreateDocumentMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.contentwarehouse.v1.CreateDocumentMetadata;
+
+ /**
+ * Verifies a CreateDocumentMetadata message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a CreateDocumentMetadata message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CreateDocumentMetadata
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.contentwarehouse.v1.CreateDocumentMetadata;
+
+ /**
+ * Creates a plain object from a CreateDocumentMetadata message. Also converts values to other types if specified.
+ * @param message CreateDocumentMetadata
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.contentwarehouse.v1.CreateDocumentMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CreateDocumentMetadata to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CreateDocumentMetadata
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an UpdateDocumentMetadata. */
+ interface IUpdateDocumentMetadata {
+ }
+
+ /** Represents an UpdateDocumentMetadata. */
+ class UpdateDocumentMetadata implements IUpdateDocumentMetadata {
+
+ /**
+ * Constructs a new UpdateDocumentMetadata.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.contentwarehouse.v1.IUpdateDocumentMetadata);
+
+ /**
+ * Creates a new UpdateDocumentMetadata instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns UpdateDocumentMetadata instance
+ */
+ public static create(properties?: google.cloud.contentwarehouse.v1.IUpdateDocumentMetadata): google.cloud.contentwarehouse.v1.UpdateDocumentMetadata;
+
+ /**
+ * Encodes the specified UpdateDocumentMetadata message. Does not implicitly {@link google.cloud.contentwarehouse.v1.UpdateDocumentMetadata.verify|verify} messages.
+ * @param message UpdateDocumentMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.contentwarehouse.v1.IUpdateDocumentMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified UpdateDocumentMetadata message, length delimited. Does not implicitly {@link google.cloud.contentwarehouse.v1.UpdateDocumentMetadata.verify|verify} messages.
+ * @param message UpdateDocumentMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.contentwarehouse.v1.IUpdateDocumentMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an UpdateDocumentMetadata message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns UpdateDocumentMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.contentwarehouse.v1.UpdateDocumentMetadata;
+
+ /**
+ * Decodes an UpdateDocumentMetadata message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns UpdateDocumentMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.contentwarehouse.v1.UpdateDocumentMetadata;
+
+ /**
+ * Verifies an UpdateDocumentMetadata message.
+ * @param message Plain 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 UpdateDocumentMetadata message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns UpdateDocumentMetadata
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.contentwarehouse.v1.UpdateDocumentMetadata;
+
+ /**
+ * Creates a plain object from an UpdateDocumentMetadata message. Also converts values to other types if specified.
+ * @param message UpdateDocumentMetadata
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.contentwarehouse.v1.UpdateDocumentMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this UpdateDocumentMetadata to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for UpdateDocumentMetadata
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a RequestMetadata. */
+ interface IRequestMetadata {
+
+ /** RequestMetadata userInfo */
+ userInfo?: (google.cloud.contentwarehouse.v1.IUserInfo|null);
+ }
+
+ /** Represents a RequestMetadata. */
+ class RequestMetadata implements IRequestMetadata {
+
+ /**
+ * Constructs a new RequestMetadata.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.contentwarehouse.v1.IRequestMetadata);
+
+ /** RequestMetadata userInfo. */
+ public userInfo?: (google.cloud.contentwarehouse.v1.IUserInfo|null);
+
+ /**
+ * Creates a new RequestMetadata instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns RequestMetadata instance
+ */
+ public static create(properties?: google.cloud.contentwarehouse.v1.IRequestMetadata): google.cloud.contentwarehouse.v1.RequestMetadata;
+
+ /**
+ * Encodes the specified RequestMetadata message. Does not implicitly {@link google.cloud.contentwarehouse.v1.RequestMetadata.verify|verify} messages.
+ * @param message RequestMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.contentwarehouse.v1.IRequestMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified RequestMetadata message, length delimited. Does not implicitly {@link google.cloud.contentwarehouse.v1.RequestMetadata.verify|verify} messages.
+ * @param message RequestMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.contentwarehouse.v1.IRequestMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a RequestMetadata message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns RequestMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.contentwarehouse.v1.RequestMetadata;
+
+ /**
+ * Decodes a RequestMetadata message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns RequestMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.contentwarehouse.v1.RequestMetadata;
+
+ /**
+ * Verifies a RequestMetadata message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a RequestMetadata message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns RequestMetadata
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.contentwarehouse.v1.RequestMetadata;
+
+ /**
+ * Creates a plain object from a RequestMetadata message. Also converts values to other types if specified.
+ * @param message RequestMetadata
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.contentwarehouse.v1.RequestMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this RequestMetadata to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for RequestMetadata
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ResponseMetadata. */
+ interface IResponseMetadata {
+
+ /** ResponseMetadata requestId */
+ requestId?: (string|null);
+ }
+
+ /** Represents a ResponseMetadata. */
+ class ResponseMetadata implements IResponseMetadata {
+
+ /**
+ * Constructs a new ResponseMetadata.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.contentwarehouse.v1.IResponseMetadata);
+
+ /** ResponseMetadata requestId. */
+ public requestId: string;
+
+ /**
+ * Creates a new ResponseMetadata instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ResponseMetadata instance
+ */
+ public static create(properties?: google.cloud.contentwarehouse.v1.IResponseMetadata): google.cloud.contentwarehouse.v1.ResponseMetadata;
+
+ /**
+ * Encodes the specified ResponseMetadata message. Does not implicitly {@link google.cloud.contentwarehouse.v1.ResponseMetadata.verify|verify} messages.
+ * @param message ResponseMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.contentwarehouse.v1.IResponseMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ResponseMetadata message, length delimited. Does not implicitly {@link google.cloud.contentwarehouse.v1.ResponseMetadata.verify|verify} messages.
+ * @param message ResponseMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.contentwarehouse.v1.IResponseMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ResponseMetadata message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ResponseMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.contentwarehouse.v1.ResponseMetadata;
+
+ /**
+ * Decodes a ResponseMetadata message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ResponseMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.contentwarehouse.v1.ResponseMetadata;
+
+ /**
+ * Verifies a ResponseMetadata message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ResponseMetadata message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ResponseMetadata
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.contentwarehouse.v1.ResponseMetadata;
+
+ /**
+ * Creates a plain object from a ResponseMetadata message. Also converts values to other types if specified.
+ * @param message ResponseMetadata
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.contentwarehouse.v1.ResponseMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ResponseMetadata to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ResponseMetadata
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a UserInfo. */
+ interface IUserInfo {
+
+ /** UserInfo id */
+ id?: (string|null);
+
+ /** UserInfo groupIds */
+ groupIds?: (string[]|null);
+ }
+
+ /** Represents a UserInfo. */
+ class UserInfo implements IUserInfo {
+
+ /**
+ * Constructs a new UserInfo.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.contentwarehouse.v1.IUserInfo);
+
+ /** UserInfo id. */
+ public id: string;
+
+ /** UserInfo groupIds. */
+ public groupIds: string[];
+
+ /**
+ * Creates a new UserInfo instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns UserInfo instance
+ */
+ public static create(properties?: google.cloud.contentwarehouse.v1.IUserInfo): google.cloud.contentwarehouse.v1.UserInfo;
+
+ /**
+ * Encodes the specified UserInfo message. Does not implicitly {@link google.cloud.contentwarehouse.v1.UserInfo.verify|verify} messages.
+ * @param message UserInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.contentwarehouse.v1.IUserInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified UserInfo message, length delimited. Does not implicitly {@link google.cloud.contentwarehouse.v1.UserInfo.verify|verify} messages.
+ * @param message UserInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.contentwarehouse.v1.IUserInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a UserInfo message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns UserInfo
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.contentwarehouse.v1.UserInfo;
+
+ /**
+ * Decodes a UserInfo message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns UserInfo
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.contentwarehouse.v1.UserInfo;
+
+ /**
+ * Verifies a UserInfo message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a UserInfo message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns UserInfo
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.contentwarehouse.v1.UserInfo;
+
+ /**
+ * Creates a plain object from a UserInfo message. Also converts values to other types if specified.
+ * @param message UserInfo
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.contentwarehouse.v1.UserInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this UserInfo to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for UserInfo
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an UpdateOptions. */
+ interface IUpdateOptions {
+
+ /** UpdateOptions updateType */
+ updateType?: (google.cloud.contentwarehouse.v1.UpdateType|keyof typeof google.cloud.contentwarehouse.v1.UpdateType|null);
+
+ /** UpdateOptions updateMask */
+ updateMask?: (google.protobuf.IFieldMask|null);
+
+ /** UpdateOptions mergeFieldsOptions */
+ mergeFieldsOptions?: (google.cloud.contentwarehouse.v1.IMergeFieldsOptions|null);
+ }
+
+ /** Represents an UpdateOptions. */
+ class UpdateOptions implements IUpdateOptions {
+
+ /**
+ * Constructs a new UpdateOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.contentwarehouse.v1.IUpdateOptions);
+
+ /** UpdateOptions updateType. */
+ public updateType: (google.cloud.contentwarehouse.v1.UpdateType|keyof typeof google.cloud.contentwarehouse.v1.UpdateType);
+
+ /** UpdateOptions updateMask. */
+ public updateMask?: (google.protobuf.IFieldMask|null);
+
+ /** UpdateOptions mergeFieldsOptions. */
+ public mergeFieldsOptions?: (google.cloud.contentwarehouse.v1.IMergeFieldsOptions|null);
+
+ /**
+ * Creates a new UpdateOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns UpdateOptions instance
+ */
+ public static create(properties?: google.cloud.contentwarehouse.v1.IUpdateOptions): google.cloud.contentwarehouse.v1.UpdateOptions;
+
+ /**
+ * Encodes the specified UpdateOptions message. Does not implicitly {@link google.cloud.contentwarehouse.v1.UpdateOptions.verify|verify} messages.
+ * @param message UpdateOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.contentwarehouse.v1.IUpdateOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified UpdateOptions message, length delimited. Does not implicitly {@link google.cloud.contentwarehouse.v1.UpdateOptions.verify|verify} messages.
+ * @param message UpdateOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.contentwarehouse.v1.IUpdateOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an UpdateOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns UpdateOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.contentwarehouse.v1.UpdateOptions;
+
+ /**
+ * Decodes an UpdateOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns UpdateOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.contentwarehouse.v1.UpdateOptions;
+
+ /**
+ * Verifies an UpdateOptions message.
+ * @param message Plain 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 UpdateOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns UpdateOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.contentwarehouse.v1.UpdateOptions;
+
+ /**
+ * Creates a plain object from an UpdateOptions message. Also converts values to other types if specified.
+ * @param message UpdateOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.contentwarehouse.v1.UpdateOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this UpdateOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for UpdateOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a MergeFieldsOptions. */
+ interface IMergeFieldsOptions {
+
+ /** MergeFieldsOptions replaceMessageFields */
+ replaceMessageFields?: (boolean|null);
+
+ /** MergeFieldsOptions replaceRepeatedFields */
+ replaceRepeatedFields?: (boolean|null);
+ }
+
+ /** Represents a MergeFieldsOptions. */
+ class MergeFieldsOptions implements IMergeFieldsOptions {
+
+ /**
+ * Constructs a new MergeFieldsOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.contentwarehouse.v1.IMergeFieldsOptions);
+
+ /** MergeFieldsOptions replaceMessageFields. */
+ public replaceMessageFields?: (boolean|null);
+
+ /** MergeFieldsOptions replaceRepeatedFields. */
+ public replaceRepeatedFields?: (boolean|null);
+
+ /** MergeFieldsOptions _replaceMessageFields. */
+ public _replaceMessageFields?: "replaceMessageFields";
+
+ /** MergeFieldsOptions _replaceRepeatedFields. */
+ public _replaceRepeatedFields?: "replaceRepeatedFields";
+
+ /**
+ * Creates a new MergeFieldsOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns MergeFieldsOptions instance
+ */
+ public static create(properties?: google.cloud.contentwarehouse.v1.IMergeFieldsOptions): google.cloud.contentwarehouse.v1.MergeFieldsOptions;
+
+ /**
+ * Encodes the specified MergeFieldsOptions message. Does not implicitly {@link google.cloud.contentwarehouse.v1.MergeFieldsOptions.verify|verify} messages.
+ * @param message MergeFieldsOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.contentwarehouse.v1.IMergeFieldsOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified MergeFieldsOptions message, length delimited. Does not implicitly {@link google.cloud.contentwarehouse.v1.MergeFieldsOptions.verify|verify} messages.
+ * @param message MergeFieldsOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.contentwarehouse.v1.IMergeFieldsOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a MergeFieldsOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns MergeFieldsOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.contentwarehouse.v1.MergeFieldsOptions;
+
+ /**
+ * Decodes a MergeFieldsOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns MergeFieldsOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.contentwarehouse.v1.MergeFieldsOptions;
+
+ /**
+ * Verifies a MergeFieldsOptions message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a MergeFieldsOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns MergeFieldsOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.contentwarehouse.v1.MergeFieldsOptions;
+
+ /**
+ * Creates a plain object from a MergeFieldsOptions message. Also converts values to other types if specified.
+ * @param message MergeFieldsOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.contentwarehouse.v1.MergeFieldsOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this MergeFieldsOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for MergeFieldsOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** UpdateType enum. */
+ enum UpdateType {
+ UPDATE_TYPE_UNSPECIFIED = 0,
+ UPDATE_TYPE_REPLACE = 1,
+ UPDATE_TYPE_MERGE = 2,
+ UPDATE_TYPE_INSERT_PROPERTIES_BY_NAMES = 3,
+ UPDATE_TYPE_REPLACE_PROPERTIES_BY_NAMES = 4,
+ UPDATE_TYPE_DELETE_PROPERTIES_BY_NAMES = 5
+ }
+
+ /** DatabaseType enum. */
+ enum DatabaseType {
+ DB_UNKNOWN = 0,
+ DB_INFRA_SPANNER = 1,
+ DB_CLOUD_SQL_POSTGRES = 2
+ }
+
+ /** AccessControlMode enum. */
+ enum AccessControlMode {
+ ACL_MODE_UNKNOWN = 0,
+ ACL_MODE_UNIVERSAL_ACCESS = 1,
+ ACL_MODE_DOCUMENT_LEVEL_ACCESS_CONTROL_BYOID = 2,
+ ACL_MODE_DOCUMENT_LEVEL_ACCESS_CONTROL_GCI = 3
+ }
+
+ /** Properties of a Document. */
+ interface IDocument {
+
+ /** Document name */
+ name?: (string|null);
+
+ /** Document referenceId */
+ referenceId?: (string|null);
+
+ /** Document displayName */
+ displayName?: (string|null);
+
+ /** Document title */
+ title?: (string|null);
+
+ /** Document displayUri */
+ displayUri?: (string|null);
+
+ /** Document documentSchemaName */
+ documentSchemaName?: (string|null);
+
+ /** Document plainText */
+ plainText?: (string|null);
+
+ /** Document cloudAiDocument */
+ cloudAiDocument?: (google.cloud.documentai.v1.IDocument|null);
+
+ /** Document structuredContentUri */
+ structuredContentUri?: (string|null);
+
+ /** Document rawDocumentPath */
+ rawDocumentPath?: (string|null);
+
+ /** Document inlineRawDocument */
+ inlineRawDocument?: (Uint8Array|string|null);
+
+ /** Document properties */
+ properties?: (google.cloud.contentwarehouse.v1.IProperty[]|null);
+
+ /** Document updateTime */
+ updateTime?: (google.protobuf.ITimestamp|null);
+
+ /** Document createTime */
+ createTime?: (google.protobuf.ITimestamp|null);
+
+ /** Document rawDocumentFileType */
+ rawDocumentFileType?: (google.cloud.contentwarehouse.v1.RawDocumentFileType|keyof typeof google.cloud.contentwarehouse.v1.RawDocumentFileType|null);
+
+ /** Document asyncEnabled */
+ asyncEnabled?: (boolean|null);
+
+ /** Document textExtractionDisabled */
+ textExtractionDisabled?: (boolean|null);
+
+ /** Document creator */
+ creator?: (string|null);
+
+ /** Document updater */
+ updater?: (string|null);
+ }
+
+ /** Represents a Document. */
+ class Document implements IDocument {
+
+ /**
+ * Constructs a new Document.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.contentwarehouse.v1.IDocument);
+
+ /** Document name. */
+ public name: string;
+
+ /** Document referenceId. */
+ public referenceId: string;
+
+ /** Document displayName. */
+ public displayName: string;
+
+ /** Document title. */
+ public title: string;
+
+ /** Document displayUri. */
+ public displayUri: string;
+
+ /** Document documentSchemaName. */
+ public documentSchemaName: string;
+
+ /** Document plainText. */
+ public plainText?: (string|null);
+
+ /** Document cloudAiDocument. */
+ public cloudAiDocument?: (google.cloud.documentai.v1.IDocument|null);
+
+ /** Document structuredContentUri. */
+ public structuredContentUri: string;
+
+ /** Document rawDocumentPath. */
+ public rawDocumentPath?: (string|null);
+
+ /** Document inlineRawDocument. */
+ public inlineRawDocument?: (Uint8Array|string|null);
+
+ /** Document properties. */
+ public properties: google.cloud.contentwarehouse.v1.IProperty[];
+
+ /** Document updateTime. */
+ public updateTime?: (google.protobuf.ITimestamp|null);
+
+ /** Document createTime. */
+ public createTime?: (google.protobuf.ITimestamp|null);
+
+ /** Document rawDocumentFileType. */
+ public rawDocumentFileType: (google.cloud.contentwarehouse.v1.RawDocumentFileType|keyof typeof google.cloud.contentwarehouse.v1.RawDocumentFileType);
+
+ /** Document asyncEnabled. */
+ public asyncEnabled: boolean;
+
+ /** Document textExtractionDisabled. */
+ public textExtractionDisabled: boolean;
+
+ /** Document creator. */
+ public creator: string;
+
+ /** Document updater. */
+ public updater: string;
+
+ /** Document structuredContent. */
+ public structuredContent?: ("plainText"|"cloudAiDocument");
+
+ /** Document rawDocument. */
+ public rawDocument?: ("rawDocumentPath"|"inlineRawDocument");
+
+ /**
+ * Creates a new Document instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Document instance
+ */
+ public static create(properties?: google.cloud.contentwarehouse.v1.IDocument): google.cloud.contentwarehouse.v1.Document;
+
+ /**
+ * Encodes the specified Document message. Does not implicitly {@link google.cloud.contentwarehouse.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.contentwarehouse.v1.IDocument, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Document message, length delimited. Does not implicitly {@link google.cloud.contentwarehouse.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.contentwarehouse.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.contentwarehouse.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.contentwarehouse.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.contentwarehouse.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.contentwarehouse.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;
+ }
+
+ /** Properties of a DocumentReference. */
+ interface IDocumentReference {
+
+ /** DocumentReference documentName */
+ documentName?: (string|null);
+
+ /** DocumentReference displayName */
+ displayName?: (string|null);
+
+ /** DocumentReference snippet */
+ snippet?: (string|null);
+
+ /** DocumentReference documentIsFolder */
+ documentIsFolder?: (boolean|null);
+
+ /** DocumentReference updateTime */
+ updateTime?: (google.protobuf.ITimestamp|null);
+
+ /** DocumentReference createTime */
+ createTime?: (google.protobuf.ITimestamp|null);
+
+ /** DocumentReference deleteTime */
+ deleteTime?: (google.protobuf.ITimestamp|null);
+ }
+
+ /** Represents a DocumentReference. */
+ class DocumentReference implements IDocumentReference {
+
+ /**
+ * Constructs a new DocumentReference.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.contentwarehouse.v1.IDocumentReference);
+
+ /** DocumentReference documentName. */
+ public documentName: string;
+
+ /** DocumentReference displayName. */
+ public displayName: string;
+
+ /** DocumentReference snippet. */
+ public snippet: string;
+
+ /** DocumentReference documentIsFolder. */
+ public documentIsFolder: boolean;
+
+ /** DocumentReference updateTime. */
+ public updateTime?: (google.protobuf.ITimestamp|null);
+
+ /** DocumentReference createTime. */
+ public createTime?: (google.protobuf.ITimestamp|null);
+
+ /** DocumentReference deleteTime. */
+ public deleteTime?: (google.protobuf.ITimestamp|null);
+
+ /**
+ * Creates a new DocumentReference instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DocumentReference instance
+ */
+ public static create(properties?: google.cloud.contentwarehouse.v1.IDocumentReference): google.cloud.contentwarehouse.v1.DocumentReference;
+
+ /**
+ * Encodes the specified DocumentReference message. Does not implicitly {@link google.cloud.contentwarehouse.v1.DocumentReference.verify|verify} messages.
+ * @param message DocumentReference message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.contentwarehouse.v1.IDocumentReference, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DocumentReference message, length delimited. Does not implicitly {@link google.cloud.contentwarehouse.v1.DocumentReference.verify|verify} messages.
+ * @param message DocumentReference message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.contentwarehouse.v1.IDocumentReference, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DocumentReference message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DocumentReference
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.contentwarehouse.v1.DocumentReference;
+
+ /**
+ * Decodes a DocumentReference message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DocumentReference
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.contentwarehouse.v1.DocumentReference;
+
+ /**
+ * Verifies a DocumentReference message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DocumentReference message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DocumentReference
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.contentwarehouse.v1.DocumentReference;
+
+ /**
+ * Creates a plain object from a DocumentReference message. Also converts values to other types if specified.
+ * @param message DocumentReference
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.contentwarehouse.v1.DocumentReference, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DocumentReference to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DocumentReference
+ * @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 integerValues */
+ integerValues?: (google.cloud.contentwarehouse.v1.IIntegerArray|null);
+
+ /** Property floatValues */
+ floatValues?: (google.cloud.contentwarehouse.v1.IFloatArray|null);
+
+ /** Property textValues */
+ textValues?: (google.cloud.contentwarehouse.v1.ITextArray|null);
+
+ /** Property enumValues */
+ enumValues?: (google.cloud.contentwarehouse.v1.IEnumArray|null);
+
+ /** Property propertyValues */
+ propertyValues?: (google.cloud.contentwarehouse.v1.IPropertyArray|null);
+
+ /** Property dateTimeValues */
+ dateTimeValues?: (google.cloud.contentwarehouse.v1.IDateTimeArray|null);
+
+ /** Property mapProperty */
+ mapProperty?: (google.cloud.contentwarehouse.v1.IMapProperty|null);
+
+ /** Property timestampValues */
+ timestampValues?: (google.cloud.contentwarehouse.v1.ITimestampArray|null);
+ }
+
+ /** Represents a Property. */
+ class Property implements IProperty {
+
+ /**
+ * Constructs a new Property.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.contentwarehouse.v1.IProperty);
+
+ /** Property name. */
+ public name: string;
+
+ /** Property integerValues. */
+ public integerValues?: (google.cloud.contentwarehouse.v1.IIntegerArray|null);
+
+ /** Property floatValues. */
+ public floatValues?: (google.cloud.contentwarehouse.v1.IFloatArray|null);
+
+ /** Property textValues. */
+ public textValues?: (google.cloud.contentwarehouse.v1.ITextArray|null);
+
+ /** Property enumValues. */
+ public enumValues?: (google.cloud.contentwarehouse.v1.IEnumArray|null);
+
+ /** Property propertyValues. */
+ public propertyValues?: (google.cloud.contentwarehouse.v1.IPropertyArray|null);
+
+ /** Property dateTimeValues. */
+ public dateTimeValues?: (google.cloud.contentwarehouse.v1.IDateTimeArray|null);
+
+ /** Property mapProperty. */
+ public mapProperty?: (google.cloud.contentwarehouse.v1.IMapProperty|null);
+
+ /** Property timestampValues. */
+ public timestampValues?: (google.cloud.contentwarehouse.v1.ITimestampArray|null);
+
+ /** Property values. */
+ public values?: ("integerValues"|"floatValues"|"textValues"|"enumValues"|"propertyValues"|"dateTimeValues"|"mapProperty"|"timestampValues");
+
+ /**
+ * Creates a new Property instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Property instance
+ */
+ public static create(properties?: google.cloud.contentwarehouse.v1.IProperty): google.cloud.contentwarehouse.v1.Property;
+
+ /**
+ * Encodes the specified Property message. Does not implicitly {@link google.cloud.contentwarehouse.v1.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.contentwarehouse.v1.IProperty, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Property message, length delimited. Does not implicitly {@link google.cloud.contentwarehouse.v1.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.contentwarehouse.v1.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.contentwarehouse.v1.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.contentwarehouse.v1.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.contentwarehouse.v1.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.contentwarehouse.v1.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;
+ }
+
+ /** Properties of an IntegerArray. */
+ interface IIntegerArray {
+
+ /** IntegerArray values */
+ values?: (number[]|null);
+ }
+
+ /** Represents an IntegerArray. */
+ class IntegerArray implements IIntegerArray {
+
+ /**
+ * Constructs a new IntegerArray.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.contentwarehouse.v1.IIntegerArray);
+
+ /** IntegerArray values. */
+ public values: number[];
+
+ /**
+ * Creates a new IntegerArray instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns IntegerArray instance
+ */
+ public static create(properties?: google.cloud.contentwarehouse.v1.IIntegerArray): google.cloud.contentwarehouse.v1.IntegerArray;
+
+ /**
+ * Encodes the specified IntegerArray message. Does not implicitly {@link google.cloud.contentwarehouse.v1.IntegerArray.verify|verify} messages.
+ * @param message IntegerArray message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.contentwarehouse.v1.IIntegerArray, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified IntegerArray message, length delimited. Does not implicitly {@link google.cloud.contentwarehouse.v1.IntegerArray.verify|verify} messages.
+ * @param message IntegerArray message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.contentwarehouse.v1.IIntegerArray, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an IntegerArray message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns IntegerArray
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.contentwarehouse.v1.IntegerArray;
+
+ /**
+ * Decodes an IntegerArray message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns IntegerArray
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.contentwarehouse.v1.IntegerArray;
+
+ /**
+ * Verifies an IntegerArray message.
+ * @param message Plain 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 IntegerArray message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns IntegerArray
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.contentwarehouse.v1.IntegerArray;
+
+ /**
+ * Creates a plain object from an IntegerArray message. Also converts values to other types if specified.
+ * @param message IntegerArray
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.contentwarehouse.v1.IntegerArray, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this IntegerArray to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for IntegerArray
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a FloatArray. */
+ interface IFloatArray {
+
+ /** FloatArray values */
+ values?: (number[]|null);
+ }
+
+ /** Represents a FloatArray. */
+ class FloatArray implements IFloatArray {
+
+ /**
+ * Constructs a new FloatArray.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.contentwarehouse.v1.IFloatArray);
+
+ /** FloatArray values. */
+ public values: number[];
+
+ /**
+ * Creates a new FloatArray instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FloatArray instance
+ */
+ public static create(properties?: google.cloud.contentwarehouse.v1.IFloatArray): google.cloud.contentwarehouse.v1.FloatArray;
+
+ /**
+ * Encodes the specified FloatArray message. Does not implicitly {@link google.cloud.contentwarehouse.v1.FloatArray.verify|verify} messages.
+ * @param message FloatArray message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.contentwarehouse.v1.IFloatArray, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FloatArray message, length delimited. Does not implicitly {@link google.cloud.contentwarehouse.v1.FloatArray.verify|verify} messages.
+ * @param message FloatArray message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.contentwarehouse.v1.IFloatArray, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FloatArray message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FloatArray
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.contentwarehouse.v1.FloatArray;
+
+ /**
+ * Decodes a FloatArray message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FloatArray
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.contentwarehouse.v1.FloatArray;
+
+ /**
+ * Verifies a FloatArray message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FloatArray message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FloatArray
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.contentwarehouse.v1.FloatArray;
+
+ /**
+ * Creates a plain object from a FloatArray message. Also converts values to other types if specified.
+ * @param message FloatArray
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.contentwarehouse.v1.FloatArray, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FloatArray to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FloatArray
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a TextArray. */
+ interface ITextArray {
+
+ /** TextArray values */
+ values?: (string[]|null);
+ }
+
+ /** Represents a TextArray. */
+ class TextArray implements ITextArray {
+
+ /**
+ * Constructs a new TextArray.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.contentwarehouse.v1.ITextArray);
+
+ /** TextArray values. */
+ public values: string[];
+
+ /**
+ * Creates a new TextArray instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns TextArray instance
+ */
+ public static create(properties?: google.cloud.contentwarehouse.v1.ITextArray): google.cloud.contentwarehouse.v1.TextArray;
+
+ /**
+ * Encodes the specified TextArray message. Does not implicitly {@link google.cloud.contentwarehouse.v1.TextArray.verify|verify} messages.
+ * @param message TextArray message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.contentwarehouse.v1.ITextArray, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified TextArray message, length delimited. Does not implicitly {@link google.cloud.contentwarehouse.v1.TextArray.verify|verify} messages.
+ * @param message TextArray message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.contentwarehouse.v1.ITextArray, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a TextArray message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns TextArray
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.contentwarehouse.v1.TextArray;
+
+ /**
+ * Decodes a TextArray message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns TextArray
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.contentwarehouse.v1.TextArray;
+
+ /**
+ * Verifies a TextArray message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a TextArray message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns TextArray
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.contentwarehouse.v1.TextArray;
+
+ /**
+ * Creates a plain object from a TextArray message. Also converts values to other types if specified.
+ * @param message TextArray
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.contentwarehouse.v1.TextArray, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this TextArray to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for TextArray
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an EnumArray. */
+ interface IEnumArray {
+
+ /** EnumArray values */
+ values?: (string[]|null);
+ }
+
+ /** Represents an EnumArray. */
+ class EnumArray implements IEnumArray {
+
+ /**
+ * Constructs a new EnumArray.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.contentwarehouse.v1.IEnumArray);
+
+ /** EnumArray values. */
+ public values: string[];
+
+ /**
+ * Creates a new EnumArray instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns EnumArray instance
+ */
+ public static create(properties?: google.cloud.contentwarehouse.v1.IEnumArray): google.cloud.contentwarehouse.v1.EnumArray;
+
+ /**
+ * Encodes the specified EnumArray message. Does not implicitly {@link google.cloud.contentwarehouse.v1.EnumArray.verify|verify} messages.
+ * @param message EnumArray message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.contentwarehouse.v1.IEnumArray, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified EnumArray message, length delimited. Does not implicitly {@link google.cloud.contentwarehouse.v1.EnumArray.verify|verify} messages.
+ * @param message EnumArray message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.contentwarehouse.v1.IEnumArray, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an EnumArray message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns EnumArray
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.contentwarehouse.v1.EnumArray;
+
+ /**
+ * Decodes an EnumArray message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns EnumArray
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.contentwarehouse.v1.EnumArray;
+
+ /**
+ * Verifies an EnumArray message.
+ * @param message Plain 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 EnumArray message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns EnumArray
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.contentwarehouse.v1.EnumArray;
+
+ /**
+ * Creates a plain object from an EnumArray message. Also converts values to other types if specified.
+ * @param message EnumArray
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.contentwarehouse.v1.EnumArray, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this EnumArray to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for EnumArray
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DateTimeArray. */
+ interface IDateTimeArray {
+
+ /** DateTimeArray values */
+ values?: (google.type.IDateTime[]|null);
+ }
+
+ /** Represents a DateTimeArray. */
+ class DateTimeArray implements IDateTimeArray {
+
+ /**
+ * Constructs a new DateTimeArray.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.contentwarehouse.v1.IDateTimeArray);
+
+ /** DateTimeArray values. */
+ public values: google.type.IDateTime[];
+
+ /**
+ * Creates a new DateTimeArray instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DateTimeArray instance
+ */
+ public static create(properties?: google.cloud.contentwarehouse.v1.IDateTimeArray): google.cloud.contentwarehouse.v1.DateTimeArray;
+
+ /**
+ * Encodes the specified DateTimeArray message. Does not implicitly {@link google.cloud.contentwarehouse.v1.DateTimeArray.verify|verify} messages.
+ * @param message DateTimeArray message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.contentwarehouse.v1.IDateTimeArray, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DateTimeArray message, length delimited. Does not implicitly {@link google.cloud.contentwarehouse.v1.DateTimeArray.verify|verify} messages.
+ * @param message DateTimeArray message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.contentwarehouse.v1.IDateTimeArray, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DateTimeArray message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DateTimeArray
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.contentwarehouse.v1.DateTimeArray;
+
+ /**
+ * Decodes a DateTimeArray message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DateTimeArray
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.contentwarehouse.v1.DateTimeArray;
+
+ /**
+ * Verifies a DateTimeArray message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DateTimeArray message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DateTimeArray
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.contentwarehouse.v1.DateTimeArray;
+
+ /**
+ * Creates a plain object from a DateTimeArray message. Also converts values to other types if specified.
+ * @param message DateTimeArray
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.contentwarehouse.v1.DateTimeArray, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DateTimeArray to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DateTimeArray
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a TimestampArray. */
+ interface ITimestampArray {
+
+ /** TimestampArray values */
+ values?: (google.cloud.contentwarehouse.v1.ITimestampValue[]|null);
+ }
+
+ /** Represents a TimestampArray. */
+ class TimestampArray implements ITimestampArray {
+
+ /**
+ * Constructs a new TimestampArray.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.contentwarehouse.v1.ITimestampArray);
+
+ /** TimestampArray values. */
+ public values: google.cloud.contentwarehouse.v1.ITimestampValue[];
+
+ /**
+ * Creates a new TimestampArray instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns TimestampArray instance
+ */
+ public static create(properties?: google.cloud.contentwarehouse.v1.ITimestampArray): google.cloud.contentwarehouse.v1.TimestampArray;
+
+ /**
+ * Encodes the specified TimestampArray message. Does not implicitly {@link google.cloud.contentwarehouse.v1.TimestampArray.verify|verify} messages.
+ * @param message TimestampArray message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.contentwarehouse.v1.ITimestampArray, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified TimestampArray message, length delimited. Does not implicitly {@link google.cloud.contentwarehouse.v1.TimestampArray.verify|verify} messages.
+ * @param message TimestampArray message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.contentwarehouse.v1.ITimestampArray, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a TimestampArray message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns TimestampArray
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.contentwarehouse.v1.TimestampArray;
+
+ /**
+ * Decodes a TimestampArray message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns TimestampArray
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.contentwarehouse.v1.TimestampArray;
+
+ /**
+ * Verifies a TimestampArray message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a TimestampArray message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns TimestampArray
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.contentwarehouse.v1.TimestampArray;
+
+ /**
+ * Creates a plain object from a TimestampArray message. Also converts values to other types if specified.
+ * @param message TimestampArray
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.contentwarehouse.v1.TimestampArray, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this TimestampArray to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for TimestampArray
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a TimestampValue. */
+ interface ITimestampValue {
+
+ /** TimestampValue timestampValue */
+ timestampValue?: (google.protobuf.ITimestamp|null);
+
+ /** TimestampValue textValue */
+ textValue?: (string|null);
+ }
+
+ /** Represents a TimestampValue. */
+ class TimestampValue implements ITimestampValue {
+
+ /**
+ * Constructs a new TimestampValue.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.contentwarehouse.v1.ITimestampValue);
+
+ /** TimestampValue timestampValue. */
+ public timestampValue?: (google.protobuf.ITimestamp|null);
+
+ /** TimestampValue textValue. */
+ public textValue?: (string|null);
+
+ /** TimestampValue value. */
+ public value?: ("timestampValue"|"textValue");
+
+ /**
+ * Creates a new TimestampValue instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns TimestampValue instance
+ */
+ public static create(properties?: google.cloud.contentwarehouse.v1.ITimestampValue): google.cloud.contentwarehouse.v1.TimestampValue;
+
+ /**
+ * Encodes the specified TimestampValue message. Does not implicitly {@link google.cloud.contentwarehouse.v1.TimestampValue.verify|verify} messages.
+ * @param message TimestampValue message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.contentwarehouse.v1.ITimestampValue, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified TimestampValue message, length delimited. Does not implicitly {@link google.cloud.contentwarehouse.v1.TimestampValue.verify|verify} messages.
+ * @param message TimestampValue message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.contentwarehouse.v1.ITimestampValue, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a TimestampValue message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns TimestampValue
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.contentwarehouse.v1.TimestampValue;
+
+ /**
+ * Decodes a TimestampValue message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns TimestampValue
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.contentwarehouse.v1.TimestampValue;
+
+ /**
+ * Verifies a TimestampValue message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a TimestampValue message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns TimestampValue
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.contentwarehouse.v1.TimestampValue;
+
+ /**
+ * Creates a plain object from a TimestampValue message. Also converts values to other types if specified.
+ * @param message TimestampValue
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.contentwarehouse.v1.TimestampValue, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this TimestampValue to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for TimestampValue
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a PropertyArray. */
+ interface IPropertyArray {
+
+ /** PropertyArray properties */
+ properties?: (google.cloud.contentwarehouse.v1.IProperty[]|null);
+ }
+
+ /** Represents a PropertyArray. */
+ class PropertyArray implements IPropertyArray {
+
+ /**
+ * Constructs a new PropertyArray.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.contentwarehouse.v1.IPropertyArray);
+
+ /** PropertyArray properties. */
+ public properties: google.cloud.contentwarehouse.v1.IProperty[];
+
+ /**
+ * Creates a new PropertyArray instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns PropertyArray instance
+ */
+ public static create(properties?: google.cloud.contentwarehouse.v1.IPropertyArray): google.cloud.contentwarehouse.v1.PropertyArray;
+
+ /**
+ * Encodes the specified PropertyArray message. Does not implicitly {@link google.cloud.contentwarehouse.v1.PropertyArray.verify|verify} messages.
+ * @param message PropertyArray message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.contentwarehouse.v1.IPropertyArray, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified PropertyArray message, length delimited. Does not implicitly {@link google.cloud.contentwarehouse.v1.PropertyArray.verify|verify} messages.
+ * @param message PropertyArray message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.contentwarehouse.v1.IPropertyArray, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a PropertyArray message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns PropertyArray
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.contentwarehouse.v1.PropertyArray;
+
+ /**
+ * Decodes a PropertyArray message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns PropertyArray
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.contentwarehouse.v1.PropertyArray;
+
+ /**
+ * Verifies a PropertyArray message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a PropertyArray message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns PropertyArray
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.contentwarehouse.v1.PropertyArray;
+
+ /**
+ * Creates a plain object from a PropertyArray message. Also converts values to other types if specified.
+ * @param message PropertyArray
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.contentwarehouse.v1.PropertyArray, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this PropertyArray to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for PropertyArray
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a MapProperty. */
+ interface IMapProperty {
+
+ /** MapProperty fields */
+ fields?: ({ [k: string]: google.cloud.contentwarehouse.v1.IValue }|null);
+ }
+
+ /** Represents a MapProperty. */
+ class MapProperty implements IMapProperty {
+
+ /**
+ * Constructs a new MapProperty.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.contentwarehouse.v1.IMapProperty);
+
+ /** MapProperty fields. */
+ public fields: { [k: string]: google.cloud.contentwarehouse.v1.IValue };
+
+ /**
+ * Creates a new MapProperty instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns MapProperty instance
+ */
+ public static create(properties?: google.cloud.contentwarehouse.v1.IMapProperty): google.cloud.contentwarehouse.v1.MapProperty;
+
+ /**
+ * Encodes the specified MapProperty message. Does not implicitly {@link google.cloud.contentwarehouse.v1.MapProperty.verify|verify} messages.
+ * @param message MapProperty message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.contentwarehouse.v1.IMapProperty, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified MapProperty message, length delimited. Does not implicitly {@link google.cloud.contentwarehouse.v1.MapProperty.verify|verify} messages.
+ * @param message MapProperty message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.contentwarehouse.v1.IMapProperty, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a MapProperty message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns MapProperty
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.contentwarehouse.v1.MapProperty;
+
+ /**
+ * Decodes a MapProperty message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns MapProperty
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.contentwarehouse.v1.MapProperty;
+
+ /**
+ * Verifies a MapProperty message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a MapProperty message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns MapProperty
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.contentwarehouse.v1.MapProperty;
+
+ /**
+ * Creates a plain object from a MapProperty message. Also converts values to other types if specified.
+ * @param message MapProperty
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.contentwarehouse.v1.MapProperty, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this MapProperty to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for MapProperty
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Value. */
+ interface IValue {
+
+ /** Value floatValue */
+ floatValue?: (number|null);
+
+ /** Value intValue */
+ intValue?: (number|null);
+
+ /** Value stringValue */
+ stringValue?: (string|null);
+
+ /** Value enumValue */
+ enumValue?: (google.cloud.contentwarehouse.v1.IEnumValue|null);
+
+ /** Value datetimeValue */
+ datetimeValue?: (google.type.IDateTime|null);
+
+ /** Value timestampValue */
+ timestampValue?: (google.cloud.contentwarehouse.v1.ITimestampValue|null);
+
+ /** Value booleanValue */
+ booleanValue?: (boolean|null);
+ }
+
+ /** Represents a Value. */
+ class Value implements IValue {
+
+ /**
+ * Constructs a new Value.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.contentwarehouse.v1.IValue);
+
+ /** Value floatValue. */
+ public floatValue?: (number|null);
+
+ /** Value intValue. */
+ public intValue?: (number|null);
+
+ /** Value stringValue. */
+ public stringValue?: (string|null);
+
+ /** Value enumValue. */
+ public enumValue?: (google.cloud.contentwarehouse.v1.IEnumValue|null);
+
+ /** Value datetimeValue. */
+ public datetimeValue?: (google.type.IDateTime|null);
+
+ /** Value timestampValue. */
+ public timestampValue?: (google.cloud.contentwarehouse.v1.ITimestampValue|null);
+
+ /** Value booleanValue. */
+ public booleanValue?: (boolean|null);
+
+ /** Value kind. */
+ public kind?: ("floatValue"|"intValue"|"stringValue"|"enumValue"|"datetimeValue"|"timestampValue"|"booleanValue");
+
+ /**
+ * Creates a new Value instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Value instance
+ */
+ public static create(properties?: google.cloud.contentwarehouse.v1.IValue): google.cloud.contentwarehouse.v1.Value;
+
+ /**
+ * Encodes the specified Value message. Does not implicitly {@link google.cloud.contentwarehouse.v1.Value.verify|verify} messages.
+ * @param message Value message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.contentwarehouse.v1.IValue, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Value message, length delimited. Does not implicitly {@link google.cloud.contentwarehouse.v1.Value.verify|verify} messages.
+ * @param message Value message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.contentwarehouse.v1.IValue, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Value message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Value
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.contentwarehouse.v1.Value;
+
+ /**
+ * Decodes a Value message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Value
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.contentwarehouse.v1.Value;
+
+ /**
+ * Verifies a Value message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Value message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Value
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.contentwarehouse.v1.Value;
+
+ /**
+ * Creates a plain object from a Value message. Also converts values to other types if specified.
+ * @param message Value
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.contentwarehouse.v1.Value, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Value to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Value
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an EnumValue. */
+ interface IEnumValue {
+
+ /** EnumValue value */
+ value?: (string|null);
+ }
+
+ /** Represents an EnumValue. */
+ class EnumValue implements IEnumValue {
+
+ /**
+ * Constructs a new EnumValue.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.contentwarehouse.v1.IEnumValue);
+
+ /** EnumValue value. */
+ public value: string;
+
+ /**
+ * Creates a new EnumValue instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns EnumValue instance
+ */
+ public static create(properties?: google.cloud.contentwarehouse.v1.IEnumValue): google.cloud.contentwarehouse.v1.EnumValue;
+
+ /**
+ * Encodes the specified EnumValue message. Does not implicitly {@link google.cloud.contentwarehouse.v1.EnumValue.verify|verify} messages.
+ * @param message EnumValue message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.contentwarehouse.v1.IEnumValue, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified EnumValue message, length delimited. Does not implicitly {@link google.cloud.contentwarehouse.v1.EnumValue.verify|verify} messages.
+ * @param message EnumValue message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.contentwarehouse.v1.IEnumValue, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an EnumValue message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns EnumValue
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.contentwarehouse.v1.EnumValue;
+
+ /**
+ * Decodes an EnumValue message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns EnumValue
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.contentwarehouse.v1.EnumValue;
+
+ /**
+ * Verifies an EnumValue message.
+ * @param message Plain 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 EnumValue message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns EnumValue
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.contentwarehouse.v1.EnumValue;
+
+ /**
+ * Creates a plain object from an EnumValue message. Also converts values to other types if specified.
+ * @param message EnumValue
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.contentwarehouse.v1.EnumValue, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this EnumValue to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for EnumValue
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** RawDocumentFileType enum. */
+ enum RawDocumentFileType {
+ RAW_DOCUMENT_FILE_TYPE_UNSPECIFIED = 0,
+ RAW_DOCUMENT_FILE_TYPE_PDF = 1,
+ RAW_DOCUMENT_FILE_TYPE_DOCX = 2,
+ RAW_DOCUMENT_FILE_TYPE_XLSX = 3,
+ RAW_DOCUMENT_FILE_TYPE_PPTX = 4,
+ RAW_DOCUMENT_FILE_TYPE_TEXT = 5
+ }
+
+ /** Represents a DocumentLinkService */
+ class DocumentLinkService extends $protobuf.rpc.Service {
+
+ /**
+ * Constructs a new DocumentLinkService 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 DocumentLinkService 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): DocumentLinkService;
+
+ /**
+ * Calls ListLinkedTargets.
+ * @param request ListLinkedTargetsRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListLinkedTargetsResponse
+ */
+ public listLinkedTargets(request: google.cloud.contentwarehouse.v1.IListLinkedTargetsRequest, callback: google.cloud.contentwarehouse.v1.DocumentLinkService.ListLinkedTargetsCallback): void;
+
+ /**
+ * Calls ListLinkedTargets.
+ * @param request ListLinkedTargetsRequest message or plain object
+ * @returns Promise
+ */
+ public listLinkedTargets(request: google.cloud.contentwarehouse.v1.IListLinkedTargetsRequest): Promise;
+
+ /**
+ * Calls ListLinkedSources.
+ * @param request ListLinkedSourcesRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListLinkedSourcesResponse
+ */
+ public listLinkedSources(request: google.cloud.contentwarehouse.v1.IListLinkedSourcesRequest, callback: google.cloud.contentwarehouse.v1.DocumentLinkService.ListLinkedSourcesCallback): void;
+
+ /**
+ * Calls ListLinkedSources.
+ * @param request ListLinkedSourcesRequest message or plain object
+ * @returns Promise
+ */
+ public listLinkedSources(request: google.cloud.contentwarehouse.v1.IListLinkedSourcesRequest): Promise;
+
+ /**
+ * Calls CreateDocumentLink.
+ * @param request CreateDocumentLinkRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and DocumentLink
+ */
+ public createDocumentLink(request: google.cloud.contentwarehouse.v1.ICreateDocumentLinkRequest, callback: google.cloud.contentwarehouse.v1.DocumentLinkService.CreateDocumentLinkCallback): void;
+
+ /**
+ * Calls CreateDocumentLink.
+ * @param request CreateDocumentLinkRequest message or plain object
+ * @returns Promise
+ */
+ public createDocumentLink(request: google.cloud.contentwarehouse.v1.ICreateDocumentLinkRequest): Promise;
+
+ /**
+ * Calls DeleteDocumentLink.
+ * @param request DeleteDocumentLinkRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Empty
+ */
+ public deleteDocumentLink(request: google.cloud.contentwarehouse.v1.IDeleteDocumentLinkRequest, callback: google.cloud.contentwarehouse.v1.DocumentLinkService.DeleteDocumentLinkCallback): void;
+
+ /**
+ * Calls DeleteDocumentLink.
+ * @param request DeleteDocumentLinkRequest message or plain object
+ * @returns Promise
+ */
+ public deleteDocumentLink(request: google.cloud.contentwarehouse.v1.IDeleteDocumentLinkRequest): Promise;
+ }
+
+ namespace DocumentLinkService {
+
+ /**
+ * Callback as used by {@link google.cloud.contentwarehouse.v1.DocumentLinkService|listLinkedTargets}.
+ * @param error Error, if any
+ * @param [response] ListLinkedTargetsResponse
+ */
+ type ListLinkedTargetsCallback = (error: (Error|null), response?: google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.contentwarehouse.v1.DocumentLinkService|listLinkedSources}.
+ * @param error Error, if any
+ * @param [response] ListLinkedSourcesResponse
+ */
+ type ListLinkedSourcesCallback = (error: (Error|null), response?: google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.contentwarehouse.v1.DocumentLinkService|createDocumentLink}.
+ * @param error Error, if any
+ * @param [response] DocumentLink
+ */
+ type CreateDocumentLinkCallback = (error: (Error|null), response?: google.cloud.contentwarehouse.v1.DocumentLink) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.contentwarehouse.v1.DocumentLinkService|deleteDocumentLink}.
+ * @param error Error, if any
+ * @param [response] Empty
+ */
+ type DeleteDocumentLinkCallback = (error: (Error|null), response?: google.protobuf.Empty) => void;
+ }
+
+ /** Properties of a ListLinkedTargetsResponse. */
+ interface IListLinkedTargetsResponse {
+
+ /** ListLinkedTargetsResponse documentLinks */
+ documentLinks?: (google.cloud.contentwarehouse.v1.IDocumentLink[]|null);
+
+ /** ListLinkedTargetsResponse nextPageToken */
+ nextPageToken?: (string|null);
+ }
+
+ /** Represents a ListLinkedTargetsResponse. */
+ class ListLinkedTargetsResponse implements IListLinkedTargetsResponse {
+
+ /**
+ * Constructs a new ListLinkedTargetsResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.contentwarehouse.v1.IListLinkedTargetsResponse);
+
+ /** ListLinkedTargetsResponse documentLinks. */
+ public documentLinks: google.cloud.contentwarehouse.v1.IDocumentLink[];
+
+ /** ListLinkedTargetsResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /**
+ * Creates a new ListLinkedTargetsResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListLinkedTargetsResponse instance
+ */
+ public static create(properties?: google.cloud.contentwarehouse.v1.IListLinkedTargetsResponse): google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse;
+
+ /**
+ * Encodes the specified ListLinkedTargetsResponse message. Does not implicitly {@link google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse.verify|verify} messages.
+ * @param message ListLinkedTargetsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.contentwarehouse.v1.IListLinkedTargetsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListLinkedTargetsResponse message, length delimited. Does not implicitly {@link google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse.verify|verify} messages.
+ * @param message ListLinkedTargetsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.contentwarehouse.v1.IListLinkedTargetsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListLinkedTargetsResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListLinkedTargetsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse;
+
+ /**
+ * Decodes a ListLinkedTargetsResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListLinkedTargetsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse;
+
+ /**
+ * Verifies a ListLinkedTargetsResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListLinkedTargetsResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListLinkedTargetsResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse;
+
+ /**
+ * Creates a plain object from a ListLinkedTargetsResponse message. Also converts values to other types if specified.
+ * @param message ListLinkedTargetsResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListLinkedTargetsResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListLinkedTargetsResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListLinkedTargetsRequest. */
+ interface IListLinkedTargetsRequest {
+
+ /** ListLinkedTargetsRequest parent */
+ parent?: (string|null);
+
+ /** ListLinkedTargetsRequest requestMetadata */
+ requestMetadata?: (google.cloud.contentwarehouse.v1.IRequestMetadata|null);
+ }
+
+ /** Represents a ListLinkedTargetsRequest. */
+ class ListLinkedTargetsRequest implements IListLinkedTargetsRequest {
+
+ /**
+ * Constructs a new ListLinkedTargetsRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.contentwarehouse.v1.IListLinkedTargetsRequest);
+
+ /** ListLinkedTargetsRequest parent. */
+ public parent: string;
+
+ /** ListLinkedTargetsRequest requestMetadata. */
+ public requestMetadata?: (google.cloud.contentwarehouse.v1.IRequestMetadata|null);
+
+ /**
+ * Creates a new ListLinkedTargetsRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListLinkedTargetsRequest instance
+ */
+ public static create(properties?: google.cloud.contentwarehouse.v1.IListLinkedTargetsRequest): google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest;
+
+ /**
+ * Encodes the specified ListLinkedTargetsRequest message. Does not implicitly {@link google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest.verify|verify} messages.
+ * @param message ListLinkedTargetsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.contentwarehouse.v1.IListLinkedTargetsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListLinkedTargetsRequest message, length delimited. Does not implicitly {@link google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest.verify|verify} messages.
+ * @param message ListLinkedTargetsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.contentwarehouse.v1.IListLinkedTargetsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListLinkedTargetsRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListLinkedTargetsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest;
+
+ /**
+ * Decodes a ListLinkedTargetsRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListLinkedTargetsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest;
+
+ /**
+ * Verifies a ListLinkedTargetsRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListLinkedTargetsRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListLinkedTargetsRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest;
+
+ /**
+ * Creates a plain object from a ListLinkedTargetsRequest message. Also converts values to other types if specified.
+ * @param message ListLinkedTargetsRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListLinkedTargetsRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListLinkedTargetsRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListLinkedSourcesResponse. */
+ interface IListLinkedSourcesResponse {
+
+ /** ListLinkedSourcesResponse documentLinks */
+ documentLinks?: (google.cloud.contentwarehouse.v1.IDocumentLink[]|null);
+
+ /** ListLinkedSourcesResponse nextPageToken */
+ nextPageToken?: (string|null);
+ }
+
+ /** Represents a ListLinkedSourcesResponse. */
+ class ListLinkedSourcesResponse implements IListLinkedSourcesResponse {
+
+ /**
+ * Constructs a new ListLinkedSourcesResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.contentwarehouse.v1.IListLinkedSourcesResponse);
+
+ /** ListLinkedSourcesResponse documentLinks. */
+ public documentLinks: google.cloud.contentwarehouse.v1.IDocumentLink[];
+
+ /** ListLinkedSourcesResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /**
+ * Creates a new ListLinkedSourcesResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListLinkedSourcesResponse instance
+ */
+ public static create(properties?: google.cloud.contentwarehouse.v1.IListLinkedSourcesResponse): google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse;
+
+ /**
+ * Encodes the specified ListLinkedSourcesResponse message. Does not implicitly {@link google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse.verify|verify} messages.
+ * @param message ListLinkedSourcesResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.contentwarehouse.v1.IListLinkedSourcesResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListLinkedSourcesResponse message, length delimited. Does not implicitly {@link google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse.verify|verify} messages.
+ * @param message ListLinkedSourcesResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.contentwarehouse.v1.IListLinkedSourcesResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListLinkedSourcesResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListLinkedSourcesResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse;
+
+ /**
+ * Decodes a ListLinkedSourcesResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListLinkedSourcesResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse;
+
+ /**
+ * Verifies a ListLinkedSourcesResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListLinkedSourcesResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListLinkedSourcesResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse;
+
+ /**
+ * Creates a plain object from a ListLinkedSourcesResponse message. Also converts values to other types if specified.
+ * @param message ListLinkedSourcesResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListLinkedSourcesResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListLinkedSourcesResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListLinkedSourcesRequest. */
+ interface IListLinkedSourcesRequest {
+
+ /** ListLinkedSourcesRequest parent */
+ parent?: (string|null);
+
+ /** ListLinkedSourcesRequest pageSize */
+ pageSize?: (number|null);
+
+ /** ListLinkedSourcesRequest pageToken */
+ pageToken?: (string|null);
+
+ /** ListLinkedSourcesRequest requestMetadata */
+ requestMetadata?: (google.cloud.contentwarehouse.v1.IRequestMetadata|null);
+ }
+
+ /** Represents a ListLinkedSourcesRequest. */
+ class ListLinkedSourcesRequest implements IListLinkedSourcesRequest {
+
+ /**
+ * Constructs a new ListLinkedSourcesRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.contentwarehouse.v1.IListLinkedSourcesRequest);
+
+ /** ListLinkedSourcesRequest parent. */
+ public parent: string;
+
+ /** ListLinkedSourcesRequest pageSize. */
+ public pageSize: number;
+
+ /** ListLinkedSourcesRequest pageToken. */
+ public pageToken: string;
+
+ /** ListLinkedSourcesRequest requestMetadata. */
+ public requestMetadata?: (google.cloud.contentwarehouse.v1.IRequestMetadata|null);
+
+ /**
+ * Creates a new ListLinkedSourcesRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListLinkedSourcesRequest instance
+ */
+ public static create(properties?: google.cloud.contentwarehouse.v1.IListLinkedSourcesRequest): google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest;
+
+ /**
+ * Encodes the specified ListLinkedSourcesRequest message. Does not implicitly {@link google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest.verify|verify} messages.
+ * @param message ListLinkedSourcesRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.contentwarehouse.v1.IListLinkedSourcesRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListLinkedSourcesRequest message, length delimited. Does not implicitly {@link google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest.verify|verify} messages.
+ * @param message ListLinkedSourcesRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.contentwarehouse.v1.IListLinkedSourcesRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListLinkedSourcesRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListLinkedSourcesRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest;
+
+ /**
+ * Decodes a ListLinkedSourcesRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListLinkedSourcesRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest;
+
+ /**
+ * Verifies a ListLinkedSourcesRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListLinkedSourcesRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListLinkedSourcesRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest;
+
+ /**
+ * Creates a plain object from a ListLinkedSourcesRequest message. Also converts values to other types if specified.
+ * @param message ListLinkedSourcesRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListLinkedSourcesRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListLinkedSourcesRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DocumentLink. */
+ interface IDocumentLink {
+
+ /** DocumentLink name */
+ name?: (string|null);
+
+ /** DocumentLink sourceDocumentReference */
+ sourceDocumentReference?: (google.cloud.contentwarehouse.v1.IDocumentReference|null);
+
+ /** DocumentLink targetDocumentReference */
+ targetDocumentReference?: (google.cloud.contentwarehouse.v1.IDocumentReference|null);
+
+ /** DocumentLink description */
+ description?: (string|null);
+
+ /** DocumentLink updateTime */
+ updateTime?: (google.protobuf.ITimestamp|null);
+
+ /** DocumentLink createTime */
+ createTime?: (google.protobuf.ITimestamp|null);
+
+ /** DocumentLink state */
+ state?: (google.cloud.contentwarehouse.v1.DocumentLink.State|keyof typeof google.cloud.contentwarehouse.v1.DocumentLink.State|null);
+ }
+
+ /** Represents a DocumentLink. */
+ class DocumentLink implements IDocumentLink {
+
+ /**
+ * Constructs a new DocumentLink.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.contentwarehouse.v1.IDocumentLink);
+
+ /** DocumentLink name. */
+ public name: string;
+
+ /** DocumentLink sourceDocumentReference. */
+ public sourceDocumentReference?: (google.cloud.contentwarehouse.v1.IDocumentReference|null);
+
+ /** DocumentLink targetDocumentReference. */
+ public targetDocumentReference?: (google.cloud.contentwarehouse.v1.IDocumentReference|null);
+
+ /** DocumentLink description. */
+ public description: string;
+
+ /** DocumentLink updateTime. */
+ public updateTime?: (google.protobuf.ITimestamp|null);
+
+ /** DocumentLink createTime. */
+ public createTime?: (google.protobuf.ITimestamp|null);
+
+ /** DocumentLink state. */
+ public state: (google.cloud.contentwarehouse.v1.DocumentLink.State|keyof typeof google.cloud.contentwarehouse.v1.DocumentLink.State);
+
+ /**
+ * Creates a new DocumentLink instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DocumentLink instance
+ */
+ public static create(properties?: google.cloud.contentwarehouse.v1.IDocumentLink): google.cloud.contentwarehouse.v1.DocumentLink;
+
+ /**
+ * Encodes the specified DocumentLink message. Does not implicitly {@link google.cloud.contentwarehouse.v1.DocumentLink.verify|verify} messages.
+ * @param message DocumentLink message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.contentwarehouse.v1.IDocumentLink, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DocumentLink message, length delimited. Does not implicitly {@link google.cloud.contentwarehouse.v1.DocumentLink.verify|verify} messages.
+ * @param message DocumentLink message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.contentwarehouse.v1.IDocumentLink, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DocumentLink message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DocumentLink
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.contentwarehouse.v1.DocumentLink;
+
+ /**
+ * Decodes a DocumentLink message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DocumentLink
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.contentwarehouse.v1.DocumentLink;
+
+ /**
+ * Verifies a DocumentLink message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DocumentLink message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DocumentLink
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.contentwarehouse.v1.DocumentLink;
+
+ /**
+ * Creates a plain object from a DocumentLink message. Also converts values to other types if specified.
+ * @param message DocumentLink
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.contentwarehouse.v1.DocumentLink, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DocumentLink to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DocumentLink
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace DocumentLink {
+
+ /** State enum. */
+ enum State {
+ STATE_UNSPECIFIED = 0,
+ ACTIVE = 1,
+ SOFT_DELETED = 2
+ }
+ }
+
+ /** Properties of a CreateDocumentLinkRequest. */
+ interface ICreateDocumentLinkRequest {
+
+ /** CreateDocumentLinkRequest parent */
+ parent?: (string|null);
+
+ /** CreateDocumentLinkRequest documentLink */
+ documentLink?: (google.cloud.contentwarehouse.v1.IDocumentLink|null);
+
+ /** CreateDocumentLinkRequest requestMetadata */
+ requestMetadata?: (google.cloud.contentwarehouse.v1.IRequestMetadata|null);
+ }
+
+ /** Represents a CreateDocumentLinkRequest. */
+ class CreateDocumentLinkRequest implements ICreateDocumentLinkRequest {
+
+ /**
+ * Constructs a new CreateDocumentLinkRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.contentwarehouse.v1.ICreateDocumentLinkRequest);
+
+ /** CreateDocumentLinkRequest parent. */
+ public parent: string;
+
+ /** CreateDocumentLinkRequest documentLink. */
+ public documentLink?: (google.cloud.contentwarehouse.v1.IDocumentLink|null);
+
+ /** CreateDocumentLinkRequest requestMetadata. */
+ public requestMetadata?: (google.cloud.contentwarehouse.v1.IRequestMetadata|null);
+
+ /**
+ * Creates a new CreateDocumentLinkRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CreateDocumentLinkRequest instance
+ */
+ public static create(properties?: google.cloud.contentwarehouse.v1.ICreateDocumentLinkRequest): google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest;
+
+ /**
+ * Encodes the specified CreateDocumentLinkRequest message. Does not implicitly {@link google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest.verify|verify} messages.
+ * @param message CreateDocumentLinkRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.contentwarehouse.v1.ICreateDocumentLinkRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CreateDocumentLinkRequest message, length delimited. Does not implicitly {@link google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest.verify|verify} messages.
+ * @param message CreateDocumentLinkRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.contentwarehouse.v1.ICreateDocumentLinkRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CreateDocumentLinkRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CreateDocumentLinkRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest;
+
+ /**
+ * Decodes a CreateDocumentLinkRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CreateDocumentLinkRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest;
+
+ /**
+ * Verifies a CreateDocumentLinkRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a CreateDocumentLinkRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CreateDocumentLinkRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest;
+
+ /**
+ * Creates a plain object from a CreateDocumentLinkRequest message. Also converts values to other types if specified.
+ * @param message CreateDocumentLinkRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CreateDocumentLinkRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CreateDocumentLinkRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DeleteDocumentLinkRequest. */
+ interface IDeleteDocumentLinkRequest {
+
+ /** DeleteDocumentLinkRequest name */
+ name?: (string|null);
+
+ /** DeleteDocumentLinkRequest requestMetadata */
+ requestMetadata?: (google.cloud.contentwarehouse.v1.IRequestMetadata|null);
+ }
+
+ /** Represents a DeleteDocumentLinkRequest. */
+ class DeleteDocumentLinkRequest implements IDeleteDocumentLinkRequest {
+
+ /**
+ * Constructs a new DeleteDocumentLinkRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.contentwarehouse.v1.IDeleteDocumentLinkRequest);
+
+ /** DeleteDocumentLinkRequest name. */
+ public name: string;
+
+ /** DeleteDocumentLinkRequest requestMetadata. */
+ public requestMetadata?: (google.cloud.contentwarehouse.v1.IRequestMetadata|null);
+
+ /**
+ * Creates a new DeleteDocumentLinkRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DeleteDocumentLinkRequest instance
+ */
+ public static create(properties?: google.cloud.contentwarehouse.v1.IDeleteDocumentLinkRequest): google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest;
+
+ /**
+ * Encodes the specified DeleteDocumentLinkRequest message. Does not implicitly {@link google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest.verify|verify} messages.
+ * @param message DeleteDocumentLinkRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.contentwarehouse.v1.IDeleteDocumentLinkRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DeleteDocumentLinkRequest message, length delimited. Does not implicitly {@link google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest.verify|verify} messages.
+ * @param message DeleteDocumentLinkRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.contentwarehouse.v1.IDeleteDocumentLinkRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DeleteDocumentLinkRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DeleteDocumentLinkRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest;
+
+ /**
+ * Decodes a DeleteDocumentLinkRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DeleteDocumentLinkRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest;
+
+ /**
+ * Verifies a DeleteDocumentLinkRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DeleteDocumentLinkRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DeleteDocumentLinkRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest;
+
+ /**
+ * Creates a plain object from a DeleteDocumentLinkRequest message. Also converts values to other types if specified.
+ * @param message DeleteDocumentLinkRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DeleteDocumentLinkRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DeleteDocumentLinkRequest
+ * @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 name */
+ name?: (string|null);
+
+ /** DocumentSchema displayName */
+ displayName?: (string|null);
+
+ /** DocumentSchema propertyDefinitions */
+ propertyDefinitions?: (google.cloud.contentwarehouse.v1.IPropertyDefinition[]|null);
+
+ /** DocumentSchema documentIsFolder */
+ documentIsFolder?: (boolean|null);
+
+ /** DocumentSchema updateTime */
+ updateTime?: (google.protobuf.ITimestamp|null);
+
+ /** DocumentSchema createTime */
+ createTime?: (google.protobuf.ITimestamp|null);
+
+ /** DocumentSchema description */
+ description?: (string|null);
+ }
+
+ /** Represents a DocumentSchema. */
+ class DocumentSchema implements IDocumentSchema {
+
+ /**
+ * Constructs a new DocumentSchema.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.contentwarehouse.v1.IDocumentSchema);
+
+ /** DocumentSchema name. */
+ public name: string;
+
+ /** DocumentSchema displayName. */
+ public displayName: string;
+
+ /** DocumentSchema propertyDefinitions. */
+ public propertyDefinitions: google.cloud.contentwarehouse.v1.IPropertyDefinition[];
+
+ /** DocumentSchema documentIsFolder. */
+ public documentIsFolder: boolean;
+
+ /** DocumentSchema updateTime. */
+ public updateTime?: (google.protobuf.ITimestamp|null);
+
+ /** DocumentSchema createTime. */
+ public createTime?: (google.protobuf.ITimestamp|null);
+
+ /** DocumentSchema description. */
+ public description: string;
+
+ /**
+ * Creates a new DocumentSchema instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DocumentSchema instance
+ */
+ public static create(properties?: google.cloud.contentwarehouse.v1.IDocumentSchema): google.cloud.contentwarehouse.v1.DocumentSchema;
+
+ /**
+ * Encodes the specified DocumentSchema message. Does not implicitly {@link google.cloud.contentwarehouse.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.contentwarehouse.v1.IDocumentSchema, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DocumentSchema message, length delimited. Does not implicitly {@link google.cloud.contentwarehouse.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.contentwarehouse.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.contentwarehouse.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.contentwarehouse.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.contentwarehouse.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.contentwarehouse.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;
+ }
+
+ /** Properties of a PropertyDefinition. */
+ interface IPropertyDefinition {
+
+ /** PropertyDefinition name */
+ name?: (string|null);
+
+ /** PropertyDefinition displayName */
+ displayName?: (string|null);
+
+ /** PropertyDefinition isRepeatable */
+ isRepeatable?: (boolean|null);
+
+ /** PropertyDefinition isFilterable */
+ isFilterable?: (boolean|null);
+
+ /** PropertyDefinition isSearchable */
+ isSearchable?: (boolean|null);
+
+ /** PropertyDefinition isMetadata */
+ isMetadata?: (boolean|null);
+
+ /** PropertyDefinition isRequired */
+ isRequired?: (boolean|null);
+
+ /** PropertyDefinition integerTypeOptions */
+ integerTypeOptions?: (google.cloud.contentwarehouse.v1.IIntegerTypeOptions|null);
+
+ /** PropertyDefinition floatTypeOptions */
+ floatTypeOptions?: (google.cloud.contentwarehouse.v1.IFloatTypeOptions|null);
+
+ /** PropertyDefinition textTypeOptions */
+ textTypeOptions?: (google.cloud.contentwarehouse.v1.ITextTypeOptions|null);
+
+ /** PropertyDefinition propertyTypeOptions */
+ propertyTypeOptions?: (google.cloud.contentwarehouse.v1.IPropertyTypeOptions|null);
+
+ /** PropertyDefinition enumTypeOptions */
+ enumTypeOptions?: (google.cloud.contentwarehouse.v1.IEnumTypeOptions|null);
+
+ /** PropertyDefinition dateTimeTypeOptions */
+ dateTimeTypeOptions?: (google.cloud.contentwarehouse.v1.IDateTimeTypeOptions|null);
+
+ /** PropertyDefinition mapTypeOptions */
+ mapTypeOptions?: (google.cloud.contentwarehouse.v1.IMapTypeOptions|null);
+
+ /** PropertyDefinition timestampTypeOptions */
+ timestampTypeOptions?: (google.cloud.contentwarehouse.v1.ITimestampTypeOptions|null);
+ }
+
+ /** Represents a PropertyDefinition. */
+ class PropertyDefinition implements IPropertyDefinition {
+
+ /**
+ * Constructs a new PropertyDefinition.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.contentwarehouse.v1.IPropertyDefinition);
+
+ /** PropertyDefinition name. */
+ public name: string;
+
+ /** PropertyDefinition displayName. */
+ public displayName: string;
+
+ /** PropertyDefinition isRepeatable. */
+ public isRepeatable: boolean;
+
+ /** PropertyDefinition isFilterable. */
+ public isFilterable: boolean;
+
+ /** PropertyDefinition isSearchable. */
+ public isSearchable: boolean;
+
+ /** PropertyDefinition isMetadata. */
+ public isMetadata: boolean;
+
+ /** PropertyDefinition isRequired. */
+ public isRequired: boolean;
+
+ /** PropertyDefinition integerTypeOptions. */
+ public integerTypeOptions?: (google.cloud.contentwarehouse.v1.IIntegerTypeOptions|null);
+
+ /** PropertyDefinition floatTypeOptions. */
+ public floatTypeOptions?: (google.cloud.contentwarehouse.v1.IFloatTypeOptions|null);
+
+ /** PropertyDefinition textTypeOptions. */
+ public textTypeOptions?: (google.cloud.contentwarehouse.v1.ITextTypeOptions|null);
+
+ /** PropertyDefinition propertyTypeOptions. */
+ public propertyTypeOptions?: (google.cloud.contentwarehouse.v1.IPropertyTypeOptions|null);
+
+ /** PropertyDefinition enumTypeOptions. */
+ public enumTypeOptions?: (google.cloud.contentwarehouse.v1.IEnumTypeOptions|null);
+
+ /** PropertyDefinition dateTimeTypeOptions. */
+ public dateTimeTypeOptions?: (google.cloud.contentwarehouse.v1.IDateTimeTypeOptions|null);
+
+ /** PropertyDefinition mapTypeOptions. */
+ public mapTypeOptions?: (google.cloud.contentwarehouse.v1.IMapTypeOptions|null);
+
+ /** PropertyDefinition timestampTypeOptions. */
+ public timestampTypeOptions?: (google.cloud.contentwarehouse.v1.ITimestampTypeOptions|null);
+
+ /** PropertyDefinition valueTypeOptions. */
+ public valueTypeOptions?: ("integerTypeOptions"|"floatTypeOptions"|"textTypeOptions"|"propertyTypeOptions"|"enumTypeOptions"|"dateTimeTypeOptions"|"mapTypeOptions"|"timestampTypeOptions");
+
+ /**
+ * Creates a new PropertyDefinition instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns PropertyDefinition instance
+ */
+ public static create(properties?: google.cloud.contentwarehouse.v1.IPropertyDefinition): google.cloud.contentwarehouse.v1.PropertyDefinition;
+
+ /**
+ * Encodes the specified PropertyDefinition message. Does not implicitly {@link google.cloud.contentwarehouse.v1.PropertyDefinition.verify|verify} messages.
+ * @param message PropertyDefinition message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.contentwarehouse.v1.IPropertyDefinition, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified PropertyDefinition message, length delimited. Does not implicitly {@link google.cloud.contentwarehouse.v1.PropertyDefinition.verify|verify} messages.
+ * @param message PropertyDefinition message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.contentwarehouse.v1.IPropertyDefinition, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a PropertyDefinition message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns PropertyDefinition
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.contentwarehouse.v1.PropertyDefinition;
+
+ /**
+ * Decodes a PropertyDefinition message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns PropertyDefinition
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.contentwarehouse.v1.PropertyDefinition;
+
+ /**
+ * Verifies a PropertyDefinition message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a PropertyDefinition message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns PropertyDefinition
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.contentwarehouse.v1.PropertyDefinition;
+
+ /**
+ * Creates a plain object from a PropertyDefinition message. Also converts values to other types if specified.
+ * @param message PropertyDefinition
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.contentwarehouse.v1.PropertyDefinition, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this PropertyDefinition to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for PropertyDefinition
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an IntegerTypeOptions. */
+ interface IIntegerTypeOptions {
+ }
+
+ /** Represents an IntegerTypeOptions. */
+ class IntegerTypeOptions implements IIntegerTypeOptions {
+
+ /**
+ * Constructs a new IntegerTypeOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.contentwarehouse.v1.IIntegerTypeOptions);
+
+ /**
+ * Creates a new IntegerTypeOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns IntegerTypeOptions instance
+ */
+ public static create(properties?: google.cloud.contentwarehouse.v1.IIntegerTypeOptions): google.cloud.contentwarehouse.v1.IntegerTypeOptions;
+
+ /**
+ * Encodes the specified IntegerTypeOptions message. Does not implicitly {@link google.cloud.contentwarehouse.v1.IntegerTypeOptions.verify|verify} messages.
+ * @param message IntegerTypeOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.contentwarehouse.v1.IIntegerTypeOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified IntegerTypeOptions message, length delimited. Does not implicitly {@link google.cloud.contentwarehouse.v1.IntegerTypeOptions.verify|verify} messages.
+ * @param message IntegerTypeOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.contentwarehouse.v1.IIntegerTypeOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an IntegerTypeOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns IntegerTypeOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.contentwarehouse.v1.IntegerTypeOptions;
+
+ /**
+ * Decodes an IntegerTypeOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns IntegerTypeOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.contentwarehouse.v1.IntegerTypeOptions;
+
+ /**
+ * Verifies an IntegerTypeOptions message.
+ * @param message Plain 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 IntegerTypeOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns IntegerTypeOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.contentwarehouse.v1.IntegerTypeOptions;
+
+ /**
+ * Creates a plain object from an IntegerTypeOptions message. Also converts values to other types if specified.
+ * @param message IntegerTypeOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.contentwarehouse.v1.IntegerTypeOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this IntegerTypeOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for IntegerTypeOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a FloatTypeOptions. */
+ interface IFloatTypeOptions {
+ }
+
+ /** Represents a FloatTypeOptions. */
+ class FloatTypeOptions implements IFloatTypeOptions {
+
+ /**
+ * Constructs a new FloatTypeOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.contentwarehouse.v1.IFloatTypeOptions);
+
+ /**
+ * Creates a new FloatTypeOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FloatTypeOptions instance
+ */
+ public static create(properties?: google.cloud.contentwarehouse.v1.IFloatTypeOptions): google.cloud.contentwarehouse.v1.FloatTypeOptions;
+
+ /**
+ * Encodes the specified FloatTypeOptions message. Does not implicitly {@link google.cloud.contentwarehouse.v1.FloatTypeOptions.verify|verify} messages.
+ * @param message FloatTypeOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.contentwarehouse.v1.IFloatTypeOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FloatTypeOptions message, length delimited. Does not implicitly {@link google.cloud.contentwarehouse.v1.FloatTypeOptions.verify|verify} messages.
+ * @param message FloatTypeOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.contentwarehouse.v1.IFloatTypeOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FloatTypeOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FloatTypeOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.contentwarehouse.v1.FloatTypeOptions;
+
+ /**
+ * Decodes a FloatTypeOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FloatTypeOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.contentwarehouse.v1.FloatTypeOptions;
+
+ /**
+ * Verifies a FloatTypeOptions message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FloatTypeOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FloatTypeOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.contentwarehouse.v1.FloatTypeOptions;
+
+ /**
+ * Creates a plain object from a FloatTypeOptions message. Also converts values to other types if specified.
+ * @param message FloatTypeOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.contentwarehouse.v1.FloatTypeOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FloatTypeOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FloatTypeOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a TextTypeOptions. */
+ interface ITextTypeOptions {
+ }
+
+ /** Represents a TextTypeOptions. */
+ class TextTypeOptions implements ITextTypeOptions {
+
+ /**
+ * Constructs a new TextTypeOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.contentwarehouse.v1.ITextTypeOptions);
+
+ /**
+ * Creates a new TextTypeOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns TextTypeOptions instance
+ */
+ public static create(properties?: google.cloud.contentwarehouse.v1.ITextTypeOptions): google.cloud.contentwarehouse.v1.TextTypeOptions;
+
+ /**
+ * Encodes the specified TextTypeOptions message. Does not implicitly {@link google.cloud.contentwarehouse.v1.TextTypeOptions.verify|verify} messages.
+ * @param message TextTypeOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.contentwarehouse.v1.ITextTypeOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified TextTypeOptions message, length delimited. Does not implicitly {@link google.cloud.contentwarehouse.v1.TextTypeOptions.verify|verify} messages.
+ * @param message TextTypeOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.contentwarehouse.v1.ITextTypeOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a TextTypeOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns TextTypeOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.contentwarehouse.v1.TextTypeOptions;
+
+ /**
+ * Decodes a TextTypeOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns TextTypeOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.contentwarehouse.v1.TextTypeOptions;
+
+ /**
+ * Verifies a TextTypeOptions message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a TextTypeOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns TextTypeOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.contentwarehouse.v1.TextTypeOptions;
+
+ /**
+ * Creates a plain object from a TextTypeOptions message. Also converts values to other types if specified.
+ * @param message TextTypeOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.contentwarehouse.v1.TextTypeOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this TextTypeOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for TextTypeOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DateTimeTypeOptions. */
+ interface IDateTimeTypeOptions {
+ }
+
+ /** Represents a DateTimeTypeOptions. */
+ class DateTimeTypeOptions implements IDateTimeTypeOptions {
+
+ /**
+ * Constructs a new DateTimeTypeOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.contentwarehouse.v1.IDateTimeTypeOptions);
+
+ /**
+ * Creates a new DateTimeTypeOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DateTimeTypeOptions instance
+ */
+ public static create(properties?: google.cloud.contentwarehouse.v1.IDateTimeTypeOptions): google.cloud.contentwarehouse.v1.DateTimeTypeOptions;
+
+ /**
+ * Encodes the specified DateTimeTypeOptions message. Does not implicitly {@link google.cloud.contentwarehouse.v1.DateTimeTypeOptions.verify|verify} messages.
+ * @param message DateTimeTypeOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.contentwarehouse.v1.IDateTimeTypeOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DateTimeTypeOptions message, length delimited. Does not implicitly {@link google.cloud.contentwarehouse.v1.DateTimeTypeOptions.verify|verify} messages.
+ * @param message DateTimeTypeOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.contentwarehouse.v1.IDateTimeTypeOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DateTimeTypeOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DateTimeTypeOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.contentwarehouse.v1.DateTimeTypeOptions;
+
+ /**
+ * Decodes a DateTimeTypeOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DateTimeTypeOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.contentwarehouse.v1.DateTimeTypeOptions;
+
+ /**
+ * Verifies a DateTimeTypeOptions message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DateTimeTypeOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DateTimeTypeOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.contentwarehouse.v1.DateTimeTypeOptions;
+
+ /**
+ * Creates a plain object from a DateTimeTypeOptions message. Also converts values to other types if specified.
+ * @param message DateTimeTypeOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.contentwarehouse.v1.DateTimeTypeOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DateTimeTypeOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DateTimeTypeOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a MapTypeOptions. */
+ interface IMapTypeOptions {
+ }
+
+ /** Represents a MapTypeOptions. */
+ class MapTypeOptions implements IMapTypeOptions {
+
+ /**
+ * Constructs a new MapTypeOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.contentwarehouse.v1.IMapTypeOptions);
+
+ /**
+ * Creates a new MapTypeOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns MapTypeOptions instance
+ */
+ public static create(properties?: google.cloud.contentwarehouse.v1.IMapTypeOptions): google.cloud.contentwarehouse.v1.MapTypeOptions;
+
+ /**
+ * Encodes the specified MapTypeOptions message. Does not implicitly {@link google.cloud.contentwarehouse.v1.MapTypeOptions.verify|verify} messages.
+ * @param message MapTypeOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.contentwarehouse.v1.IMapTypeOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified MapTypeOptions message, length delimited. Does not implicitly {@link google.cloud.contentwarehouse.v1.MapTypeOptions.verify|verify} messages.
+ * @param message MapTypeOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.contentwarehouse.v1.IMapTypeOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a MapTypeOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns MapTypeOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.contentwarehouse.v1.MapTypeOptions;
+
+ /**
+ * Decodes a MapTypeOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns MapTypeOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.contentwarehouse.v1.MapTypeOptions;
+
+ /**
+ * Verifies a MapTypeOptions message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a MapTypeOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns MapTypeOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.contentwarehouse.v1.MapTypeOptions;
+
+ /**
+ * Creates a plain object from a MapTypeOptions message. Also converts values to other types if specified.
+ * @param message MapTypeOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.contentwarehouse.v1.MapTypeOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this MapTypeOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for MapTypeOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a TimestampTypeOptions. */
+ interface ITimestampTypeOptions {
+ }
+
+ /** Represents a TimestampTypeOptions. */
+ class TimestampTypeOptions implements ITimestampTypeOptions {
+
+ /**
+ * Constructs a new TimestampTypeOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.contentwarehouse.v1.ITimestampTypeOptions);
+
+ /**
+ * Creates a new TimestampTypeOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns TimestampTypeOptions instance
+ */
+ public static create(properties?: google.cloud.contentwarehouse.v1.ITimestampTypeOptions): google.cloud.contentwarehouse.v1.TimestampTypeOptions;
+
+ /**
+ * Encodes the specified TimestampTypeOptions message. Does not implicitly {@link google.cloud.contentwarehouse.v1.TimestampTypeOptions.verify|verify} messages.
+ * @param message TimestampTypeOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.contentwarehouse.v1.ITimestampTypeOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified TimestampTypeOptions message, length delimited. Does not implicitly {@link google.cloud.contentwarehouse.v1.TimestampTypeOptions.verify|verify} messages.
+ * @param message TimestampTypeOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.contentwarehouse.v1.ITimestampTypeOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a TimestampTypeOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns TimestampTypeOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.contentwarehouse.v1.TimestampTypeOptions;
+
+ /**
+ * Decodes a TimestampTypeOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns TimestampTypeOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.contentwarehouse.v1.TimestampTypeOptions;
+
+ /**
+ * Verifies a TimestampTypeOptions message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a TimestampTypeOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns TimestampTypeOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.contentwarehouse.v1.TimestampTypeOptions;
+
+ /**
+ * Creates a plain object from a TimestampTypeOptions message. Also converts values to other types if specified.
+ * @param message TimestampTypeOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.contentwarehouse.v1.TimestampTypeOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this TimestampTypeOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for TimestampTypeOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a PropertyTypeOptions. */
+ interface IPropertyTypeOptions {
+
+ /** PropertyTypeOptions propertyDefinitions */
+ propertyDefinitions?: (google.cloud.contentwarehouse.v1.IPropertyDefinition[]|null);
+ }
+
+ /** Represents a PropertyTypeOptions. */
+ class PropertyTypeOptions implements IPropertyTypeOptions {
+
+ /**
+ * Constructs a new PropertyTypeOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.contentwarehouse.v1.IPropertyTypeOptions);
+
+ /** PropertyTypeOptions propertyDefinitions. */
+ public propertyDefinitions: google.cloud.contentwarehouse.v1.IPropertyDefinition[];
+
+ /**
+ * Creates a new PropertyTypeOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns PropertyTypeOptions instance
+ */
+ public static create(properties?: google.cloud.contentwarehouse.v1.IPropertyTypeOptions): google.cloud.contentwarehouse.v1.PropertyTypeOptions;
+
+ /**
+ * Encodes the specified PropertyTypeOptions message. Does not implicitly {@link google.cloud.contentwarehouse.v1.PropertyTypeOptions.verify|verify} messages.
+ * @param message PropertyTypeOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.contentwarehouse.v1.IPropertyTypeOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified PropertyTypeOptions message, length delimited. Does not implicitly {@link google.cloud.contentwarehouse.v1.PropertyTypeOptions.verify|verify} messages.
+ * @param message PropertyTypeOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.contentwarehouse.v1.IPropertyTypeOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a PropertyTypeOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns PropertyTypeOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.contentwarehouse.v1.PropertyTypeOptions;
+
+ /**
+ * Decodes a PropertyTypeOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns PropertyTypeOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.contentwarehouse.v1.PropertyTypeOptions;
+
+ /**
+ * Verifies a PropertyTypeOptions message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a PropertyTypeOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns PropertyTypeOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.contentwarehouse.v1.PropertyTypeOptions;
+
+ /**
+ * Creates a plain object from a PropertyTypeOptions message. Also converts values to other types if specified.
+ * @param message PropertyTypeOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.contentwarehouse.v1.PropertyTypeOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this PropertyTypeOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for PropertyTypeOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an EnumTypeOptions. */
+ interface IEnumTypeOptions {
+
+ /** EnumTypeOptions possibleValues */
+ possibleValues?: (string[]|null);
+
+ /** EnumTypeOptions validationCheckDisabled */
+ validationCheckDisabled?: (boolean|null);
+ }
+
+ /** Represents an EnumTypeOptions. */
+ class EnumTypeOptions implements IEnumTypeOptions {
+
+ /**
+ * Constructs a new EnumTypeOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.contentwarehouse.v1.IEnumTypeOptions);
+
+ /** EnumTypeOptions possibleValues. */
+ public possibleValues: string[];
+
+ /** EnumTypeOptions validationCheckDisabled. */
+ public validationCheckDisabled: boolean;
+
+ /**
+ * Creates a new EnumTypeOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns EnumTypeOptions instance
+ */
+ public static create(properties?: google.cloud.contentwarehouse.v1.IEnumTypeOptions): google.cloud.contentwarehouse.v1.EnumTypeOptions;
+
+ /**
+ * Encodes the specified EnumTypeOptions message. Does not implicitly {@link google.cloud.contentwarehouse.v1.EnumTypeOptions.verify|verify} messages.
+ * @param message EnumTypeOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.contentwarehouse.v1.IEnumTypeOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified EnumTypeOptions message, length delimited. Does not implicitly {@link google.cloud.contentwarehouse.v1.EnumTypeOptions.verify|verify} messages.
+ * @param message EnumTypeOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.contentwarehouse.v1.IEnumTypeOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an EnumTypeOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns EnumTypeOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.contentwarehouse.v1.EnumTypeOptions;
+
+ /**
+ * Decodes an EnumTypeOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns EnumTypeOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.contentwarehouse.v1.EnumTypeOptions;
+
+ /**
+ * Verifies an EnumTypeOptions message.
+ * @param message Plain 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 EnumTypeOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns EnumTypeOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.contentwarehouse.v1.EnumTypeOptions;
+
+ /**
+ * Creates a plain object from an EnumTypeOptions message. Also converts values to other types if specified.
+ * @param message EnumTypeOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.contentwarehouse.v1.EnumTypeOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this EnumTypeOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for EnumTypeOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Represents a DocumentSchemaService */
+ class DocumentSchemaService extends $protobuf.rpc.Service {
+
+ /**
+ * Constructs a new DocumentSchemaService 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 DocumentSchemaService 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): DocumentSchemaService;
+
+ /**
+ * Calls CreateDocumentSchema.
+ * @param request CreateDocumentSchemaRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and DocumentSchema
+ */
+ public createDocumentSchema(request: google.cloud.contentwarehouse.v1.ICreateDocumentSchemaRequest, callback: google.cloud.contentwarehouse.v1.DocumentSchemaService.CreateDocumentSchemaCallback): void;
+
+ /**
+ * Calls CreateDocumentSchema.
+ * @param request CreateDocumentSchemaRequest message or plain object
+ * @returns Promise
+ */
+ public createDocumentSchema(request: google.cloud.contentwarehouse.v1.ICreateDocumentSchemaRequest): Promise;
+
+ /**
+ * Calls UpdateDocumentSchema.
+ * @param request UpdateDocumentSchemaRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and DocumentSchema
+ */
+ public updateDocumentSchema(request: google.cloud.contentwarehouse.v1.IUpdateDocumentSchemaRequest, callback: google.cloud.contentwarehouse.v1.DocumentSchemaService.UpdateDocumentSchemaCallback): void;
+
+ /**
+ * Calls UpdateDocumentSchema.
+ * @param request UpdateDocumentSchemaRequest message or plain object
+ * @returns Promise
+ */
+ public updateDocumentSchema(request: google.cloud.contentwarehouse.v1.IUpdateDocumentSchemaRequest): Promise;
+
+ /**
+ * Calls GetDocumentSchema.
+ * @param request GetDocumentSchemaRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and DocumentSchema
+ */
+ public getDocumentSchema(request: google.cloud.contentwarehouse.v1.IGetDocumentSchemaRequest, callback: google.cloud.contentwarehouse.v1.DocumentSchemaService.GetDocumentSchemaCallback): void;
+
+ /**
+ * Calls GetDocumentSchema.
+ * @param request GetDocumentSchemaRequest message or plain object
+ * @returns Promise
+ */
+ public getDocumentSchema(request: google.cloud.contentwarehouse.v1.IGetDocumentSchemaRequest): Promise;
+
+ /**
+ * Calls DeleteDocumentSchema.
+ * @param request DeleteDocumentSchemaRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Empty
+ */
+ public deleteDocumentSchema(request: google.cloud.contentwarehouse.v1.IDeleteDocumentSchemaRequest, callback: google.cloud.contentwarehouse.v1.DocumentSchemaService.DeleteDocumentSchemaCallback): void;
+
+ /**
+ * Calls DeleteDocumentSchema.
+ * @param request DeleteDocumentSchemaRequest message or plain object
+ * @returns Promise
+ */
+ public deleteDocumentSchema(request: google.cloud.contentwarehouse.v1.IDeleteDocumentSchemaRequest): Promise;
+
+ /**
+ * Calls ListDocumentSchemas.
+ * @param request ListDocumentSchemasRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListDocumentSchemasResponse
+ */
+ public listDocumentSchemas(request: google.cloud.contentwarehouse.v1.IListDocumentSchemasRequest, callback: google.cloud.contentwarehouse.v1.DocumentSchemaService.ListDocumentSchemasCallback): void;
+
+ /**
+ * Calls ListDocumentSchemas.
+ * @param request ListDocumentSchemasRequest message or plain object
+ * @returns Promise
+ */
+ public listDocumentSchemas(request: google.cloud.contentwarehouse.v1.IListDocumentSchemasRequest): Promise;
+ }
+
+ namespace DocumentSchemaService {
+
+ /**
+ * Callback as used by {@link google.cloud.contentwarehouse.v1.DocumentSchemaService|createDocumentSchema}.
+ * @param error Error, if any
+ * @param [response] DocumentSchema
+ */
+ type CreateDocumentSchemaCallback = (error: (Error|null), response?: google.cloud.contentwarehouse.v1.DocumentSchema) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.contentwarehouse.v1.DocumentSchemaService|updateDocumentSchema}.
+ * @param error Error, if any
+ * @param [response] DocumentSchema
+ */
+ type UpdateDocumentSchemaCallback = (error: (Error|null), response?: google.cloud.contentwarehouse.v1.DocumentSchema) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.contentwarehouse.v1.DocumentSchemaService|getDocumentSchema}.
+ * @param error Error, if any
+ * @param [response] DocumentSchema
+ */
+ type GetDocumentSchemaCallback = (error: (Error|null), response?: google.cloud.contentwarehouse.v1.DocumentSchema) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.contentwarehouse.v1.DocumentSchemaService|deleteDocumentSchema}.
+ * @param error Error, if any
+ * @param [response] Empty
+ */
+ type DeleteDocumentSchemaCallback = (error: (Error|null), response?: google.protobuf.Empty) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.contentwarehouse.v1.DocumentSchemaService|listDocumentSchemas}.
+ * @param error Error, if any
+ * @param [response] ListDocumentSchemasResponse
+ */
+ type ListDocumentSchemasCallback = (error: (Error|null), response?: google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse) => void;
+ }
+
+ /** Properties of a CreateDocumentSchemaRequest. */
+ interface ICreateDocumentSchemaRequest {
+
+ /** CreateDocumentSchemaRequest parent */
+ parent?: (string|null);
+
+ /** CreateDocumentSchemaRequest documentSchema */
+ documentSchema?: (google.cloud.contentwarehouse.v1.IDocumentSchema|null);
+ }
+
+ /** Represents a CreateDocumentSchemaRequest. */
+ class CreateDocumentSchemaRequest implements ICreateDocumentSchemaRequest {
+
+ /**
+ * Constructs a new CreateDocumentSchemaRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.contentwarehouse.v1.ICreateDocumentSchemaRequest);
+
+ /** CreateDocumentSchemaRequest parent. */
+ public parent: string;
+
+ /** CreateDocumentSchemaRequest documentSchema. */
+ public documentSchema?: (google.cloud.contentwarehouse.v1.IDocumentSchema|null);
+
+ /**
+ * Creates a new CreateDocumentSchemaRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CreateDocumentSchemaRequest instance
+ */
+ public static create(properties?: google.cloud.contentwarehouse.v1.ICreateDocumentSchemaRequest): google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest;
+
+ /**
+ * Encodes the specified CreateDocumentSchemaRequest message. Does not implicitly {@link google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest.verify|verify} messages.
+ * @param message CreateDocumentSchemaRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.contentwarehouse.v1.ICreateDocumentSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CreateDocumentSchemaRequest message, length delimited. Does not implicitly {@link google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest.verify|verify} messages.
+ * @param message CreateDocumentSchemaRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.contentwarehouse.v1.ICreateDocumentSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CreateDocumentSchemaRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CreateDocumentSchemaRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest;
+
+ /**
+ * Decodes a CreateDocumentSchemaRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CreateDocumentSchemaRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest;
+
+ /**
+ * Verifies a CreateDocumentSchemaRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a CreateDocumentSchemaRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CreateDocumentSchemaRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest;
+
+ /**
+ * Creates a plain object from a CreateDocumentSchemaRequest message. Also converts values to other types if specified.
+ * @param message CreateDocumentSchemaRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CreateDocumentSchemaRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CreateDocumentSchemaRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GetDocumentSchemaRequest. */
+ interface IGetDocumentSchemaRequest {
+
+ /** GetDocumentSchemaRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a GetDocumentSchemaRequest. */
+ class GetDocumentSchemaRequest implements IGetDocumentSchemaRequest {
+
+ /**
+ * Constructs a new GetDocumentSchemaRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.contentwarehouse.v1.IGetDocumentSchemaRequest);
+
+ /** GetDocumentSchemaRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new GetDocumentSchemaRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetDocumentSchemaRequest instance
+ */
+ public static create(properties?: google.cloud.contentwarehouse.v1.IGetDocumentSchemaRequest): google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest;
+
+ /**
+ * Encodes the specified GetDocumentSchemaRequest message. Does not implicitly {@link google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest.verify|verify} messages.
+ * @param message GetDocumentSchemaRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.contentwarehouse.v1.IGetDocumentSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetDocumentSchemaRequest message, length delimited. Does not implicitly {@link google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest.verify|verify} messages.
+ * @param message GetDocumentSchemaRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.contentwarehouse.v1.IGetDocumentSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetDocumentSchemaRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetDocumentSchemaRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest;
+
+ /**
+ * Decodes a GetDocumentSchemaRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetDocumentSchemaRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest;
+
+ /**
+ * Verifies a GetDocumentSchemaRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GetDocumentSchemaRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetDocumentSchemaRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest;
+
+ /**
+ * Creates a plain object from a GetDocumentSchemaRequest message. Also converts values to other types if specified.
+ * @param message GetDocumentSchemaRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetDocumentSchemaRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetDocumentSchemaRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an UpdateDocumentSchemaRequest. */
+ interface IUpdateDocumentSchemaRequest {
+
+ /** UpdateDocumentSchemaRequest name */
+ name?: (string|null);
+
+ /** UpdateDocumentSchemaRequest documentSchema */
+ documentSchema?: (google.cloud.contentwarehouse.v1.IDocumentSchema|null);
+ }
+
+ /** Represents an UpdateDocumentSchemaRequest. */
+ class UpdateDocumentSchemaRequest implements IUpdateDocumentSchemaRequest {
+
+ /**
+ * Constructs a new UpdateDocumentSchemaRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.contentwarehouse.v1.IUpdateDocumentSchemaRequest);
+
+ /** UpdateDocumentSchemaRequest name. */
+ public name: string;
+
+ /** UpdateDocumentSchemaRequest documentSchema. */
+ public documentSchema?: (google.cloud.contentwarehouse.v1.IDocumentSchema|null);
+
+ /**
+ * Creates a new UpdateDocumentSchemaRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns UpdateDocumentSchemaRequest instance
+ */
+ public static create(properties?: google.cloud.contentwarehouse.v1.IUpdateDocumentSchemaRequest): google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest;
+
+ /**
+ * Encodes the specified UpdateDocumentSchemaRequest message. Does not implicitly {@link google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest.verify|verify} messages.
+ * @param message UpdateDocumentSchemaRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.contentwarehouse.v1.IUpdateDocumentSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified UpdateDocumentSchemaRequest message, length delimited. Does not implicitly {@link google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest.verify|verify} messages.
+ * @param message UpdateDocumentSchemaRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.contentwarehouse.v1.IUpdateDocumentSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an UpdateDocumentSchemaRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns UpdateDocumentSchemaRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest;
+
+ /**
+ * Decodes an UpdateDocumentSchemaRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns UpdateDocumentSchemaRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest;
+
+ /**
+ * Verifies an UpdateDocumentSchemaRequest message.
+ * @param message Plain 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 UpdateDocumentSchemaRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns UpdateDocumentSchemaRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest;
+
+ /**
+ * Creates a plain object from an UpdateDocumentSchemaRequest message. Also converts values to other types if specified.
+ * @param message UpdateDocumentSchemaRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this UpdateDocumentSchemaRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for UpdateDocumentSchemaRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DeleteDocumentSchemaRequest. */
+ interface IDeleteDocumentSchemaRequest {
+
+ /** DeleteDocumentSchemaRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a DeleteDocumentSchemaRequest. */
+ class DeleteDocumentSchemaRequest implements IDeleteDocumentSchemaRequest {
+
+ /**
+ * Constructs a new DeleteDocumentSchemaRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.contentwarehouse.v1.IDeleteDocumentSchemaRequest);
+
+ /** DeleteDocumentSchemaRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new DeleteDocumentSchemaRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DeleteDocumentSchemaRequest instance
+ */
+ public static create(properties?: google.cloud.contentwarehouse.v1.IDeleteDocumentSchemaRequest): google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest;
+
+ /**
+ * Encodes the specified DeleteDocumentSchemaRequest message. Does not implicitly {@link google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest.verify|verify} messages.
+ * @param message DeleteDocumentSchemaRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.contentwarehouse.v1.IDeleteDocumentSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DeleteDocumentSchemaRequest message, length delimited. Does not implicitly {@link google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest.verify|verify} messages.
+ * @param message DeleteDocumentSchemaRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.contentwarehouse.v1.IDeleteDocumentSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DeleteDocumentSchemaRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DeleteDocumentSchemaRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest;
+
+ /**
+ * Decodes a DeleteDocumentSchemaRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DeleteDocumentSchemaRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest;
+
+ /**
+ * Verifies a DeleteDocumentSchemaRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DeleteDocumentSchemaRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DeleteDocumentSchemaRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest;
+
+ /**
+ * Creates a plain object from a DeleteDocumentSchemaRequest message. Also converts values to other types if specified.
+ * @param message DeleteDocumentSchemaRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DeleteDocumentSchemaRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DeleteDocumentSchemaRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListDocumentSchemasRequest. */
+ interface IListDocumentSchemasRequest {
+
+ /** ListDocumentSchemasRequest parent */
+ parent?: (string|null);
+
+ /** ListDocumentSchemasRequest pageSize */
+ pageSize?: (number|null);
+
+ /** ListDocumentSchemasRequest pageToken */
+ pageToken?: (string|null);
+ }
+
+ /** Represents a ListDocumentSchemasRequest. */
+ class ListDocumentSchemasRequest implements IListDocumentSchemasRequest {
+
+ /**
+ * Constructs a new ListDocumentSchemasRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.contentwarehouse.v1.IListDocumentSchemasRequest);
+
+ /** ListDocumentSchemasRequest parent. */
+ public parent: string;
+
+ /** ListDocumentSchemasRequest pageSize. */
+ public pageSize: number;
+
+ /** ListDocumentSchemasRequest pageToken. */
+ public pageToken: string;
+
+ /**
+ * Creates a new ListDocumentSchemasRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListDocumentSchemasRequest instance
+ */
+ public static create(properties?: google.cloud.contentwarehouse.v1.IListDocumentSchemasRequest): google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest;
+
+ /**
+ * Encodes the specified ListDocumentSchemasRequest message. Does not implicitly {@link google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest.verify|verify} messages.
+ * @param message ListDocumentSchemasRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.contentwarehouse.v1.IListDocumentSchemasRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListDocumentSchemasRequest message, length delimited. Does not implicitly {@link google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest.verify|verify} messages.
+ * @param message ListDocumentSchemasRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.contentwarehouse.v1.IListDocumentSchemasRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListDocumentSchemasRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListDocumentSchemasRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest;
+
+ /**
+ * Decodes a ListDocumentSchemasRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListDocumentSchemasRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest;
+
+ /**
+ * Verifies a ListDocumentSchemasRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListDocumentSchemasRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListDocumentSchemasRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest;
+
+ /**
+ * Creates a plain object from a ListDocumentSchemasRequest message. Also converts values to other types if specified.
+ * @param message ListDocumentSchemasRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListDocumentSchemasRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListDocumentSchemasRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListDocumentSchemasResponse. */
+ interface IListDocumentSchemasResponse {
+
+ /** ListDocumentSchemasResponse documentSchemas */
+ documentSchemas?: (google.cloud.contentwarehouse.v1.IDocumentSchema[]|null);
+
+ /** ListDocumentSchemasResponse nextPageToken */
+ nextPageToken?: (string|null);
+ }
+
+ /** Represents a ListDocumentSchemasResponse. */
+ class ListDocumentSchemasResponse implements IListDocumentSchemasResponse {
+
+ /**
+ * Constructs a new ListDocumentSchemasResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.contentwarehouse.v1.IListDocumentSchemasResponse);
+
+ /** ListDocumentSchemasResponse documentSchemas. */
+ public documentSchemas: google.cloud.contentwarehouse.v1.IDocumentSchema[];
+
+ /** ListDocumentSchemasResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /**
+ * Creates a new ListDocumentSchemasResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListDocumentSchemasResponse instance
+ */
+ public static create(properties?: google.cloud.contentwarehouse.v1.IListDocumentSchemasResponse): google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse;
+
+ /**
+ * Encodes the specified ListDocumentSchemasResponse message. Does not implicitly {@link google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse.verify|verify} messages.
+ * @param message ListDocumentSchemasResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.contentwarehouse.v1.IListDocumentSchemasResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListDocumentSchemasResponse message, length delimited. Does not implicitly {@link google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse.verify|verify} messages.
+ * @param message ListDocumentSchemasResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.contentwarehouse.v1.IListDocumentSchemasResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListDocumentSchemasResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListDocumentSchemasResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse;
+
+ /**
+ * Decodes a ListDocumentSchemasResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListDocumentSchemasResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse;
+
+ /**
+ * Verifies a ListDocumentSchemasResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListDocumentSchemasResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListDocumentSchemasResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse;
+
+ /**
+ * Creates a plain object from a ListDocumentSchemasResponse message. Also converts values to other types if specified.
+ * @param message ListDocumentSchemasResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListDocumentSchemasResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListDocumentSchemasResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Represents a DocumentService */
+ class DocumentService extends $protobuf.rpc.Service {
+
+ /**
+ * Constructs a new DocumentService 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 DocumentService 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): DocumentService;
+
+ /**
+ * Calls CreateDocument.
+ * @param request CreateDocumentRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and CreateDocumentResponse
+ */
+ public createDocument(request: google.cloud.contentwarehouse.v1.ICreateDocumentRequest, callback: google.cloud.contentwarehouse.v1.DocumentService.CreateDocumentCallback): void;
+
+ /**
+ * Calls CreateDocument.
+ * @param request CreateDocumentRequest message or plain object
+ * @returns Promise
+ */
+ public createDocument(request: google.cloud.contentwarehouse.v1.ICreateDocumentRequest): Promise;
+
+ /**
+ * Calls GetDocument.
+ * @param request GetDocumentRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Document
+ */
+ public getDocument(request: google.cloud.contentwarehouse.v1.IGetDocumentRequest, callback: google.cloud.contentwarehouse.v1.DocumentService.GetDocumentCallback): void;
+
+ /**
+ * Calls GetDocument.
+ * @param request GetDocumentRequest message or plain object
+ * @returns Promise
+ */
+ public getDocument(request: google.cloud.contentwarehouse.v1.IGetDocumentRequest): Promise;
+
+ /**
+ * Calls UpdateDocument.
+ * @param request UpdateDocumentRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and UpdateDocumentResponse
+ */
+ public updateDocument(request: google.cloud.contentwarehouse.v1.IUpdateDocumentRequest, callback: google.cloud.contentwarehouse.v1.DocumentService.UpdateDocumentCallback): void;
+
+ /**
+ * Calls UpdateDocument.
+ * @param request UpdateDocumentRequest message or plain object
+ * @returns Promise
+ */
+ public updateDocument(request: google.cloud.contentwarehouse.v1.IUpdateDocumentRequest): Promise;
+
+ /**
+ * Calls DeleteDocument.
+ * @param request DeleteDocumentRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Empty
+ */
+ public deleteDocument(request: google.cloud.contentwarehouse.v1.IDeleteDocumentRequest, callback: google.cloud.contentwarehouse.v1.DocumentService.DeleteDocumentCallback): void;
+
+ /**
+ * Calls DeleteDocument.
+ * @param request DeleteDocumentRequest message or plain object
+ * @returns Promise
+ */
+ public deleteDocument(request: google.cloud.contentwarehouse.v1.IDeleteDocumentRequest): Promise;
+
+ /**
+ * Calls SearchDocuments.
+ * @param request SearchDocumentsRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and SearchDocumentsResponse
+ */
+ public searchDocuments(request: google.cloud.contentwarehouse.v1.ISearchDocumentsRequest, callback: google.cloud.contentwarehouse.v1.DocumentService.SearchDocumentsCallback): void;
+
+ /**
+ * Calls SearchDocuments.
+ * @param request SearchDocumentsRequest message or plain object
+ * @returns Promise
+ */
+ public searchDocuments(request: google.cloud.contentwarehouse.v1.ISearchDocumentsRequest): Promise;
+
+ /**
+ * Calls FetchAcl.
+ * @param request FetchAclRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and FetchAclResponse
+ */
+ public fetchAcl(request: google.cloud.contentwarehouse.v1.IFetchAclRequest, callback: google.cloud.contentwarehouse.v1.DocumentService.FetchAclCallback): void;
+
+ /**
+ * Calls FetchAcl.
+ * @param request FetchAclRequest message or plain object
+ * @returns Promise
+ */
+ public fetchAcl(request: google.cloud.contentwarehouse.v1.IFetchAclRequest): Promise;
+
+ /**
+ * Calls SetAcl.
+ * @param request SetAclRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and SetAclResponse
+ */
+ public setAcl(request: google.cloud.contentwarehouse.v1.ISetAclRequest, callback: google.cloud.contentwarehouse.v1.DocumentService.SetAclCallback): void;
+
+ /**
+ * Calls SetAcl.
+ * @param request SetAclRequest message or plain object
+ * @returns Promise
+ */
+ public setAcl(request: google.cloud.contentwarehouse.v1.ISetAclRequest): Promise;
+ }
+
+ namespace DocumentService {
+
+ /**
+ * Callback as used by {@link google.cloud.contentwarehouse.v1.DocumentService|createDocument}.
+ * @param error Error, if any
+ * @param [response] CreateDocumentResponse
+ */
+ type CreateDocumentCallback = (error: (Error|null), response?: google.cloud.contentwarehouse.v1.CreateDocumentResponse) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.contentwarehouse.v1.DocumentService|getDocument}.
+ * @param error Error, if any
+ * @param [response] Document
+ */
+ type GetDocumentCallback = (error: (Error|null), response?: google.cloud.contentwarehouse.v1.Document) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.contentwarehouse.v1.DocumentService|updateDocument}.
+ * @param error Error, if any
+ * @param [response] UpdateDocumentResponse
+ */
+ type UpdateDocumentCallback = (error: (Error|null), response?: google.cloud.contentwarehouse.v1.UpdateDocumentResponse) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.contentwarehouse.v1.DocumentService|deleteDocument}.
+ * @param error Error, if any
+ * @param [response] Empty
+ */
+ type DeleteDocumentCallback = (error: (Error|null), response?: google.protobuf.Empty) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.contentwarehouse.v1.DocumentService|searchDocuments}.
+ * @param error Error, if any
+ * @param [response] SearchDocumentsResponse
+ */
+ type SearchDocumentsCallback = (error: (Error|null), response?: google.cloud.contentwarehouse.v1.SearchDocumentsResponse) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.contentwarehouse.v1.DocumentService|fetchAcl}.
+ * @param error Error, if any
+ * @param [response] FetchAclResponse
+ */
+ type FetchAclCallback = (error: (Error|null), response?: google.cloud.contentwarehouse.v1.FetchAclResponse) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.contentwarehouse.v1.DocumentService|setAcl}.
+ * @param error Error, if any
+ * @param [response] SetAclResponse
+ */
+ type SetAclCallback = (error: (Error|null), response?: google.cloud.contentwarehouse.v1.SetAclResponse) => void;
+ }
+
+ /** Properties of a CreateDocumentResponse. */
+ interface ICreateDocumentResponse {
+
+ /** CreateDocumentResponse document */
+ document?: (google.cloud.contentwarehouse.v1.IDocument|null);
+
+ /** CreateDocumentResponse ruleEngineOutput */
+ ruleEngineOutput?: (google.cloud.contentwarehouse.v1.IRuleEngineOutput|null);
+
+ /** CreateDocumentResponse metadata */
+ metadata?: (google.cloud.contentwarehouse.v1.IResponseMetadata|null);
+ }
+
+ /** Represents a CreateDocumentResponse. */
+ class CreateDocumentResponse implements ICreateDocumentResponse {
+
+ /**
+ * Constructs a new CreateDocumentResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.contentwarehouse.v1.ICreateDocumentResponse);
+
+ /** CreateDocumentResponse document. */
+ public document?: (google.cloud.contentwarehouse.v1.IDocument|null);
+
+ /** CreateDocumentResponse ruleEngineOutput. */
+ public ruleEngineOutput?: (google.cloud.contentwarehouse.v1.IRuleEngineOutput|null);
+
+ /** CreateDocumentResponse metadata. */
+ public metadata?: (google.cloud.contentwarehouse.v1.IResponseMetadata|null);
+
+ /**
+ * Creates a new CreateDocumentResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CreateDocumentResponse instance
+ */
+ public static create(properties?: google.cloud.contentwarehouse.v1.ICreateDocumentResponse): google.cloud.contentwarehouse.v1.CreateDocumentResponse;
+
+ /**
+ * Encodes the specified CreateDocumentResponse message. Does not implicitly {@link google.cloud.contentwarehouse.v1.CreateDocumentResponse.verify|verify} messages.
+ * @param message CreateDocumentResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.contentwarehouse.v1.ICreateDocumentResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CreateDocumentResponse message, length delimited. Does not implicitly {@link google.cloud.contentwarehouse.v1.CreateDocumentResponse.verify|verify} messages.
+ * @param message CreateDocumentResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.contentwarehouse.v1.ICreateDocumentResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CreateDocumentResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CreateDocumentResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.contentwarehouse.v1.CreateDocumentResponse;
+
+ /**
+ * Decodes a CreateDocumentResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CreateDocumentResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.contentwarehouse.v1.CreateDocumentResponse;
+
+ /**
+ * Verifies a CreateDocumentResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a CreateDocumentResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CreateDocumentResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.contentwarehouse.v1.CreateDocumentResponse;
+
+ /**
+ * Creates a plain object from a CreateDocumentResponse message. Also converts values to other types if specified.
+ * @param message CreateDocumentResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.contentwarehouse.v1.CreateDocumentResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CreateDocumentResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CreateDocumentResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an UpdateDocumentResponse. */
+ interface IUpdateDocumentResponse {
+
+ /** UpdateDocumentResponse document */
+ document?: (google.cloud.contentwarehouse.v1.IDocument|null);
+
+ /** UpdateDocumentResponse ruleEngineOutput */
+ ruleEngineOutput?: (google.cloud.contentwarehouse.v1.IRuleEngineOutput|null);
+
+ /** UpdateDocumentResponse metadata */
+ metadata?: (google.cloud.contentwarehouse.v1.IResponseMetadata|null);
+ }
+
+ /** Represents an UpdateDocumentResponse. */
+ class UpdateDocumentResponse implements IUpdateDocumentResponse {
+
+ /**
+ * Constructs a new UpdateDocumentResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.contentwarehouse.v1.IUpdateDocumentResponse);
+
+ /** UpdateDocumentResponse document. */
+ public document?: (google.cloud.contentwarehouse.v1.IDocument|null);
+
+ /** UpdateDocumentResponse ruleEngineOutput. */
+ public ruleEngineOutput?: (google.cloud.contentwarehouse.v1.IRuleEngineOutput|null);
+
+ /** UpdateDocumentResponse metadata. */
+ public metadata?: (google.cloud.contentwarehouse.v1.IResponseMetadata|null);
+
+ /**
+ * Creates a new UpdateDocumentResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns UpdateDocumentResponse instance
+ */
+ public static create(properties?: google.cloud.contentwarehouse.v1.IUpdateDocumentResponse): google.cloud.contentwarehouse.v1.UpdateDocumentResponse;
+
+ /**
+ * Encodes the specified UpdateDocumentResponse message. Does not implicitly {@link google.cloud.contentwarehouse.v1.UpdateDocumentResponse.verify|verify} messages.
+ * @param message UpdateDocumentResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.contentwarehouse.v1.IUpdateDocumentResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified UpdateDocumentResponse message, length delimited. Does not implicitly {@link google.cloud.contentwarehouse.v1.UpdateDocumentResponse.verify|verify} messages.
+ * @param message UpdateDocumentResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.contentwarehouse.v1.IUpdateDocumentResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an UpdateDocumentResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns UpdateDocumentResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.contentwarehouse.v1.UpdateDocumentResponse;
+
+ /**
+ * Decodes an UpdateDocumentResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns UpdateDocumentResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.contentwarehouse.v1.UpdateDocumentResponse;
+
+ /**
+ * Verifies an UpdateDocumentResponse message.
+ * @param message Plain 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 UpdateDocumentResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns UpdateDocumentResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.contentwarehouse.v1.UpdateDocumentResponse;
+
+ /**
+ * Creates a plain object from an UpdateDocumentResponse message. Also converts values to other types if specified.
+ * @param message UpdateDocumentResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.contentwarehouse.v1.UpdateDocumentResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this UpdateDocumentResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for UpdateDocumentResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a QAResult. */
+ interface IQAResult {
+
+ /** QAResult highlights */
+ highlights?: (google.cloud.contentwarehouse.v1.QAResult.IHighlight[]|null);
+
+ /** QAResult confidenceScore */
+ confidenceScore?: (number|null);
+ }
+
+ /** Represents a QAResult. */
+ class QAResult implements IQAResult {
+
+ /**
+ * Constructs a new QAResult.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.contentwarehouse.v1.IQAResult);
+
+ /** QAResult highlights. */
+ public highlights: google.cloud.contentwarehouse.v1.QAResult.IHighlight[];
+
+ /** QAResult confidenceScore. */
+ public confidenceScore: number;
+
+ /**
+ * Creates a new QAResult instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns QAResult instance
+ */
+ public static create(properties?: google.cloud.contentwarehouse.v1.IQAResult): google.cloud.contentwarehouse.v1.QAResult;
+
+ /**
+ * Encodes the specified QAResult message. Does not implicitly {@link google.cloud.contentwarehouse.v1.QAResult.verify|verify} messages.
+ * @param message QAResult message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.contentwarehouse.v1.IQAResult, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified QAResult message, length delimited. Does not implicitly {@link google.cloud.contentwarehouse.v1.QAResult.verify|verify} messages.
+ * @param message QAResult message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.contentwarehouse.v1.IQAResult, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a QAResult message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns QAResult
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.contentwarehouse.v1.QAResult;
+
+ /**
+ * Decodes a QAResult message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns QAResult
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.contentwarehouse.v1.QAResult;
+
+ /**
+ * Verifies a QAResult message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a QAResult message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns QAResult
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.contentwarehouse.v1.QAResult;
+
+ /**
+ * Creates a plain object from a QAResult message. Also converts values to other types if specified.
+ * @param message QAResult
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.contentwarehouse.v1.QAResult, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this QAResult to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for QAResult
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace QAResult {
+
+ /** Properties of a Highlight. */
+ interface IHighlight {
+
+ /** Highlight startIndex */
+ startIndex?: (number|null);
+
+ /** Highlight endIndex */
+ endIndex?: (number|null);
+ }
+
+ /** Represents a Highlight. */
+ class Highlight implements IHighlight {
+
+ /**
+ * Constructs a new Highlight.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.contentwarehouse.v1.QAResult.IHighlight);
+
+ /** Highlight startIndex. */
+ public startIndex: number;
+
+ /** Highlight endIndex. */
+ public endIndex: number;
+
+ /**
+ * Creates a new Highlight instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Highlight instance
+ */
+ public static create(properties?: google.cloud.contentwarehouse.v1.QAResult.IHighlight): google.cloud.contentwarehouse.v1.QAResult.Highlight;
+
+ /**
+ * Encodes the specified Highlight message. Does not implicitly {@link google.cloud.contentwarehouse.v1.QAResult.Highlight.verify|verify} messages.
+ * @param message Highlight message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.contentwarehouse.v1.QAResult.IHighlight, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Highlight message, length delimited. Does not implicitly {@link google.cloud.contentwarehouse.v1.QAResult.Highlight.verify|verify} messages.
+ * @param message Highlight message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.contentwarehouse.v1.QAResult.IHighlight, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Highlight message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Highlight
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.contentwarehouse.v1.QAResult.Highlight;
+
+ /**
+ * Decodes a Highlight message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Highlight
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.contentwarehouse.v1.QAResult.Highlight;
+
+ /**
+ * Verifies a Highlight message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Highlight message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Highlight
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.contentwarehouse.v1.QAResult.Highlight;
+
+ /**
+ * Creates a plain object from a Highlight message. Also converts values to other types if specified.
+ * @param message Highlight
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.contentwarehouse.v1.QAResult.Highlight, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Highlight to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Highlight
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of a SearchDocumentsResponse. */
+ interface ISearchDocumentsResponse {
+
+ /** SearchDocumentsResponse matchingDocuments */
+ matchingDocuments?: (google.cloud.contentwarehouse.v1.SearchDocumentsResponse.IMatchingDocument[]|null);
+
+ /** SearchDocumentsResponse nextPageToken */
+ nextPageToken?: (string|null);
+
+ /** SearchDocumentsResponse totalSize */
+ totalSize?: (number|null);
+
+ /** SearchDocumentsResponse metadata */
+ metadata?: (google.cloud.contentwarehouse.v1.IResponseMetadata|null);
+
+ /** SearchDocumentsResponse histogramQueryResults */
+ histogramQueryResults?: (google.cloud.contentwarehouse.v1.IHistogramQueryResult[]|null);
+ }
+
+ /** Represents a SearchDocumentsResponse. */
+ class SearchDocumentsResponse implements ISearchDocumentsResponse {
+
+ /**
+ * Constructs a new SearchDocumentsResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.contentwarehouse.v1.ISearchDocumentsResponse);
+
+ /** SearchDocumentsResponse matchingDocuments. */
+ public matchingDocuments: google.cloud.contentwarehouse.v1.SearchDocumentsResponse.IMatchingDocument[];
+
+ /** SearchDocumentsResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /** SearchDocumentsResponse totalSize. */
+ public totalSize: number;
+
+ /** SearchDocumentsResponse metadata. */
+ public metadata?: (google.cloud.contentwarehouse.v1.IResponseMetadata|null);
+
+ /** SearchDocumentsResponse histogramQueryResults. */
+ public histogramQueryResults: google.cloud.contentwarehouse.v1.IHistogramQueryResult[];
+
+ /**
+ * Creates a new SearchDocumentsResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns SearchDocumentsResponse instance
+ */
+ public static create(properties?: google.cloud.contentwarehouse.v1.ISearchDocumentsResponse): google.cloud.contentwarehouse.v1.SearchDocumentsResponse;
+
+ /**
+ * Encodes the specified SearchDocumentsResponse message. Does not implicitly {@link google.cloud.contentwarehouse.v1.SearchDocumentsResponse.verify|verify} messages.
+ * @param message SearchDocumentsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.contentwarehouse.v1.ISearchDocumentsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified SearchDocumentsResponse message, length delimited. Does not implicitly {@link google.cloud.contentwarehouse.v1.SearchDocumentsResponse.verify|verify} messages.
+ * @param message SearchDocumentsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.contentwarehouse.v1.ISearchDocumentsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a SearchDocumentsResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns SearchDocumentsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.contentwarehouse.v1.SearchDocumentsResponse;
+
+ /**
+ * Decodes a SearchDocumentsResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns SearchDocumentsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.contentwarehouse.v1.SearchDocumentsResponse;
+
+ /**
+ * Verifies a SearchDocumentsResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a SearchDocumentsResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns SearchDocumentsResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.contentwarehouse.v1.SearchDocumentsResponse;
+
+ /**
+ * Creates a plain object from a SearchDocumentsResponse message. Also converts values to other types if specified.
+ * @param message SearchDocumentsResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.contentwarehouse.v1.SearchDocumentsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this SearchDocumentsResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for SearchDocumentsResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace SearchDocumentsResponse {
+
+ /** Properties of a MatchingDocument. */
+ interface IMatchingDocument {
+
+ /** MatchingDocument document */
+ document?: (google.cloud.contentwarehouse.v1.IDocument|null);
+
+ /** MatchingDocument searchTextSnippet */
+ searchTextSnippet?: (string|null);
+
+ /** MatchingDocument qaResult */
+ qaResult?: (google.cloud.contentwarehouse.v1.IQAResult|null);
+ }
+
+ /** Represents a MatchingDocument. */
+ class MatchingDocument implements IMatchingDocument {
+
+ /**
+ * Constructs a new MatchingDocument.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.contentwarehouse.v1.SearchDocumentsResponse.IMatchingDocument);
+
+ /** MatchingDocument document. */
+ public document?: (google.cloud.contentwarehouse.v1.IDocument|null);
+
+ /** MatchingDocument searchTextSnippet. */
+ public searchTextSnippet: string;
+
+ /** MatchingDocument qaResult. */
+ public qaResult?: (google.cloud.contentwarehouse.v1.IQAResult|null);
+
+ /**
+ * Creates a new MatchingDocument instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns MatchingDocument instance
+ */
+ public static create(properties?: google.cloud.contentwarehouse.v1.SearchDocumentsResponse.IMatchingDocument): google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument;
+
+ /**
+ * Encodes the specified MatchingDocument message. Does not implicitly {@link google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument.verify|verify} messages.
+ * @param message MatchingDocument message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.contentwarehouse.v1.SearchDocumentsResponse.IMatchingDocument, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified MatchingDocument message, length delimited. Does not implicitly {@link google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument.verify|verify} messages.
+ * @param message MatchingDocument message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.contentwarehouse.v1.SearchDocumentsResponse.IMatchingDocument, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a MatchingDocument message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns MatchingDocument
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument;
+
+ /**
+ * Decodes a MatchingDocument message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns MatchingDocument
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument;
+
+ /**
+ * Verifies a MatchingDocument message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a MatchingDocument message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns MatchingDocument
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument;
+
+ /**
+ * Creates a plain object from a MatchingDocument message. Also converts values to other types if specified.
+ * @param message MatchingDocument
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this MatchingDocument to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for MatchingDocument
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of a FetchAclResponse. */
+ interface IFetchAclResponse {
+
+ /** FetchAclResponse policy */
+ policy?: (google.iam.v1.IPolicy|null);
+
+ /** FetchAclResponse metadata */
+ metadata?: (google.cloud.contentwarehouse.v1.IResponseMetadata|null);
+ }
+
+ /** Represents a FetchAclResponse. */
+ class FetchAclResponse implements IFetchAclResponse {
+
+ /**
+ * Constructs a new FetchAclResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.contentwarehouse.v1.IFetchAclResponse);
+
+ /** FetchAclResponse policy. */
+ public policy?: (google.iam.v1.IPolicy|null);
+
+ /** FetchAclResponse metadata. */
+ public metadata?: (google.cloud.contentwarehouse.v1.IResponseMetadata|null);
+
+ /**
+ * Creates a new FetchAclResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FetchAclResponse instance
+ */
+ public static create(properties?: google.cloud.contentwarehouse.v1.IFetchAclResponse): google.cloud.contentwarehouse.v1.FetchAclResponse;
+
+ /**
+ * Encodes the specified FetchAclResponse message. Does not implicitly {@link google.cloud.contentwarehouse.v1.FetchAclResponse.verify|verify} messages.
+ * @param message FetchAclResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.contentwarehouse.v1.IFetchAclResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FetchAclResponse message, length delimited. Does not implicitly {@link google.cloud.contentwarehouse.v1.FetchAclResponse.verify|verify} messages.
+ * @param message FetchAclResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.contentwarehouse.v1.IFetchAclResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FetchAclResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FetchAclResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.contentwarehouse.v1.FetchAclResponse;
+
+ /**
+ * Decodes a FetchAclResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FetchAclResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.contentwarehouse.v1.FetchAclResponse;
+
+ /**
+ * Verifies a FetchAclResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FetchAclResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FetchAclResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.contentwarehouse.v1.FetchAclResponse;
+
+ /**
+ * Creates a plain object from a FetchAclResponse message. Also converts values to other types if specified.
+ * @param message FetchAclResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.contentwarehouse.v1.FetchAclResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FetchAclResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FetchAclResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a SetAclResponse. */
+ interface ISetAclResponse {
+
+ /** SetAclResponse policy */
+ policy?: (google.iam.v1.IPolicy|null);
+
+ /** SetAclResponse metadata */
+ metadata?: (google.cloud.contentwarehouse.v1.IResponseMetadata|null);
+ }
+
+ /** Represents a SetAclResponse. */
+ class SetAclResponse implements ISetAclResponse {
+
+ /**
+ * Constructs a new SetAclResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.contentwarehouse.v1.ISetAclResponse);
+
+ /** SetAclResponse policy. */
+ public policy?: (google.iam.v1.IPolicy|null);
+
+ /** SetAclResponse metadata. */
+ public metadata?: (google.cloud.contentwarehouse.v1.IResponseMetadata|null);
+
+ /**
+ * Creates a new SetAclResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns SetAclResponse instance
+ */
+ public static create(properties?: google.cloud.contentwarehouse.v1.ISetAclResponse): google.cloud.contentwarehouse.v1.SetAclResponse;
+
+ /**
+ * Encodes the specified SetAclResponse message. Does not implicitly {@link google.cloud.contentwarehouse.v1.SetAclResponse.verify|verify} messages.
+ * @param message SetAclResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.contentwarehouse.v1.ISetAclResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified SetAclResponse message, length delimited. Does not implicitly {@link google.cloud.contentwarehouse.v1.SetAclResponse.verify|verify} messages.
+ * @param message SetAclResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.contentwarehouse.v1.ISetAclResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a SetAclResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns SetAclResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.contentwarehouse.v1.SetAclResponse;
+
+ /**
+ * Decodes a SetAclResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns SetAclResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.contentwarehouse.v1.SetAclResponse;
+
+ /**
+ * Verifies a SetAclResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a SetAclResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns SetAclResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.contentwarehouse.v1.SetAclResponse;
+
+ /**
+ * Creates a plain object from a SetAclResponse message. Also converts values to other types if specified.
+ * @param message SetAclResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.contentwarehouse.v1.SetAclResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this SetAclResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for SetAclResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CloudAIDocumentOption. */
+ interface ICloudAIDocumentOption {
+
+ /** CloudAIDocumentOption enableEntitiesConversions */
+ enableEntitiesConversions?: (boolean|null);
+
+ /** CloudAIDocumentOption customizedEntitiesPropertiesConversions */
+ customizedEntitiesPropertiesConversions?: ({ [k: string]: string }|null);
+ }
+
+ /** Represents a CloudAIDocumentOption. */
+ class CloudAIDocumentOption implements ICloudAIDocumentOption {
+
+ /**
+ * Constructs a new CloudAIDocumentOption.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.contentwarehouse.v1.ICloudAIDocumentOption);
+
+ /** CloudAIDocumentOption enableEntitiesConversions. */
+ public enableEntitiesConversions: boolean;
+
+ /** CloudAIDocumentOption customizedEntitiesPropertiesConversions. */
+ public customizedEntitiesPropertiesConversions: { [k: string]: string };
+
+ /**
+ * Creates a new CloudAIDocumentOption instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CloudAIDocumentOption instance
+ */
+ public static create(properties?: google.cloud.contentwarehouse.v1.ICloudAIDocumentOption): google.cloud.contentwarehouse.v1.CloudAIDocumentOption;
+
+ /**
+ * Encodes the specified CloudAIDocumentOption message. Does not implicitly {@link google.cloud.contentwarehouse.v1.CloudAIDocumentOption.verify|verify} messages.
+ * @param message CloudAIDocumentOption message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.contentwarehouse.v1.ICloudAIDocumentOption, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CloudAIDocumentOption message, length delimited. Does not implicitly {@link google.cloud.contentwarehouse.v1.CloudAIDocumentOption.verify|verify} messages.
+ * @param message CloudAIDocumentOption message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.contentwarehouse.v1.ICloudAIDocumentOption, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CloudAIDocumentOption message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CloudAIDocumentOption
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.contentwarehouse.v1.CloudAIDocumentOption;
+
+ /**
+ * Decodes a CloudAIDocumentOption message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CloudAIDocumentOption
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.contentwarehouse.v1.CloudAIDocumentOption;
+
+ /**
+ * Verifies a CloudAIDocumentOption message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a CloudAIDocumentOption message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CloudAIDocumentOption
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.contentwarehouse.v1.CloudAIDocumentOption;
+
+ /**
+ * Creates a plain object from a CloudAIDocumentOption message. Also converts values to other types if specified.
+ * @param message CloudAIDocumentOption
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.contentwarehouse.v1.CloudAIDocumentOption, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CloudAIDocumentOption to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CloudAIDocumentOption
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CreateDocumentRequest. */
+ interface ICreateDocumentRequest {
+
+ /** CreateDocumentRequest parent */
+ parent?: (string|null);
+
+ /** CreateDocumentRequest document */
+ document?: (google.cloud.contentwarehouse.v1.IDocument|null);
+
+ /** CreateDocumentRequest requestMetadata */
+ requestMetadata?: (google.cloud.contentwarehouse.v1.IRequestMetadata|null);
+
+ /** CreateDocumentRequest policy */
+ policy?: (google.iam.v1.IPolicy|null);
+
+ /** CreateDocumentRequest cloudAiDocumentOption */
+ cloudAiDocumentOption?: (google.cloud.contentwarehouse.v1.ICloudAIDocumentOption|null);
+
+ /** CreateDocumentRequest createMask */
+ createMask?: (google.protobuf.IFieldMask|null);
+ }
+
+ /** Represents a CreateDocumentRequest. */
+ class CreateDocumentRequest implements ICreateDocumentRequest {
+
+ /**
+ * Constructs a new CreateDocumentRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.contentwarehouse.v1.ICreateDocumentRequest);
+
+ /** CreateDocumentRequest parent. */
+ public parent: string;
+
+ /** CreateDocumentRequest document. */
+ public document?: (google.cloud.contentwarehouse.v1.IDocument|null);
+
+ /** CreateDocumentRequest requestMetadata. */
+ public requestMetadata?: (google.cloud.contentwarehouse.v1.IRequestMetadata|null);
+
+ /** CreateDocumentRequest policy. */
+ public policy?: (google.iam.v1.IPolicy|null);
+
+ /** CreateDocumentRequest cloudAiDocumentOption. */
+ public cloudAiDocumentOption?: (google.cloud.contentwarehouse.v1.ICloudAIDocumentOption|null);
+
+ /** CreateDocumentRequest createMask. */
+ public createMask?: (google.protobuf.IFieldMask|null);
+
+ /**
+ * Creates a new CreateDocumentRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CreateDocumentRequest instance
+ */
+ public static create(properties?: google.cloud.contentwarehouse.v1.ICreateDocumentRequest): google.cloud.contentwarehouse.v1.CreateDocumentRequest;
+
+ /**
+ * Encodes the specified CreateDocumentRequest message. Does not implicitly {@link google.cloud.contentwarehouse.v1.CreateDocumentRequest.verify|verify} messages.
+ * @param message CreateDocumentRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.contentwarehouse.v1.ICreateDocumentRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CreateDocumentRequest message, length delimited. Does not implicitly {@link google.cloud.contentwarehouse.v1.CreateDocumentRequest.verify|verify} messages.
+ * @param message CreateDocumentRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.contentwarehouse.v1.ICreateDocumentRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CreateDocumentRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CreateDocumentRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.contentwarehouse.v1.CreateDocumentRequest;
+
+ /**
+ * Decodes a CreateDocumentRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CreateDocumentRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.contentwarehouse.v1.CreateDocumentRequest;
+
+ /**
+ * Verifies a CreateDocumentRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a CreateDocumentRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CreateDocumentRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.contentwarehouse.v1.CreateDocumentRequest;
+
+ /**
+ * Creates a plain object from a CreateDocumentRequest message. Also converts values to other types if specified.
+ * @param message CreateDocumentRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.contentwarehouse.v1.CreateDocumentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CreateDocumentRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CreateDocumentRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GetDocumentRequest. */
+ interface IGetDocumentRequest {
+
+ /** GetDocumentRequest name */
+ name?: (string|null);
+
+ /** GetDocumentRequest requestMetadata */
+ requestMetadata?: (google.cloud.contentwarehouse.v1.IRequestMetadata|null);
+ }
+
+ /** Represents a GetDocumentRequest. */
+ class GetDocumentRequest implements IGetDocumentRequest {
+
+ /**
+ * Constructs a new GetDocumentRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.contentwarehouse.v1.IGetDocumentRequest);
+
+ /** GetDocumentRequest name. */
+ public name: string;
+
+ /** GetDocumentRequest requestMetadata. */
+ public requestMetadata?: (google.cloud.contentwarehouse.v1.IRequestMetadata|null);
+
+ /**
+ * Creates a new GetDocumentRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetDocumentRequest instance
+ */
+ public static create(properties?: google.cloud.contentwarehouse.v1.IGetDocumentRequest): google.cloud.contentwarehouse.v1.GetDocumentRequest;
+
+ /**
+ * Encodes the specified GetDocumentRequest message. Does not implicitly {@link google.cloud.contentwarehouse.v1.GetDocumentRequest.verify|verify} messages.
+ * @param message GetDocumentRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.contentwarehouse.v1.IGetDocumentRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetDocumentRequest message, length delimited. Does not implicitly {@link google.cloud.contentwarehouse.v1.GetDocumentRequest.verify|verify} messages.
+ * @param message GetDocumentRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.contentwarehouse.v1.IGetDocumentRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetDocumentRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetDocumentRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.contentwarehouse.v1.GetDocumentRequest;
+
+ /**
+ * Decodes a GetDocumentRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetDocumentRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.contentwarehouse.v1.GetDocumentRequest;
+
+ /**
+ * Verifies a GetDocumentRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GetDocumentRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetDocumentRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.contentwarehouse.v1.GetDocumentRequest;
+
+ /**
+ * Creates a plain object from a GetDocumentRequest message. Also converts values to other types if specified.
+ * @param message GetDocumentRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.contentwarehouse.v1.GetDocumentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetDocumentRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetDocumentRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an UpdateDocumentRequest. */
+ interface IUpdateDocumentRequest {
+
+ /** UpdateDocumentRequest name */
+ name?: (string|null);
+
+ /** UpdateDocumentRequest document */
+ document?: (google.cloud.contentwarehouse.v1.IDocument|null);
+
+ /** UpdateDocumentRequest requestMetadata */
+ requestMetadata?: (google.cloud.contentwarehouse.v1.IRequestMetadata|null);
+
+ /** UpdateDocumentRequest cloudAiDocumentOption */
+ cloudAiDocumentOption?: (google.cloud.contentwarehouse.v1.ICloudAIDocumentOption|null);
+
+ /** UpdateDocumentRequest updateOptions */
+ updateOptions?: (google.cloud.contentwarehouse.v1.IUpdateOptions|null);
+ }
+
+ /** Represents an UpdateDocumentRequest. */
+ class UpdateDocumentRequest implements IUpdateDocumentRequest {
+
+ /**
+ * Constructs a new UpdateDocumentRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.contentwarehouse.v1.IUpdateDocumentRequest);
+
+ /** UpdateDocumentRequest name. */
+ public name: string;
+
+ /** UpdateDocumentRequest document. */
+ public document?: (google.cloud.contentwarehouse.v1.IDocument|null);
+
+ /** UpdateDocumentRequest requestMetadata. */
+ public requestMetadata?: (google.cloud.contentwarehouse.v1.IRequestMetadata|null);
+
+ /** UpdateDocumentRequest cloudAiDocumentOption. */
+ public cloudAiDocumentOption?: (google.cloud.contentwarehouse.v1.ICloudAIDocumentOption|null);
+
+ /** UpdateDocumentRequest updateOptions. */
+ public updateOptions?: (google.cloud.contentwarehouse.v1.IUpdateOptions|null);
+
+ /**
+ * Creates a new UpdateDocumentRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns UpdateDocumentRequest instance
+ */
+ public static create(properties?: google.cloud.contentwarehouse.v1.IUpdateDocumentRequest): google.cloud.contentwarehouse.v1.UpdateDocumentRequest;
+
+ /**
+ * Encodes the specified UpdateDocumentRequest message. Does not implicitly {@link google.cloud.contentwarehouse.v1.UpdateDocumentRequest.verify|verify} messages.
+ * @param message UpdateDocumentRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.contentwarehouse.v1.IUpdateDocumentRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified UpdateDocumentRequest message, length delimited. Does not implicitly {@link google.cloud.contentwarehouse.v1.UpdateDocumentRequest.verify|verify} messages.
+ * @param message UpdateDocumentRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.contentwarehouse.v1.IUpdateDocumentRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an UpdateDocumentRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns UpdateDocumentRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.contentwarehouse.v1.UpdateDocumentRequest;
+
+ /**
+ * Decodes an UpdateDocumentRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns UpdateDocumentRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.contentwarehouse.v1.UpdateDocumentRequest;
+
+ /**
+ * Verifies an UpdateDocumentRequest message.
+ * @param message Plain 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 UpdateDocumentRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns UpdateDocumentRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.contentwarehouse.v1.UpdateDocumentRequest;
+
+ /**
+ * Creates a plain object from an UpdateDocumentRequest message. Also converts values to other types if specified.
+ * @param message UpdateDocumentRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.contentwarehouse.v1.UpdateDocumentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this UpdateDocumentRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for UpdateDocumentRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DeleteDocumentRequest. */
+ interface IDeleteDocumentRequest {
+
+ /** DeleteDocumentRequest name */
+ name?: (string|null);
+
+ /** DeleteDocumentRequest requestMetadata */
+ requestMetadata?: (google.cloud.contentwarehouse.v1.IRequestMetadata|null);
+ }
+
+ /** Represents a DeleteDocumentRequest. */
+ class DeleteDocumentRequest implements IDeleteDocumentRequest {
+
+ /**
+ * Constructs a new DeleteDocumentRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.contentwarehouse.v1.IDeleteDocumentRequest);
+
+ /** DeleteDocumentRequest name. */
+ public name: string;
+
+ /** DeleteDocumentRequest requestMetadata. */
+ public requestMetadata?: (google.cloud.contentwarehouse.v1.IRequestMetadata|null);
+
+ /**
+ * Creates a new DeleteDocumentRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DeleteDocumentRequest instance
+ */
+ public static create(properties?: google.cloud.contentwarehouse.v1.IDeleteDocumentRequest): google.cloud.contentwarehouse.v1.DeleteDocumentRequest;
+
+ /**
+ * Encodes the specified DeleteDocumentRequest message. Does not implicitly {@link google.cloud.contentwarehouse.v1.DeleteDocumentRequest.verify|verify} messages.
+ * @param message DeleteDocumentRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.contentwarehouse.v1.IDeleteDocumentRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DeleteDocumentRequest message, length delimited. Does not implicitly {@link google.cloud.contentwarehouse.v1.DeleteDocumentRequest.verify|verify} messages.
+ * @param message DeleteDocumentRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.contentwarehouse.v1.IDeleteDocumentRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DeleteDocumentRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DeleteDocumentRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.contentwarehouse.v1.DeleteDocumentRequest;
+
+ /**
+ * Decodes a DeleteDocumentRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DeleteDocumentRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.contentwarehouse.v1.DeleteDocumentRequest;
+
+ /**
+ * Verifies a DeleteDocumentRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DeleteDocumentRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DeleteDocumentRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.contentwarehouse.v1.DeleteDocumentRequest;
+
+ /**
+ * Creates a plain object from a DeleteDocumentRequest message. Also converts values to other types if specified.
+ * @param message DeleteDocumentRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.contentwarehouse.v1.DeleteDocumentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DeleteDocumentRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DeleteDocumentRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a SearchDocumentsRequest. */
+ interface ISearchDocumentsRequest {
+
+ /** SearchDocumentsRequest parent */
+ parent?: (string|null);
+
+ /** SearchDocumentsRequest requestMetadata */
+ requestMetadata?: (google.cloud.contentwarehouse.v1.IRequestMetadata|null);
+
+ /** SearchDocumentsRequest documentQuery */
+ documentQuery?: (google.cloud.contentwarehouse.v1.IDocumentQuery|null);
+
+ /** SearchDocumentsRequest offset */
+ offset?: (number|null);
+
+ /** SearchDocumentsRequest pageSize */
+ pageSize?: (number|null);
+
+ /** SearchDocumentsRequest pageToken */
+ pageToken?: (string|null);
+
+ /** SearchDocumentsRequest orderBy */
+ orderBy?: (string|null);
+
+ /** SearchDocumentsRequest histogramQueries */
+ histogramQueries?: (google.cloud.contentwarehouse.v1.IHistogramQuery[]|null);
+
+ /** SearchDocumentsRequest requireTotalSize */
+ requireTotalSize?: (boolean|null);
+
+ /** SearchDocumentsRequest qaSizeLimit */
+ qaSizeLimit?: (number|null);
+ }
+
+ /** Represents a SearchDocumentsRequest. */
+ class SearchDocumentsRequest implements ISearchDocumentsRequest {
+
+ /**
+ * Constructs a new SearchDocumentsRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.contentwarehouse.v1.ISearchDocumentsRequest);
+
+ /** SearchDocumentsRequest parent. */
+ public parent: string;
+
+ /** SearchDocumentsRequest requestMetadata. */
+ public requestMetadata?: (google.cloud.contentwarehouse.v1.IRequestMetadata|null);
+
+ /** SearchDocumentsRequest documentQuery. */
+ public documentQuery?: (google.cloud.contentwarehouse.v1.IDocumentQuery|null);
+
+ /** SearchDocumentsRequest offset. */
+ public offset: number;
+
+ /** SearchDocumentsRequest pageSize. */
+ public pageSize: number;
+
+ /** SearchDocumentsRequest pageToken. */
+ public pageToken: string;
+
+ /** SearchDocumentsRequest orderBy. */
+ public orderBy: string;
+
+ /** SearchDocumentsRequest histogramQueries. */
+ public histogramQueries: google.cloud.contentwarehouse.v1.IHistogramQuery[];
+
+ /** SearchDocumentsRequest requireTotalSize. */
+ public requireTotalSize: boolean;
+
+ /** SearchDocumentsRequest qaSizeLimit. */
+ public qaSizeLimit: number;
+
+ /**
+ * Creates a new SearchDocumentsRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns SearchDocumentsRequest instance
+ */
+ public static create(properties?: google.cloud.contentwarehouse.v1.ISearchDocumentsRequest): google.cloud.contentwarehouse.v1.SearchDocumentsRequest;
+
+ /**
+ * Encodes the specified SearchDocumentsRequest message. Does not implicitly {@link google.cloud.contentwarehouse.v1.SearchDocumentsRequest.verify|verify} messages.
+ * @param message SearchDocumentsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.contentwarehouse.v1.ISearchDocumentsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified SearchDocumentsRequest message, length delimited. Does not implicitly {@link google.cloud.contentwarehouse.v1.SearchDocumentsRequest.verify|verify} messages.
+ * @param message SearchDocumentsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.contentwarehouse.v1.ISearchDocumentsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a SearchDocumentsRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns SearchDocumentsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.contentwarehouse.v1.SearchDocumentsRequest;
+
+ /**
+ * Decodes a SearchDocumentsRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns SearchDocumentsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.contentwarehouse.v1.SearchDocumentsRequest;
+
+ /**
+ * Verifies a SearchDocumentsRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a SearchDocumentsRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns SearchDocumentsRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.contentwarehouse.v1.SearchDocumentsRequest;
+
+ /**
+ * Creates a plain object from a SearchDocumentsRequest message. Also converts values to other types if specified.
+ * @param message SearchDocumentsRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.contentwarehouse.v1.SearchDocumentsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this SearchDocumentsRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for SearchDocumentsRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a FetchAclRequest. */
+ interface IFetchAclRequest {
+
+ /** FetchAclRequest resource */
+ resource?: (string|null);
+
+ /** FetchAclRequest requestMetadata */
+ requestMetadata?: (google.cloud.contentwarehouse.v1.IRequestMetadata|null);
+
+ /** FetchAclRequest projectOwner */
+ projectOwner?: (boolean|null);
+ }
+
+ /** Represents a FetchAclRequest. */
+ class FetchAclRequest implements IFetchAclRequest {
+
+ /**
+ * Constructs a new FetchAclRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.contentwarehouse.v1.IFetchAclRequest);
+
+ /** FetchAclRequest resource. */
+ public resource: string;
+
+ /** FetchAclRequest requestMetadata. */
+ public requestMetadata?: (google.cloud.contentwarehouse.v1.IRequestMetadata|null);
+
+ /** FetchAclRequest projectOwner. */
+ public projectOwner: boolean;
+
+ /**
+ * Creates a new FetchAclRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FetchAclRequest instance
+ */
+ public static create(properties?: google.cloud.contentwarehouse.v1.IFetchAclRequest): google.cloud.contentwarehouse.v1.FetchAclRequest;
+
+ /**
+ * Encodes the specified FetchAclRequest message. Does not implicitly {@link google.cloud.contentwarehouse.v1.FetchAclRequest.verify|verify} messages.
+ * @param message FetchAclRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.contentwarehouse.v1.IFetchAclRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FetchAclRequest message, length delimited. Does not implicitly {@link google.cloud.contentwarehouse.v1.FetchAclRequest.verify|verify} messages.
+ * @param message FetchAclRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.contentwarehouse.v1.IFetchAclRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FetchAclRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FetchAclRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.contentwarehouse.v1.FetchAclRequest;
+
+ /**
+ * Decodes a FetchAclRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FetchAclRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.contentwarehouse.v1.FetchAclRequest;
+
+ /**
+ * Verifies a FetchAclRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FetchAclRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FetchAclRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.contentwarehouse.v1.FetchAclRequest;
+
+ /**
+ * Creates a plain object from a FetchAclRequest message. Also converts values to other types if specified.
+ * @param message FetchAclRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.contentwarehouse.v1.FetchAclRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FetchAclRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FetchAclRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a SetAclRequest. */
+ interface ISetAclRequest {
+
+ /** SetAclRequest resource */
+ resource?: (string|null);
+
+ /** SetAclRequest policy */
+ policy?: (google.iam.v1.IPolicy|null);
+
+ /** SetAclRequest requestMetadata */
+ requestMetadata?: (google.cloud.contentwarehouse.v1.IRequestMetadata|null);
+
+ /** SetAclRequest projectOwner */
+ projectOwner?: (boolean|null);
+ }
+
+ /** Represents a SetAclRequest. */
+ class SetAclRequest implements ISetAclRequest {
+
+ /**
+ * Constructs a new SetAclRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.contentwarehouse.v1.ISetAclRequest);
+
+ /** SetAclRequest resource. */
+ public resource: string;
+
+ /** SetAclRequest policy. */
+ public policy?: (google.iam.v1.IPolicy|null);
+
+ /** SetAclRequest requestMetadata. */
+ public requestMetadata?: (google.cloud.contentwarehouse.v1.IRequestMetadata|null);
+
+ /** SetAclRequest projectOwner. */
+ public projectOwner: boolean;
+
+ /**
+ * Creates a new SetAclRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns SetAclRequest instance
+ */
+ public static create(properties?: google.cloud.contentwarehouse.v1.ISetAclRequest): google.cloud.contentwarehouse.v1.SetAclRequest;
+
+ /**
+ * Encodes the specified SetAclRequest message. Does not implicitly {@link google.cloud.contentwarehouse.v1.SetAclRequest.verify|verify} messages.
+ * @param message SetAclRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.contentwarehouse.v1.ISetAclRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified SetAclRequest message, length delimited. Does not implicitly {@link google.cloud.contentwarehouse.v1.SetAclRequest.verify|verify} messages.
+ * @param message SetAclRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.contentwarehouse.v1.ISetAclRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a SetAclRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns SetAclRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.contentwarehouse.v1.SetAclRequest;
+
+ /**
+ * Decodes a SetAclRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns SetAclRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.contentwarehouse.v1.SetAclRequest;
+
+ /**
+ * Verifies a SetAclRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a SetAclRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns SetAclRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.contentwarehouse.v1.SetAclRequest;
+
+ /**
+ * Creates a plain object from a SetAclRequest message. Also converts values to other types if specified.
+ * @param message SetAclRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.contentwarehouse.v1.SetAclRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this SetAclRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for SetAclRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DocumentQuery. */
+ interface IDocumentQuery {
+
+ /** DocumentQuery query */
+ query?: (string|null);
+
+ /** DocumentQuery isNlQuery */
+ isNlQuery?: (boolean|null);
+
+ /** DocumentQuery customPropertyFilter */
+ customPropertyFilter?: (string|null);
+
+ /** DocumentQuery timeFilters */
+ timeFilters?: (google.cloud.contentwarehouse.v1.ITimeFilter[]|null);
+
+ /** DocumentQuery documentSchemaNames */
+ documentSchemaNames?: (string[]|null);
+
+ /** DocumentQuery propertyFilter */
+ propertyFilter?: (google.cloud.contentwarehouse.v1.IPropertyFilter[]|null);
+
+ /** DocumentQuery fileTypeFilter */
+ fileTypeFilter?: (google.cloud.contentwarehouse.v1.IFileTypeFilter|null);
+
+ /** DocumentQuery folderNameFilter */
+ folderNameFilter?: (string|null);
+
+ /** DocumentQuery queryContext */
+ queryContext?: (string[]|null);
+
+ /** DocumentQuery documentCreatorFilter */
+ documentCreatorFilter?: (string[]|null);
+ }
+
+ /** Represents a DocumentQuery. */
+ class DocumentQuery implements IDocumentQuery {
+
+ /**
+ * Constructs a new DocumentQuery.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.contentwarehouse.v1.IDocumentQuery);
+
+ /** DocumentQuery query. */
+ public query: string;
+
+ /** DocumentQuery isNlQuery. */
+ public isNlQuery: boolean;
+
+ /** DocumentQuery customPropertyFilter. */
+ public customPropertyFilter: string;
+
+ /** DocumentQuery timeFilters. */
+ public timeFilters: google.cloud.contentwarehouse.v1.ITimeFilter[];
+
+ /** DocumentQuery documentSchemaNames. */
+ public documentSchemaNames: string[];
+
+ /** DocumentQuery propertyFilter. */
+ public propertyFilter: google.cloud.contentwarehouse.v1.IPropertyFilter[];
+
+ /** DocumentQuery fileTypeFilter. */
+ public fileTypeFilter?: (google.cloud.contentwarehouse.v1.IFileTypeFilter|null);
+
+ /** DocumentQuery folderNameFilter. */
+ public folderNameFilter: string;
+
+ /** DocumentQuery queryContext. */
+ public queryContext: string[];
+
+ /** DocumentQuery documentCreatorFilter. */
+ public documentCreatorFilter: string[];
+
+ /**
+ * Creates a new DocumentQuery instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DocumentQuery instance
+ */
+ public static create(properties?: google.cloud.contentwarehouse.v1.IDocumentQuery): google.cloud.contentwarehouse.v1.DocumentQuery;
+
+ /**
+ * Encodes the specified DocumentQuery message. Does not implicitly {@link google.cloud.contentwarehouse.v1.DocumentQuery.verify|verify} messages.
+ * @param message DocumentQuery message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.contentwarehouse.v1.IDocumentQuery, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DocumentQuery message, length delimited. Does not implicitly {@link google.cloud.contentwarehouse.v1.DocumentQuery.verify|verify} messages.
+ * @param message DocumentQuery message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.contentwarehouse.v1.IDocumentQuery, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DocumentQuery message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DocumentQuery
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.contentwarehouse.v1.DocumentQuery;
+
+ /**
+ * Decodes a DocumentQuery message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DocumentQuery
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.contentwarehouse.v1.DocumentQuery;
+
+ /**
+ * Verifies a DocumentQuery message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DocumentQuery message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DocumentQuery
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.contentwarehouse.v1.DocumentQuery;
+
+ /**
+ * Creates a plain object from a DocumentQuery message. Also converts values to other types if specified.
+ * @param message DocumentQuery
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.contentwarehouse.v1.DocumentQuery, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DocumentQuery to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DocumentQuery
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a TimeFilter. */
+ interface ITimeFilter {
+
+ /** TimeFilter timeRange */
+ timeRange?: (google.type.IInterval|null);
+
+ /** TimeFilter timeField */
+ timeField?: (google.cloud.contentwarehouse.v1.TimeFilter.TimeField|keyof typeof google.cloud.contentwarehouse.v1.TimeFilter.TimeField|null);
+ }
+
+ /** Represents a TimeFilter. */
+ class TimeFilter implements ITimeFilter {
+
+ /**
+ * Constructs a new TimeFilter.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.contentwarehouse.v1.ITimeFilter);
+
+ /** TimeFilter timeRange. */
+ public timeRange?: (google.type.IInterval|null);
+
+ /** TimeFilter timeField. */
+ public timeField: (google.cloud.contentwarehouse.v1.TimeFilter.TimeField|keyof typeof google.cloud.contentwarehouse.v1.TimeFilter.TimeField);
+
+ /**
+ * Creates a new TimeFilter instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns TimeFilter instance
+ */
+ public static create(properties?: google.cloud.contentwarehouse.v1.ITimeFilter): google.cloud.contentwarehouse.v1.TimeFilter;
+
+ /**
+ * Encodes the specified TimeFilter message. Does not implicitly {@link google.cloud.contentwarehouse.v1.TimeFilter.verify|verify} messages.
+ * @param message TimeFilter message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.contentwarehouse.v1.ITimeFilter, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified TimeFilter message, length delimited. Does not implicitly {@link google.cloud.contentwarehouse.v1.TimeFilter.verify|verify} messages.
+ * @param message TimeFilter message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.contentwarehouse.v1.ITimeFilter, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a TimeFilter message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns TimeFilter
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.contentwarehouse.v1.TimeFilter;
+
+ /**
+ * Decodes a TimeFilter message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns TimeFilter
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.contentwarehouse.v1.TimeFilter;
+
+ /**
+ * Verifies a TimeFilter message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a TimeFilter message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns TimeFilter
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.contentwarehouse.v1.TimeFilter;
+
+ /**
+ * Creates a plain object from a TimeFilter message. Also converts values to other types if specified.
+ * @param message TimeFilter
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.contentwarehouse.v1.TimeFilter, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this TimeFilter to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for TimeFilter
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace TimeFilter {
+
+ /** TimeField enum. */
+ enum TimeField {
+ TIME_FIELD_UNSPECIFIED = 0,
+ CREATE_TIME = 1,
+ UPDATE_TIME = 2
+ }
+ }
+
+ /** Properties of a PropertyFilter. */
+ interface IPropertyFilter {
+
+ /** PropertyFilter documentSchemaName */
+ documentSchemaName?: (string|null);
+
+ /** PropertyFilter condition */
+ condition?: (string|null);
+ }
+
+ /** Represents a PropertyFilter. */
+ class PropertyFilter implements IPropertyFilter {
+
+ /**
+ * Constructs a new PropertyFilter.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.contentwarehouse.v1.IPropertyFilter);
+
+ /** PropertyFilter documentSchemaName. */
+ public documentSchemaName: string;
+
+ /** PropertyFilter condition. */
+ public condition: string;
+
+ /**
+ * Creates a new PropertyFilter instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns PropertyFilter instance
+ */
+ public static create(properties?: google.cloud.contentwarehouse.v1.IPropertyFilter): google.cloud.contentwarehouse.v1.PropertyFilter;
+
+ /**
+ * Encodes the specified PropertyFilter message. Does not implicitly {@link google.cloud.contentwarehouse.v1.PropertyFilter.verify|verify} messages.
+ * @param message PropertyFilter message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.contentwarehouse.v1.IPropertyFilter, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified PropertyFilter message, length delimited. Does not implicitly {@link google.cloud.contentwarehouse.v1.PropertyFilter.verify|verify} messages.
+ * @param message PropertyFilter message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.contentwarehouse.v1.IPropertyFilter, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a PropertyFilter message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns PropertyFilter
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.contentwarehouse.v1.PropertyFilter;
+
+ /**
+ * Decodes a PropertyFilter message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns PropertyFilter
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.contentwarehouse.v1.PropertyFilter;
+
+ /**
+ * Verifies a PropertyFilter message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a PropertyFilter message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns PropertyFilter
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.contentwarehouse.v1.PropertyFilter;
+
+ /**
+ * Creates a plain object from a PropertyFilter message. Also converts values to other types if specified.
+ * @param message PropertyFilter
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.contentwarehouse.v1.PropertyFilter, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this PropertyFilter to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for PropertyFilter
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a FileTypeFilter. */
+ interface IFileTypeFilter {
+
+ /** FileTypeFilter fileType */
+ fileType?: (google.cloud.contentwarehouse.v1.FileTypeFilter.FileType|keyof typeof google.cloud.contentwarehouse.v1.FileTypeFilter.FileType|null);
+ }
+
+ /** Represents a FileTypeFilter. */
+ class FileTypeFilter implements IFileTypeFilter {
+
+ /**
+ * Constructs a new FileTypeFilter.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.contentwarehouse.v1.IFileTypeFilter);
+
+ /** FileTypeFilter fileType. */
+ public fileType: (google.cloud.contentwarehouse.v1.FileTypeFilter.FileType|keyof typeof google.cloud.contentwarehouse.v1.FileTypeFilter.FileType);
+
+ /**
+ * Creates a new FileTypeFilter instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FileTypeFilter instance
+ */
+ public static create(properties?: google.cloud.contentwarehouse.v1.IFileTypeFilter): google.cloud.contentwarehouse.v1.FileTypeFilter;
+
+ /**
+ * Encodes the specified FileTypeFilter message. Does not implicitly {@link google.cloud.contentwarehouse.v1.FileTypeFilter.verify|verify} messages.
+ * @param message FileTypeFilter message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.contentwarehouse.v1.IFileTypeFilter, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FileTypeFilter message, length delimited. Does not implicitly {@link google.cloud.contentwarehouse.v1.FileTypeFilter.verify|verify} messages.
+ * @param message FileTypeFilter message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.contentwarehouse.v1.IFileTypeFilter, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FileTypeFilter message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FileTypeFilter
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.contentwarehouse.v1.FileTypeFilter;
+
+ /**
+ * Decodes a FileTypeFilter message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FileTypeFilter
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.contentwarehouse.v1.FileTypeFilter;
+
+ /**
+ * Verifies a FileTypeFilter message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FileTypeFilter message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FileTypeFilter
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.contentwarehouse.v1.FileTypeFilter;
+
+ /**
+ * Creates a plain object from a FileTypeFilter message. Also converts values to other types if specified.
+ * @param message FileTypeFilter
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.contentwarehouse.v1.FileTypeFilter, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FileTypeFilter to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FileTypeFilter
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace FileTypeFilter {
+
+ /** FileType enum. */
+ enum FileType {
+ FILE_TYPE_UNSPECIFIED = 0,
+ ALL = 1,
+ FOLDER = 2,
+ DOCUMENT = 3
+ }
+ }
+
+ /** Properties of a HistogramQuery. */
+ interface IHistogramQuery {
+
+ /** HistogramQuery histogramQuery */
+ histogramQuery?: (string|null);
+
+ /** HistogramQuery requirePreciseResultSize */
+ requirePreciseResultSize?: (boolean|null);
+
+ /** HistogramQuery filters */
+ filters?: (google.cloud.contentwarehouse.v1.IHistogramQueryPropertyNameFilter|null);
+ }
+
+ /** Represents a HistogramQuery. */
+ class HistogramQuery implements IHistogramQuery {
+
+ /**
+ * Constructs a new HistogramQuery.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.contentwarehouse.v1.IHistogramQuery);
+
+ /** HistogramQuery histogramQuery. */
+ public histogramQuery: string;
+
+ /** HistogramQuery requirePreciseResultSize. */
+ public requirePreciseResultSize: boolean;
+
+ /** HistogramQuery filters. */
+ public filters?: (google.cloud.contentwarehouse.v1.IHistogramQueryPropertyNameFilter|null);
+
+ /**
+ * Creates a new HistogramQuery instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns HistogramQuery instance
+ */
+ public static create(properties?: google.cloud.contentwarehouse.v1.IHistogramQuery): google.cloud.contentwarehouse.v1.HistogramQuery;
+
+ /**
+ * Encodes the specified HistogramQuery message. Does not implicitly {@link google.cloud.contentwarehouse.v1.HistogramQuery.verify|verify} messages.
+ * @param message HistogramQuery message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.contentwarehouse.v1.IHistogramQuery, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified HistogramQuery message, length delimited. Does not implicitly {@link google.cloud.contentwarehouse.v1.HistogramQuery.verify|verify} messages.
+ * @param message HistogramQuery message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.contentwarehouse.v1.IHistogramQuery, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a HistogramQuery message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns HistogramQuery
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.contentwarehouse.v1.HistogramQuery;
+
+ /**
+ * Decodes a HistogramQuery message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns HistogramQuery
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.contentwarehouse.v1.HistogramQuery;
+
+ /**
+ * Verifies a HistogramQuery message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a HistogramQuery message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns HistogramQuery
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.contentwarehouse.v1.HistogramQuery;
+
+ /**
+ * Creates a plain object from a HistogramQuery message. Also converts values to other types if specified.
+ * @param message HistogramQuery
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.contentwarehouse.v1.HistogramQuery, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this HistogramQuery to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for HistogramQuery
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a HistogramQueryPropertyNameFilter. */
+ interface IHistogramQueryPropertyNameFilter {
+
+ /** HistogramQueryPropertyNameFilter documentSchemas */
+ documentSchemas?: (string[]|null);
+
+ /** HistogramQueryPropertyNameFilter propertyNames */
+ propertyNames?: (string[]|null);
+
+ /** HistogramQueryPropertyNameFilter yAxis */
+ yAxis?: (google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.HistogramYAxis|keyof typeof google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.HistogramYAxis|null);
+ }
+
+ /** Represents a HistogramQueryPropertyNameFilter. */
+ class HistogramQueryPropertyNameFilter implements IHistogramQueryPropertyNameFilter {
+
+ /**
+ * Constructs a new HistogramQueryPropertyNameFilter.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.contentwarehouse.v1.IHistogramQueryPropertyNameFilter);
+
+ /** HistogramQueryPropertyNameFilter documentSchemas. */
+ public documentSchemas: string[];
+
+ /** HistogramQueryPropertyNameFilter propertyNames. */
+ public propertyNames: string[];
+
+ /** HistogramQueryPropertyNameFilter yAxis. */
+ public yAxis: (google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.HistogramYAxis|keyof typeof google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.HistogramYAxis);
+
+ /**
+ * Creates a new HistogramQueryPropertyNameFilter instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns HistogramQueryPropertyNameFilter instance
+ */
+ public static create(properties?: google.cloud.contentwarehouse.v1.IHistogramQueryPropertyNameFilter): google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter;
+
+ /**
+ * Encodes the specified HistogramQueryPropertyNameFilter message. Does not implicitly {@link google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.verify|verify} messages.
+ * @param message HistogramQueryPropertyNameFilter message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.contentwarehouse.v1.IHistogramQueryPropertyNameFilter, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified HistogramQueryPropertyNameFilter message, length delimited. Does not implicitly {@link google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.verify|verify} messages.
+ * @param message HistogramQueryPropertyNameFilter message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.contentwarehouse.v1.IHistogramQueryPropertyNameFilter, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a HistogramQueryPropertyNameFilter message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns HistogramQueryPropertyNameFilter
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter;
+
+ /**
+ * Decodes a HistogramQueryPropertyNameFilter message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns HistogramQueryPropertyNameFilter
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter;
+
+ /**
+ * Verifies a HistogramQueryPropertyNameFilter message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a HistogramQueryPropertyNameFilter message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns HistogramQueryPropertyNameFilter
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter;
+
+ /**
+ * Creates a plain object from a HistogramQueryPropertyNameFilter message. Also converts values to other types if specified.
+ * @param message HistogramQueryPropertyNameFilter
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this HistogramQueryPropertyNameFilter to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for HistogramQueryPropertyNameFilter
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace HistogramQueryPropertyNameFilter {
+
+ /** HistogramYAxis enum. */
+ enum HistogramYAxis {
+ HISTOGRAM_YAXIS_DOCUMENT = 0,
+ HISTOGRAM_YAXIS_PROPERTY = 1
+ }
+ }
+
+ /** Properties of a HistogramQueryResult. */
+ interface IHistogramQueryResult {
+
+ /** HistogramQueryResult histogramQuery */
+ histogramQuery?: (string|null);
+
+ /** HistogramQueryResult histogram */
+ histogram?: ({ [k: string]: (number|Long|string) }|null);
+ }
+
+ /** Represents a HistogramQueryResult. */
+ class HistogramQueryResult implements IHistogramQueryResult {
+
+ /**
+ * Constructs a new HistogramQueryResult.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.contentwarehouse.v1.IHistogramQueryResult);
+
+ /** HistogramQueryResult histogramQuery. */
+ public histogramQuery: string;
+
+ /** HistogramQueryResult histogram. */
+ public histogram: { [k: string]: (number|Long|string) };
+
+ /**
+ * Creates a new HistogramQueryResult instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns HistogramQueryResult instance
+ */
+ public static create(properties?: google.cloud.contentwarehouse.v1.IHistogramQueryResult): google.cloud.contentwarehouse.v1.HistogramQueryResult;
+
+ /**
+ * Encodes the specified HistogramQueryResult message. Does not implicitly {@link google.cloud.contentwarehouse.v1.HistogramQueryResult.verify|verify} messages.
+ * @param message HistogramQueryResult message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.contentwarehouse.v1.IHistogramQueryResult, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified HistogramQueryResult message, length delimited. Does not implicitly {@link google.cloud.contentwarehouse.v1.HistogramQueryResult.verify|verify} messages.
+ * @param message HistogramQueryResult message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.contentwarehouse.v1.IHistogramQueryResult, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a HistogramQueryResult message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns HistogramQueryResult
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.contentwarehouse.v1.HistogramQueryResult;
+
+ /**
+ * Decodes a HistogramQueryResult message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns HistogramQueryResult
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.contentwarehouse.v1.HistogramQueryResult;
+
+ /**
+ * Verifies a HistogramQueryResult message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a HistogramQueryResult message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns HistogramQueryResult
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.contentwarehouse.v1.HistogramQueryResult;
+
+ /**
+ * Creates a plain object from a HistogramQueryResult message. Also converts values to other types if specified.
+ * @param message HistogramQueryResult
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.contentwarehouse.v1.HistogramQueryResult, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this HistogramQueryResult to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for HistogramQueryResult
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a RuleSet. */
+ interface IRuleSet {
+
+ /** RuleSet name */
+ name?: (string|null);
+
+ /** RuleSet description */
+ description?: (string|null);
+
+ /** RuleSet source */
+ source?: (string|null);
+
+ /** RuleSet rules */
+ rules?: (google.cloud.contentwarehouse.v1.IRule[]|null);
+ }
+
+ /** Represents a RuleSet. */
+ class RuleSet implements IRuleSet {
+
+ /**
+ * Constructs a new RuleSet.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.contentwarehouse.v1.IRuleSet);
+
+ /** RuleSet name. */
+ public name: string;
+
+ /** RuleSet description. */
+ public description: string;
+
+ /** RuleSet source. */
+ public source: string;
+
+ /** RuleSet rules. */
+ public rules: google.cloud.contentwarehouse.v1.IRule[];
+
+ /**
+ * Creates a new RuleSet instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns RuleSet instance
+ */
+ public static create(properties?: google.cloud.contentwarehouse.v1.IRuleSet): google.cloud.contentwarehouse.v1.RuleSet;
+
+ /**
+ * Encodes the specified RuleSet message. Does not implicitly {@link google.cloud.contentwarehouse.v1.RuleSet.verify|verify} messages.
+ * @param message RuleSet message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.contentwarehouse.v1.IRuleSet, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified RuleSet message, length delimited. Does not implicitly {@link google.cloud.contentwarehouse.v1.RuleSet.verify|verify} messages.
+ * @param message RuleSet message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.contentwarehouse.v1.IRuleSet, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a RuleSet message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns RuleSet
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.contentwarehouse.v1.RuleSet;
+
+ /**
+ * Decodes a RuleSet message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns RuleSet
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.contentwarehouse.v1.RuleSet;
+
+ /**
+ * Verifies a RuleSet message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a RuleSet message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns RuleSet
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.contentwarehouse.v1.RuleSet;
+
+ /**
+ * Creates a plain object from a RuleSet message. Also converts values to other types if specified.
+ * @param message RuleSet
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.contentwarehouse.v1.RuleSet, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this RuleSet to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for RuleSet
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Rule. */
+ interface IRule {
+
+ /** Rule description */
+ description?: (string|null);
+
+ /** Rule ruleId */
+ ruleId?: (string|null);
+
+ /** Rule triggerType */
+ triggerType?: (google.cloud.contentwarehouse.v1.Rule.TriggerType|keyof typeof google.cloud.contentwarehouse.v1.Rule.TriggerType|null);
+
+ /** Rule condition */
+ condition?: (string|null);
+
+ /** Rule actions */
+ actions?: (google.cloud.contentwarehouse.v1.IAction[]|null);
+ }
+
+ /** Represents a Rule. */
+ class Rule implements IRule {
+
+ /**
+ * Constructs a new Rule.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.contentwarehouse.v1.IRule);
+
+ /** Rule description. */
+ public description: string;
+
+ /** Rule ruleId. */
+ public ruleId: string;
+
+ /** Rule triggerType. */
+ public triggerType: (google.cloud.contentwarehouse.v1.Rule.TriggerType|keyof typeof google.cloud.contentwarehouse.v1.Rule.TriggerType);
+
+ /** Rule condition. */
+ public condition: string;
+
+ /** Rule actions. */
+ public actions: google.cloud.contentwarehouse.v1.IAction[];
+
+ /**
+ * Creates a new Rule instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Rule instance
+ */
+ public static create(properties?: google.cloud.contentwarehouse.v1.IRule): google.cloud.contentwarehouse.v1.Rule;
+
+ /**
+ * Encodes the specified Rule message. Does not implicitly {@link google.cloud.contentwarehouse.v1.Rule.verify|verify} messages.
+ * @param message Rule message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.contentwarehouse.v1.IRule, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Rule message, length delimited. Does not implicitly {@link google.cloud.contentwarehouse.v1.Rule.verify|verify} messages.
+ * @param message Rule message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.contentwarehouse.v1.IRule, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Rule message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Rule
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.contentwarehouse.v1.Rule;
+
+ /**
+ * Decodes a Rule message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Rule
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.contentwarehouse.v1.Rule;
+
+ /**
+ * Verifies a Rule message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Rule message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Rule
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.contentwarehouse.v1.Rule;
+
+ /**
+ * Creates a plain object from a Rule message. Also converts values to other types if specified.
+ * @param message Rule
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.contentwarehouse.v1.Rule, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Rule to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Rule
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace Rule {
+
+ /** TriggerType enum. */
+ enum TriggerType {
+ UNKNOWN = 0,
+ ON_CREATE = 1,
+ ON_UPDATE = 4
+ }
+ }
+
+ /** Properties of an Action. */
+ interface IAction {
+
+ /** Action actionId */
+ actionId?: (string|null);
+
+ /** Action accessControl */
+ accessControl?: (google.cloud.contentwarehouse.v1.IAccessControlAction|null);
+
+ /** Action dataValidation */
+ dataValidation?: (google.cloud.contentwarehouse.v1.IDataValidationAction|null);
+
+ /** Action dataUpdate */
+ dataUpdate?: (google.cloud.contentwarehouse.v1.IDataUpdateAction|null);
+
+ /** Action addToFolder */
+ addToFolder?: (google.cloud.contentwarehouse.v1.IAddToFolderAction|null);
+
+ /** Action publishToPubSub */
+ publishToPubSub?: (google.cloud.contentwarehouse.v1.IPublishAction|null);
+
+ /** Action removeFromFolderAction */
+ removeFromFolderAction?: (google.cloud.contentwarehouse.v1.IRemoveFromFolderAction|null);
+
+ /** Action deleteDocumentAction */
+ deleteDocumentAction?: (google.cloud.contentwarehouse.v1.IDeleteDocumentAction|null);
+ }
+
+ /** Represents an Action. */
+ class Action implements IAction {
+
+ /**
+ * Constructs a new Action.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.contentwarehouse.v1.IAction);
+
+ /** Action actionId. */
+ public actionId: string;
+
+ /** Action accessControl. */
+ public accessControl?: (google.cloud.contentwarehouse.v1.IAccessControlAction|null);
+
+ /** Action dataValidation. */
+ public dataValidation?: (google.cloud.contentwarehouse.v1.IDataValidationAction|null);
+
+ /** Action dataUpdate. */
+ public dataUpdate?: (google.cloud.contentwarehouse.v1.IDataUpdateAction|null);
+
+ /** Action addToFolder. */
+ public addToFolder?: (google.cloud.contentwarehouse.v1.IAddToFolderAction|null);
+
+ /** Action publishToPubSub. */
+ public publishToPubSub?: (google.cloud.contentwarehouse.v1.IPublishAction|null);
+
+ /** Action removeFromFolderAction. */
+ public removeFromFolderAction?: (google.cloud.contentwarehouse.v1.IRemoveFromFolderAction|null);
+
+ /** Action deleteDocumentAction. */
+ public deleteDocumentAction?: (google.cloud.contentwarehouse.v1.IDeleteDocumentAction|null);
+
+ /** Action action. */
+ public action?: ("accessControl"|"dataValidation"|"dataUpdate"|"addToFolder"|"publishToPubSub"|"removeFromFolderAction"|"deleteDocumentAction");
+
+ /**
+ * Creates a new Action instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Action instance
+ */
+ public static create(properties?: google.cloud.contentwarehouse.v1.IAction): google.cloud.contentwarehouse.v1.Action;
+
+ /**
+ * Encodes the specified Action message. Does not implicitly {@link google.cloud.contentwarehouse.v1.Action.verify|verify} messages.
+ * @param message Action message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.contentwarehouse.v1.IAction, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Action message, length delimited. Does not implicitly {@link google.cloud.contentwarehouse.v1.Action.verify|verify} messages.
+ * @param message Action message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.contentwarehouse.v1.IAction, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an Action message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Action
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.contentwarehouse.v1.Action;
+
+ /**
+ * Decodes an Action message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Action
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.contentwarehouse.v1.Action;
+
+ /**
+ * Verifies an Action message.
+ * @param message Plain 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 Action message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Action
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.contentwarehouse.v1.Action;
+
+ /**
+ * Creates a plain object from an Action message. Also converts values to other types if specified.
+ * @param message Action
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.contentwarehouse.v1.Action, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Action to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Action
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an AccessControlAction. */
+ interface IAccessControlAction {
+
+ /** AccessControlAction operationType */
+ operationType?: (google.cloud.contentwarehouse.v1.AccessControlAction.OperationType|keyof typeof google.cloud.contentwarehouse.v1.AccessControlAction.OperationType|null);
+
+ /** AccessControlAction policy */
+ policy?: (google.iam.v1.IPolicy|null);
+ }
+
+ /** Represents an AccessControlAction. */
+ class AccessControlAction implements IAccessControlAction {
+
+ /**
+ * Constructs a new AccessControlAction.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.contentwarehouse.v1.IAccessControlAction);
+
+ /** AccessControlAction operationType. */
+ public operationType: (google.cloud.contentwarehouse.v1.AccessControlAction.OperationType|keyof typeof google.cloud.contentwarehouse.v1.AccessControlAction.OperationType);
+
+ /** AccessControlAction policy. */
+ public policy?: (google.iam.v1.IPolicy|null);
+
+ /**
+ * Creates a new AccessControlAction instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns AccessControlAction instance
+ */
+ public static create(properties?: google.cloud.contentwarehouse.v1.IAccessControlAction): google.cloud.contentwarehouse.v1.AccessControlAction;
+
+ /**
+ * Encodes the specified AccessControlAction message. Does not implicitly {@link google.cloud.contentwarehouse.v1.AccessControlAction.verify|verify} messages.
+ * @param message AccessControlAction message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.contentwarehouse.v1.IAccessControlAction, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified AccessControlAction message, length delimited. Does not implicitly {@link google.cloud.contentwarehouse.v1.AccessControlAction.verify|verify} messages.
+ * @param message AccessControlAction message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.contentwarehouse.v1.IAccessControlAction, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an AccessControlAction message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns AccessControlAction
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.contentwarehouse.v1.AccessControlAction;
+
+ /**
+ * Decodes an AccessControlAction message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns AccessControlAction
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.contentwarehouse.v1.AccessControlAction;
+
+ /**
+ * Verifies an AccessControlAction message.
+ * @param message Plain 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 AccessControlAction message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns AccessControlAction
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.contentwarehouse.v1.AccessControlAction;
+
+ /**
+ * Creates a plain object from an AccessControlAction message. Also converts values to other types if specified.
+ * @param message AccessControlAction
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.contentwarehouse.v1.AccessControlAction, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this AccessControlAction to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for AccessControlAction
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace AccessControlAction {
+
+ /** OperationType enum. */
+ enum OperationType {
+ UNKNOWN = 0,
+ ADD_POLICY_BINDING = 1,
+ REMOVE_POLICY_BINDING = 2,
+ REPLACE_POLICY_BINDING = 3
+ }
+ }
+
+ /** Properties of a DataValidationAction. */
+ interface IDataValidationAction {
+
+ /** DataValidationAction conditions */
+ conditions?: ({ [k: string]: string }|null);
+ }
+
+ /** Represents a DataValidationAction. */
+ class DataValidationAction implements IDataValidationAction {
+
+ /**
+ * Constructs a new DataValidationAction.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.contentwarehouse.v1.IDataValidationAction);
+
+ /** DataValidationAction conditions. */
+ public conditions: { [k: string]: string };
+
+ /**
+ * Creates a new DataValidationAction instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DataValidationAction instance
+ */
+ public static create(properties?: google.cloud.contentwarehouse.v1.IDataValidationAction): google.cloud.contentwarehouse.v1.DataValidationAction;
+
+ /**
+ * Encodes the specified DataValidationAction message. Does not implicitly {@link google.cloud.contentwarehouse.v1.DataValidationAction.verify|verify} messages.
+ * @param message DataValidationAction message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.contentwarehouse.v1.IDataValidationAction, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DataValidationAction message, length delimited. Does not implicitly {@link google.cloud.contentwarehouse.v1.DataValidationAction.verify|verify} messages.
+ * @param message DataValidationAction message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.contentwarehouse.v1.IDataValidationAction, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DataValidationAction message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DataValidationAction
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.contentwarehouse.v1.DataValidationAction;
+
+ /**
+ * Decodes a DataValidationAction message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DataValidationAction
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.contentwarehouse.v1.DataValidationAction;
+
+ /**
+ * Verifies a DataValidationAction message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DataValidationAction message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DataValidationAction
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.contentwarehouse.v1.DataValidationAction;
+
+ /**
+ * Creates a plain object from a DataValidationAction message. Also converts values to other types if specified.
+ * @param message DataValidationAction
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.contentwarehouse.v1.DataValidationAction, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DataValidationAction to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DataValidationAction
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DataUpdateAction. */
+ interface IDataUpdateAction {
+
+ /** DataUpdateAction entries */
+ entries?: ({ [k: string]: string }|null);
+ }
+
+ /** Represents a DataUpdateAction. */
+ class DataUpdateAction implements IDataUpdateAction {
+
+ /**
+ * Constructs a new DataUpdateAction.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.contentwarehouse.v1.IDataUpdateAction);
+
+ /** DataUpdateAction entries. */
+ public entries: { [k: string]: string };
+
+ /**
+ * Creates a new DataUpdateAction instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DataUpdateAction instance
+ */
+ public static create(properties?: google.cloud.contentwarehouse.v1.IDataUpdateAction): google.cloud.contentwarehouse.v1.DataUpdateAction;
+
+ /**
+ * Encodes the specified DataUpdateAction message. Does not implicitly {@link google.cloud.contentwarehouse.v1.DataUpdateAction.verify|verify} messages.
+ * @param message DataUpdateAction message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.contentwarehouse.v1.IDataUpdateAction, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DataUpdateAction message, length delimited. Does not implicitly {@link google.cloud.contentwarehouse.v1.DataUpdateAction.verify|verify} messages.
+ * @param message DataUpdateAction message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.contentwarehouse.v1.IDataUpdateAction, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DataUpdateAction message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DataUpdateAction
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.contentwarehouse.v1.DataUpdateAction;
+
+ /**
+ * Decodes a DataUpdateAction message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DataUpdateAction
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.contentwarehouse.v1.DataUpdateAction;
+
+ /**
+ * Verifies a DataUpdateAction message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DataUpdateAction message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DataUpdateAction
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.contentwarehouse.v1.DataUpdateAction;
+
+ /**
+ * Creates a plain object from a DataUpdateAction message. Also converts values to other types if specified.
+ * @param message DataUpdateAction
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.contentwarehouse.v1.DataUpdateAction, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DataUpdateAction to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DataUpdateAction
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an AddToFolderAction. */
+ interface IAddToFolderAction {
+
+ /** AddToFolderAction folders */
+ folders?: (string[]|null);
+ }
+
+ /** Represents an AddToFolderAction. */
+ class AddToFolderAction implements IAddToFolderAction {
+
+ /**
+ * Constructs a new AddToFolderAction.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.contentwarehouse.v1.IAddToFolderAction);
+
+ /** AddToFolderAction folders. */
+ public folders: string[];
+
+ /**
+ * Creates a new AddToFolderAction instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns AddToFolderAction instance
+ */
+ public static create(properties?: google.cloud.contentwarehouse.v1.IAddToFolderAction): google.cloud.contentwarehouse.v1.AddToFolderAction;
+
+ /**
+ * Encodes the specified AddToFolderAction message. Does not implicitly {@link google.cloud.contentwarehouse.v1.AddToFolderAction.verify|verify} messages.
+ * @param message AddToFolderAction message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.contentwarehouse.v1.IAddToFolderAction, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified AddToFolderAction message, length delimited. Does not implicitly {@link google.cloud.contentwarehouse.v1.AddToFolderAction.verify|verify} messages.
+ * @param message AddToFolderAction message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.contentwarehouse.v1.IAddToFolderAction, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an AddToFolderAction message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns AddToFolderAction
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.contentwarehouse.v1.AddToFolderAction;
+
+ /**
+ * Decodes an AddToFolderAction message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns AddToFolderAction
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.contentwarehouse.v1.AddToFolderAction;
+
+ /**
+ * Verifies an AddToFolderAction message.
+ * @param message Plain 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 AddToFolderAction message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns AddToFolderAction
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.contentwarehouse.v1.AddToFolderAction;
+
+ /**
+ * Creates a plain object from an AddToFolderAction message. Also converts values to other types if specified.
+ * @param message AddToFolderAction
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.contentwarehouse.v1.AddToFolderAction, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this AddToFolderAction to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for AddToFolderAction
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a RemoveFromFolderAction. */
+ interface IRemoveFromFolderAction {
+
+ /** RemoveFromFolderAction condition */
+ condition?: (string|null);
+
+ /** RemoveFromFolderAction folder */
+ folder?: (string|null);
+ }
+
+ /** Represents a RemoveFromFolderAction. */
+ class RemoveFromFolderAction implements IRemoveFromFolderAction {
+
+ /**
+ * Constructs a new RemoveFromFolderAction.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.contentwarehouse.v1.IRemoveFromFolderAction);
+
+ /** RemoveFromFolderAction condition. */
+ public condition: string;
+
+ /** RemoveFromFolderAction folder. */
+ public folder: string;
+
+ /**
+ * Creates a new RemoveFromFolderAction instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns RemoveFromFolderAction instance
+ */
+ public static create(properties?: google.cloud.contentwarehouse.v1.IRemoveFromFolderAction): google.cloud.contentwarehouse.v1.RemoveFromFolderAction;
+
+ /**
+ * Encodes the specified RemoveFromFolderAction message. Does not implicitly {@link google.cloud.contentwarehouse.v1.RemoveFromFolderAction.verify|verify} messages.
+ * @param message RemoveFromFolderAction message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.contentwarehouse.v1.IRemoveFromFolderAction, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified RemoveFromFolderAction message, length delimited. Does not implicitly {@link google.cloud.contentwarehouse.v1.RemoveFromFolderAction.verify|verify} messages.
+ * @param message RemoveFromFolderAction message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.contentwarehouse.v1.IRemoveFromFolderAction, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a RemoveFromFolderAction message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns RemoveFromFolderAction
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.contentwarehouse.v1.RemoveFromFolderAction;
+
+ /**
+ * Decodes a RemoveFromFolderAction message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns RemoveFromFolderAction
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.contentwarehouse.v1.RemoveFromFolderAction;
+
+ /**
+ * Verifies a RemoveFromFolderAction message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a RemoveFromFolderAction message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns RemoveFromFolderAction
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.contentwarehouse.v1.RemoveFromFolderAction;
+
+ /**
+ * Creates a plain object from a RemoveFromFolderAction message. Also converts values to other types if specified.
+ * @param message RemoveFromFolderAction
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.contentwarehouse.v1.RemoveFromFolderAction, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this RemoveFromFolderAction to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for RemoveFromFolderAction
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a PublishAction. */
+ interface IPublishAction {
+
+ /** PublishAction topicId */
+ topicId?: (string|null);
+
+ /** PublishAction messages */
+ messages?: (string[]|null);
+ }
+
+ /** Represents a PublishAction. */
+ class PublishAction implements IPublishAction {
+
+ /**
+ * Constructs a new PublishAction.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.contentwarehouse.v1.IPublishAction);
+
+ /** PublishAction topicId. */
+ public topicId: string;
+
+ /** PublishAction messages. */
+ public messages: string[];
+
+ /**
+ * Creates a new PublishAction instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns PublishAction instance
+ */
+ public static create(properties?: google.cloud.contentwarehouse.v1.IPublishAction): google.cloud.contentwarehouse.v1.PublishAction;
+
+ /**
+ * Encodes the specified PublishAction message. Does not implicitly {@link google.cloud.contentwarehouse.v1.PublishAction.verify|verify} messages.
+ * @param message PublishAction message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.contentwarehouse.v1.IPublishAction, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified PublishAction message, length delimited. Does not implicitly {@link google.cloud.contentwarehouse.v1.PublishAction.verify|verify} messages.
+ * @param message PublishAction message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.contentwarehouse.v1.IPublishAction, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a PublishAction message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns PublishAction
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.contentwarehouse.v1.PublishAction;
+
+ /**
+ * Decodes a PublishAction message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns PublishAction
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.contentwarehouse.v1.PublishAction;
+
+ /**
+ * Verifies a PublishAction message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a PublishAction message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns PublishAction
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.contentwarehouse.v1.PublishAction;
+
+ /**
+ * Creates a plain object from a PublishAction message. Also converts values to other types if specified.
+ * @param message PublishAction
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.contentwarehouse.v1.PublishAction, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this PublishAction to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for PublishAction
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DeleteDocumentAction. */
+ interface IDeleteDocumentAction {
+
+ /** DeleteDocumentAction enableHardDelete */
+ enableHardDelete?: (boolean|null);
+ }
+
+ /** Represents a DeleteDocumentAction. */
+ class DeleteDocumentAction implements IDeleteDocumentAction {
+
+ /**
+ * Constructs a new DeleteDocumentAction.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.contentwarehouse.v1.IDeleteDocumentAction);
+
+ /** DeleteDocumentAction enableHardDelete. */
+ public enableHardDelete: boolean;
+
+ /**
+ * Creates a new DeleteDocumentAction instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DeleteDocumentAction instance
+ */
+ public static create(properties?: google.cloud.contentwarehouse.v1.IDeleteDocumentAction): google.cloud.contentwarehouse.v1.DeleteDocumentAction;
+
+ /**
+ * Encodes the specified DeleteDocumentAction message. Does not implicitly {@link google.cloud.contentwarehouse.v1.DeleteDocumentAction.verify|verify} messages.
+ * @param message DeleteDocumentAction message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.contentwarehouse.v1.IDeleteDocumentAction, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DeleteDocumentAction message, length delimited. Does not implicitly {@link google.cloud.contentwarehouse.v1.DeleteDocumentAction.verify|verify} messages.
+ * @param message DeleteDocumentAction message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.contentwarehouse.v1.IDeleteDocumentAction, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DeleteDocumentAction message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DeleteDocumentAction
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.contentwarehouse.v1.DeleteDocumentAction;
+
+ /**
+ * Decodes a DeleteDocumentAction message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DeleteDocumentAction
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.contentwarehouse.v1.DeleteDocumentAction;
+
+ /**
+ * Verifies a DeleteDocumentAction message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DeleteDocumentAction message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DeleteDocumentAction
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.contentwarehouse.v1.DeleteDocumentAction;
+
+ /**
+ * Creates a plain object from a DeleteDocumentAction message. Also converts values to other types if specified.
+ * @param message DeleteDocumentAction
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.contentwarehouse.v1.DeleteDocumentAction, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DeleteDocumentAction to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DeleteDocumentAction
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a RuleEngineOutput. */
+ interface IRuleEngineOutput {
+
+ /** RuleEngineOutput documentName */
+ documentName?: (string|null);
+
+ /** RuleEngineOutput ruleEvaluatorOutput */
+ ruleEvaluatorOutput?: (google.cloud.contentwarehouse.v1.IRuleEvaluatorOutput|null);
+
+ /** RuleEngineOutput actionExecutorOutput */
+ actionExecutorOutput?: (google.cloud.contentwarehouse.v1.IActionExecutorOutput|null);
+ }
+
+ /** Represents a RuleEngineOutput. */
+ class RuleEngineOutput implements IRuleEngineOutput {
+
+ /**
+ * Constructs a new RuleEngineOutput.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.contentwarehouse.v1.IRuleEngineOutput);
+
+ /** RuleEngineOutput documentName. */
+ public documentName: string;
+
+ /** RuleEngineOutput ruleEvaluatorOutput. */
+ public ruleEvaluatorOutput?: (google.cloud.contentwarehouse.v1.IRuleEvaluatorOutput|null);
+
+ /** RuleEngineOutput actionExecutorOutput. */
+ public actionExecutorOutput?: (google.cloud.contentwarehouse.v1.IActionExecutorOutput|null);
+
+ /**
+ * Creates a new RuleEngineOutput instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns RuleEngineOutput instance
+ */
+ public static create(properties?: google.cloud.contentwarehouse.v1.IRuleEngineOutput): google.cloud.contentwarehouse.v1.RuleEngineOutput;
+
+ /**
+ * Encodes the specified RuleEngineOutput message. Does not implicitly {@link google.cloud.contentwarehouse.v1.RuleEngineOutput.verify|verify} messages.
+ * @param message RuleEngineOutput message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.contentwarehouse.v1.IRuleEngineOutput, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified RuleEngineOutput message, length delimited. Does not implicitly {@link google.cloud.contentwarehouse.v1.RuleEngineOutput.verify|verify} messages.
+ * @param message RuleEngineOutput message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.contentwarehouse.v1.IRuleEngineOutput, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a RuleEngineOutput message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns RuleEngineOutput
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.contentwarehouse.v1.RuleEngineOutput;
+
+ /**
+ * Decodes a RuleEngineOutput message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns RuleEngineOutput
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.contentwarehouse.v1.RuleEngineOutput;
+
+ /**
+ * Verifies a RuleEngineOutput message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a RuleEngineOutput message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns RuleEngineOutput
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.contentwarehouse.v1.RuleEngineOutput;
+
+ /**
+ * Creates a plain object from a RuleEngineOutput message. Also converts values to other types if specified.
+ * @param message RuleEngineOutput
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.contentwarehouse.v1.RuleEngineOutput, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this RuleEngineOutput to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for RuleEngineOutput
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a RuleEvaluatorOutput. */
+ interface IRuleEvaluatorOutput {
+
+ /** RuleEvaluatorOutput triggeredRules */
+ triggeredRules?: (google.cloud.contentwarehouse.v1.IRule[]|null);
+
+ /** RuleEvaluatorOutput matchedRules */
+ matchedRules?: (google.cloud.contentwarehouse.v1.IRule[]|null);
+
+ /** RuleEvaluatorOutput invalidRules */
+ invalidRules?: (google.cloud.contentwarehouse.v1.IInvalidRule[]|null);
+ }
+
+ /** Represents a RuleEvaluatorOutput. */
+ class RuleEvaluatorOutput implements IRuleEvaluatorOutput {
+
+ /**
+ * Constructs a new RuleEvaluatorOutput.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.contentwarehouse.v1.IRuleEvaluatorOutput);
+
+ /** RuleEvaluatorOutput triggeredRules. */
+ public triggeredRules: google.cloud.contentwarehouse.v1.IRule[];
+
+ /** RuleEvaluatorOutput matchedRules. */
+ public matchedRules: google.cloud.contentwarehouse.v1.IRule[];
+
+ /** RuleEvaluatorOutput invalidRules. */
+ public invalidRules: google.cloud.contentwarehouse.v1.IInvalidRule[];
+
+ /**
+ * Creates a new RuleEvaluatorOutput instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns RuleEvaluatorOutput instance
+ */
+ public static create(properties?: google.cloud.contentwarehouse.v1.IRuleEvaluatorOutput): google.cloud.contentwarehouse.v1.RuleEvaluatorOutput;
+
+ /**
+ * Encodes the specified RuleEvaluatorOutput message. Does not implicitly {@link google.cloud.contentwarehouse.v1.RuleEvaluatorOutput.verify|verify} messages.
+ * @param message RuleEvaluatorOutput message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.contentwarehouse.v1.IRuleEvaluatorOutput, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified RuleEvaluatorOutput message, length delimited. Does not implicitly {@link google.cloud.contentwarehouse.v1.RuleEvaluatorOutput.verify|verify} messages.
+ * @param message RuleEvaluatorOutput message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.contentwarehouse.v1.IRuleEvaluatorOutput, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a RuleEvaluatorOutput message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns RuleEvaluatorOutput
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.contentwarehouse.v1.RuleEvaluatorOutput;
+
+ /**
+ * Decodes a RuleEvaluatorOutput message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns RuleEvaluatorOutput
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.contentwarehouse.v1.RuleEvaluatorOutput;
+
+ /**
+ * Verifies a RuleEvaluatorOutput message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a RuleEvaluatorOutput message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns RuleEvaluatorOutput
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.contentwarehouse.v1.RuleEvaluatorOutput;
+
+ /**
+ * Creates a plain object from a RuleEvaluatorOutput message. Also converts values to other types if specified.
+ * @param message RuleEvaluatorOutput
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.contentwarehouse.v1.RuleEvaluatorOutput, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this RuleEvaluatorOutput to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for RuleEvaluatorOutput
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an InvalidRule. */
+ interface IInvalidRule {
+
+ /** InvalidRule rule */
+ rule?: (google.cloud.contentwarehouse.v1.IRule|null);
+
+ /** InvalidRule error */
+ error?: (string|null);
+ }
+
+ /** Represents an InvalidRule. */
+ class InvalidRule implements IInvalidRule {
+
+ /**
+ * Constructs a new InvalidRule.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.contentwarehouse.v1.IInvalidRule);
+
+ /** InvalidRule rule. */
+ public rule?: (google.cloud.contentwarehouse.v1.IRule|null);
+
+ /** InvalidRule error. */
+ public error: string;
+
+ /**
+ * Creates a new InvalidRule instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns InvalidRule instance
+ */
+ public static create(properties?: google.cloud.contentwarehouse.v1.IInvalidRule): google.cloud.contentwarehouse.v1.InvalidRule;
+
+ /**
+ * Encodes the specified InvalidRule message. Does not implicitly {@link google.cloud.contentwarehouse.v1.InvalidRule.verify|verify} messages.
+ * @param message InvalidRule message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.contentwarehouse.v1.IInvalidRule, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified InvalidRule message, length delimited. Does not implicitly {@link google.cloud.contentwarehouse.v1.InvalidRule.verify|verify} messages.
+ * @param message InvalidRule message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.contentwarehouse.v1.IInvalidRule, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an InvalidRule message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns InvalidRule
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.contentwarehouse.v1.InvalidRule;
+
+ /**
+ * Decodes an InvalidRule message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns InvalidRule
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.contentwarehouse.v1.InvalidRule;
+
+ /**
+ * Verifies an InvalidRule message.
+ * @param message Plain 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 InvalidRule message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns InvalidRule
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.contentwarehouse.v1.InvalidRule;
+
+ /**
+ * Creates a plain object from an InvalidRule message. Also converts values to other types if specified.
+ * @param message InvalidRule
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.contentwarehouse.v1.InvalidRule, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this InvalidRule to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for InvalidRule
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an ActionExecutorOutput. */
+ interface IActionExecutorOutput {
+
+ /** ActionExecutorOutput ruleActionsPairs */
+ ruleActionsPairs?: (google.cloud.contentwarehouse.v1.IRuleActionsPair[]|null);
+ }
+
+ /** Represents an ActionExecutorOutput. */
+ class ActionExecutorOutput implements IActionExecutorOutput {
+
+ /**
+ * Constructs a new ActionExecutorOutput.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.contentwarehouse.v1.IActionExecutorOutput);
+
+ /** ActionExecutorOutput ruleActionsPairs. */
+ public ruleActionsPairs: google.cloud.contentwarehouse.v1.IRuleActionsPair[];
+
+ /**
+ * Creates a new ActionExecutorOutput instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ActionExecutorOutput instance
+ */
+ public static create(properties?: google.cloud.contentwarehouse.v1.IActionExecutorOutput): google.cloud.contentwarehouse.v1.ActionExecutorOutput;
+
+ /**
+ * Encodes the specified ActionExecutorOutput message. Does not implicitly {@link google.cloud.contentwarehouse.v1.ActionExecutorOutput.verify|verify} messages.
+ * @param message ActionExecutorOutput message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.contentwarehouse.v1.IActionExecutorOutput, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ActionExecutorOutput message, length delimited. Does not implicitly {@link google.cloud.contentwarehouse.v1.ActionExecutorOutput.verify|verify} messages.
+ * @param message ActionExecutorOutput message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.contentwarehouse.v1.IActionExecutorOutput, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an ActionExecutorOutput message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ActionExecutorOutput
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.contentwarehouse.v1.ActionExecutorOutput;
+
+ /**
+ * Decodes an ActionExecutorOutput message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ActionExecutorOutput
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.contentwarehouse.v1.ActionExecutorOutput;
+
+ /**
+ * Verifies an ActionExecutorOutput message.
+ * @param message Plain 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 ActionExecutorOutput message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ActionExecutorOutput
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.contentwarehouse.v1.ActionExecutorOutput;
+
+ /**
+ * Creates a plain object from an ActionExecutorOutput message. Also converts values to other types if specified.
+ * @param message ActionExecutorOutput
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.contentwarehouse.v1.ActionExecutorOutput, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ActionExecutorOutput to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ActionExecutorOutput
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a RuleActionsPair. */
+ interface IRuleActionsPair {
+
+ /** RuleActionsPair rule */
+ rule?: (google.cloud.contentwarehouse.v1.IRule|null);
+
+ /** RuleActionsPair actionOutputs */
+ actionOutputs?: (google.cloud.contentwarehouse.v1.IActionOutput[]|null);
+ }
+
+ /** Represents a RuleActionsPair. */
+ class RuleActionsPair implements IRuleActionsPair {
+
+ /**
+ * Constructs a new RuleActionsPair.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.contentwarehouse.v1.IRuleActionsPair);
+
+ /** RuleActionsPair rule. */
+ public rule?: (google.cloud.contentwarehouse.v1.IRule|null);
+
+ /** RuleActionsPair actionOutputs. */
+ public actionOutputs: google.cloud.contentwarehouse.v1.IActionOutput[];
+
+ /**
+ * Creates a new RuleActionsPair instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns RuleActionsPair instance
+ */
+ public static create(properties?: google.cloud.contentwarehouse.v1.IRuleActionsPair): google.cloud.contentwarehouse.v1.RuleActionsPair;
+
+ /**
+ * Encodes the specified RuleActionsPair message. Does not implicitly {@link google.cloud.contentwarehouse.v1.RuleActionsPair.verify|verify} messages.
+ * @param message RuleActionsPair message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.contentwarehouse.v1.IRuleActionsPair, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified RuleActionsPair message, length delimited. Does not implicitly {@link google.cloud.contentwarehouse.v1.RuleActionsPair.verify|verify} messages.
+ * @param message RuleActionsPair message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.contentwarehouse.v1.IRuleActionsPair, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a RuleActionsPair message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns RuleActionsPair
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.contentwarehouse.v1.RuleActionsPair;
+
+ /**
+ * Decodes a RuleActionsPair message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns RuleActionsPair
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.contentwarehouse.v1.RuleActionsPair;
+
+ /**
+ * Verifies a RuleActionsPair message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a RuleActionsPair message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns RuleActionsPair
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.contentwarehouse.v1.RuleActionsPair;
+
+ /**
+ * Creates a plain object from a RuleActionsPair message. Also converts values to other types if specified.
+ * @param message RuleActionsPair
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.contentwarehouse.v1.RuleActionsPair, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this RuleActionsPair to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for RuleActionsPair
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an ActionOutput. */
+ interface IActionOutput {
+
+ /** ActionOutput actionId */
+ actionId?: (string|null);
+
+ /** ActionOutput actionState */
+ actionState?: (google.cloud.contentwarehouse.v1.ActionOutput.State|keyof typeof google.cloud.contentwarehouse.v1.ActionOutput.State|null);
+
+ /** ActionOutput outputMessage */
+ outputMessage?: (string|null);
+ }
+
+ /** Represents an ActionOutput. */
+ class ActionOutput implements IActionOutput {
+
+ /**
+ * Constructs a new ActionOutput.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.contentwarehouse.v1.IActionOutput);
+
+ /** ActionOutput actionId. */
+ public actionId: string;
+
+ /** ActionOutput actionState. */
+ public actionState: (google.cloud.contentwarehouse.v1.ActionOutput.State|keyof typeof google.cloud.contentwarehouse.v1.ActionOutput.State);
+
+ /** ActionOutput outputMessage. */
+ public outputMessage: string;
+
+ /**
+ * Creates a new ActionOutput instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ActionOutput instance
+ */
+ public static create(properties?: google.cloud.contentwarehouse.v1.IActionOutput): google.cloud.contentwarehouse.v1.ActionOutput;
+
+ /**
+ * Encodes the specified ActionOutput message. Does not implicitly {@link google.cloud.contentwarehouse.v1.ActionOutput.verify|verify} messages.
+ * @param message ActionOutput message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.contentwarehouse.v1.IActionOutput, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ActionOutput message, length delimited. Does not implicitly {@link google.cloud.contentwarehouse.v1.ActionOutput.verify|verify} messages.
+ * @param message ActionOutput message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.contentwarehouse.v1.IActionOutput, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an ActionOutput message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ActionOutput
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.contentwarehouse.v1.ActionOutput;
+
+ /**
+ * Decodes an ActionOutput message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ActionOutput
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.contentwarehouse.v1.ActionOutput;
+
+ /**
+ * Verifies an ActionOutput message.
+ * @param message Plain 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 ActionOutput message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ActionOutput
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.contentwarehouse.v1.ActionOutput;
+
+ /**
+ * Creates a plain object from an ActionOutput message. Also converts values to other types if specified.
+ * @param message ActionOutput
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.contentwarehouse.v1.ActionOutput, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ActionOutput to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ActionOutput
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace ActionOutput {
+
+ /** State enum. */
+ enum State {
+ UNKNOWN = 0,
+ ACTION_SUCCEEDED = 1,
+ ACTION_FAILED = 2,
+ ACTION_TIMED_OUT = 3,
+ ACTION_PENDING = 4
+ }
+ }
+
+ /** Represents a RuleSetService */
+ class RuleSetService extends $protobuf.rpc.Service {
+
+ /**
+ * Constructs a new RuleSetService 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 RuleSetService 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): RuleSetService;
+
+ /**
+ * Calls CreateRuleSet.
+ * @param request CreateRuleSetRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and RuleSet
+ */
+ public createRuleSet(request: google.cloud.contentwarehouse.v1.ICreateRuleSetRequest, callback: google.cloud.contentwarehouse.v1.RuleSetService.CreateRuleSetCallback): void;
+
+ /**
+ * Calls CreateRuleSet.
+ * @param request CreateRuleSetRequest message or plain object
+ * @returns Promise
+ */
+ public createRuleSet(request: google.cloud.contentwarehouse.v1.ICreateRuleSetRequest): Promise;
+
+ /**
+ * Calls GetRuleSet.
+ * @param request GetRuleSetRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and RuleSet
+ */
+ public getRuleSet(request: google.cloud.contentwarehouse.v1.IGetRuleSetRequest, callback: google.cloud.contentwarehouse.v1.RuleSetService.GetRuleSetCallback): void;
+
+ /**
+ * Calls GetRuleSet.
+ * @param request GetRuleSetRequest message or plain object
+ * @returns Promise
+ */
+ public getRuleSet(request: google.cloud.contentwarehouse.v1.IGetRuleSetRequest): Promise;
+
+ /**
+ * Calls UpdateRuleSet.
+ * @param request UpdateRuleSetRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and RuleSet
+ */
+ public updateRuleSet(request: google.cloud.contentwarehouse.v1.IUpdateRuleSetRequest, callback: google.cloud.contentwarehouse.v1.RuleSetService.UpdateRuleSetCallback): void;
+
+ /**
+ * Calls UpdateRuleSet.
+ * @param request UpdateRuleSetRequest message or plain object
+ * @returns Promise
+ */
+ public updateRuleSet(request: google.cloud.contentwarehouse.v1.IUpdateRuleSetRequest): Promise;
+
+ /**
+ * Calls DeleteRuleSet.
+ * @param request DeleteRuleSetRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Empty
+ */
+ public deleteRuleSet(request: google.cloud.contentwarehouse.v1.IDeleteRuleSetRequest, callback: google.cloud.contentwarehouse.v1.RuleSetService.DeleteRuleSetCallback): void;
+
+ /**
+ * Calls DeleteRuleSet.
+ * @param request DeleteRuleSetRequest message or plain object
+ * @returns Promise
+ */
+ public deleteRuleSet(request: google.cloud.contentwarehouse.v1.IDeleteRuleSetRequest): Promise;
+
+ /**
+ * Calls ListRuleSets.
+ * @param request ListRuleSetsRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListRuleSetsResponse
+ */
+ public listRuleSets(request: google.cloud.contentwarehouse.v1.IListRuleSetsRequest, callback: google.cloud.contentwarehouse.v1.RuleSetService.ListRuleSetsCallback): void;
+
+ /**
+ * Calls ListRuleSets.
+ * @param request ListRuleSetsRequest message or plain object
+ * @returns Promise
+ */
+ public listRuleSets(request: google.cloud.contentwarehouse.v1.IListRuleSetsRequest): Promise;
+ }
+
+ namespace RuleSetService {
+
+ /**
+ * Callback as used by {@link google.cloud.contentwarehouse.v1.RuleSetService|createRuleSet}.
+ * @param error Error, if any
+ * @param [response] RuleSet
+ */
+ type CreateRuleSetCallback = (error: (Error|null), response?: google.cloud.contentwarehouse.v1.RuleSet) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.contentwarehouse.v1.RuleSetService|getRuleSet}.
+ * @param error Error, if any
+ * @param [response] RuleSet
+ */
+ type GetRuleSetCallback = (error: (Error|null), response?: google.cloud.contentwarehouse.v1.RuleSet) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.contentwarehouse.v1.RuleSetService|updateRuleSet}.
+ * @param error Error, if any
+ * @param [response] RuleSet
+ */
+ type UpdateRuleSetCallback = (error: (Error|null), response?: google.cloud.contentwarehouse.v1.RuleSet) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.contentwarehouse.v1.RuleSetService|deleteRuleSet}.
+ * @param error Error, if any
+ * @param [response] Empty
+ */
+ type DeleteRuleSetCallback = (error: (Error|null), response?: google.protobuf.Empty) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.contentwarehouse.v1.RuleSetService|listRuleSets}.
+ * @param error Error, if any
+ * @param [response] ListRuleSetsResponse
+ */
+ type ListRuleSetsCallback = (error: (Error|null), response?: google.cloud.contentwarehouse.v1.ListRuleSetsResponse) => void;
+ }
+
+ /** Properties of a CreateRuleSetRequest. */
+ interface ICreateRuleSetRequest {
+
+ /** CreateRuleSetRequest parent */
+ parent?: (string|null);
+
+ /** CreateRuleSetRequest ruleSet */
+ ruleSet?: (google.cloud.contentwarehouse.v1.IRuleSet|null);
+ }
+
+ /** Represents a CreateRuleSetRequest. */
+ class CreateRuleSetRequest implements ICreateRuleSetRequest {
+
+ /**
+ * Constructs a new CreateRuleSetRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.contentwarehouse.v1.ICreateRuleSetRequest);
+
+ /** CreateRuleSetRequest parent. */
+ public parent: string;
+
+ /** CreateRuleSetRequest ruleSet. */
+ public ruleSet?: (google.cloud.contentwarehouse.v1.IRuleSet|null);
+
+ /**
+ * Creates a new CreateRuleSetRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CreateRuleSetRequest instance
+ */
+ public static create(properties?: google.cloud.contentwarehouse.v1.ICreateRuleSetRequest): google.cloud.contentwarehouse.v1.CreateRuleSetRequest;
+
+ /**
+ * Encodes the specified CreateRuleSetRequest message. Does not implicitly {@link google.cloud.contentwarehouse.v1.CreateRuleSetRequest.verify|verify} messages.
+ * @param message CreateRuleSetRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.contentwarehouse.v1.ICreateRuleSetRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CreateRuleSetRequest message, length delimited. Does not implicitly {@link google.cloud.contentwarehouse.v1.CreateRuleSetRequest.verify|verify} messages.
+ * @param message CreateRuleSetRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.contentwarehouse.v1.ICreateRuleSetRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CreateRuleSetRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CreateRuleSetRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.contentwarehouse.v1.CreateRuleSetRequest;
+
+ /**
+ * Decodes a CreateRuleSetRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CreateRuleSetRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.contentwarehouse.v1.CreateRuleSetRequest;
+
+ /**
+ * Verifies a CreateRuleSetRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a CreateRuleSetRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CreateRuleSetRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.contentwarehouse.v1.CreateRuleSetRequest;
+
+ /**
+ * Creates a plain object from a CreateRuleSetRequest message. Also converts values to other types if specified.
+ * @param message CreateRuleSetRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.contentwarehouse.v1.CreateRuleSetRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CreateRuleSetRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CreateRuleSetRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GetRuleSetRequest. */
+ interface IGetRuleSetRequest {
+
+ /** GetRuleSetRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a GetRuleSetRequest. */
+ class GetRuleSetRequest implements IGetRuleSetRequest {
+
+ /**
+ * Constructs a new GetRuleSetRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.contentwarehouse.v1.IGetRuleSetRequest);
+
+ /** GetRuleSetRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new GetRuleSetRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetRuleSetRequest instance
+ */
+ public static create(properties?: google.cloud.contentwarehouse.v1.IGetRuleSetRequest): google.cloud.contentwarehouse.v1.GetRuleSetRequest;
+
+ /**
+ * Encodes the specified GetRuleSetRequest message. Does not implicitly {@link google.cloud.contentwarehouse.v1.GetRuleSetRequest.verify|verify} messages.
+ * @param message GetRuleSetRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.contentwarehouse.v1.IGetRuleSetRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetRuleSetRequest message, length delimited. Does not implicitly {@link google.cloud.contentwarehouse.v1.GetRuleSetRequest.verify|verify} messages.
+ * @param message GetRuleSetRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.contentwarehouse.v1.IGetRuleSetRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetRuleSetRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetRuleSetRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.contentwarehouse.v1.GetRuleSetRequest;
+
+ /**
+ * Decodes a GetRuleSetRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetRuleSetRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.contentwarehouse.v1.GetRuleSetRequest;
+
+ /**
+ * Verifies a GetRuleSetRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GetRuleSetRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetRuleSetRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.contentwarehouse.v1.GetRuleSetRequest;
+
+ /**
+ * Creates a plain object from a GetRuleSetRequest message. Also converts values to other types if specified.
+ * @param message GetRuleSetRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.contentwarehouse.v1.GetRuleSetRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetRuleSetRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetRuleSetRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an UpdateRuleSetRequest. */
+ interface IUpdateRuleSetRequest {
+
+ /** UpdateRuleSetRequest name */
+ name?: (string|null);
+
+ /** UpdateRuleSetRequest ruleSet */
+ ruleSet?: (google.cloud.contentwarehouse.v1.IRuleSet|null);
+ }
+
+ /** Represents an UpdateRuleSetRequest. */
+ class UpdateRuleSetRequest implements IUpdateRuleSetRequest {
+
+ /**
+ * Constructs a new UpdateRuleSetRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.contentwarehouse.v1.IUpdateRuleSetRequest);
+
+ /** UpdateRuleSetRequest name. */
+ public name: string;
+
+ /** UpdateRuleSetRequest ruleSet. */
+ public ruleSet?: (google.cloud.contentwarehouse.v1.IRuleSet|null);
+
+ /**
+ * Creates a new UpdateRuleSetRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns UpdateRuleSetRequest instance
+ */
+ public static create(properties?: google.cloud.contentwarehouse.v1.IUpdateRuleSetRequest): google.cloud.contentwarehouse.v1.UpdateRuleSetRequest;
+
+ /**
+ * Encodes the specified UpdateRuleSetRequest message. Does not implicitly {@link google.cloud.contentwarehouse.v1.UpdateRuleSetRequest.verify|verify} messages.
+ * @param message UpdateRuleSetRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.contentwarehouse.v1.IUpdateRuleSetRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified UpdateRuleSetRequest message, length delimited. Does not implicitly {@link google.cloud.contentwarehouse.v1.UpdateRuleSetRequest.verify|verify} messages.
+ * @param message UpdateRuleSetRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.contentwarehouse.v1.IUpdateRuleSetRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an UpdateRuleSetRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns UpdateRuleSetRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.contentwarehouse.v1.UpdateRuleSetRequest;
+
+ /**
+ * Decodes an UpdateRuleSetRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns UpdateRuleSetRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.contentwarehouse.v1.UpdateRuleSetRequest;
+
+ /**
+ * Verifies an UpdateRuleSetRequest message.
+ * @param message Plain 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 UpdateRuleSetRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns UpdateRuleSetRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.contentwarehouse.v1.UpdateRuleSetRequest;
+
+ /**
+ * Creates a plain object from an UpdateRuleSetRequest message. Also converts values to other types if specified.
+ * @param message UpdateRuleSetRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.contentwarehouse.v1.UpdateRuleSetRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this UpdateRuleSetRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for UpdateRuleSetRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DeleteRuleSetRequest. */
+ interface IDeleteRuleSetRequest {
+
+ /** DeleteRuleSetRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a DeleteRuleSetRequest. */
+ class DeleteRuleSetRequest implements IDeleteRuleSetRequest {
+
+ /**
+ * Constructs a new DeleteRuleSetRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.contentwarehouse.v1.IDeleteRuleSetRequest);
+
+ /** DeleteRuleSetRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new DeleteRuleSetRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DeleteRuleSetRequest instance
+ */
+ public static create(properties?: google.cloud.contentwarehouse.v1.IDeleteRuleSetRequest): google.cloud.contentwarehouse.v1.DeleteRuleSetRequest;
+
+ /**
+ * Encodes the specified DeleteRuleSetRequest message. Does not implicitly {@link google.cloud.contentwarehouse.v1.DeleteRuleSetRequest.verify|verify} messages.
+ * @param message DeleteRuleSetRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.contentwarehouse.v1.IDeleteRuleSetRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DeleteRuleSetRequest message, length delimited. Does not implicitly {@link google.cloud.contentwarehouse.v1.DeleteRuleSetRequest.verify|verify} messages.
+ * @param message DeleteRuleSetRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.contentwarehouse.v1.IDeleteRuleSetRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DeleteRuleSetRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DeleteRuleSetRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.contentwarehouse.v1.DeleteRuleSetRequest;
+
+ /**
+ * Decodes a DeleteRuleSetRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DeleteRuleSetRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.contentwarehouse.v1.DeleteRuleSetRequest;
+
+ /**
+ * Verifies a DeleteRuleSetRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DeleteRuleSetRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DeleteRuleSetRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.contentwarehouse.v1.DeleteRuleSetRequest;
+
+ /**
+ * Creates a plain object from a DeleteRuleSetRequest message. Also converts values to other types if specified.
+ * @param message DeleteRuleSetRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.contentwarehouse.v1.DeleteRuleSetRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DeleteRuleSetRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DeleteRuleSetRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListRuleSetsRequest. */
+ interface IListRuleSetsRequest {
+
+ /** ListRuleSetsRequest parent */
+ parent?: (string|null);
+
+ /** ListRuleSetsRequest pageSize */
+ pageSize?: (number|null);
+
+ /** ListRuleSetsRequest pageToken */
+ pageToken?: (string|null);
+ }
+
+ /** Represents a ListRuleSetsRequest. */
+ class ListRuleSetsRequest implements IListRuleSetsRequest {
+
+ /**
+ * Constructs a new ListRuleSetsRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.contentwarehouse.v1.IListRuleSetsRequest);
+
+ /** ListRuleSetsRequest parent. */
+ public parent: string;
+
+ /** ListRuleSetsRequest pageSize. */
+ public pageSize: number;
+
+ /** ListRuleSetsRequest pageToken. */
+ public pageToken: string;
+
+ /**
+ * Creates a new ListRuleSetsRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListRuleSetsRequest instance
+ */
+ public static create(properties?: google.cloud.contentwarehouse.v1.IListRuleSetsRequest): google.cloud.contentwarehouse.v1.ListRuleSetsRequest;
+
+ /**
+ * Encodes the specified ListRuleSetsRequest message. Does not implicitly {@link google.cloud.contentwarehouse.v1.ListRuleSetsRequest.verify|verify} messages.
+ * @param message ListRuleSetsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.contentwarehouse.v1.IListRuleSetsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListRuleSetsRequest message, length delimited. Does not implicitly {@link google.cloud.contentwarehouse.v1.ListRuleSetsRequest.verify|verify} messages.
+ * @param message ListRuleSetsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.contentwarehouse.v1.IListRuleSetsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListRuleSetsRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListRuleSetsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.contentwarehouse.v1.ListRuleSetsRequest;
+
+ /**
+ * Decodes a ListRuleSetsRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListRuleSetsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.contentwarehouse.v1.ListRuleSetsRequest;
+
+ /**
+ * Verifies a ListRuleSetsRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListRuleSetsRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListRuleSetsRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.contentwarehouse.v1.ListRuleSetsRequest;
+
+ /**
+ * Creates a plain object from a ListRuleSetsRequest message. Also converts values to other types if specified.
+ * @param message ListRuleSetsRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.contentwarehouse.v1.ListRuleSetsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListRuleSetsRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListRuleSetsRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListRuleSetsResponse. */
+ interface IListRuleSetsResponse {
+
+ /** ListRuleSetsResponse ruleSets */
+ ruleSets?: (google.cloud.contentwarehouse.v1.IRuleSet[]|null);
+
+ /** ListRuleSetsResponse nextPageToken */
+ nextPageToken?: (string|null);
+ }
+
+ /** Represents a ListRuleSetsResponse. */
+ class ListRuleSetsResponse implements IListRuleSetsResponse {
+
+ /**
+ * Constructs a new ListRuleSetsResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.contentwarehouse.v1.IListRuleSetsResponse);
+
+ /** ListRuleSetsResponse ruleSets. */
+ public ruleSets: google.cloud.contentwarehouse.v1.IRuleSet[];
+
+ /** ListRuleSetsResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /**
+ * Creates a new ListRuleSetsResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListRuleSetsResponse instance
+ */
+ public static create(properties?: google.cloud.contentwarehouse.v1.IListRuleSetsResponse): google.cloud.contentwarehouse.v1.ListRuleSetsResponse;
+
+ /**
+ * Encodes the specified ListRuleSetsResponse message. Does not implicitly {@link google.cloud.contentwarehouse.v1.ListRuleSetsResponse.verify|verify} messages.
+ * @param message ListRuleSetsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.contentwarehouse.v1.IListRuleSetsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListRuleSetsResponse message, length delimited. Does not implicitly {@link google.cloud.contentwarehouse.v1.ListRuleSetsResponse.verify|verify} messages.
+ * @param message ListRuleSetsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.contentwarehouse.v1.IListRuleSetsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListRuleSetsResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListRuleSetsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.contentwarehouse.v1.ListRuleSetsResponse;
+
+ /**
+ * Decodes a ListRuleSetsResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListRuleSetsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.contentwarehouse.v1.ListRuleSetsResponse;
+
+ /**
+ * Verifies a ListRuleSetsResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListRuleSetsResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListRuleSetsResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.contentwarehouse.v1.ListRuleSetsResponse;
+
+ /**
+ * Creates a plain object from a ListRuleSetsResponse message. Also converts values to other types if specified.
+ * @param message ListRuleSetsResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.contentwarehouse.v1.ListRuleSetsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListRuleSetsResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListRuleSetsResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a SynonymSet. */
+ interface ISynonymSet {
+
+ /** SynonymSet name */
+ name?: (string|null);
+
+ /** SynonymSet context */
+ context?: (string|null);
+
+ /** SynonymSet synonyms */
+ synonyms?: (google.cloud.contentwarehouse.v1.SynonymSet.ISynonym[]|null);
+ }
+
+ /** Represents a SynonymSet. */
+ class SynonymSet implements ISynonymSet {
+
+ /**
+ * Constructs a new SynonymSet.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.contentwarehouse.v1.ISynonymSet);
+
+ /** SynonymSet name. */
+ public name: string;
+
+ /** SynonymSet context. */
+ public context: string;
+
+ /** SynonymSet synonyms. */
+ public synonyms: google.cloud.contentwarehouse.v1.SynonymSet.ISynonym[];
+
+ /**
+ * Creates a new SynonymSet instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns SynonymSet instance
+ */
+ public static create(properties?: google.cloud.contentwarehouse.v1.ISynonymSet): google.cloud.contentwarehouse.v1.SynonymSet;
+
+ /**
+ * Encodes the specified SynonymSet message. Does not implicitly {@link google.cloud.contentwarehouse.v1.SynonymSet.verify|verify} messages.
+ * @param message SynonymSet message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.contentwarehouse.v1.ISynonymSet, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified SynonymSet message, length delimited. Does not implicitly {@link google.cloud.contentwarehouse.v1.SynonymSet.verify|verify} messages.
+ * @param message SynonymSet message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.contentwarehouse.v1.ISynonymSet, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a SynonymSet message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns SynonymSet
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.contentwarehouse.v1.SynonymSet;
+
+ /**
+ * Decodes a SynonymSet message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns SynonymSet
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.contentwarehouse.v1.SynonymSet;
+
+ /**
+ * Verifies a SynonymSet message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a SynonymSet message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns SynonymSet
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.contentwarehouse.v1.SynonymSet;
+
+ /**
+ * Creates a plain object from a SynonymSet message. Also converts values to other types if specified.
+ * @param message SynonymSet
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.contentwarehouse.v1.SynonymSet, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this SynonymSet to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for SynonymSet
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace SynonymSet {
+
+ /** Properties of a Synonym. */
+ interface ISynonym {
+
+ /** Synonym words */
+ words?: (string[]|null);
+ }
+
+ /** Represents a Synonym. */
+ class Synonym implements ISynonym {
+
+ /**
+ * Constructs a new Synonym.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.contentwarehouse.v1.SynonymSet.ISynonym);
+
+ /** Synonym words. */
+ public words: string[];
+
+ /**
+ * Creates a new Synonym instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Synonym instance
+ */
+ public static create(properties?: google.cloud.contentwarehouse.v1.SynonymSet.ISynonym): google.cloud.contentwarehouse.v1.SynonymSet.Synonym;
+
+ /**
+ * Encodes the specified Synonym message. Does not implicitly {@link google.cloud.contentwarehouse.v1.SynonymSet.Synonym.verify|verify} messages.
+ * @param message Synonym message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.contentwarehouse.v1.SynonymSet.ISynonym, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Synonym message, length delimited. Does not implicitly {@link google.cloud.contentwarehouse.v1.SynonymSet.Synonym.verify|verify} messages.
+ * @param message Synonym message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.contentwarehouse.v1.SynonymSet.ISynonym, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Synonym message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Synonym
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.contentwarehouse.v1.SynonymSet.Synonym;
+
+ /**
+ * Decodes a Synonym message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Synonym
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.contentwarehouse.v1.SynonymSet.Synonym;
+
+ /**
+ * Verifies a Synonym message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Synonym message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Synonym
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.contentwarehouse.v1.SynonymSet.Synonym;
+
+ /**
+ * Creates a plain object from a Synonym message. Also converts values to other types if specified.
+ * @param message Synonym
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.contentwarehouse.v1.SynonymSet.Synonym, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Synonym to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Synonym
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Represents a SynonymSetService */
+ class SynonymSetService extends $protobuf.rpc.Service {
+
+ /**
+ * Constructs a new SynonymSetService 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 SynonymSetService 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): SynonymSetService;
+
+ /**
+ * Calls CreateSynonymSet.
+ * @param request CreateSynonymSetRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and SynonymSet
+ */
+ public createSynonymSet(request: google.cloud.contentwarehouse.v1.ICreateSynonymSetRequest, callback: google.cloud.contentwarehouse.v1.SynonymSetService.CreateSynonymSetCallback): void;
+
+ /**
+ * Calls CreateSynonymSet.
+ * @param request CreateSynonymSetRequest message or plain object
+ * @returns Promise
+ */
+ public createSynonymSet(request: google.cloud.contentwarehouse.v1.ICreateSynonymSetRequest): Promise;
+
+ /**
+ * Calls GetSynonymSet.
+ * @param request GetSynonymSetRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and SynonymSet
+ */
+ public getSynonymSet(request: google.cloud.contentwarehouse.v1.IGetSynonymSetRequest, callback: google.cloud.contentwarehouse.v1.SynonymSetService.GetSynonymSetCallback): void;
+
+ /**
+ * Calls GetSynonymSet.
+ * @param request GetSynonymSetRequest message or plain object
+ * @returns Promise
+ */
+ public getSynonymSet(request: google.cloud.contentwarehouse.v1.IGetSynonymSetRequest): Promise;
+
+ /**
+ * Calls UpdateSynonymSet.
+ * @param request UpdateSynonymSetRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and SynonymSet
+ */
+ public updateSynonymSet(request: google.cloud.contentwarehouse.v1.IUpdateSynonymSetRequest, callback: google.cloud.contentwarehouse.v1.SynonymSetService.UpdateSynonymSetCallback): void;
+
+ /**
+ * Calls UpdateSynonymSet.
+ * @param request UpdateSynonymSetRequest message or plain object
+ * @returns Promise
+ */
+ public updateSynonymSet(request: google.cloud.contentwarehouse.v1.IUpdateSynonymSetRequest): Promise;
+
+ /**
+ * Calls DeleteSynonymSet.
+ * @param request DeleteSynonymSetRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Empty
+ */
+ public deleteSynonymSet(request: google.cloud.contentwarehouse.v1.IDeleteSynonymSetRequest, callback: google.cloud.contentwarehouse.v1.SynonymSetService.DeleteSynonymSetCallback): void;
+
+ /**
+ * Calls DeleteSynonymSet.
+ * @param request DeleteSynonymSetRequest message or plain object
+ * @returns Promise
+ */
+ public deleteSynonymSet(request: google.cloud.contentwarehouse.v1.IDeleteSynonymSetRequest): Promise;
+
+ /**
+ * Calls ListSynonymSets.
+ * @param request ListSynonymSetsRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListSynonymSetsResponse
+ */
+ public listSynonymSets(request: google.cloud.contentwarehouse.v1.IListSynonymSetsRequest, callback: google.cloud.contentwarehouse.v1.SynonymSetService.ListSynonymSetsCallback): void;
+
+ /**
+ * Calls ListSynonymSets.
+ * @param request ListSynonymSetsRequest message or plain object
+ * @returns Promise
+ */
+ public listSynonymSets(request: google.cloud.contentwarehouse.v1.IListSynonymSetsRequest): Promise;
+ }
+
+ namespace SynonymSetService {
+
+ /**
+ * Callback as used by {@link google.cloud.contentwarehouse.v1.SynonymSetService|createSynonymSet}.
+ * @param error Error, if any
+ * @param [response] SynonymSet
+ */
+ type CreateSynonymSetCallback = (error: (Error|null), response?: google.cloud.contentwarehouse.v1.SynonymSet) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.contentwarehouse.v1.SynonymSetService|getSynonymSet}.
+ * @param error Error, if any
+ * @param [response] SynonymSet
+ */
+ type GetSynonymSetCallback = (error: (Error|null), response?: google.cloud.contentwarehouse.v1.SynonymSet) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.contentwarehouse.v1.SynonymSetService|updateSynonymSet}.
+ * @param error Error, if any
+ * @param [response] SynonymSet
+ */
+ type UpdateSynonymSetCallback = (error: (Error|null), response?: google.cloud.contentwarehouse.v1.SynonymSet) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.contentwarehouse.v1.SynonymSetService|deleteSynonymSet}.
+ * @param error Error, if any
+ * @param [response] Empty
+ */
+ type DeleteSynonymSetCallback = (error: (Error|null), response?: google.protobuf.Empty) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.contentwarehouse.v1.SynonymSetService|listSynonymSets}.
+ * @param error Error, if any
+ * @param [response] ListSynonymSetsResponse
+ */
+ type ListSynonymSetsCallback = (error: (Error|null), response?: google.cloud.contentwarehouse.v1.ListSynonymSetsResponse) => void;
+ }
+
+ /** Properties of a CreateSynonymSetRequest. */
+ interface ICreateSynonymSetRequest {
+
+ /** CreateSynonymSetRequest parent */
+ parent?: (string|null);
+
+ /** CreateSynonymSetRequest synonymSet */
+ synonymSet?: (google.cloud.contentwarehouse.v1.ISynonymSet|null);
+ }
+
+ /** Represents a CreateSynonymSetRequest. */
+ class CreateSynonymSetRequest implements ICreateSynonymSetRequest {
+
+ /**
+ * Constructs a new CreateSynonymSetRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.contentwarehouse.v1.ICreateSynonymSetRequest);
+
+ /** CreateSynonymSetRequest parent. */
+ public parent: string;
+
+ /** CreateSynonymSetRequest synonymSet. */
+ public synonymSet?: (google.cloud.contentwarehouse.v1.ISynonymSet|null);
+
+ /**
+ * Creates a new CreateSynonymSetRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CreateSynonymSetRequest instance
+ */
+ public static create(properties?: google.cloud.contentwarehouse.v1.ICreateSynonymSetRequest): google.cloud.contentwarehouse.v1.CreateSynonymSetRequest;
+
+ /**
+ * Encodes the specified CreateSynonymSetRequest message. Does not implicitly {@link google.cloud.contentwarehouse.v1.CreateSynonymSetRequest.verify|verify} messages.
+ * @param message CreateSynonymSetRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.contentwarehouse.v1.ICreateSynonymSetRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CreateSynonymSetRequest message, length delimited. Does not implicitly {@link google.cloud.contentwarehouse.v1.CreateSynonymSetRequest.verify|verify} messages.
+ * @param message CreateSynonymSetRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.contentwarehouse.v1.ICreateSynonymSetRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CreateSynonymSetRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CreateSynonymSetRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.contentwarehouse.v1.CreateSynonymSetRequest;
+
+ /**
+ * Decodes a CreateSynonymSetRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CreateSynonymSetRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.contentwarehouse.v1.CreateSynonymSetRequest;
+
+ /**
+ * Verifies a CreateSynonymSetRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a CreateSynonymSetRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CreateSynonymSetRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.contentwarehouse.v1.CreateSynonymSetRequest;
+
+ /**
+ * Creates a plain object from a CreateSynonymSetRequest message. Also converts values to other types if specified.
+ * @param message CreateSynonymSetRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.contentwarehouse.v1.CreateSynonymSetRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CreateSynonymSetRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CreateSynonymSetRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GetSynonymSetRequest. */
+ interface IGetSynonymSetRequest {
+
+ /** GetSynonymSetRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a GetSynonymSetRequest. */
+ class GetSynonymSetRequest implements IGetSynonymSetRequest {
+
+ /**
+ * Constructs a new GetSynonymSetRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.contentwarehouse.v1.IGetSynonymSetRequest);
+
+ /** GetSynonymSetRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new GetSynonymSetRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetSynonymSetRequest instance
+ */
+ public static create(properties?: google.cloud.contentwarehouse.v1.IGetSynonymSetRequest): google.cloud.contentwarehouse.v1.GetSynonymSetRequest;
+
+ /**
+ * Encodes the specified GetSynonymSetRequest message. Does not implicitly {@link google.cloud.contentwarehouse.v1.GetSynonymSetRequest.verify|verify} messages.
+ * @param message GetSynonymSetRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.contentwarehouse.v1.IGetSynonymSetRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetSynonymSetRequest message, length delimited. Does not implicitly {@link google.cloud.contentwarehouse.v1.GetSynonymSetRequest.verify|verify} messages.
+ * @param message GetSynonymSetRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.contentwarehouse.v1.IGetSynonymSetRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetSynonymSetRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetSynonymSetRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.contentwarehouse.v1.GetSynonymSetRequest;
+
+ /**
+ * Decodes a GetSynonymSetRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetSynonymSetRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.contentwarehouse.v1.GetSynonymSetRequest;
+
+ /**
+ * Verifies a GetSynonymSetRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GetSynonymSetRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetSynonymSetRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.contentwarehouse.v1.GetSynonymSetRequest;
+
+ /**
+ * Creates a plain object from a GetSynonymSetRequest message. Also converts values to other types if specified.
+ * @param message GetSynonymSetRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.contentwarehouse.v1.GetSynonymSetRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetSynonymSetRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetSynonymSetRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListSynonymSetsRequest. */
+ interface IListSynonymSetsRequest {
+
+ /** ListSynonymSetsRequest parent */
+ parent?: (string|null);
+
+ /** ListSynonymSetsRequest pageSize */
+ pageSize?: (number|null);
+
+ /** ListSynonymSetsRequest pageToken */
+ pageToken?: (string|null);
+ }
+
+ /** Represents a ListSynonymSetsRequest. */
+ class ListSynonymSetsRequest implements IListSynonymSetsRequest {
+
+ /**
+ * Constructs a new ListSynonymSetsRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.contentwarehouse.v1.IListSynonymSetsRequest);
+
+ /** ListSynonymSetsRequest parent. */
+ public parent: string;
+
+ /** ListSynonymSetsRequest pageSize. */
+ public pageSize: number;
+
+ /** ListSynonymSetsRequest pageToken. */
+ public pageToken: string;
+
+ /**
+ * Creates a new ListSynonymSetsRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListSynonymSetsRequest instance
+ */
+ public static create(properties?: google.cloud.contentwarehouse.v1.IListSynonymSetsRequest): google.cloud.contentwarehouse.v1.ListSynonymSetsRequest;
+
+ /**
+ * Encodes the specified ListSynonymSetsRequest message. Does not implicitly {@link google.cloud.contentwarehouse.v1.ListSynonymSetsRequest.verify|verify} messages.
+ * @param message ListSynonymSetsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.contentwarehouse.v1.IListSynonymSetsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListSynonymSetsRequest message, length delimited. Does not implicitly {@link google.cloud.contentwarehouse.v1.ListSynonymSetsRequest.verify|verify} messages.
+ * @param message ListSynonymSetsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.contentwarehouse.v1.IListSynonymSetsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListSynonymSetsRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListSynonymSetsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.contentwarehouse.v1.ListSynonymSetsRequest;
+
+ /**
+ * Decodes a ListSynonymSetsRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListSynonymSetsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.contentwarehouse.v1.ListSynonymSetsRequest;
+
+ /**
+ * Verifies a ListSynonymSetsRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListSynonymSetsRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListSynonymSetsRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.contentwarehouse.v1.ListSynonymSetsRequest;
+
+ /**
+ * Creates a plain object from a ListSynonymSetsRequest message. Also converts values to other types if specified.
+ * @param message ListSynonymSetsRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.contentwarehouse.v1.ListSynonymSetsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListSynonymSetsRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListSynonymSetsRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListSynonymSetsResponse. */
+ interface IListSynonymSetsResponse {
+
+ /** ListSynonymSetsResponse synonymSets */
+ synonymSets?: (google.cloud.contentwarehouse.v1.ISynonymSet[]|null);
+
+ /** ListSynonymSetsResponse nextPageToken */
+ nextPageToken?: (string|null);
+ }
+
+ /** Represents a ListSynonymSetsResponse. */
+ class ListSynonymSetsResponse implements IListSynonymSetsResponse {
+
+ /**
+ * Constructs a new ListSynonymSetsResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.contentwarehouse.v1.IListSynonymSetsResponse);
+
+ /** ListSynonymSetsResponse synonymSets. */
+ public synonymSets: google.cloud.contentwarehouse.v1.ISynonymSet[];
+
+ /** ListSynonymSetsResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /**
+ * Creates a new ListSynonymSetsResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListSynonymSetsResponse instance
+ */
+ public static create(properties?: google.cloud.contentwarehouse.v1.IListSynonymSetsResponse): google.cloud.contentwarehouse.v1.ListSynonymSetsResponse;
+
+ /**
+ * Encodes the specified ListSynonymSetsResponse message. Does not implicitly {@link google.cloud.contentwarehouse.v1.ListSynonymSetsResponse.verify|verify} messages.
+ * @param message ListSynonymSetsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.contentwarehouse.v1.IListSynonymSetsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListSynonymSetsResponse message, length delimited. Does not implicitly {@link google.cloud.contentwarehouse.v1.ListSynonymSetsResponse.verify|verify} messages.
+ * @param message ListSynonymSetsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.contentwarehouse.v1.IListSynonymSetsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListSynonymSetsResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListSynonymSetsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.contentwarehouse.v1.ListSynonymSetsResponse;
+
+ /**
+ * Decodes a ListSynonymSetsResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListSynonymSetsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.contentwarehouse.v1.ListSynonymSetsResponse;
+
+ /**
+ * Verifies a ListSynonymSetsResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListSynonymSetsResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListSynonymSetsResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.contentwarehouse.v1.ListSynonymSetsResponse;
+
+ /**
+ * Creates a plain object from a ListSynonymSetsResponse message. Also converts values to other types if specified.
+ * @param message ListSynonymSetsResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.contentwarehouse.v1.ListSynonymSetsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListSynonymSetsResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListSynonymSetsResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an UpdateSynonymSetRequest. */
+ interface IUpdateSynonymSetRequest {
+
+ /** UpdateSynonymSetRequest name */
+ name?: (string|null);
+
+ /** UpdateSynonymSetRequest synonymSet */
+ synonymSet?: (google.cloud.contentwarehouse.v1.ISynonymSet|null);
+ }
+
+ /** Represents an UpdateSynonymSetRequest. */
+ class UpdateSynonymSetRequest implements IUpdateSynonymSetRequest {
+
+ /**
+ * Constructs a new UpdateSynonymSetRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.contentwarehouse.v1.IUpdateSynonymSetRequest);
+
+ /** UpdateSynonymSetRequest name. */
+ public name: string;
+
+ /** UpdateSynonymSetRequest synonymSet. */
+ public synonymSet?: (google.cloud.contentwarehouse.v1.ISynonymSet|null);
+
+ /**
+ * Creates a new UpdateSynonymSetRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns UpdateSynonymSetRequest instance
+ */
+ public static create(properties?: google.cloud.contentwarehouse.v1.IUpdateSynonymSetRequest): google.cloud.contentwarehouse.v1.UpdateSynonymSetRequest;
+
+ /**
+ * Encodes the specified UpdateSynonymSetRequest message. Does not implicitly {@link google.cloud.contentwarehouse.v1.UpdateSynonymSetRequest.verify|verify} messages.
+ * @param message UpdateSynonymSetRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.contentwarehouse.v1.IUpdateSynonymSetRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified UpdateSynonymSetRequest message, length delimited. Does not implicitly {@link google.cloud.contentwarehouse.v1.UpdateSynonymSetRequest.verify|verify} messages.
+ * @param message UpdateSynonymSetRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.contentwarehouse.v1.IUpdateSynonymSetRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an UpdateSynonymSetRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns UpdateSynonymSetRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.contentwarehouse.v1.UpdateSynonymSetRequest;
+
+ /**
+ * Decodes an UpdateSynonymSetRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns UpdateSynonymSetRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.contentwarehouse.v1.UpdateSynonymSetRequest;
+
+ /**
+ * Verifies an UpdateSynonymSetRequest message.
+ * @param message Plain 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 UpdateSynonymSetRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns UpdateSynonymSetRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.contentwarehouse.v1.UpdateSynonymSetRequest;
+
+ /**
+ * Creates a plain object from an UpdateSynonymSetRequest message. Also converts values to other types if specified.
+ * @param message UpdateSynonymSetRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.contentwarehouse.v1.UpdateSynonymSetRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this UpdateSynonymSetRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for UpdateSynonymSetRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DeleteSynonymSetRequest. */
+ interface IDeleteSynonymSetRequest {
+
+ /** DeleteSynonymSetRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a DeleteSynonymSetRequest. */
+ class DeleteSynonymSetRequest implements IDeleteSynonymSetRequest {
+
+ /**
+ * Constructs a new DeleteSynonymSetRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.contentwarehouse.v1.IDeleteSynonymSetRequest);
+
+ /** DeleteSynonymSetRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new DeleteSynonymSetRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DeleteSynonymSetRequest instance
+ */
+ public static create(properties?: google.cloud.contentwarehouse.v1.IDeleteSynonymSetRequest): google.cloud.contentwarehouse.v1.DeleteSynonymSetRequest;
+
+ /**
+ * Encodes the specified DeleteSynonymSetRequest message. Does not implicitly {@link google.cloud.contentwarehouse.v1.DeleteSynonymSetRequest.verify|verify} messages.
+ * @param message DeleteSynonymSetRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.contentwarehouse.v1.IDeleteSynonymSetRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DeleteSynonymSetRequest message, length delimited. Does not implicitly {@link google.cloud.contentwarehouse.v1.DeleteSynonymSetRequest.verify|verify} messages.
+ * @param message DeleteSynonymSetRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.contentwarehouse.v1.IDeleteSynonymSetRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DeleteSynonymSetRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DeleteSynonymSetRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.contentwarehouse.v1.DeleteSynonymSetRequest;
+
+ /**
+ * Decodes a DeleteSynonymSetRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DeleteSynonymSetRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.contentwarehouse.v1.DeleteSynonymSetRequest;
+
+ /**
+ * Verifies a DeleteSynonymSetRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DeleteSynonymSetRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DeleteSynonymSetRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.contentwarehouse.v1.DeleteSynonymSetRequest;
+
+ /**
+ * Creates a plain object from a DeleteSynonymSetRequest message. Also converts values to other types if specified.
+ * @param message DeleteSynonymSetRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.contentwarehouse.v1.DeleteSynonymSetRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DeleteSynonymSetRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DeleteSynonymSetRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+ }
+
+ /** Namespace documentai. */
+ namespace documentai {
+
+ /** Namespace v1. */
+ namespace v1 {
+
+ /** 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);
+ }
+
+ /** 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);
+
+ /**
+ * 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 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 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);
+ }
+
+ /** 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[];
+
+ /**
+ * 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 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 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 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;
+ }
+ }
+ }
+ }
+
+ /** 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 ResourceDescriptor. */
+ interface IResourceDescriptor {
+
+ /** ResourceDescriptor type */
+ type?: (string|null);
+
+ /** ResourceDescriptor pattern */
+ pattern?: (string[]|null);
+
+ /** ResourceDescriptor nameField */
+ nameField?: (string|null);
+
+ /** ResourceDescriptor history */
+ history?: (google.api.ResourceDescriptor.History|keyof typeof google.api.ResourceDescriptor.History|null);
+
+ /** ResourceDescriptor plural */
+ plural?: (string|null);
+
+ /** ResourceDescriptor singular */
+ singular?: (string|null);
+
+ /** ResourceDescriptor style */
+ style?: (google.api.ResourceDescriptor.Style[]|null);
+ }
+
+ /** Represents a ResourceDescriptor. */
+ class ResourceDescriptor implements IResourceDescriptor {
+
+ /**
+ * Constructs a new ResourceDescriptor.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IResourceDescriptor);
+
+ /** ResourceDescriptor type. */
+ public type: string;
+
+ /** ResourceDescriptor pattern. */
+ public pattern: string[];
+
+ /** ResourceDescriptor nameField. */
+ public nameField: string;
+
+ /** ResourceDescriptor history. */
+ public history: (google.api.ResourceDescriptor.History|keyof typeof google.api.ResourceDescriptor.History);
+
+ /** ResourceDescriptor plural. */
+ public plural: string;
+
+ /** ResourceDescriptor singular. */
+ public singular: string;
+
+ /** ResourceDescriptor style. */
+ public style: google.api.ResourceDescriptor.Style[];
+
+ /**
+ * Creates a new ResourceDescriptor instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ResourceDescriptor instance
+ */
+ public static create(properties?: google.api.IResourceDescriptor): google.api.ResourceDescriptor;
+
+ /**
+ * Encodes the specified ResourceDescriptor message. Does not implicitly {@link google.api.ResourceDescriptor.verify|verify} messages.
+ * @param message ResourceDescriptor message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IResourceDescriptor, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ResourceDescriptor message, length delimited. Does not implicitly {@link google.api.ResourceDescriptor.verify|verify} messages.
+ * @param message ResourceDescriptor message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IResourceDescriptor, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ResourceDescriptor message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ResourceDescriptor
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.ResourceDescriptor;
+
+ /**
+ * Decodes a ResourceDescriptor message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ResourceDescriptor
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.ResourceDescriptor;
+
+ /**
+ * Verifies a ResourceDescriptor message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ResourceDescriptor message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ResourceDescriptor
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.ResourceDescriptor;
+
+ /**
+ * Creates a plain object from a ResourceDescriptor message. Also converts values to other types if specified.
+ * @param message ResourceDescriptor
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.ResourceDescriptor, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ResourceDescriptor to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ResourceDescriptor
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace ResourceDescriptor {
+
+ /** History enum. */
+ enum History {
+ HISTORY_UNSPECIFIED = 0,
+ ORIGINALLY_SINGLE_PATTERN = 1,
+ FUTURE_MULTI_PATTERN = 2
+ }
+
+ /** Style enum. */
+ enum Style {
+ STYLE_UNSPECIFIED = 0,
+ DECLARATIVE_FRIENDLY = 1
+ }
+ }
+
+ /** Properties of a ResourceReference. */
+ interface IResourceReference {
+
+ /** ResourceReference type */
+ type?: (string|null);
+
+ /** ResourceReference childType */
+ childType?: (string|null);
+ }
+
+ /** Represents a ResourceReference. */
+ class ResourceReference implements IResourceReference {
+
+ /**
+ * Constructs a new ResourceReference.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IResourceReference);
+
+ /** ResourceReference type. */
+ public type: string;
+
+ /** ResourceReference childType. */
+ public childType: string;
+
+ /**
+ * Creates a new ResourceReference instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ResourceReference instance
+ */
+ public static create(properties?: google.api.IResourceReference): google.api.ResourceReference;
+
+ /**
+ * Encodes the specified ResourceReference message. Does not implicitly {@link google.api.ResourceReference.verify|verify} messages.
+ * @param message ResourceReference message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IResourceReference, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ResourceReference message, length delimited. Does not implicitly {@link google.api.ResourceReference.verify|verify} messages.
+ * @param message ResourceReference message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IResourceReference, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ResourceReference message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ResourceReference
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.ResourceReference;
+
+ /**
+ * Decodes a ResourceReference message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ResourceReference
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.ResourceReference;
+
+ /**
+ * Verifies a ResourceReference message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ResourceReference message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ResourceReference
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.ResourceReference;
+
+ /**
+ * Creates a plain object from a ResourceReference message. Also converts values to other types if specified.
+ * @param message ResourceReference
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.ResourceReference, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ResourceReference to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ResourceReference
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Http. */
+ interface IHttp {
+
+ /** Http rules */
+ rules?: (google.api.IHttpRule[]|null);
+
+ /** Http fullyDecodeReservedExpansion */
+ fullyDecodeReservedExpansion?: (boolean|null);
+ }
+
+ /** Represents a Http. */
+ class Http implements IHttp {
+
+ /**
+ * Constructs a new Http.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IHttp);
+
+ /** Http rules. */
+ public rules: google.api.IHttpRule[];
+
+ /** Http fullyDecodeReservedExpansion. */
+ public fullyDecodeReservedExpansion: boolean;
+
+ /**
+ * Creates a new Http instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Http instance
+ */
+ public static create(properties?: google.api.IHttp): google.api.Http;
+
+ /**
+ * Encodes the specified Http message. Does not implicitly {@link google.api.Http.verify|verify} messages.
+ * @param message Http message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IHttp, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Http message, length delimited. Does not implicitly {@link google.api.Http.verify|verify} messages.
+ * @param message Http message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IHttp, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Http message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Http
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.Http;
+
+ /**
+ * Decodes a Http message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Http
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.Http;
+
+ /**
+ * Verifies a Http message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Http message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Http
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.Http;
+
+ /**
+ * Creates a plain object from a Http message. Also converts values to other types if specified.
+ * @param message Http
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.Http, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Http to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Http
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a HttpRule. */
+ interface IHttpRule {
+
+ /** HttpRule selector */
+ selector?: (string|null);
+
+ /** HttpRule get */
+ get?: (string|null);
+
+ /** HttpRule put */
+ put?: (string|null);
+
+ /** HttpRule post */
+ post?: (string|null);
+
+ /** HttpRule delete */
+ "delete"?: (string|null);
+
+ /** HttpRule patch */
+ patch?: (string|null);
+
+ /** HttpRule custom */
+ custom?: (google.api.ICustomHttpPattern|null);
+
+ /** HttpRule body */
+ body?: (string|null);
+
+ /** HttpRule responseBody */
+ responseBody?: (string|null);
+
+ /** HttpRule additionalBindings */
+ additionalBindings?: (google.api.IHttpRule[]|null);
+ }
+
+ /** Represents a HttpRule. */
+ class HttpRule implements IHttpRule {
+
+ /**
+ * Constructs a new HttpRule.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IHttpRule);
+
+ /** HttpRule selector. */
+ public selector: string;
+
+ /** HttpRule get. */
+ public get?: (string|null);
+
+ /** HttpRule put. */
+ public put?: (string|null);
+
+ /** HttpRule post. */
+ public post?: (string|null);
+
+ /** HttpRule delete. */
+ public delete?: (string|null);
+
+ /** HttpRule patch. */
+ public patch?: (string|null);
+
+ /** HttpRule custom. */
+ public custom?: (google.api.ICustomHttpPattern|null);
+
+ /** HttpRule body. */
+ public body: string;
+
+ /** HttpRule responseBody. */
+ public responseBody: string;
+
+ /** HttpRule additionalBindings. */
+ public additionalBindings: google.api.IHttpRule[];
+
+ /** HttpRule pattern. */
+ public pattern?: ("get"|"put"|"post"|"delete"|"patch"|"custom");
+
+ /**
+ * Creates a new HttpRule instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns HttpRule instance
+ */
+ public static create(properties?: google.api.IHttpRule): google.api.HttpRule;
+
+ /**
+ * Encodes the specified HttpRule message. Does not implicitly {@link google.api.HttpRule.verify|verify} messages.
+ * @param message HttpRule message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IHttpRule, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified HttpRule message, length delimited. Does not implicitly {@link google.api.HttpRule.verify|verify} messages.
+ * @param message HttpRule message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IHttpRule, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a HttpRule message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns HttpRule
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.HttpRule;
+
+ /**
+ * Decodes a HttpRule message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns HttpRule
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.HttpRule;
+
+ /**
+ * Verifies a HttpRule message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a HttpRule message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns HttpRule
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.HttpRule;
+
+ /**
+ * Creates a plain object from a HttpRule message. Also converts values to other types if specified.
+ * @param message HttpRule
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.HttpRule, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this HttpRule to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for HttpRule
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CustomHttpPattern. */
+ interface ICustomHttpPattern {
+
+ /** CustomHttpPattern kind */
+ kind?: (string|null);
+
+ /** CustomHttpPattern path */
+ path?: (string|null);
+ }
+
+ /** Represents a CustomHttpPattern. */
+ class CustomHttpPattern implements ICustomHttpPattern {
+
+ /**
+ * Constructs a new CustomHttpPattern.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.ICustomHttpPattern);
+
+ /** CustomHttpPattern kind. */
+ public kind: string;
+
+ /** CustomHttpPattern path. */
+ public path: string;
+
+ /**
+ * Creates a new CustomHttpPattern instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CustomHttpPattern instance
+ */
+ public static create(properties?: google.api.ICustomHttpPattern): google.api.CustomHttpPattern;
+
+ /**
+ * Encodes the specified CustomHttpPattern message. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages.
+ * @param message CustomHttpPattern message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.ICustomHttpPattern, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CustomHttpPattern message, length delimited. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages.
+ * @param message CustomHttpPattern message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.ICustomHttpPattern, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CustomHttpPattern message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CustomHttpPattern
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.CustomHttpPattern;
+
+ /**
+ * Decodes a CustomHttpPattern message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CustomHttpPattern
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.CustomHttpPattern;
+
+ /**
+ * Verifies a CustomHttpPattern message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a CustomHttpPattern message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CustomHttpPattern
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.CustomHttpPattern;
+
+ /**
+ * Creates a plain object from a CustomHttpPattern message. Also converts values to other types if specified.
+ * @param message CustomHttpPattern
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.CustomHttpPattern, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CustomHttpPattern to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CustomHttpPattern
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Namespace protobuf. */
+ namespace protobuf {
+
+ /** Properties of a FileDescriptorSet. */
+ interface IFileDescriptorSet {
+
+ /** FileDescriptorSet file */
+ file?: (google.protobuf.IFileDescriptorProto[]|null);
+ }
+
+ /** Represents a FileDescriptorSet. */
+ class FileDescriptorSet implements IFileDescriptorSet {
+
+ /**
+ * Constructs a new FileDescriptorSet.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IFileDescriptorSet);
+
+ /** FileDescriptorSet file. */
+ public file: google.protobuf.IFileDescriptorProto[];
+
+ /**
+ * Creates a new FileDescriptorSet instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FileDescriptorSet instance
+ */
+ public static create(properties?: google.protobuf.IFileDescriptorSet): google.protobuf.FileDescriptorSet;
+
+ /**
+ * Encodes the specified FileDescriptorSet message. Does not implicitly {@link google.protobuf.FileDescriptorSet.verify|verify} messages.
+ * @param message FileDescriptorSet message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IFileDescriptorSet, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FileDescriptorSet message, length delimited. Does not implicitly {@link google.protobuf.FileDescriptorSet.verify|verify} messages.
+ * @param message FileDescriptorSet message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IFileDescriptorSet, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FileDescriptorSet message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FileDescriptorSet
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FileDescriptorSet;
+
+ /**
+ * Decodes a FileDescriptorSet message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FileDescriptorSet
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FileDescriptorSet;
+
+ /**
+ * Verifies a FileDescriptorSet message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FileDescriptorSet message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FileDescriptorSet
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.FileDescriptorSet;
+
+ /**
+ * Creates a plain object from a FileDescriptorSet message. Also converts values to other types if specified.
+ * @param message FileDescriptorSet
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.FileDescriptorSet, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FileDescriptorSet to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FileDescriptorSet
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a FileDescriptorProto. */
+ interface IFileDescriptorProto {
+
+ /** FileDescriptorProto name */
+ name?: (string|null);
+
+ /** FileDescriptorProto package */
+ "package"?: (string|null);
+
+ /** FileDescriptorProto dependency */
+ dependency?: (string[]|null);
+
+ /** FileDescriptorProto publicDependency */
+ publicDependency?: (number[]|null);
+
+ /** FileDescriptorProto weakDependency */
+ weakDependency?: (number[]|null);
+
+ /** FileDescriptorProto messageType */
+ messageType?: (google.protobuf.IDescriptorProto[]|null);
+
+ /** FileDescriptorProto enumType */
+ enumType?: (google.protobuf.IEnumDescriptorProto[]|null);
+
+ /** FileDescriptorProto service */
+ service?: (google.protobuf.IServiceDescriptorProto[]|null);
+
+ /** FileDescriptorProto extension */
+ extension?: (google.protobuf.IFieldDescriptorProto[]|null);
+
+ /** FileDescriptorProto options */
+ options?: (google.protobuf.IFileOptions|null);
+
+ /** FileDescriptorProto sourceCodeInfo */
+ sourceCodeInfo?: (google.protobuf.ISourceCodeInfo|null);
+
+ /** FileDescriptorProto syntax */
+ syntax?: (string|null);
+
+ /** FileDescriptorProto edition */
+ edition?: (string|null);
+ }
+
+ /** Represents a FileDescriptorProto. */
+ class FileDescriptorProto implements IFileDescriptorProto {
+
+ /**
+ * Constructs a new FileDescriptorProto.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IFileDescriptorProto);
+
+ /** FileDescriptorProto name. */
+ public name: string;
+
+ /** FileDescriptorProto package. */
+ public package: string;
+
+ /** FileDescriptorProto dependency. */
+ public dependency: string[];
+
+ /** FileDescriptorProto publicDependency. */
+ public publicDependency: number[];
+
+ /** FileDescriptorProto weakDependency. */
+ public weakDependency: number[];
+
+ /** FileDescriptorProto messageType. */
+ public messageType: google.protobuf.IDescriptorProto[];
+
+ /** FileDescriptorProto enumType. */
+ public enumType: google.protobuf.IEnumDescriptorProto[];
+
+ /** FileDescriptorProto service. */
+ public service: google.protobuf.IServiceDescriptorProto[];
+
+ /** FileDescriptorProto extension. */
+ public extension: google.protobuf.IFieldDescriptorProto[];
+
+ /** FileDescriptorProto options. */
+ public options?: (google.protobuf.IFileOptions|null);
+
+ /** FileDescriptorProto sourceCodeInfo. */
+ public sourceCodeInfo?: (google.protobuf.ISourceCodeInfo|null);
+
+ /** FileDescriptorProto syntax. */
+ public syntax: string;
+
+ /** FileDescriptorProto edition. */
+ public edition: string;
+
+ /**
+ * Creates a new FileDescriptorProto instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FileDescriptorProto instance
+ */
+ public static create(properties?: google.protobuf.IFileDescriptorProto): google.protobuf.FileDescriptorProto;
+
+ /**
+ * Encodes the specified FileDescriptorProto message. Does not implicitly {@link google.protobuf.FileDescriptorProto.verify|verify} messages.
+ * @param message FileDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IFileDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FileDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.FileDescriptorProto.verify|verify} messages.
+ * @param message FileDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IFileDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FileDescriptorProto message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FileDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FileDescriptorProto;
+
+ /**
+ * Decodes a FileDescriptorProto message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FileDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FileDescriptorProto;
+
+ /**
+ * Verifies a FileDescriptorProto message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FileDescriptorProto message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FileDescriptorProto
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.FileDescriptorProto;
+
+ /**
+ * Creates a plain object from a FileDescriptorProto message. Also converts values to other types if specified.
+ * @param message FileDescriptorProto
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.FileDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FileDescriptorProto to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FileDescriptorProto
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DescriptorProto. */
+ interface IDescriptorProto {
+
+ /** DescriptorProto name */
+ name?: (string|null);
+
+ /** DescriptorProto field */
+ field?: (google.protobuf.IFieldDescriptorProto[]|null);
+
+ /** DescriptorProto extension */
+ extension?: (google.protobuf.IFieldDescriptorProto[]|null);
+
+ /** DescriptorProto nestedType */
+ nestedType?: (google.protobuf.IDescriptorProto[]|null);
+
+ /** DescriptorProto enumType */
+ enumType?: (google.protobuf.IEnumDescriptorProto[]|null);
+
+ /** DescriptorProto extensionRange */
+ extensionRange?: (google.protobuf.DescriptorProto.IExtensionRange[]|null);
+
+ /** DescriptorProto oneofDecl */
+ oneofDecl?: (google.protobuf.IOneofDescriptorProto[]|null);
+
+ /** DescriptorProto options */
+ options?: (google.protobuf.IMessageOptions|null);
+
+ /** DescriptorProto reservedRange */
+ reservedRange?: (google.protobuf.DescriptorProto.IReservedRange[]|null);
+
+ /** DescriptorProto reservedName */
+ reservedName?: (string[]|null);
+ }
+
+ /** Represents a DescriptorProto. */
+ class DescriptorProto implements IDescriptorProto {
+
+ /**
+ * Constructs a new DescriptorProto.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IDescriptorProto);
+
+ /** DescriptorProto name. */
+ public name: string;
+
+ /** DescriptorProto field. */
+ public field: google.protobuf.IFieldDescriptorProto[];
+
+ /** DescriptorProto extension. */
+ public extension: google.protobuf.IFieldDescriptorProto[];
+
+ /** DescriptorProto nestedType. */
+ public nestedType: google.protobuf.IDescriptorProto[];
+
+ /** DescriptorProto enumType. */
+ public enumType: google.protobuf.IEnumDescriptorProto[];
+
+ /** DescriptorProto extensionRange. */
+ public extensionRange: google.protobuf.DescriptorProto.IExtensionRange[];
+
+ /** DescriptorProto oneofDecl. */
+ public oneofDecl: google.protobuf.IOneofDescriptorProto[];
+
+ /** DescriptorProto options. */
+ public options?: (google.protobuf.IMessageOptions|null);
+
+ /** DescriptorProto reservedRange. */
+ public reservedRange: google.protobuf.DescriptorProto.IReservedRange[];
+
+ /** DescriptorProto reservedName. */
+ public reservedName: string[];
+
+ /**
+ * Creates a new DescriptorProto instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DescriptorProto instance
+ */
+ public static create(properties?: google.protobuf.IDescriptorProto): google.protobuf.DescriptorProto;
+
+ /**
+ * Encodes the specified DescriptorProto message. Does not implicitly {@link google.protobuf.DescriptorProto.verify|verify} messages.
+ * @param message DescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.verify|verify} messages.
+ * @param message DescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DescriptorProto message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.DescriptorProto;
+
+ /**
+ * Decodes a DescriptorProto message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.DescriptorProto;
+
+ /**
+ * Verifies a DescriptorProto message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DescriptorProto message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DescriptorProto
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.DescriptorProto;
+
+ /**
+ * Creates a plain object from a DescriptorProto message. Also converts values to other types if specified.
+ * @param message DescriptorProto
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.DescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DescriptorProto to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DescriptorProto
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace DescriptorProto {
+
+ /** Properties of an ExtensionRange. */
+ interface IExtensionRange {
+
+ /** ExtensionRange start */
+ start?: (number|null);
+
+ /** ExtensionRange end */
+ end?: (number|null);
+
+ /** ExtensionRange options */
+ options?: (google.protobuf.IExtensionRangeOptions|null);
+ }
+
+ /** Represents an ExtensionRange. */
+ class ExtensionRange implements IExtensionRange {
+
+ /**
+ * Constructs a new ExtensionRange.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.DescriptorProto.IExtensionRange);
+
+ /** ExtensionRange start. */
+ public start: number;
+
+ /** ExtensionRange end. */
+ public end: number;
+
+ /** ExtensionRange options. */
+ public options?: (google.protobuf.IExtensionRangeOptions|null);
+
+ /**
+ * Creates a new ExtensionRange instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ExtensionRange instance
+ */
+ public static create(properties?: google.protobuf.DescriptorProto.IExtensionRange): google.protobuf.DescriptorProto.ExtensionRange;
+
+ /**
+ * Encodes the specified ExtensionRange message. Does not implicitly {@link google.protobuf.DescriptorProto.ExtensionRange.verify|verify} messages.
+ * @param message ExtensionRange message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.DescriptorProto.IExtensionRange, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ExtensionRange message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.ExtensionRange.verify|verify} messages.
+ * @param message ExtensionRange message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.DescriptorProto.IExtensionRange, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an ExtensionRange message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ExtensionRange
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.DescriptorProto.ExtensionRange;
+
+ /**
+ * Decodes an ExtensionRange message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ExtensionRange
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.DescriptorProto.ExtensionRange;
+
+ /**
+ * Verifies an ExtensionRange message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an ExtensionRange message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ExtensionRange
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.DescriptorProto.ExtensionRange;
+
+ /**
+ * Creates a plain object from an ExtensionRange message. Also converts values to other types if specified.
+ * @param message ExtensionRange
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.DescriptorProto.ExtensionRange, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ExtensionRange to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ExtensionRange
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ReservedRange. */
+ interface IReservedRange {
+
+ /** ReservedRange start */
+ start?: (number|null);
+
+ /** ReservedRange end */
+ end?: (number|null);
+ }
+
+ /** Represents a ReservedRange. */
+ class ReservedRange implements IReservedRange {
+
+ /**
+ * Constructs a new ReservedRange.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.DescriptorProto.IReservedRange);
+
+ /** ReservedRange start. */
+ public start: number;
+
+ /** ReservedRange end. */
+ public end: number;
+
+ /**
+ * Creates a new ReservedRange instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ReservedRange instance
+ */
+ public static create(properties?: google.protobuf.DescriptorProto.IReservedRange): google.protobuf.DescriptorProto.ReservedRange;
+
+ /**
+ * Encodes the specified ReservedRange message. Does not implicitly {@link google.protobuf.DescriptorProto.ReservedRange.verify|verify} messages.
+ * @param message ReservedRange message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.DescriptorProto.IReservedRange, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ReservedRange message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.ReservedRange.verify|verify} messages.
+ * @param message ReservedRange message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.DescriptorProto.IReservedRange, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ReservedRange message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ReservedRange
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.DescriptorProto.ReservedRange;
+
+ /**
+ * Decodes a ReservedRange message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ReservedRange
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.DescriptorProto.ReservedRange;
+
+ /**
+ * Verifies a ReservedRange message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ReservedRange message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ReservedRange
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.DescriptorProto.ReservedRange;
+
+ /**
+ * Creates a plain object from a ReservedRange message. Also converts values to other types if specified.
+ * @param message ReservedRange
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.DescriptorProto.ReservedRange, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ReservedRange to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ReservedRange
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of an ExtensionRangeOptions. */
+ interface IExtensionRangeOptions {
+
+ /** ExtensionRangeOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+ }
+
+ /** Represents an ExtensionRangeOptions. */
+ class ExtensionRangeOptions implements IExtensionRangeOptions {
+
+ /**
+ * Constructs a new ExtensionRangeOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IExtensionRangeOptions);
+
+ /** ExtensionRangeOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+
+ /**
+ * Creates a new ExtensionRangeOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ExtensionRangeOptions instance
+ */
+ public static create(properties?: google.protobuf.IExtensionRangeOptions): google.protobuf.ExtensionRangeOptions;
+
+ /**
+ * Encodes the specified ExtensionRangeOptions message. Does not implicitly {@link google.protobuf.ExtensionRangeOptions.verify|verify} messages.
+ * @param message ExtensionRangeOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IExtensionRangeOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ExtensionRangeOptions message, length delimited. Does not implicitly {@link google.protobuf.ExtensionRangeOptions.verify|verify} messages.
+ * @param message ExtensionRangeOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IExtensionRangeOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an ExtensionRangeOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ExtensionRangeOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.ExtensionRangeOptions;
+
+ /**
+ * Decodes an ExtensionRangeOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ExtensionRangeOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.ExtensionRangeOptions;
+
+ /**
+ * Verifies an ExtensionRangeOptions message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an ExtensionRangeOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ExtensionRangeOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.ExtensionRangeOptions;
+
+ /**
+ * Creates a plain object from an ExtensionRangeOptions message. Also converts values to other types if specified.
+ * @param message ExtensionRangeOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.ExtensionRangeOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ExtensionRangeOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ExtensionRangeOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a FieldDescriptorProto. */
+ interface IFieldDescriptorProto {
+
+ /** FieldDescriptorProto name */
+ name?: (string|null);
+
+ /** FieldDescriptorProto number */
+ number?: (number|null);
+
+ /** FieldDescriptorProto label */
+ label?: (google.protobuf.FieldDescriptorProto.Label|keyof typeof google.protobuf.FieldDescriptorProto.Label|null);
+
+ /** FieldDescriptorProto type */
+ type?: (google.protobuf.FieldDescriptorProto.Type|keyof typeof google.protobuf.FieldDescriptorProto.Type|null);
+
+ /** FieldDescriptorProto typeName */
+ typeName?: (string|null);
+
+ /** FieldDescriptorProto extendee */
+ extendee?: (string|null);
+
+ /** FieldDescriptorProto defaultValue */
+ defaultValue?: (string|null);
+
+ /** FieldDescriptorProto oneofIndex */
+ oneofIndex?: (number|null);
+
+ /** FieldDescriptorProto jsonName */
+ jsonName?: (string|null);
+
+ /** FieldDescriptorProto options */
+ options?: (google.protobuf.IFieldOptions|null);
+
+ /** FieldDescriptorProto proto3Optional */
+ proto3Optional?: (boolean|null);
+ }
+
+ /** Represents a FieldDescriptorProto. */
+ class FieldDescriptorProto implements IFieldDescriptorProto {
+
+ /**
+ * Constructs a new FieldDescriptorProto.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IFieldDescriptorProto);
+
+ /** FieldDescriptorProto name. */
+ public name: string;
+
+ /** FieldDescriptorProto number. */
+ public number: number;
+
+ /** FieldDescriptorProto label. */
+ public label: (google.protobuf.FieldDescriptorProto.Label|keyof typeof google.protobuf.FieldDescriptorProto.Label);
+
+ /** FieldDescriptorProto type. */
+ public type: (google.protobuf.FieldDescriptorProto.Type|keyof typeof google.protobuf.FieldDescriptorProto.Type);
+
+ /** FieldDescriptorProto typeName. */
+ public typeName: string;
+
+ /** FieldDescriptorProto extendee. */
+ public extendee: string;
+
+ /** FieldDescriptorProto defaultValue. */
+ public defaultValue: string;
+
+ /** FieldDescriptorProto oneofIndex. */
+ public oneofIndex: number;
+
+ /** FieldDescriptorProto jsonName. */
+ public jsonName: string;
+
+ /** FieldDescriptorProto options. */
+ public options?: (google.protobuf.IFieldOptions|null);
+
+ /** FieldDescriptorProto proto3Optional. */
+ public proto3Optional: boolean;
+
+ /**
+ * Creates a new FieldDescriptorProto instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FieldDescriptorProto instance
+ */
+ public static create(properties?: google.protobuf.IFieldDescriptorProto): google.protobuf.FieldDescriptorProto;
+
+ /**
+ * Encodes the specified FieldDescriptorProto message. Does not implicitly {@link google.protobuf.FieldDescriptorProto.verify|verify} messages.
+ * @param message FieldDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IFieldDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FieldDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.FieldDescriptorProto.verify|verify} messages.
+ * @param message FieldDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IFieldDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FieldDescriptorProto message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FieldDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FieldDescriptorProto;
+
+ /**
+ * Decodes a FieldDescriptorProto message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FieldDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FieldDescriptorProto;
+
+ /**
+ * Verifies a FieldDescriptorProto message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FieldDescriptorProto message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FieldDescriptorProto
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.FieldDescriptorProto;
+
+ /**
+ * Creates a plain object from a FieldDescriptorProto message. Also converts values to other types if specified.
+ * @param message FieldDescriptorProto
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.FieldDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FieldDescriptorProto to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FieldDescriptorProto
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace FieldDescriptorProto {
+
+ /** Type enum. */
+ enum Type {
+ TYPE_DOUBLE = 1,
+ TYPE_FLOAT = 2,
+ TYPE_INT64 = 3,
+ TYPE_UINT64 = 4,
+ TYPE_INT32 = 5,
+ TYPE_FIXED64 = 6,
+ TYPE_FIXED32 = 7,
+ TYPE_BOOL = 8,
+ TYPE_STRING = 9,
+ TYPE_GROUP = 10,
+ TYPE_MESSAGE = 11,
+ TYPE_BYTES = 12,
+ TYPE_UINT32 = 13,
+ TYPE_ENUM = 14,
+ TYPE_SFIXED32 = 15,
+ TYPE_SFIXED64 = 16,
+ TYPE_SINT32 = 17,
+ TYPE_SINT64 = 18
+ }
+
+ /** Label enum. */
+ enum Label {
+ LABEL_OPTIONAL = 1,
+ LABEL_REQUIRED = 2,
+ LABEL_REPEATED = 3
+ }
+ }
+
+ /** Properties of an OneofDescriptorProto. */
+ interface IOneofDescriptorProto {
+
+ /** OneofDescriptorProto name */
+ name?: (string|null);
+
+ /** OneofDescriptorProto options */
+ options?: (google.protobuf.IOneofOptions|null);
+ }
+
+ /** Represents an OneofDescriptorProto. */
+ class OneofDescriptorProto implements IOneofDescriptorProto {
+
+ /**
+ * Constructs a new OneofDescriptorProto.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IOneofDescriptorProto);
+
+ /** OneofDescriptorProto name. */
+ public name: string;
+
+ /** OneofDescriptorProto options. */
+ public options?: (google.protobuf.IOneofOptions|null);
+
+ /**
+ * Creates a new OneofDescriptorProto instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns OneofDescriptorProto instance
+ */
+ public static create(properties?: google.protobuf.IOneofDescriptorProto): google.protobuf.OneofDescriptorProto;
+
+ /**
+ * Encodes the specified OneofDescriptorProto message. Does not implicitly {@link google.protobuf.OneofDescriptorProto.verify|verify} messages.
+ * @param message OneofDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IOneofDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified OneofDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.OneofDescriptorProto.verify|verify} messages.
+ * @param message OneofDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IOneofDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an OneofDescriptorProto message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns OneofDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.OneofDescriptorProto;
+
+ /**
+ * Decodes an OneofDescriptorProto message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns OneofDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.OneofDescriptorProto;
+
+ /**
+ * Verifies an OneofDescriptorProto message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an OneofDescriptorProto message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns OneofDescriptorProto
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.OneofDescriptorProto;
+
+ /**
+ * Creates a plain object from an OneofDescriptorProto message. Also converts values to other types if specified.
+ * @param message OneofDescriptorProto
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.OneofDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this OneofDescriptorProto to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for OneofDescriptorProto
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an EnumDescriptorProto. */
+ interface IEnumDescriptorProto {
+
+ /** EnumDescriptorProto name */
+ name?: (string|null);
+
+ /** EnumDescriptorProto value */
+ value?: (google.protobuf.IEnumValueDescriptorProto[]|null);
+
+ /** EnumDescriptorProto options */
+ options?: (google.protobuf.IEnumOptions|null);
+
+ /** EnumDescriptorProto reservedRange */
+ reservedRange?: (google.protobuf.EnumDescriptorProto.IEnumReservedRange[]|null);
+
+ /** EnumDescriptorProto reservedName */
+ reservedName?: (string[]|null);
+ }
+
+ /** Represents an EnumDescriptorProto. */
+ class EnumDescriptorProto implements IEnumDescriptorProto {
+
+ /**
+ * Constructs a new EnumDescriptorProto.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IEnumDescriptorProto);
+
+ /** EnumDescriptorProto name. */
+ public name: string;
+
+ /** EnumDescriptorProto value. */
+ public value: google.protobuf.IEnumValueDescriptorProto[];
+
+ /** EnumDescriptorProto options. */
+ public options?: (google.protobuf.IEnumOptions|null);
+
+ /** EnumDescriptorProto reservedRange. */
+ public reservedRange: google.protobuf.EnumDescriptorProto.IEnumReservedRange[];
+
+ /** EnumDescriptorProto reservedName. */
+ public reservedName: string[];
+
+ /**
+ * Creates a new EnumDescriptorProto instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns EnumDescriptorProto instance
+ */
+ public static create(properties?: google.protobuf.IEnumDescriptorProto): google.protobuf.EnumDescriptorProto;
+
+ /**
+ * Encodes the specified EnumDescriptorProto message. Does not implicitly {@link google.protobuf.EnumDescriptorProto.verify|verify} messages.
+ * @param message EnumDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IEnumDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified EnumDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.EnumDescriptorProto.verify|verify} messages.
+ * @param message EnumDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IEnumDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an EnumDescriptorProto message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns EnumDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumDescriptorProto;
+
+ /**
+ * Decodes an EnumDescriptorProto message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns EnumDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumDescriptorProto;
+
+ /**
+ * Verifies an EnumDescriptorProto message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an EnumDescriptorProto message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns EnumDescriptorProto
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.EnumDescriptorProto;
+
+ /**
+ * Creates a plain object from an EnumDescriptorProto message. Also converts values to other types if specified.
+ * @param message EnumDescriptorProto
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.EnumDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this EnumDescriptorProto to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for EnumDescriptorProto
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace EnumDescriptorProto {
+
+ /** Properties of an EnumReservedRange. */
+ interface IEnumReservedRange {
+
+ /** EnumReservedRange start */
+ start?: (number|null);
+
+ /** EnumReservedRange end */
+ end?: (number|null);
+ }
+
+ /** Represents an EnumReservedRange. */
+ class EnumReservedRange implements IEnumReservedRange {
+
+ /**
+ * Constructs a new EnumReservedRange.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.EnumDescriptorProto.IEnumReservedRange);
+
+ /** EnumReservedRange start. */
+ public start: number;
+
+ /** EnumReservedRange end. */
+ public end: number;
+
+ /**
+ * Creates a new EnumReservedRange instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns EnumReservedRange instance
+ */
+ public static create(properties?: google.protobuf.EnumDescriptorProto.IEnumReservedRange): google.protobuf.EnumDescriptorProto.EnumReservedRange;
+
+ /**
+ * Encodes the specified EnumReservedRange message. Does not implicitly {@link google.protobuf.EnumDescriptorProto.EnumReservedRange.verify|verify} messages.
+ * @param message EnumReservedRange message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.EnumDescriptorProto.IEnumReservedRange, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified EnumReservedRange message, length delimited. Does not implicitly {@link google.protobuf.EnumDescriptorProto.EnumReservedRange.verify|verify} messages.
+ * @param message EnumReservedRange message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.EnumDescriptorProto.IEnumReservedRange, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an EnumReservedRange message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns EnumReservedRange
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumDescriptorProto.EnumReservedRange;
+
+ /**
+ * Decodes an EnumReservedRange message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns EnumReservedRange
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumDescriptorProto.EnumReservedRange;
+
+ /**
+ * Verifies an EnumReservedRange message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an EnumReservedRange message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns EnumReservedRange
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.EnumDescriptorProto.EnumReservedRange;
+
+ /**
+ * Creates a plain object from an EnumReservedRange message. Also converts values to other types if specified.
+ * @param message EnumReservedRange
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.EnumDescriptorProto.EnumReservedRange, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this EnumReservedRange to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for EnumReservedRange
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of an EnumValueDescriptorProto. */
+ interface IEnumValueDescriptorProto {
+
+ /** EnumValueDescriptorProto name */
+ name?: (string|null);
+
+ /** EnumValueDescriptorProto number */
+ number?: (number|null);
+
+ /** EnumValueDescriptorProto options */
+ options?: (google.protobuf.IEnumValueOptions|null);
+ }
+
+ /** Represents an EnumValueDescriptorProto. */
+ class EnumValueDescriptorProto implements IEnumValueDescriptorProto {
+
+ /**
+ * Constructs a new EnumValueDescriptorProto.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IEnumValueDescriptorProto);
+
+ /** EnumValueDescriptorProto name. */
+ public name: string;
+
+ /** EnumValueDescriptorProto number. */
+ public number: number;
+
+ /** EnumValueDescriptorProto options. */
+ public options?: (google.protobuf.IEnumValueOptions|null);
+
+ /**
+ * Creates a new EnumValueDescriptorProto instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns EnumValueDescriptorProto instance
+ */
+ public static create(properties?: google.protobuf.IEnumValueDescriptorProto): google.protobuf.EnumValueDescriptorProto;
+
+ /**
+ * Encodes the specified EnumValueDescriptorProto message. Does not implicitly {@link google.protobuf.EnumValueDescriptorProto.verify|verify} messages.
+ * @param message EnumValueDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IEnumValueDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified EnumValueDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.EnumValueDescriptorProto.verify|verify} messages.
+ * @param message EnumValueDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IEnumValueDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an EnumValueDescriptorProto message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns EnumValueDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumValueDescriptorProto;
+
+ /**
+ * Decodes an EnumValueDescriptorProto message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns EnumValueDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumValueDescriptorProto;
+
+ /**
+ * Verifies an EnumValueDescriptorProto message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an EnumValueDescriptorProto message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns EnumValueDescriptorProto
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.EnumValueDescriptorProto;
+
+ /**
+ * Creates a plain object from an EnumValueDescriptorProto message. Also converts values to other types if specified.
+ * @param message EnumValueDescriptorProto
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.EnumValueDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this EnumValueDescriptorProto to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for EnumValueDescriptorProto
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ServiceDescriptorProto. */
+ interface IServiceDescriptorProto {
+
+ /** ServiceDescriptorProto name */
+ name?: (string|null);
+
+ /** ServiceDescriptorProto method */
+ method?: (google.protobuf.IMethodDescriptorProto[]|null);
+
+ /** ServiceDescriptorProto options */
+ options?: (google.protobuf.IServiceOptions|null);
+ }
+
+ /** Represents a ServiceDescriptorProto. */
+ class ServiceDescriptorProto implements IServiceDescriptorProto {
+
+ /**
+ * Constructs a new ServiceDescriptorProto.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IServiceDescriptorProto);
+
+ /** ServiceDescriptorProto name. */
+ public name: string;
+
+ /** ServiceDescriptorProto method. */
+ public method: google.protobuf.IMethodDescriptorProto[];
+
+ /** ServiceDescriptorProto options. */
+ public options?: (google.protobuf.IServiceOptions|null);
+
+ /**
+ * Creates a new ServiceDescriptorProto instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ServiceDescriptorProto instance
+ */
+ public static create(properties?: google.protobuf.IServiceDescriptorProto): google.protobuf.ServiceDescriptorProto;
+
+ /**
+ * Encodes the specified ServiceDescriptorProto message. Does not implicitly {@link google.protobuf.ServiceDescriptorProto.verify|verify} messages.
+ * @param message ServiceDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IServiceDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ServiceDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.ServiceDescriptorProto.verify|verify} messages.
+ * @param message ServiceDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IServiceDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ServiceDescriptorProto message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ServiceDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.ServiceDescriptorProto;
+
+ /**
+ * Decodes a ServiceDescriptorProto message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ServiceDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.ServiceDescriptorProto;
+
+ /**
+ * Verifies a ServiceDescriptorProto message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ServiceDescriptorProto message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ServiceDescriptorProto
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.ServiceDescriptorProto;
+
+ /**
+ * Creates a plain object from a ServiceDescriptorProto message. Also converts values to other types if specified.
+ * @param message ServiceDescriptorProto
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.ServiceDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ServiceDescriptorProto to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ServiceDescriptorProto
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a MethodDescriptorProto. */
+ interface IMethodDescriptorProto {
+
+ /** MethodDescriptorProto name */
+ name?: (string|null);
+
+ /** MethodDescriptorProto inputType */
+ inputType?: (string|null);
+
+ /** MethodDescriptorProto outputType */
+ outputType?: (string|null);
+
+ /** MethodDescriptorProto options */
+ options?: (google.protobuf.IMethodOptions|null);
+
+ /** MethodDescriptorProto clientStreaming */
+ clientStreaming?: (boolean|null);
+
+ /** MethodDescriptorProto serverStreaming */
+ serverStreaming?: (boolean|null);
+ }
+
+ /** Represents a MethodDescriptorProto. */
+ class MethodDescriptorProto implements IMethodDescriptorProto {
+
+ /**
+ * Constructs a new MethodDescriptorProto.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IMethodDescriptorProto);
+
+ /** MethodDescriptorProto name. */
+ public name: string;
+
+ /** MethodDescriptorProto inputType. */
+ public inputType: string;
+
+ /** MethodDescriptorProto outputType. */
+ public outputType: string;
+
+ /** MethodDescriptorProto options. */
+ public options?: (google.protobuf.IMethodOptions|null);
+
+ /** MethodDescriptorProto clientStreaming. */
+ public clientStreaming: boolean;
+
+ /** MethodDescriptorProto serverStreaming. */
+ public serverStreaming: boolean;
+
+ /**
+ * Creates a new MethodDescriptorProto instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns MethodDescriptorProto instance
+ */
+ public static create(properties?: google.protobuf.IMethodDescriptorProto): google.protobuf.MethodDescriptorProto;
+
+ /**
+ * Encodes the specified MethodDescriptorProto message. Does not implicitly {@link google.protobuf.MethodDescriptorProto.verify|verify} messages.
+ * @param message MethodDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IMethodDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified MethodDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.MethodDescriptorProto.verify|verify} messages.
+ * @param message MethodDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IMethodDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a MethodDescriptorProto message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns MethodDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.MethodDescriptorProto;
+
+ /**
+ * Decodes a MethodDescriptorProto message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns MethodDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.MethodDescriptorProto;
+
+ /**
+ * Verifies a MethodDescriptorProto message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a MethodDescriptorProto message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns MethodDescriptorProto
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.MethodDescriptorProto;
+
+ /**
+ * Creates a plain object from a MethodDescriptorProto message. Also converts values to other types if specified.
+ * @param message MethodDescriptorProto
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.MethodDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this MethodDescriptorProto to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for MethodDescriptorProto
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a FileOptions. */
+ interface IFileOptions {
+
+ /** FileOptions javaPackage */
+ javaPackage?: (string|null);
+
+ /** FileOptions javaOuterClassname */
+ javaOuterClassname?: (string|null);
+
+ /** FileOptions javaMultipleFiles */
+ javaMultipleFiles?: (boolean|null);
+
+ /** FileOptions javaGenerateEqualsAndHash */
+ javaGenerateEqualsAndHash?: (boolean|null);
+
+ /** FileOptions javaStringCheckUtf8 */
+ javaStringCheckUtf8?: (boolean|null);
+
+ /** FileOptions optimizeFor */
+ optimizeFor?: (google.protobuf.FileOptions.OptimizeMode|keyof typeof google.protobuf.FileOptions.OptimizeMode|null);
+
+ /** FileOptions goPackage */
+ goPackage?: (string|null);
+
+ /** FileOptions ccGenericServices */
+ ccGenericServices?: (boolean|null);
+
+ /** FileOptions javaGenericServices */
+ javaGenericServices?: (boolean|null);
+
+ /** FileOptions pyGenericServices */
+ pyGenericServices?: (boolean|null);
+
+ /** FileOptions phpGenericServices */
+ phpGenericServices?: (boolean|null);
+
+ /** FileOptions deprecated */
+ deprecated?: (boolean|null);
+
+ /** FileOptions ccEnableArenas */
+ ccEnableArenas?: (boolean|null);
+
+ /** FileOptions objcClassPrefix */
+ objcClassPrefix?: (string|null);
+
+ /** FileOptions csharpNamespace */
+ csharpNamespace?: (string|null);
+
+ /** FileOptions swiftPrefix */
+ swiftPrefix?: (string|null);
+
+ /** FileOptions phpClassPrefix */
+ phpClassPrefix?: (string|null);
+
+ /** FileOptions phpNamespace */
+ phpNamespace?: (string|null);
+
+ /** FileOptions phpMetadataNamespace */
+ phpMetadataNamespace?: (string|null);
+
+ /** FileOptions rubyPackage */
+ rubyPackage?: (string|null);
+
+ /** FileOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+
+ /** FileOptions .google.api.resourceDefinition */
+ ".google.api.resourceDefinition"?: (google.api.IResourceDescriptor[]|null);
+ }
+
+ /** Represents a FileOptions. */
+ class FileOptions implements IFileOptions {
+
+ /**
+ * Constructs a new FileOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IFileOptions);
+
+ /** FileOptions javaPackage. */
+ public javaPackage: string;
+
+ /** FileOptions javaOuterClassname. */
+ public javaOuterClassname: string;
+
+ /** FileOptions javaMultipleFiles. */
+ public javaMultipleFiles: boolean;
+
+ /** FileOptions javaGenerateEqualsAndHash. */
+ public javaGenerateEqualsAndHash: boolean;
+
+ /** FileOptions javaStringCheckUtf8. */
+ public javaStringCheckUtf8: boolean;
+
+ /** FileOptions optimizeFor. */
+ public optimizeFor: (google.protobuf.FileOptions.OptimizeMode|keyof typeof google.protobuf.FileOptions.OptimizeMode);
+
+ /** FileOptions goPackage. */
+ public goPackage: string;
+
+ /** FileOptions ccGenericServices. */
+ public ccGenericServices: boolean;
+
+ /** FileOptions javaGenericServices. */
+ public javaGenericServices: boolean;
+
+ /** FileOptions pyGenericServices. */
+ public pyGenericServices: boolean;
+
+ /** FileOptions phpGenericServices. */
+ public phpGenericServices: boolean;
+
+ /** FileOptions deprecated. */
+ public deprecated: boolean;
+
+ /** FileOptions ccEnableArenas. */
+ public ccEnableArenas: boolean;
+
+ /** FileOptions objcClassPrefix. */
+ public objcClassPrefix: string;
+
+ /** FileOptions csharpNamespace. */
+ public csharpNamespace: string;
+
+ /** FileOptions swiftPrefix. */
+ public swiftPrefix: string;
+
+ /** FileOptions phpClassPrefix. */
+ public phpClassPrefix: string;
+
+ /** FileOptions phpNamespace. */
+ public phpNamespace: string;
+
+ /** FileOptions phpMetadataNamespace. */
+ public phpMetadataNamespace: string;
+
+ /** FileOptions rubyPackage. */
+ public rubyPackage: string;
+
+ /** FileOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+
+ /**
+ * Creates a new FileOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FileOptions instance
+ */
+ public static create(properties?: google.protobuf.IFileOptions): google.protobuf.FileOptions;
+
+ /**
+ * Encodes the specified FileOptions message. Does not implicitly {@link google.protobuf.FileOptions.verify|verify} messages.
+ * @param message FileOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IFileOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FileOptions message, length delimited. Does not implicitly {@link google.protobuf.FileOptions.verify|verify} messages.
+ * @param message FileOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IFileOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FileOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FileOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FileOptions;
+
+ /**
+ * Decodes a FileOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FileOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FileOptions;
+
+ /**
+ * Verifies a FileOptions message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FileOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FileOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.FileOptions;
+
+ /**
+ * Creates a plain object from a FileOptions message. Also converts values to other types if specified.
+ * @param message FileOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.FileOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FileOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FileOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace FileOptions {
+
+ /** OptimizeMode enum. */
+ enum OptimizeMode {
+ SPEED = 1,
+ CODE_SIZE = 2,
+ LITE_RUNTIME = 3
+ }
+ }
+
+ /** Properties of a MessageOptions. */
+ interface IMessageOptions {
+
+ /** MessageOptions messageSetWireFormat */
+ messageSetWireFormat?: (boolean|null);
+
+ /** MessageOptions noStandardDescriptorAccessor */
+ noStandardDescriptorAccessor?: (boolean|null);
+
+ /** MessageOptions deprecated */
+ deprecated?: (boolean|null);
+
+ /** MessageOptions mapEntry */
+ mapEntry?: (boolean|null);
+
+ /** MessageOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+
+ /** MessageOptions .google.api.resource */
+ ".google.api.resource"?: (google.api.IResourceDescriptor|null);
+ }
+
+ /** Represents a MessageOptions. */
+ class MessageOptions implements IMessageOptions {
+
+ /**
+ * Constructs a new MessageOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IMessageOptions);
+
+ /** MessageOptions messageSetWireFormat. */
+ public messageSetWireFormat: boolean;
+
+ /** MessageOptions noStandardDescriptorAccessor. */
+ public noStandardDescriptorAccessor: boolean;
+
+ /** MessageOptions deprecated. */
+ public deprecated: boolean;
+
+ /** MessageOptions mapEntry. */
+ public mapEntry: boolean;
+
+ /** MessageOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+
+ /**
+ * Creates a new MessageOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns MessageOptions instance
+ */
+ public static create(properties?: google.protobuf.IMessageOptions): google.protobuf.MessageOptions;
+
+ /**
+ * Encodes the specified MessageOptions message. Does not implicitly {@link google.protobuf.MessageOptions.verify|verify} messages.
+ * @param message MessageOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IMessageOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified MessageOptions message, length delimited. Does not implicitly {@link google.protobuf.MessageOptions.verify|verify} messages.
+ * @param message MessageOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IMessageOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a MessageOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns MessageOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.MessageOptions;
+
+ /**
+ * Decodes a MessageOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns MessageOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.MessageOptions;
+
+ /**
+ * Verifies a MessageOptions message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a MessageOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns MessageOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.MessageOptions;
+
+ /**
+ * Creates a plain object from a MessageOptions message. Also converts values to other types if specified.
+ * @param message MessageOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.MessageOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this MessageOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for MessageOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a FieldOptions. */
+ interface IFieldOptions {
+
+ /** FieldOptions ctype */
+ ctype?: (google.protobuf.FieldOptions.CType|keyof typeof google.protobuf.FieldOptions.CType|null);
+
+ /** FieldOptions packed */
+ packed?: (boolean|null);
+
+ /** FieldOptions jstype */
+ jstype?: (google.protobuf.FieldOptions.JSType|keyof typeof google.protobuf.FieldOptions.JSType|null);
+
+ /** FieldOptions lazy */
+ lazy?: (boolean|null);
+
+ /** FieldOptions unverifiedLazy */
+ unverifiedLazy?: (boolean|null);
+
+ /** FieldOptions deprecated */
+ deprecated?: (boolean|null);
+
+ /** FieldOptions weak */
+ weak?: (boolean|null);
+
+ /** FieldOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+
+ /** FieldOptions .google.api.fieldBehavior */
+ ".google.api.fieldBehavior"?: (google.api.FieldBehavior[]|null);
+
+ /** FieldOptions .google.api.resourceReference */
+ ".google.api.resourceReference"?: (google.api.IResourceReference|null);
+ }
+
+ /** Represents a FieldOptions. */
+ class FieldOptions implements IFieldOptions {
+
+ /**
+ * Constructs a new FieldOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IFieldOptions);
+
+ /** FieldOptions ctype. */
+ public ctype: (google.protobuf.FieldOptions.CType|keyof typeof google.protobuf.FieldOptions.CType);
+
+ /** FieldOptions packed. */
+ public packed: boolean;
+
+ /** FieldOptions jstype. */
+ public jstype: (google.protobuf.FieldOptions.JSType|keyof typeof google.protobuf.FieldOptions.JSType);
+
+ /** FieldOptions lazy. */
+ public lazy: boolean;
+
+ /** FieldOptions unverifiedLazy. */
+ public unverifiedLazy: boolean;
+
+ /** FieldOptions deprecated. */
+ public deprecated: boolean;
+
+ /** FieldOptions weak. */
+ public weak: boolean;
+
+ /** FieldOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+
+ /**
+ * Creates a new FieldOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FieldOptions instance
+ */
+ public static create(properties?: google.protobuf.IFieldOptions): google.protobuf.FieldOptions;
+
+ /**
+ * Encodes the specified FieldOptions message. Does not implicitly {@link google.protobuf.FieldOptions.verify|verify} messages.
+ * @param message FieldOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IFieldOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FieldOptions message, length delimited. Does not implicitly {@link google.protobuf.FieldOptions.verify|verify} messages.
+ * @param message FieldOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IFieldOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FieldOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FieldOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FieldOptions;
+
+ /**
+ * Decodes a FieldOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FieldOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FieldOptions;
+
+ /**
+ * Verifies a FieldOptions message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FieldOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FieldOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.FieldOptions;
+
+ /**
+ * Creates a plain object from a FieldOptions message. Also converts values to other types if specified.
+ * @param message FieldOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.FieldOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FieldOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FieldOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace FieldOptions {
+
+ /** CType enum. */
+ enum CType {
+ STRING = 0,
+ CORD = 1,
+ STRING_PIECE = 2
+ }
+
+ /** JSType enum. */
+ enum JSType {
+ JS_NORMAL = 0,
+ JS_STRING = 1,
+ JS_NUMBER = 2
+ }
+ }
+
+ /** Properties of an OneofOptions. */
+ interface IOneofOptions {
+
+ /** OneofOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+ }
+
+ /** Represents an OneofOptions. */
+ class OneofOptions implements IOneofOptions {
+
+ /**
+ * Constructs a new OneofOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IOneofOptions);
+
+ /** OneofOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+
+ /**
+ * Creates a new OneofOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns OneofOptions instance
+ */
+ public static create(properties?: google.protobuf.IOneofOptions): google.protobuf.OneofOptions;
+
+ /**
+ * Encodes the specified OneofOptions message. Does not implicitly {@link google.protobuf.OneofOptions.verify|verify} messages.
+ * @param message OneofOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IOneofOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified OneofOptions message, length delimited. Does not implicitly {@link google.protobuf.OneofOptions.verify|verify} messages.
+ * @param message OneofOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IOneofOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an OneofOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns OneofOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.OneofOptions;
+
+ /**
+ * Decodes an OneofOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns OneofOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.OneofOptions;
+
+ /**
+ * Verifies an OneofOptions message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an OneofOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns OneofOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.OneofOptions;
+
+ /**
+ * Creates a plain object from an OneofOptions message. Also converts values to other types if specified.
+ * @param message OneofOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.OneofOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this OneofOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for OneofOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an EnumOptions. */
+ interface IEnumOptions {
+
+ /** EnumOptions allowAlias */
+ allowAlias?: (boolean|null);
+
+ /** EnumOptions deprecated */
+ deprecated?: (boolean|null);
+
+ /** EnumOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+ }
+
+ /** Represents an EnumOptions. */
+ class EnumOptions implements IEnumOptions {
+
+ /**
+ * Constructs a new EnumOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IEnumOptions);
+
+ /** EnumOptions allowAlias. */
+ public allowAlias: boolean;
+
+ /** EnumOptions deprecated. */
+ public deprecated: boolean;
+
+ /** EnumOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+
+ /**
+ * Creates a new EnumOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns EnumOptions instance
+ */
+ public static create(properties?: google.protobuf.IEnumOptions): google.protobuf.EnumOptions;
+
+ /**
+ * Encodes the specified EnumOptions message. Does not implicitly {@link google.protobuf.EnumOptions.verify|verify} messages.
+ * @param message EnumOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IEnumOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified EnumOptions message, length delimited. Does not implicitly {@link google.protobuf.EnumOptions.verify|verify} messages.
+ * @param message EnumOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IEnumOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an EnumOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns EnumOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumOptions;
+
+ /**
+ * Decodes an EnumOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns EnumOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumOptions;
+
+ /**
+ * Verifies an EnumOptions message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an EnumOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns EnumOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.EnumOptions;
+
+ /**
+ * Creates a plain object from an EnumOptions message. Also converts values to other types if specified.
+ * @param message EnumOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.EnumOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this EnumOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for EnumOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an EnumValueOptions. */
+ interface IEnumValueOptions {
+
+ /** EnumValueOptions deprecated */
+ deprecated?: (boolean|null);
+
+ /** EnumValueOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+ }
+
+ /** Represents an EnumValueOptions. */
+ class EnumValueOptions implements IEnumValueOptions {
+
+ /**
+ * Constructs a new EnumValueOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IEnumValueOptions);
+
+ /** EnumValueOptions deprecated. */
+ public deprecated: boolean;
+
+ /** EnumValueOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+
+ /**
+ * Creates a new EnumValueOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns EnumValueOptions instance
+ */
+ public static create(properties?: google.protobuf.IEnumValueOptions): google.protobuf.EnumValueOptions;
+
+ /**
+ * Encodes the specified EnumValueOptions message. Does not implicitly {@link google.protobuf.EnumValueOptions.verify|verify} messages.
+ * @param message EnumValueOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IEnumValueOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified EnumValueOptions message, length delimited. Does not implicitly {@link google.protobuf.EnumValueOptions.verify|verify} messages.
+ * @param message EnumValueOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IEnumValueOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an EnumValueOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns EnumValueOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumValueOptions;
+
+ /**
+ * Decodes an EnumValueOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns EnumValueOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumValueOptions;
+
+ /**
+ * Verifies an EnumValueOptions message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an EnumValueOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns EnumValueOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.EnumValueOptions;
+
+ /**
+ * Creates a plain object from an EnumValueOptions message. Also converts values to other types if specified.
+ * @param message EnumValueOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.EnumValueOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this EnumValueOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for EnumValueOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ServiceOptions. */
+ interface IServiceOptions {
+
+ /** ServiceOptions deprecated */
+ deprecated?: (boolean|null);
+
+ /** ServiceOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+
+ /** ServiceOptions .google.api.defaultHost */
+ ".google.api.defaultHost"?: (string|null);
+
+ /** ServiceOptions .google.api.oauthScopes */
+ ".google.api.oauthScopes"?: (string|null);
+ }
+
+ /** Represents a ServiceOptions. */
+ class ServiceOptions implements IServiceOptions {
+
+ /**
+ * Constructs a new ServiceOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IServiceOptions);
+
+ /** ServiceOptions deprecated. */
+ public deprecated: boolean;
+
+ /** ServiceOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+
+ /**
+ * Creates a new ServiceOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ServiceOptions instance
+ */
+ public static create(properties?: google.protobuf.IServiceOptions): google.protobuf.ServiceOptions;
+
+ /**
+ * Encodes the specified ServiceOptions message. Does not implicitly {@link google.protobuf.ServiceOptions.verify|verify} messages.
+ * @param message ServiceOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IServiceOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ServiceOptions message, length delimited. Does not implicitly {@link google.protobuf.ServiceOptions.verify|verify} messages.
+ * @param message ServiceOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IServiceOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ServiceOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ServiceOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.ServiceOptions;
+
+ /**
+ * Decodes a ServiceOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ServiceOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.ServiceOptions;
+
+ /**
+ * Verifies a ServiceOptions message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ServiceOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ServiceOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.ServiceOptions;
+
+ /**
+ * Creates a plain object from a ServiceOptions message. Also converts values to other types if specified.
+ * @param message ServiceOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.ServiceOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ServiceOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ServiceOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a MethodOptions. */
+ interface IMethodOptions {
+
+ /** MethodOptions deprecated */
+ deprecated?: (boolean|null);
+
+ /** MethodOptions idempotencyLevel */
+ idempotencyLevel?: (google.protobuf.MethodOptions.IdempotencyLevel|keyof typeof google.protobuf.MethodOptions.IdempotencyLevel|null);
+
+ /** MethodOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+
+ /** MethodOptions .google.api.http */
+ ".google.api.http"?: (google.api.IHttpRule|null);
+
+ /** MethodOptions .google.api.methodSignature */
+ ".google.api.methodSignature"?: (string[]|null);
+ }
+
+ /** Represents a MethodOptions. */
+ class MethodOptions implements IMethodOptions {
+
+ /**
+ * Constructs a new MethodOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IMethodOptions);
+
+ /** MethodOptions deprecated. */
+ public deprecated: boolean;
+
+ /** MethodOptions idempotencyLevel. */
+ public idempotencyLevel: (google.protobuf.MethodOptions.IdempotencyLevel|keyof typeof google.protobuf.MethodOptions.IdempotencyLevel);
+
+ /** MethodOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+
+ /**
+ * Creates a new MethodOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns MethodOptions instance
+ */
+ public static create(properties?: google.protobuf.IMethodOptions): google.protobuf.MethodOptions;
+
+ /**
+ * Encodes the specified MethodOptions message. Does not implicitly {@link google.protobuf.MethodOptions.verify|verify} messages.
+ * @param message MethodOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IMethodOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified MethodOptions message, length delimited. Does not implicitly {@link google.protobuf.MethodOptions.verify|verify} messages.
+ * @param message MethodOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IMethodOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a MethodOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns MethodOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.MethodOptions;
+
+ /**
+ * Decodes a MethodOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns MethodOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.MethodOptions;
+
+ /**
+ * Verifies a MethodOptions message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a MethodOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns MethodOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.MethodOptions;
+
+ /**
+ * Creates a plain object from a MethodOptions message. Also converts values to other types if specified.
+ * @param message MethodOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.MethodOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this MethodOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for MethodOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace MethodOptions {
+
+ /** IdempotencyLevel enum. */
+ enum IdempotencyLevel {
+ IDEMPOTENCY_UNKNOWN = 0,
+ NO_SIDE_EFFECTS = 1,
+ IDEMPOTENT = 2
+ }
+ }
+
+ /** Properties of an UninterpretedOption. */
+ interface IUninterpretedOption {
+
+ /** UninterpretedOption name */
+ name?: (google.protobuf.UninterpretedOption.INamePart[]|null);
+
+ /** UninterpretedOption identifierValue */
+ identifierValue?: (string|null);
+
+ /** UninterpretedOption positiveIntValue */
+ positiveIntValue?: (number|Long|string|null);
+
+ /** UninterpretedOption negativeIntValue */
+ negativeIntValue?: (number|Long|string|null);
+
+ /** UninterpretedOption doubleValue */
+ doubleValue?: (number|null);
+
+ /** UninterpretedOption stringValue */
+ stringValue?: (Uint8Array|string|null);
+
+ /** UninterpretedOption aggregateValue */
+ aggregateValue?: (string|null);
+ }
+
+ /** Represents an UninterpretedOption. */
+ class UninterpretedOption implements IUninterpretedOption {
+
+ /**
+ * Constructs a new UninterpretedOption.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IUninterpretedOption);
+
+ /** UninterpretedOption name. */
+ public name: google.protobuf.UninterpretedOption.INamePart[];
+
+ /** UninterpretedOption identifierValue. */
+ public identifierValue: string;
+
+ /** UninterpretedOption positiveIntValue. */
+ public positiveIntValue: (number|Long|string);
+
+ /** UninterpretedOption negativeIntValue. */
+ public negativeIntValue: (number|Long|string);
+
+ /** UninterpretedOption doubleValue. */
+ public doubleValue: number;
+
+ /** UninterpretedOption stringValue. */
+ public stringValue: (Uint8Array|string);
+
+ /** UninterpretedOption aggregateValue. */
+ public aggregateValue: string;
+
+ /**
+ * Creates a new UninterpretedOption instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns UninterpretedOption instance
+ */
+ public static create(properties?: google.protobuf.IUninterpretedOption): google.protobuf.UninterpretedOption;
+
+ /**
+ * Encodes the specified UninterpretedOption message. Does not implicitly {@link google.protobuf.UninterpretedOption.verify|verify} messages.
+ * @param message UninterpretedOption message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IUninterpretedOption, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified UninterpretedOption message, length delimited. Does not implicitly {@link google.protobuf.UninterpretedOption.verify|verify} messages.
+ * @param message UninterpretedOption message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IUninterpretedOption, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an UninterpretedOption message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns UninterpretedOption
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.UninterpretedOption;
+
+ /**
+ * Decodes an UninterpretedOption message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns UninterpretedOption
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.UninterpretedOption;
+
+ /**
+ * Verifies an UninterpretedOption message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an UninterpretedOption message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns UninterpretedOption
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.UninterpretedOption;
+
+ /**
+ * Creates a plain object from an UninterpretedOption message. Also converts values to other types if specified.
+ * @param message UninterpretedOption
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.UninterpretedOption, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this UninterpretedOption to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for UninterpretedOption
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace UninterpretedOption {
+
+ /** Properties of a NamePart. */
+ interface INamePart {
+
+ /** NamePart namePart */
+ namePart: string;
+
+ /** NamePart isExtension */
+ isExtension: boolean;
+ }
+
+ /** Represents a NamePart. */
+ class NamePart implements INamePart {
+
+ /**
+ * Constructs a new NamePart.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.UninterpretedOption.INamePart);
+
+ /** NamePart namePart. */
+ public namePart: string;
+
+ /** NamePart isExtension. */
+ public isExtension: boolean;
+
+ /**
+ * Creates a new NamePart instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns NamePart instance
+ */
+ public static create(properties?: google.protobuf.UninterpretedOption.INamePart): google.protobuf.UninterpretedOption.NamePart;
+
+ /**
+ * Encodes the specified NamePart message. Does not implicitly {@link google.protobuf.UninterpretedOption.NamePart.verify|verify} messages.
+ * @param message NamePart message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.UninterpretedOption.INamePart, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified NamePart message, length delimited. Does not implicitly {@link google.protobuf.UninterpretedOption.NamePart.verify|verify} messages.
+ * @param message NamePart message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.UninterpretedOption.INamePart, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a NamePart message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns NamePart
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.UninterpretedOption.NamePart;
+
+ /**
+ * Decodes a NamePart message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns NamePart
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.UninterpretedOption.NamePart;
+
+ /**
+ * Verifies a NamePart message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a NamePart message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns NamePart
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.UninterpretedOption.NamePart;
+
+ /**
+ * Creates a plain object from a NamePart message. Also converts values to other types if specified.
+ * @param message NamePart
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.UninterpretedOption.NamePart, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this NamePart to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for NamePart
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of a SourceCodeInfo. */
+ interface ISourceCodeInfo {
+
+ /** SourceCodeInfo location */
+ location?: (google.protobuf.SourceCodeInfo.ILocation[]|null);
+ }
+
+ /** Represents a SourceCodeInfo. */
+ class SourceCodeInfo implements ISourceCodeInfo {
+
+ /**
+ * Constructs a new SourceCodeInfo.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.ISourceCodeInfo);
+
+ /** SourceCodeInfo location. */
+ public location: google.protobuf.SourceCodeInfo.ILocation[];
+
+ /**
+ * Creates a new SourceCodeInfo instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns SourceCodeInfo instance
+ */
+ public static create(properties?: google.protobuf.ISourceCodeInfo): google.protobuf.SourceCodeInfo;
+
+ /**
+ * Encodes the specified SourceCodeInfo message. Does not implicitly {@link google.protobuf.SourceCodeInfo.verify|verify} messages.
+ * @param message SourceCodeInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.ISourceCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified SourceCodeInfo message, length delimited. Does not implicitly {@link google.protobuf.SourceCodeInfo.verify|verify} messages.
+ * @param message SourceCodeInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.ISourceCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a SourceCodeInfo message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns SourceCodeInfo
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.SourceCodeInfo;
+
+ /**
+ * Decodes a SourceCodeInfo message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns SourceCodeInfo
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.SourceCodeInfo;
+
+ /**
+ * Verifies a SourceCodeInfo message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a SourceCodeInfo message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns SourceCodeInfo
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.SourceCodeInfo;
+
+ /**
+ * Creates a plain object from a SourceCodeInfo message. Also converts values to other types if specified.
+ * @param message SourceCodeInfo
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.SourceCodeInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this SourceCodeInfo to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for SourceCodeInfo
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace SourceCodeInfo {
+
+ /** Properties of a Location. */
+ interface ILocation {
+
+ /** Location path */
+ path?: (number[]|null);
+
+ /** Location span */
+ span?: (number[]|null);
+
+ /** Location leadingComments */
+ leadingComments?: (string|null);
+
+ /** Location trailingComments */
+ trailingComments?: (string|null);
+
+ /** Location leadingDetachedComments */
+ leadingDetachedComments?: (string[]|null);
+ }
+
+ /** Represents a Location. */
+ class Location implements ILocation {
+
+ /**
+ * Constructs a new Location.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.SourceCodeInfo.ILocation);
+
+ /** Location path. */
+ public path: number[];
+
+ /** Location span. */
+ public span: number[];
+
+ /** Location leadingComments. */
+ public leadingComments: string;
+
+ /** Location trailingComments. */
+ public trailingComments: string;
+
+ /** Location leadingDetachedComments. */
+ public leadingDetachedComments: string[];
+
+ /**
+ * Creates a new Location instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Location instance
+ */
+ public static create(properties?: google.protobuf.SourceCodeInfo.ILocation): google.protobuf.SourceCodeInfo.Location;
+
+ /**
+ * Encodes the specified Location message. Does not implicitly {@link google.protobuf.SourceCodeInfo.Location.verify|verify} messages.
+ * @param message Location message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.SourceCodeInfo.ILocation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Location message, length delimited. Does not implicitly {@link google.protobuf.SourceCodeInfo.Location.verify|verify} messages.
+ * @param message Location message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.SourceCodeInfo.ILocation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Location message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Location
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.SourceCodeInfo.Location;
+
+ /**
+ * Decodes a Location message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Location
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.SourceCodeInfo.Location;
+
+ /**
+ * Verifies a Location message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Location message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Location
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.SourceCodeInfo.Location;
+
+ /**
+ * Creates a plain object from a Location message. Also converts values to other types if specified.
+ * @param message Location
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.SourceCodeInfo.Location, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Location to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Location
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of a GeneratedCodeInfo. */
+ interface IGeneratedCodeInfo {
+
+ /** GeneratedCodeInfo annotation */
+ annotation?: (google.protobuf.GeneratedCodeInfo.IAnnotation[]|null);
+ }
+
+ /** Represents a GeneratedCodeInfo. */
+ class GeneratedCodeInfo implements IGeneratedCodeInfo {
+
+ /**
+ * Constructs a new GeneratedCodeInfo.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IGeneratedCodeInfo);
+
+ /** GeneratedCodeInfo annotation. */
+ public annotation: google.protobuf.GeneratedCodeInfo.IAnnotation[];
+
+ /**
+ * Creates a new GeneratedCodeInfo instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GeneratedCodeInfo instance
+ */
+ public static create(properties?: google.protobuf.IGeneratedCodeInfo): google.protobuf.GeneratedCodeInfo;
+
+ /**
+ * Encodes the specified GeneratedCodeInfo message. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.verify|verify} messages.
+ * @param message GeneratedCodeInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IGeneratedCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GeneratedCodeInfo message, length delimited. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.verify|verify} messages.
+ * @param message GeneratedCodeInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IGeneratedCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GeneratedCodeInfo message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GeneratedCodeInfo
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.GeneratedCodeInfo;
+
+ /**
+ * Decodes a GeneratedCodeInfo message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GeneratedCodeInfo
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.GeneratedCodeInfo;
+
+ /**
+ * Verifies a GeneratedCodeInfo message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GeneratedCodeInfo message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GeneratedCodeInfo
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.GeneratedCodeInfo;
+
+ /**
+ * Creates a plain object from a GeneratedCodeInfo message. Also converts values to other types if specified.
+ * @param message GeneratedCodeInfo
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.GeneratedCodeInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GeneratedCodeInfo to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GeneratedCodeInfo
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace GeneratedCodeInfo {
+
+ /** Properties of an Annotation. */
+ interface IAnnotation {
+
+ /** Annotation path */
+ path?: (number[]|null);
+
+ /** Annotation sourceFile */
+ sourceFile?: (string|null);
+
+ /** Annotation begin */
+ begin?: (number|null);
+
+ /** Annotation end */
+ end?: (number|null);
+
+ /** Annotation semantic */
+ semantic?: (google.protobuf.GeneratedCodeInfo.Annotation.Semantic|keyof typeof google.protobuf.GeneratedCodeInfo.Annotation.Semantic|null);
+ }
+
+ /** Represents an Annotation. */
+ class Annotation implements IAnnotation {
+
+ /**
+ * Constructs a new Annotation.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.GeneratedCodeInfo.IAnnotation);
+
+ /** Annotation path. */
+ public path: number[];
+
+ /** Annotation sourceFile. */
+ public sourceFile: string;
+
+ /** Annotation begin. */
+ public begin: number;
+
+ /** Annotation end. */
+ public end: number;
+
+ /** Annotation semantic. */
+ public semantic: (google.protobuf.GeneratedCodeInfo.Annotation.Semantic|keyof typeof google.protobuf.GeneratedCodeInfo.Annotation.Semantic);
+
+ /**
+ * Creates a new Annotation instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Annotation instance
+ */
+ public static create(properties?: google.protobuf.GeneratedCodeInfo.IAnnotation): google.protobuf.GeneratedCodeInfo.Annotation;
+
+ /**
+ * Encodes the specified Annotation message. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.Annotation.verify|verify} messages.
+ * @param message Annotation message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.GeneratedCodeInfo.IAnnotation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Annotation message, length delimited. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.Annotation.verify|verify} messages.
+ * @param message Annotation message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.GeneratedCodeInfo.IAnnotation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an Annotation message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Annotation
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.GeneratedCodeInfo.Annotation;
+
+ /**
+ * Decodes an Annotation message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Annotation
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.GeneratedCodeInfo.Annotation;
+
+ /**
+ * Verifies an Annotation message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an Annotation message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Annotation
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.GeneratedCodeInfo.Annotation;
+
+ /**
+ * Creates a plain object from an Annotation message. Also converts values to other types if specified.
+ * @param message Annotation
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.GeneratedCodeInfo.Annotation, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Annotation to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Annotation
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace Annotation {
+
+ /** Semantic enum. */
+ enum Semantic {
+ NONE = 0,
+ SET = 1,
+ ALIAS = 2
+ }
+ }
+ }
+
+ /** Properties of a FieldMask. */
+ interface IFieldMask {
+
+ /** FieldMask paths */
+ paths?: (string[]|null);
+ }
+
+ /** Represents a FieldMask. */
+ class FieldMask implements IFieldMask {
+
+ /**
+ * Constructs a new FieldMask.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IFieldMask);
+
+ /** FieldMask paths. */
+ public paths: string[];
+
+ /**
+ * Creates a new FieldMask instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FieldMask instance
+ */
+ public static create(properties?: google.protobuf.IFieldMask): google.protobuf.FieldMask;
+
+ /**
+ * Encodes the specified FieldMask message. Does not implicitly {@link google.protobuf.FieldMask.verify|verify} messages.
+ * @param message FieldMask message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IFieldMask, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FieldMask message, length delimited. Does not implicitly {@link google.protobuf.FieldMask.verify|verify} messages.
+ * @param message FieldMask message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IFieldMask, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FieldMask message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FieldMask
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FieldMask;
+
+ /**
+ * Decodes a FieldMask message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FieldMask
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FieldMask;
+
+ /**
+ * Verifies a FieldMask message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FieldMask message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FieldMask
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.FieldMask;
+
+ /**
+ * Creates a plain object from a FieldMask message. Also converts values to other types if specified.
+ * @param message FieldMask
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.FieldMask, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FieldMask to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FieldMask
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Timestamp. */
+ interface ITimestamp {
+
+ /** Timestamp seconds */
+ seconds?: (number|Long|string|null);
+
+ /** Timestamp nanos */
+ nanos?: (number|null);
+ }
+
+ /** Represents a Timestamp. */
+ class Timestamp implements ITimestamp {
+
+ /**
+ * Constructs a new Timestamp.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.ITimestamp);
+
+ /** Timestamp seconds. */
+ public seconds: (number|Long|string);
+
+ /** Timestamp nanos. */
+ public nanos: number;
+
+ /**
+ * Creates a new Timestamp instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Timestamp instance
+ */
+ public static create(properties?: google.protobuf.ITimestamp): google.protobuf.Timestamp;
+
+ /**
+ * Encodes the specified Timestamp message. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages.
+ * @param message Timestamp message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.ITimestamp, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Timestamp message, length delimited. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages.
+ * @param message Timestamp message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.ITimestamp, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Timestamp message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Timestamp
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Timestamp;
+
+ /**
+ * Decodes a Timestamp message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Timestamp
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Timestamp;
+
+ /**
+ * Verifies a Timestamp message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Timestamp message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Timestamp
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.Timestamp;
+
+ /**
+ * Creates a plain object from a Timestamp message. Also converts values to other types if specified.
+ * @param message Timestamp
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.Timestamp, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Timestamp to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Timestamp
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an Any. */
+ interface IAny {
+
+ /** Any type_url */
+ type_url?: (string|null);
+
+ /** Any value */
+ value?: (Uint8Array|string|null);
+ }
+
+ /** Represents an Any. */
+ class Any implements IAny {
+
+ /**
+ * Constructs a new Any.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IAny);
+
+ /** Any type_url. */
+ public type_url: string;
+
+ /** Any value. */
+ public value: (Uint8Array|string);
+
+ /**
+ * Creates a new Any instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Any instance
+ */
+ public static create(properties?: google.protobuf.IAny): google.protobuf.Any;
+
+ /**
+ * Encodes the specified Any message. Does not implicitly {@link google.protobuf.Any.verify|verify} messages.
+ * @param message Any message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IAny, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Any message, length delimited. Does not implicitly {@link google.protobuf.Any.verify|verify} messages.
+ * @param message Any message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IAny, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an Any message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Any
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Any;
+
+ /**
+ * Decodes an Any message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Any
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Any;
+
+ /**
+ * Verifies an Any message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an Any message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Any
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.Any;
+
+ /**
+ * Creates a plain object from an Any message. Also converts values to other types if specified.
+ * @param message Any
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.Any, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Any to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Any
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** 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 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;
+ }
+
+ /** Properties of an Interval. */
+ interface IInterval {
+
+ /** Interval startTime */
+ startTime?: (google.protobuf.ITimestamp|null);
+
+ /** Interval endTime */
+ endTime?: (google.protobuf.ITimestamp|null);
+ }
+
+ /** Represents an Interval. */
+ class Interval implements IInterval {
+
+ /**
+ * Constructs a new Interval.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.type.IInterval);
+
+ /** Interval startTime. */
+ public startTime?: (google.protobuf.ITimestamp|null);
+
+ /** Interval endTime. */
+ public endTime?: (google.protobuf.ITimestamp|null);
+
+ /**
+ * Creates a new Interval instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Interval instance
+ */
+ public static create(properties?: google.type.IInterval): google.type.Interval;
+
+ /**
+ * Encodes the specified Interval message. Does not implicitly {@link google.type.Interval.verify|verify} messages.
+ * @param message Interval message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.type.IInterval, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Interval message, length delimited. Does not implicitly {@link google.type.Interval.verify|verify} messages.
+ * @param message Interval message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.type.IInterval, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an Interval message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Interval
+ * @throws {Error} If the payload is not 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.Interval;
+
+ /**
+ * Decodes an Interval message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Interval
+ * @throws {Error} If the payload 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.Interval;
+
+ /**
+ * Verifies an Interval message.
+ * @param message Plain 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 Interval message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Interval
+ */
+ public static fromObject(object: { [k: string]: any }): google.type.Interval;
+
+ /**
+ * Creates a plain object from an Interval message. Also converts values to other types if specified.
+ * @param message Interval
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.type.Interval, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Interval to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Interval
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an Expr. */
+ interface IExpr {
+
+ /** Expr expression */
+ expression?: (string|null);
+
+ /** Expr title */
+ title?: (string|null);
+
+ /** Expr description */
+ description?: (string|null);
+
+ /** Expr location */
+ location?: (string|null);
+ }
+
+ /** Represents an Expr. */
+ class Expr implements IExpr {
+
+ /**
+ * Constructs a new Expr.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.type.IExpr);
+
+ /** Expr expression. */
+ public expression: string;
+
+ /** Expr title. */
+ public title: string;
+
+ /** Expr description. */
+ public description: string;
+
+ /** Expr location. */
+ public location: string;
+
+ /**
+ * Creates a new Expr instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Expr instance
+ */
+ public static create(properties?: google.type.IExpr): google.type.Expr;
+
+ /**
+ * Encodes the specified Expr message. Does not implicitly {@link google.type.Expr.verify|verify} messages.
+ * @param message Expr message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.type.IExpr, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Expr message, length delimited. Does not implicitly {@link google.type.Expr.verify|verify} messages.
+ * @param message Expr message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.type.IExpr, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an Expr message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Expr
+ * @throws {Error} If the payload is not 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.Expr;
+
+ /**
+ * Decodes an Expr message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Expr
+ * @throws {Error} If the payload 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.Expr;
+
+ /**
+ * Verifies an Expr message.
+ * @param message Plain 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 Expr message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Expr
+ */
+ public static fromObject(object: { [k: string]: any }): google.type.Expr;
+
+ /**
+ * Creates a plain object from an Expr message. Also converts values to other types if specified.
+ * @param message Expr
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.type.Expr, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Expr to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Expr
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Namespace iam. */
+ namespace iam {
+
+ /** Namespace v1. */
+ namespace v1 {
+
+ /** Properties of a Policy. */
+ interface IPolicy {
+
+ /** Policy version */
+ version?: (number|null);
+
+ /** Policy bindings */
+ bindings?: (google.iam.v1.IBinding[]|null);
+
+ /** Policy auditConfigs */
+ auditConfigs?: (google.iam.v1.IAuditConfig[]|null);
+
+ /** Policy etag */
+ etag?: (Uint8Array|string|null);
+ }
+
+ /** Represents a Policy. */
+ class Policy implements IPolicy {
+
+ /**
+ * Constructs a new Policy.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.iam.v1.IPolicy);
+
+ /** Policy version. */
+ public version: number;
+
+ /** Policy bindings. */
+ public bindings: google.iam.v1.IBinding[];
+
+ /** Policy auditConfigs. */
+ public auditConfigs: google.iam.v1.IAuditConfig[];
+
+ /** Policy etag. */
+ public etag: (Uint8Array|string);
+
+ /**
+ * Creates a new Policy instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Policy instance
+ */
+ public static create(properties?: google.iam.v1.IPolicy): google.iam.v1.Policy;
+
+ /**
+ * Encodes the specified Policy message. Does not implicitly {@link google.iam.v1.Policy.verify|verify} messages.
+ * @param message Policy message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.iam.v1.IPolicy, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Policy message, length delimited. Does not implicitly {@link google.iam.v1.Policy.verify|verify} messages.
+ * @param message Policy message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.iam.v1.IPolicy, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Policy message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Policy
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.iam.v1.Policy;
+
+ /**
+ * Decodes a Policy message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Policy
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.iam.v1.Policy;
+
+ /**
+ * Verifies a Policy message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Policy message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Policy
+ */
+ public static fromObject(object: { [k: string]: any }): google.iam.v1.Policy;
+
+ /**
+ * Creates a plain object from a Policy message. Also converts values to other types if specified.
+ * @param message Policy
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.iam.v1.Policy, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Policy to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Policy
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Binding. */
+ interface IBinding {
+
+ /** Binding role */
+ role?: (string|null);
+
+ /** Binding members */
+ members?: (string[]|null);
+
+ /** Binding condition */
+ condition?: (google.type.IExpr|null);
+ }
+
+ /** Represents a Binding. */
+ class Binding implements IBinding {
+
+ /**
+ * Constructs a new Binding.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.iam.v1.IBinding);
+
+ /** Binding role. */
+ public role: string;
+
+ /** Binding members. */
+ public members: string[];
+
+ /** Binding condition. */
+ public condition?: (google.type.IExpr|null);
+
+ /**
+ * Creates a new Binding instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Binding instance
+ */
+ public static create(properties?: google.iam.v1.IBinding): google.iam.v1.Binding;
+
+ /**
+ * Encodes the specified Binding message. Does not implicitly {@link google.iam.v1.Binding.verify|verify} messages.
+ * @param message Binding message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.iam.v1.IBinding, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Binding message, length delimited. Does not implicitly {@link google.iam.v1.Binding.verify|verify} messages.
+ * @param message Binding message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.iam.v1.IBinding, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Binding message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Binding
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.iam.v1.Binding;
+
+ /**
+ * Decodes a Binding message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Binding
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.iam.v1.Binding;
+
+ /**
+ * Verifies a Binding message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Binding message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Binding
+ */
+ public static fromObject(object: { [k: string]: any }): google.iam.v1.Binding;
+
+ /**
+ * Creates a plain object from a Binding message. Also converts values to other types if specified.
+ * @param message Binding
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.iam.v1.Binding, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Binding to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Binding
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an AuditConfig. */
+ interface IAuditConfig {
+
+ /** AuditConfig service */
+ service?: (string|null);
+
+ /** AuditConfig auditLogConfigs */
+ auditLogConfigs?: (google.iam.v1.IAuditLogConfig[]|null);
+ }
+
+ /** Represents an AuditConfig. */
+ class AuditConfig implements IAuditConfig {
+
+ /**
+ * Constructs a new AuditConfig.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.iam.v1.IAuditConfig);
+
+ /** AuditConfig service. */
+ public service: string;
+
+ /** AuditConfig auditLogConfigs. */
+ public auditLogConfigs: google.iam.v1.IAuditLogConfig[];
+
+ /**
+ * Creates a new AuditConfig instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns AuditConfig instance
+ */
+ public static create(properties?: google.iam.v1.IAuditConfig): google.iam.v1.AuditConfig;
+
+ /**
+ * Encodes the specified AuditConfig message. Does not implicitly {@link google.iam.v1.AuditConfig.verify|verify} messages.
+ * @param message AuditConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.iam.v1.IAuditConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified AuditConfig message, length delimited. Does not implicitly {@link google.iam.v1.AuditConfig.verify|verify} messages.
+ * @param message AuditConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.iam.v1.IAuditConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an AuditConfig message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns AuditConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.iam.v1.AuditConfig;
+
+ /**
+ * Decodes an AuditConfig message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns AuditConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.iam.v1.AuditConfig;
+
+ /**
+ * Verifies an AuditConfig message.
+ * @param message Plain 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 AuditConfig message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns AuditConfig
+ */
+ public static fromObject(object: { [k: string]: any }): google.iam.v1.AuditConfig;
+
+ /**
+ * Creates a plain object from an AuditConfig message. Also converts values to other types if specified.
+ * @param message AuditConfig
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.iam.v1.AuditConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this AuditConfig to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for AuditConfig
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an AuditLogConfig. */
+ interface IAuditLogConfig {
+
+ /** AuditLogConfig logType */
+ logType?: (google.iam.v1.AuditLogConfig.LogType|keyof typeof google.iam.v1.AuditLogConfig.LogType|null);
+
+ /** AuditLogConfig exemptedMembers */
+ exemptedMembers?: (string[]|null);
+ }
+
+ /** Represents an AuditLogConfig. */
+ class AuditLogConfig implements IAuditLogConfig {
+
+ /**
+ * Constructs a new AuditLogConfig.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.iam.v1.IAuditLogConfig);
+
+ /** AuditLogConfig logType. */
+ public logType: (google.iam.v1.AuditLogConfig.LogType|keyof typeof google.iam.v1.AuditLogConfig.LogType);
+
+ /** AuditLogConfig exemptedMembers. */
+ public exemptedMembers: string[];
+
+ /**
+ * Creates a new AuditLogConfig instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns AuditLogConfig instance
+ */
+ public static create(properties?: google.iam.v1.IAuditLogConfig): google.iam.v1.AuditLogConfig;
+
+ /**
+ * Encodes the specified AuditLogConfig message. Does not implicitly {@link google.iam.v1.AuditLogConfig.verify|verify} messages.
+ * @param message AuditLogConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.iam.v1.IAuditLogConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified AuditLogConfig message, length delimited. Does not implicitly {@link google.iam.v1.AuditLogConfig.verify|verify} messages.
+ * @param message AuditLogConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.iam.v1.IAuditLogConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an AuditLogConfig message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns AuditLogConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.iam.v1.AuditLogConfig;
+
+ /**
+ * Decodes an AuditLogConfig message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns AuditLogConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.iam.v1.AuditLogConfig;
+
+ /**
+ * Verifies an AuditLogConfig message.
+ * @param message Plain 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 AuditLogConfig message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns AuditLogConfig
+ */
+ public static fromObject(object: { [k: string]: any }): google.iam.v1.AuditLogConfig;
+
+ /**
+ * Creates a plain object from an AuditLogConfig message. Also converts values to other types if specified.
+ * @param message AuditLogConfig
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.iam.v1.AuditLogConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this AuditLogConfig to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for AuditLogConfig
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace AuditLogConfig {
+
+ /** LogType enum. */
+ enum LogType {
+ LOG_TYPE_UNSPECIFIED = 0,
+ ADMIN_READ = 1,
+ DATA_WRITE = 2,
+ DATA_READ = 3
+ }
+ }
+
+ /** Properties of a PolicyDelta. */
+ interface IPolicyDelta {
+
+ /** PolicyDelta bindingDeltas */
+ bindingDeltas?: (google.iam.v1.IBindingDelta[]|null);
+
+ /** PolicyDelta auditConfigDeltas */
+ auditConfigDeltas?: (google.iam.v1.IAuditConfigDelta[]|null);
+ }
+
+ /** Represents a PolicyDelta. */
+ class PolicyDelta implements IPolicyDelta {
+
+ /**
+ * Constructs a new PolicyDelta.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.iam.v1.IPolicyDelta);
+
+ /** PolicyDelta bindingDeltas. */
+ public bindingDeltas: google.iam.v1.IBindingDelta[];
+
+ /** PolicyDelta auditConfigDeltas. */
+ public auditConfigDeltas: google.iam.v1.IAuditConfigDelta[];
+
+ /**
+ * Creates a new PolicyDelta instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns PolicyDelta instance
+ */
+ public static create(properties?: google.iam.v1.IPolicyDelta): google.iam.v1.PolicyDelta;
+
+ /**
+ * Encodes the specified PolicyDelta message. Does not implicitly {@link google.iam.v1.PolicyDelta.verify|verify} messages.
+ * @param message PolicyDelta message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.iam.v1.IPolicyDelta, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified PolicyDelta message, length delimited. Does not implicitly {@link google.iam.v1.PolicyDelta.verify|verify} messages.
+ * @param message PolicyDelta message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.iam.v1.IPolicyDelta, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a PolicyDelta message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns PolicyDelta
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.iam.v1.PolicyDelta;
+
+ /**
+ * Decodes a PolicyDelta message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns PolicyDelta
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.iam.v1.PolicyDelta;
+
+ /**
+ * Verifies a PolicyDelta message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a PolicyDelta message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns PolicyDelta
+ */
+ public static fromObject(object: { [k: string]: any }): google.iam.v1.PolicyDelta;
+
+ /**
+ * Creates a plain object from a PolicyDelta message. Also converts values to other types if specified.
+ * @param message PolicyDelta
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.iam.v1.PolicyDelta, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this PolicyDelta to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for PolicyDelta
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a BindingDelta. */
+ interface IBindingDelta {
+
+ /** BindingDelta action */
+ action?: (google.iam.v1.BindingDelta.Action|keyof typeof google.iam.v1.BindingDelta.Action|null);
+
+ /** BindingDelta role */
+ role?: (string|null);
+
+ /** BindingDelta member */
+ member?: (string|null);
+
+ /** BindingDelta condition */
+ condition?: (google.type.IExpr|null);
+ }
+
+ /** Represents a BindingDelta. */
+ class BindingDelta implements IBindingDelta {
+
+ /**
+ * Constructs a new BindingDelta.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.iam.v1.IBindingDelta);
+
+ /** BindingDelta action. */
+ public action: (google.iam.v1.BindingDelta.Action|keyof typeof google.iam.v1.BindingDelta.Action);
+
+ /** BindingDelta role. */
+ public role: string;
+
+ /** BindingDelta member. */
+ public member: string;
+
+ /** BindingDelta condition. */
+ public condition?: (google.type.IExpr|null);
+
+ /**
+ * Creates a new BindingDelta instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns BindingDelta instance
+ */
+ public static create(properties?: google.iam.v1.IBindingDelta): google.iam.v1.BindingDelta;
+
+ /**
+ * Encodes the specified BindingDelta message. Does not implicitly {@link google.iam.v1.BindingDelta.verify|verify} messages.
+ * @param message BindingDelta message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.iam.v1.IBindingDelta, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified BindingDelta message, length delimited. Does not implicitly {@link google.iam.v1.BindingDelta.verify|verify} messages.
+ * @param message BindingDelta message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.iam.v1.IBindingDelta, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a BindingDelta message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns BindingDelta
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.iam.v1.BindingDelta;
+
+ /**
+ * Decodes a BindingDelta message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns BindingDelta
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.iam.v1.BindingDelta;
+
+ /**
+ * Verifies a BindingDelta message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a BindingDelta message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns BindingDelta
+ */
+ public static fromObject(object: { [k: string]: any }): google.iam.v1.BindingDelta;
+
+ /**
+ * Creates a plain object from a BindingDelta message. Also converts values to other types if specified.
+ * @param message BindingDelta
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.iam.v1.BindingDelta, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this BindingDelta to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for BindingDelta
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace BindingDelta {
+
+ /** Action enum. */
+ enum Action {
+ ACTION_UNSPECIFIED = 0,
+ ADD = 1,
+ REMOVE = 2
+ }
+ }
+
+ /** Properties of an AuditConfigDelta. */
+ interface IAuditConfigDelta {
+
+ /** AuditConfigDelta action */
+ action?: (google.iam.v1.AuditConfigDelta.Action|keyof typeof google.iam.v1.AuditConfigDelta.Action|null);
+
+ /** AuditConfigDelta service */
+ service?: (string|null);
+
+ /** AuditConfigDelta exemptedMember */
+ exemptedMember?: (string|null);
+
+ /** AuditConfigDelta logType */
+ logType?: (string|null);
+ }
+
+ /** Represents an AuditConfigDelta. */
+ class AuditConfigDelta implements IAuditConfigDelta {
+
+ /**
+ * Constructs a new AuditConfigDelta.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.iam.v1.IAuditConfigDelta);
+
+ /** AuditConfigDelta action. */
+ public action: (google.iam.v1.AuditConfigDelta.Action|keyof typeof google.iam.v1.AuditConfigDelta.Action);
+
+ /** AuditConfigDelta service. */
+ public service: string;
+
+ /** AuditConfigDelta exemptedMember. */
+ public exemptedMember: string;
+
+ /** AuditConfigDelta logType. */
+ public logType: string;
+
+ /**
+ * Creates a new AuditConfigDelta instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns AuditConfigDelta instance
+ */
+ public static create(properties?: google.iam.v1.IAuditConfigDelta): google.iam.v1.AuditConfigDelta;
+
+ /**
+ * Encodes the specified AuditConfigDelta message. Does not implicitly {@link google.iam.v1.AuditConfigDelta.verify|verify} messages.
+ * @param message AuditConfigDelta message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.iam.v1.IAuditConfigDelta, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified AuditConfigDelta message, length delimited. Does not implicitly {@link google.iam.v1.AuditConfigDelta.verify|verify} messages.
+ * @param message AuditConfigDelta message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.iam.v1.IAuditConfigDelta, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an AuditConfigDelta message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns AuditConfigDelta
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.iam.v1.AuditConfigDelta;
+
+ /**
+ * Decodes an AuditConfigDelta message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns AuditConfigDelta
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.iam.v1.AuditConfigDelta;
+
+ /**
+ * Verifies an AuditConfigDelta message.
+ * @param message Plain 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 AuditConfigDelta message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns AuditConfigDelta
+ */
+ public static fromObject(object: { [k: string]: any }): google.iam.v1.AuditConfigDelta;
+
+ /**
+ * Creates a plain object from an AuditConfigDelta message. Also converts values to other types if specified.
+ * @param message AuditConfigDelta
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.iam.v1.AuditConfigDelta, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this AuditConfigDelta to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for AuditConfigDelta
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace AuditConfigDelta {
+
+ /** Action enum. */
+ enum Action {
+ ACTION_UNSPECIFIED = 0,
+ ADD = 1,
+ REMOVE = 2
+ }
+ }
+ }
+ }
+}
diff --git a/packages/google-cloud-contentwarehouse/protos/protos.js b/packages/google-cloud-contentwarehouse/protos/protos.js
new file mode 100644
index 000000000000..f89901aa8b37
--- /dev/null
+++ b/packages/google-cloud-contentwarehouse/protos/protos.js
@@ -0,0 +1,57589 @@
+// 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_contentwarehouse_protos || ($protobuf.roots._google_cloud_contentwarehouse_protos = {});
+
+ $root.google = (function() {
+
+ /**
+ * Namespace google.
+ * @exports google
+ * @namespace
+ */
+ var google = {};
+
+ google.cloud = (function() {
+
+ /**
+ * Namespace cloud.
+ * @memberof google
+ * @namespace
+ */
+ var cloud = {};
+
+ cloud.contentwarehouse = (function() {
+
+ /**
+ * Namespace contentwarehouse.
+ * @memberof google.cloud
+ * @namespace
+ */
+ var contentwarehouse = {};
+
+ contentwarehouse.v1 = (function() {
+
+ /**
+ * Namespace v1.
+ * @memberof google.cloud.contentwarehouse
+ * @namespace
+ */
+ var v1 = {};
+
+ v1.CreateDocumentMetadata = (function() {
+
+ /**
+ * Properties of a CreateDocumentMetadata.
+ * @memberof google.cloud.contentwarehouse.v1
+ * @interface ICreateDocumentMetadata
+ */
+
+ /**
+ * Constructs a new CreateDocumentMetadata.
+ * @memberof google.cloud.contentwarehouse.v1
+ * @classdesc Represents a CreateDocumentMetadata.
+ * @implements ICreateDocumentMetadata
+ * @constructor
+ * @param {google.cloud.contentwarehouse.v1.ICreateDocumentMetadata=} [properties] Properties to set
+ */
+ function CreateDocumentMetadata(properties) {
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null)
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * Creates a new CreateDocumentMetadata instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.contentwarehouse.v1.CreateDocumentMetadata
+ * @static
+ * @param {google.cloud.contentwarehouse.v1.ICreateDocumentMetadata=} [properties] Properties to set
+ * @returns {google.cloud.contentwarehouse.v1.CreateDocumentMetadata} CreateDocumentMetadata instance
+ */
+ CreateDocumentMetadata.create = function create(properties) {
+ return new CreateDocumentMetadata(properties);
+ };
+
+ /**
+ * Encodes the specified CreateDocumentMetadata message. Does not implicitly {@link google.cloud.contentwarehouse.v1.CreateDocumentMetadata.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.contentwarehouse.v1.CreateDocumentMetadata
+ * @static
+ * @param {google.cloud.contentwarehouse.v1.ICreateDocumentMetadata} message CreateDocumentMetadata message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ CreateDocumentMetadata.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified CreateDocumentMetadata message, length delimited. Does not implicitly {@link google.cloud.contentwarehouse.v1.CreateDocumentMetadata.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.contentwarehouse.v1.CreateDocumentMetadata
+ * @static
+ * @param {google.cloud.contentwarehouse.v1.ICreateDocumentMetadata} message CreateDocumentMetadata message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ CreateDocumentMetadata.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a CreateDocumentMetadata message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.contentwarehouse.v1.CreateDocumentMetadata
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.contentwarehouse.v1.CreateDocumentMetadata} CreateDocumentMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ CreateDocumentMetadata.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.contentwarehouse.v1.CreateDocumentMetadata();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a CreateDocumentMetadata message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.contentwarehouse.v1.CreateDocumentMetadata
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.contentwarehouse.v1.CreateDocumentMetadata} CreateDocumentMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ CreateDocumentMetadata.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a CreateDocumentMetadata message.
+ * @function verify
+ * @memberof google.cloud.contentwarehouse.v1.CreateDocumentMetadata
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ CreateDocumentMetadata.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ return null;
+ };
+
+ /**
+ * Creates a CreateDocumentMetadata message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.contentwarehouse.v1.CreateDocumentMetadata
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.contentwarehouse.v1.CreateDocumentMetadata} CreateDocumentMetadata
+ */
+ CreateDocumentMetadata.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.contentwarehouse.v1.CreateDocumentMetadata)
+ return object;
+ return new $root.google.cloud.contentwarehouse.v1.CreateDocumentMetadata();
+ };
+
+ /**
+ * Creates a plain object from a CreateDocumentMetadata message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.contentwarehouse.v1.CreateDocumentMetadata
+ * @static
+ * @param {google.cloud.contentwarehouse.v1.CreateDocumentMetadata} message CreateDocumentMetadata
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ CreateDocumentMetadata.toObject = function toObject() {
+ return {};
+ };
+
+ /**
+ * Converts this CreateDocumentMetadata to JSON.
+ * @function toJSON
+ * @memberof google.cloud.contentwarehouse.v1.CreateDocumentMetadata
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ CreateDocumentMetadata.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for CreateDocumentMetadata
+ * @function getTypeUrl
+ * @memberof google.cloud.contentwarehouse.v1.CreateDocumentMetadata
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ CreateDocumentMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.contentwarehouse.v1.CreateDocumentMetadata";
+ };
+
+ return CreateDocumentMetadata;
+ })();
+
+ v1.UpdateDocumentMetadata = (function() {
+
+ /**
+ * Properties of an UpdateDocumentMetadata.
+ * @memberof google.cloud.contentwarehouse.v1
+ * @interface IUpdateDocumentMetadata
+ */
+
+ /**
+ * Constructs a new UpdateDocumentMetadata.
+ * @memberof google.cloud.contentwarehouse.v1
+ * @classdesc Represents an UpdateDocumentMetadata.
+ * @implements IUpdateDocumentMetadata
+ * @constructor
+ * @param {google.cloud.contentwarehouse.v1.IUpdateDocumentMetadata=} [properties] Properties to set
+ */
+ function UpdateDocumentMetadata(properties) {
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null)
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * Creates a new UpdateDocumentMetadata instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.contentwarehouse.v1.UpdateDocumentMetadata
+ * @static
+ * @param {google.cloud.contentwarehouse.v1.IUpdateDocumentMetadata=} [properties] Properties to set
+ * @returns {google.cloud.contentwarehouse.v1.UpdateDocumentMetadata} UpdateDocumentMetadata instance
+ */
+ UpdateDocumentMetadata.create = function create(properties) {
+ return new UpdateDocumentMetadata(properties);
+ };
+
+ /**
+ * Encodes the specified UpdateDocumentMetadata message. Does not implicitly {@link google.cloud.contentwarehouse.v1.UpdateDocumentMetadata.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.contentwarehouse.v1.UpdateDocumentMetadata
+ * @static
+ * @param {google.cloud.contentwarehouse.v1.IUpdateDocumentMetadata} message UpdateDocumentMetadata message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ UpdateDocumentMetadata.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified UpdateDocumentMetadata message, length delimited. Does not implicitly {@link google.cloud.contentwarehouse.v1.UpdateDocumentMetadata.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.contentwarehouse.v1.UpdateDocumentMetadata
+ * @static
+ * @param {google.cloud.contentwarehouse.v1.IUpdateDocumentMetadata} message UpdateDocumentMetadata message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ UpdateDocumentMetadata.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes an UpdateDocumentMetadata message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.contentwarehouse.v1.UpdateDocumentMetadata
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.contentwarehouse.v1.UpdateDocumentMetadata} UpdateDocumentMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ UpdateDocumentMetadata.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.contentwarehouse.v1.UpdateDocumentMetadata();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an UpdateDocumentMetadata message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.contentwarehouse.v1.UpdateDocumentMetadata
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.contentwarehouse.v1.UpdateDocumentMetadata} UpdateDocumentMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ UpdateDocumentMetadata.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an UpdateDocumentMetadata message.
+ * @function verify
+ * @memberof google.cloud.contentwarehouse.v1.UpdateDocumentMetadata
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ UpdateDocumentMetadata.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ return null;
+ };
+
+ /**
+ * Creates an UpdateDocumentMetadata message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.contentwarehouse.v1.UpdateDocumentMetadata
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.contentwarehouse.v1.UpdateDocumentMetadata} UpdateDocumentMetadata
+ */
+ UpdateDocumentMetadata.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.contentwarehouse.v1.UpdateDocumentMetadata)
+ return object;
+ return new $root.google.cloud.contentwarehouse.v1.UpdateDocumentMetadata();
+ };
+
+ /**
+ * Creates a plain object from an UpdateDocumentMetadata message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.contentwarehouse.v1.UpdateDocumentMetadata
+ * @static
+ * @param {google.cloud.contentwarehouse.v1.UpdateDocumentMetadata} message UpdateDocumentMetadata
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ UpdateDocumentMetadata.toObject = function toObject() {
+ return {};
+ };
+
+ /**
+ * Converts this UpdateDocumentMetadata to JSON.
+ * @function toJSON
+ * @memberof google.cloud.contentwarehouse.v1.UpdateDocumentMetadata
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ UpdateDocumentMetadata.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for UpdateDocumentMetadata
+ * @function getTypeUrl
+ * @memberof google.cloud.contentwarehouse.v1.UpdateDocumentMetadata
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ UpdateDocumentMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.contentwarehouse.v1.UpdateDocumentMetadata";
+ };
+
+ return UpdateDocumentMetadata;
+ })();
+
+ v1.RequestMetadata = (function() {
+
+ /**
+ * Properties of a RequestMetadata.
+ * @memberof google.cloud.contentwarehouse.v1
+ * @interface IRequestMetadata
+ * @property {google.cloud.contentwarehouse.v1.IUserInfo|null} [userInfo] RequestMetadata userInfo
+ */
+
+ /**
+ * Constructs a new RequestMetadata.
+ * @memberof google.cloud.contentwarehouse.v1
+ * @classdesc Represents a RequestMetadata.
+ * @implements IRequestMetadata
+ * @constructor
+ * @param {google.cloud.contentwarehouse.v1.IRequestMetadata=} [properties] Properties to set
+ */
+ function RequestMetadata(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]];
+ }
+
+ /**
+ * RequestMetadata userInfo.
+ * @member {google.cloud.contentwarehouse.v1.IUserInfo|null|undefined} userInfo
+ * @memberof google.cloud.contentwarehouse.v1.RequestMetadata
+ * @instance
+ */
+ RequestMetadata.prototype.userInfo = null;
+
+ /**
+ * Creates a new RequestMetadata instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.contentwarehouse.v1.RequestMetadata
+ * @static
+ * @param {google.cloud.contentwarehouse.v1.IRequestMetadata=} [properties] Properties to set
+ * @returns {google.cloud.contentwarehouse.v1.RequestMetadata} RequestMetadata instance
+ */
+ RequestMetadata.create = function create(properties) {
+ return new RequestMetadata(properties);
+ };
+
+ /**
+ * Encodes the specified RequestMetadata message. Does not implicitly {@link google.cloud.contentwarehouse.v1.RequestMetadata.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.contentwarehouse.v1.RequestMetadata
+ * @static
+ * @param {google.cloud.contentwarehouse.v1.IRequestMetadata} message RequestMetadata message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ RequestMetadata.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.userInfo != null && Object.hasOwnProperty.call(message, "userInfo"))
+ $root.google.cloud.contentwarehouse.v1.UserInfo.encode(message.userInfo, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified RequestMetadata message, length delimited. Does not implicitly {@link google.cloud.contentwarehouse.v1.RequestMetadata.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.contentwarehouse.v1.RequestMetadata
+ * @static
+ * @param {google.cloud.contentwarehouse.v1.IRequestMetadata} message RequestMetadata message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ RequestMetadata.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a RequestMetadata message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.contentwarehouse.v1.RequestMetadata
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.contentwarehouse.v1.RequestMetadata} RequestMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ RequestMetadata.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.contentwarehouse.v1.RequestMetadata();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.userInfo = $root.google.cloud.contentwarehouse.v1.UserInfo.decode(reader, reader.uint32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a RequestMetadata message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.contentwarehouse.v1.RequestMetadata
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.contentwarehouse.v1.RequestMetadata} RequestMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ RequestMetadata.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a RequestMetadata message.
+ * @function verify
+ * @memberof google.cloud.contentwarehouse.v1.RequestMetadata
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ RequestMetadata.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.userInfo != null && message.hasOwnProperty("userInfo")) {
+ var error = $root.google.cloud.contentwarehouse.v1.UserInfo.verify(message.userInfo);
+ if (error)
+ return "userInfo." + error;
+ }
+ return null;
+ };
+
+ /**
+ * Creates a RequestMetadata message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.contentwarehouse.v1.RequestMetadata
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.contentwarehouse.v1.RequestMetadata} RequestMetadata
+ */
+ RequestMetadata.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.contentwarehouse.v1.RequestMetadata)
+ return object;
+ var message = new $root.google.cloud.contentwarehouse.v1.RequestMetadata();
+ if (object.userInfo != null) {
+ if (typeof object.userInfo !== "object")
+ throw TypeError(".google.cloud.contentwarehouse.v1.RequestMetadata.userInfo: object expected");
+ message.userInfo = $root.google.cloud.contentwarehouse.v1.UserInfo.fromObject(object.userInfo);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a RequestMetadata message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.contentwarehouse.v1.RequestMetadata
+ * @static
+ * @param {google.cloud.contentwarehouse.v1.RequestMetadata} message RequestMetadata
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ RequestMetadata.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults)
+ object.userInfo = null;
+ if (message.userInfo != null && message.hasOwnProperty("userInfo"))
+ object.userInfo = $root.google.cloud.contentwarehouse.v1.UserInfo.toObject(message.userInfo, options);
+ return object;
+ };
+
+ /**
+ * Converts this RequestMetadata to JSON.
+ * @function toJSON
+ * @memberof google.cloud.contentwarehouse.v1.RequestMetadata
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ RequestMetadata.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for RequestMetadata
+ * @function getTypeUrl
+ * @memberof google.cloud.contentwarehouse.v1.RequestMetadata
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ RequestMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.contentwarehouse.v1.RequestMetadata";
+ };
+
+ return RequestMetadata;
+ })();
+
+ v1.ResponseMetadata = (function() {
+
+ /**
+ * Properties of a ResponseMetadata.
+ * @memberof google.cloud.contentwarehouse.v1
+ * @interface IResponseMetadata
+ * @property {string|null} [requestId] ResponseMetadata requestId
+ */
+
+ /**
+ * Constructs a new ResponseMetadata.
+ * @memberof google.cloud.contentwarehouse.v1
+ * @classdesc Represents a ResponseMetadata.
+ * @implements IResponseMetadata
+ * @constructor
+ * @param {google.cloud.contentwarehouse.v1.IResponseMetadata=} [properties] Properties to set
+ */
+ function ResponseMetadata(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]];
+ }
+
+ /**
+ * ResponseMetadata requestId.
+ * @member {string} requestId
+ * @memberof google.cloud.contentwarehouse.v1.ResponseMetadata
+ * @instance
+ */
+ ResponseMetadata.prototype.requestId = "";
+
+ /**
+ * Creates a new ResponseMetadata instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.contentwarehouse.v1.ResponseMetadata
+ * @static
+ * @param {google.cloud.contentwarehouse.v1.IResponseMetadata=} [properties] Properties to set
+ * @returns {google.cloud.contentwarehouse.v1.ResponseMetadata} ResponseMetadata instance
+ */
+ ResponseMetadata.create = function create(properties) {
+ return new ResponseMetadata(properties);
+ };
+
+ /**
+ * Encodes the specified ResponseMetadata message. Does not implicitly {@link google.cloud.contentwarehouse.v1.ResponseMetadata.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.contentwarehouse.v1.ResponseMetadata
+ * @static
+ * @param {google.cloud.contentwarehouse.v1.IResponseMetadata} message ResponseMetadata message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ResponseMetadata.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.requestId);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ResponseMetadata message, length delimited. Does not implicitly {@link google.cloud.contentwarehouse.v1.ResponseMetadata.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.contentwarehouse.v1.ResponseMetadata
+ * @static
+ * @param {google.cloud.contentwarehouse.v1.IResponseMetadata} message ResponseMetadata message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ResponseMetadata.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ResponseMetadata message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.contentwarehouse.v1.ResponseMetadata
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.contentwarehouse.v1.ResponseMetadata} ResponseMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ResponseMetadata.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.contentwarehouse.v1.ResponseMetadata();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.requestId = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ResponseMetadata message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.contentwarehouse.v1.ResponseMetadata
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.contentwarehouse.v1.ResponseMetadata} ResponseMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ResponseMetadata.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ResponseMetadata message.
+ * @function verify
+ * @memberof google.cloud.contentwarehouse.v1.ResponseMetadata
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ResponseMetadata.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.requestId != null && message.hasOwnProperty("requestId"))
+ if (!$util.isString(message.requestId))
+ return "requestId: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a ResponseMetadata message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.contentwarehouse.v1.ResponseMetadata
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.contentwarehouse.v1.ResponseMetadata} ResponseMetadata
+ */
+ ResponseMetadata.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.contentwarehouse.v1.ResponseMetadata)
+ return object;
+ var message = new $root.google.cloud.contentwarehouse.v1.ResponseMetadata();
+ if (object.requestId != null)
+ message.requestId = String(object.requestId);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ResponseMetadata message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.contentwarehouse.v1.ResponseMetadata
+ * @static
+ * @param {google.cloud.contentwarehouse.v1.ResponseMetadata} message ResponseMetadata
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ResponseMetadata.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults)
+ object.requestId = "";
+ if (message.requestId != null && message.hasOwnProperty("requestId"))
+ object.requestId = message.requestId;
+ return object;
+ };
+
+ /**
+ * Converts this ResponseMetadata to JSON.
+ * @function toJSON
+ * @memberof google.cloud.contentwarehouse.v1.ResponseMetadata
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ResponseMetadata.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ResponseMetadata
+ * @function getTypeUrl
+ * @memberof google.cloud.contentwarehouse.v1.ResponseMetadata
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ResponseMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.contentwarehouse.v1.ResponseMetadata";
+ };
+
+ return ResponseMetadata;
+ })();
+
+ v1.UserInfo = (function() {
+
+ /**
+ * Properties of a UserInfo.
+ * @memberof google.cloud.contentwarehouse.v1
+ * @interface IUserInfo
+ * @property {string|null} [id] UserInfo id
+ * @property {Array.|null} [groupIds] UserInfo groupIds
+ */
+
+ /**
+ * Constructs a new UserInfo.
+ * @memberof google.cloud.contentwarehouse.v1
+ * @classdesc Represents a UserInfo.
+ * @implements IUserInfo
+ * @constructor
+ * @param {google.cloud.contentwarehouse.v1.IUserInfo=} [properties] Properties to set
+ */
+ function UserInfo(properties) {
+ this.groupIds = [];
+ 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]];
+ }
+
+ /**
+ * UserInfo id.
+ * @member {string} id
+ * @memberof google.cloud.contentwarehouse.v1.UserInfo
+ * @instance
+ */
+ UserInfo.prototype.id = "";
+
+ /**
+ * UserInfo groupIds.
+ * @member {Array.} groupIds
+ * @memberof google.cloud.contentwarehouse.v1.UserInfo
+ * @instance
+ */
+ UserInfo.prototype.groupIds = $util.emptyArray;
+
+ /**
+ * Creates a new UserInfo instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.contentwarehouse.v1.UserInfo
+ * @static
+ * @param {google.cloud.contentwarehouse.v1.IUserInfo=} [properties] Properties to set
+ * @returns {google.cloud.contentwarehouse.v1.UserInfo} UserInfo instance
+ */
+ UserInfo.create = function create(properties) {
+ return new UserInfo(properties);
+ };
+
+ /**
+ * Encodes the specified UserInfo message. Does not implicitly {@link google.cloud.contentwarehouse.v1.UserInfo.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.contentwarehouse.v1.UserInfo
+ * @static
+ * @param {google.cloud.contentwarehouse.v1.IUserInfo} message UserInfo message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ UserInfo.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.id != null && Object.hasOwnProperty.call(message, "id"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.id);
+ if (message.groupIds != null && message.groupIds.length)
+ for (var i = 0; i < message.groupIds.length; ++i)
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.groupIds[i]);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified UserInfo message, length delimited. Does not implicitly {@link google.cloud.contentwarehouse.v1.UserInfo.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.contentwarehouse.v1.UserInfo
+ * @static
+ * @param {google.cloud.contentwarehouse.v1.IUserInfo} message UserInfo message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ UserInfo.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a UserInfo message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.contentwarehouse.v1.UserInfo
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.contentwarehouse.v1.UserInfo} UserInfo
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ UserInfo.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.contentwarehouse.v1.UserInfo();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.id = reader.string();
+ break;
+ }
+ case 2: {
+ if (!(message.groupIds && message.groupIds.length))
+ message.groupIds = [];
+ message.groupIds.push(reader.string());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a UserInfo message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.contentwarehouse.v1.UserInfo
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.contentwarehouse.v1.UserInfo} UserInfo
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ UserInfo.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a UserInfo message.
+ * @function verify
+ * @memberof google.cloud.contentwarehouse.v1.UserInfo
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ UserInfo.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.id != null && message.hasOwnProperty("id"))
+ if (!$util.isString(message.id))
+ return "id: string expected";
+ if (message.groupIds != null && message.hasOwnProperty("groupIds")) {
+ if (!Array.isArray(message.groupIds))
+ return "groupIds: array expected";
+ for (var i = 0; i < message.groupIds.length; ++i)
+ if (!$util.isString(message.groupIds[i]))
+ return "groupIds: string[] expected";
+ }
+ return null;
+ };
+
+ /**
+ * Creates a UserInfo message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.contentwarehouse.v1.UserInfo
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.contentwarehouse.v1.UserInfo} UserInfo
+ */
+ UserInfo.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.contentwarehouse.v1.UserInfo)
+ return object;
+ var message = new $root.google.cloud.contentwarehouse.v1.UserInfo();
+ if (object.id != null)
+ message.id = String(object.id);
+ if (object.groupIds) {
+ if (!Array.isArray(object.groupIds))
+ throw TypeError(".google.cloud.contentwarehouse.v1.UserInfo.groupIds: array expected");
+ message.groupIds = [];
+ for (var i = 0; i < object.groupIds.length; ++i)
+ message.groupIds[i] = String(object.groupIds[i]);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a UserInfo message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.contentwarehouse.v1.UserInfo
+ * @static
+ * @param {google.cloud.contentwarehouse.v1.UserInfo} message UserInfo
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ UserInfo.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.groupIds = [];
+ if (options.defaults)
+ object.id = "";
+ if (message.id != null && message.hasOwnProperty("id"))
+ object.id = message.id;
+ if (message.groupIds && message.groupIds.length) {
+ object.groupIds = [];
+ for (var j = 0; j < message.groupIds.length; ++j)
+ object.groupIds[j] = message.groupIds[j];
+ }
+ return object;
+ };
+
+ /**
+ * Converts this UserInfo to JSON.
+ * @function toJSON
+ * @memberof google.cloud.contentwarehouse.v1.UserInfo
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ UserInfo.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for UserInfo
+ * @function getTypeUrl
+ * @memberof google.cloud.contentwarehouse.v1.UserInfo
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ UserInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.contentwarehouse.v1.UserInfo";
+ };
+
+ return UserInfo;
+ })();
+
+ v1.UpdateOptions = (function() {
+
+ /**
+ * Properties of an UpdateOptions.
+ * @memberof google.cloud.contentwarehouse.v1
+ * @interface IUpdateOptions
+ * @property {google.cloud.contentwarehouse.v1.UpdateType|null} [updateType] UpdateOptions updateType
+ * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateOptions updateMask
+ * @property {google.cloud.contentwarehouse.v1.IMergeFieldsOptions|null} [mergeFieldsOptions] UpdateOptions mergeFieldsOptions
+ */
+
+ /**
+ * Constructs a new UpdateOptions.
+ * @memberof google.cloud.contentwarehouse.v1
+ * @classdesc Represents an UpdateOptions.
+ * @implements IUpdateOptions
+ * @constructor
+ * @param {google.cloud.contentwarehouse.v1.IUpdateOptions=} [properties] Properties to set
+ */
+ function UpdateOptions(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]];
+ }
+
+ /**
+ * UpdateOptions updateType.
+ * @member {google.cloud.contentwarehouse.v1.UpdateType} updateType
+ * @memberof google.cloud.contentwarehouse.v1.UpdateOptions
+ * @instance
+ */
+ UpdateOptions.prototype.updateType = 0;
+
+ /**
+ * UpdateOptions updateMask.
+ * @member {google.protobuf.IFieldMask|null|undefined} updateMask
+ * @memberof google.cloud.contentwarehouse.v1.UpdateOptions
+ * @instance
+ */
+ UpdateOptions.prototype.updateMask = null;
+
+ /**
+ * UpdateOptions mergeFieldsOptions.
+ * @member {google.cloud.contentwarehouse.v1.IMergeFieldsOptions|null|undefined} mergeFieldsOptions
+ * @memberof google.cloud.contentwarehouse.v1.UpdateOptions
+ * @instance
+ */
+ UpdateOptions.prototype.mergeFieldsOptions = null;
+
+ /**
+ * Creates a new UpdateOptions instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.contentwarehouse.v1.UpdateOptions
+ * @static
+ * @param {google.cloud.contentwarehouse.v1.IUpdateOptions=} [properties] Properties to set
+ * @returns {google.cloud.contentwarehouse.v1.UpdateOptions} UpdateOptions instance
+ */
+ UpdateOptions.create = function create(properties) {
+ return new UpdateOptions(properties);
+ };
+
+ /**
+ * Encodes the specified UpdateOptions message. Does not implicitly {@link google.cloud.contentwarehouse.v1.UpdateOptions.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.contentwarehouse.v1.UpdateOptions
+ * @static
+ * @param {google.cloud.contentwarehouse.v1.IUpdateOptions} message UpdateOptions message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ UpdateOptions.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.updateType != null && Object.hasOwnProperty.call(message, "updateType"))
+ writer.uint32(/* id 1, wireType 0 =*/8).int32(message.updateType);
+ if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask"))
+ $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
+ if (message.mergeFieldsOptions != null && Object.hasOwnProperty.call(message, "mergeFieldsOptions"))
+ $root.google.cloud.contentwarehouse.v1.MergeFieldsOptions.encode(message.mergeFieldsOptions, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified UpdateOptions message, length delimited. Does not implicitly {@link google.cloud.contentwarehouse.v1.UpdateOptions.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.contentwarehouse.v1.UpdateOptions
+ * @static
+ * @param {google.cloud.contentwarehouse.v1.IUpdateOptions} message UpdateOptions message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ UpdateOptions.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes an UpdateOptions message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.contentwarehouse.v1.UpdateOptions
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.contentwarehouse.v1.UpdateOptions} UpdateOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ UpdateOptions.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.contentwarehouse.v1.UpdateOptions();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.updateType = reader.int32();
+ break;
+ }
+ case 2: {
+ message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32());
+ break;
+ }
+ case 3: {
+ message.mergeFieldsOptions = $root.google.cloud.contentwarehouse.v1.MergeFieldsOptions.decode(reader, reader.uint32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an UpdateOptions message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.contentwarehouse.v1.UpdateOptions
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.contentwarehouse.v1.UpdateOptions} UpdateOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ UpdateOptions.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an UpdateOptions message.
+ * @function verify
+ * @memberof google.cloud.contentwarehouse.v1.UpdateOptions
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ UpdateOptions.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.updateType != null && message.hasOwnProperty("updateType"))
+ switch (message.updateType) {
+ default:
+ return "updateType: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ case 3:
+ case 4:
+ case 5:
+ break;
+ }
+ if (message.updateMask != null && message.hasOwnProperty("updateMask")) {
+ var error = $root.google.protobuf.FieldMask.verify(message.updateMask);
+ if (error)
+ return "updateMask." + error;
+ }
+ if (message.mergeFieldsOptions != null && message.hasOwnProperty("mergeFieldsOptions")) {
+ var error = $root.google.cloud.contentwarehouse.v1.MergeFieldsOptions.verify(message.mergeFieldsOptions);
+ if (error)
+ return "mergeFieldsOptions." + error;
+ }
+ return null;
+ };
+
+ /**
+ * Creates an UpdateOptions message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.contentwarehouse.v1.UpdateOptions
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.contentwarehouse.v1.UpdateOptions} UpdateOptions
+ */
+ UpdateOptions.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.contentwarehouse.v1.UpdateOptions)
+ return object;
+ var message = new $root.google.cloud.contentwarehouse.v1.UpdateOptions();
+ switch (object.updateType) {
+ case "UPDATE_TYPE_UNSPECIFIED":
+ case 0:
+ message.updateType = 0;
+ break;
+ case "UPDATE_TYPE_REPLACE":
+ case 1:
+ message.updateType = 1;
+ break;
+ case "UPDATE_TYPE_MERGE":
+ case 2:
+ message.updateType = 2;
+ break;
+ case "UPDATE_TYPE_INSERT_PROPERTIES_BY_NAMES":
+ case 3:
+ message.updateType = 3;
+ break;
+ case "UPDATE_TYPE_REPLACE_PROPERTIES_BY_NAMES":
+ case 4:
+ message.updateType = 4;
+ break;
+ case "UPDATE_TYPE_DELETE_PROPERTIES_BY_NAMES":
+ case 5:
+ message.updateType = 5;
+ break;
+ }
+ if (object.updateMask != null) {
+ if (typeof object.updateMask !== "object")
+ throw TypeError(".google.cloud.contentwarehouse.v1.UpdateOptions.updateMask: object expected");
+ message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask);
+ }
+ if (object.mergeFieldsOptions != null) {
+ if (typeof object.mergeFieldsOptions !== "object")
+ throw TypeError(".google.cloud.contentwarehouse.v1.UpdateOptions.mergeFieldsOptions: object expected");
+ message.mergeFieldsOptions = $root.google.cloud.contentwarehouse.v1.MergeFieldsOptions.fromObject(object.mergeFieldsOptions);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an UpdateOptions message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.contentwarehouse.v1.UpdateOptions
+ * @static
+ * @param {google.cloud.contentwarehouse.v1.UpdateOptions} message UpdateOptions
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ UpdateOptions.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.updateType = options.enums === String ? "UPDATE_TYPE_UNSPECIFIED" : 0;
+ object.updateMask = null;
+ object.mergeFieldsOptions = null;
+ }
+ if (message.updateType != null && message.hasOwnProperty("updateType"))
+ object.updateType = options.enums === String ? $root.google.cloud.contentwarehouse.v1.UpdateType[message.updateType] : message.updateType;
+ if (message.updateMask != null && message.hasOwnProperty("updateMask"))
+ object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options);
+ if (message.mergeFieldsOptions != null && message.hasOwnProperty("mergeFieldsOptions"))
+ object.mergeFieldsOptions = $root.google.cloud.contentwarehouse.v1.MergeFieldsOptions.toObject(message.mergeFieldsOptions, options);
+ return object;
+ };
+
+ /**
+ * Converts this UpdateOptions to JSON.
+ * @function toJSON
+ * @memberof google.cloud.contentwarehouse.v1.UpdateOptions
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ UpdateOptions.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for UpdateOptions
+ * @function getTypeUrl
+ * @memberof google.cloud.contentwarehouse.v1.UpdateOptions
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ UpdateOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.contentwarehouse.v1.UpdateOptions";
+ };
+
+ return UpdateOptions;
+ })();
+
+ v1.MergeFieldsOptions = (function() {
+
+ /**
+ * Properties of a MergeFieldsOptions.
+ * @memberof google.cloud.contentwarehouse.v1
+ * @interface IMergeFieldsOptions
+ * @property {boolean|null} [replaceMessageFields] MergeFieldsOptions replaceMessageFields
+ * @property {boolean|null} [replaceRepeatedFields] MergeFieldsOptions replaceRepeatedFields
+ */
+
+ /**
+ * Constructs a new MergeFieldsOptions.
+ * @memberof google.cloud.contentwarehouse.v1
+ * @classdesc Represents a MergeFieldsOptions.
+ * @implements IMergeFieldsOptions
+ * @constructor
+ * @param {google.cloud.contentwarehouse.v1.IMergeFieldsOptions=} [properties] Properties to set
+ */
+ function MergeFieldsOptions(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]];
+ }
+
+ /**
+ * MergeFieldsOptions replaceMessageFields.
+ * @member {boolean|null|undefined} replaceMessageFields
+ * @memberof google.cloud.contentwarehouse.v1.MergeFieldsOptions
+ * @instance
+ */
+ MergeFieldsOptions.prototype.replaceMessageFields = null;
+
+ /**
+ * MergeFieldsOptions replaceRepeatedFields.
+ * @member {boolean|null|undefined} replaceRepeatedFields
+ * @memberof google.cloud.contentwarehouse.v1.MergeFieldsOptions
+ * @instance
+ */
+ MergeFieldsOptions.prototype.replaceRepeatedFields = null;
+
+ // OneOf field names bound to virtual getters and setters
+ var $oneOfFields;
+
+ /**
+ * MergeFieldsOptions _replaceMessageFields.
+ * @member {"replaceMessageFields"|undefined} _replaceMessageFields
+ * @memberof google.cloud.contentwarehouse.v1.MergeFieldsOptions
+ * @instance
+ */
+ Object.defineProperty(MergeFieldsOptions.prototype, "_replaceMessageFields", {
+ get: $util.oneOfGetter($oneOfFields = ["replaceMessageFields"]),
+ set: $util.oneOfSetter($oneOfFields)
+ });
+
+ /**
+ * MergeFieldsOptions _replaceRepeatedFields.
+ * @member {"replaceRepeatedFields"|undefined} _replaceRepeatedFields
+ * @memberof google.cloud.contentwarehouse.v1.MergeFieldsOptions
+ * @instance
+ */
+ Object.defineProperty(MergeFieldsOptions.prototype, "_replaceRepeatedFields", {
+ get: $util.oneOfGetter($oneOfFields = ["replaceRepeatedFields"]),
+ set: $util.oneOfSetter($oneOfFields)
+ });
+
+ /**
+ * Creates a new MergeFieldsOptions instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.contentwarehouse.v1.MergeFieldsOptions
+ * @static
+ * @param {google.cloud.contentwarehouse.v1.IMergeFieldsOptions=} [properties] Properties to set
+ * @returns {google.cloud.contentwarehouse.v1.MergeFieldsOptions} MergeFieldsOptions instance
+ */
+ MergeFieldsOptions.create = function create(properties) {
+ return new MergeFieldsOptions(properties);
+ };
+
+ /**
+ * Encodes the specified MergeFieldsOptions message. Does not implicitly {@link google.cloud.contentwarehouse.v1.MergeFieldsOptions.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.contentwarehouse.v1.MergeFieldsOptions
+ * @static
+ * @param {google.cloud.contentwarehouse.v1.IMergeFieldsOptions} message MergeFieldsOptions message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ MergeFieldsOptions.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.replaceMessageFields != null && Object.hasOwnProperty.call(message, "replaceMessageFields"))
+ writer.uint32(/* id 1, wireType 0 =*/8).bool(message.replaceMessageFields);
+ if (message.replaceRepeatedFields != null && Object.hasOwnProperty.call(message, "replaceRepeatedFields"))
+ writer.uint32(/* id 2, wireType 0 =*/16).bool(message.replaceRepeatedFields);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified MergeFieldsOptions message, length delimited. Does not implicitly {@link google.cloud.contentwarehouse.v1.MergeFieldsOptions.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.contentwarehouse.v1.MergeFieldsOptions
+ * @static
+ * @param {google.cloud.contentwarehouse.v1.IMergeFieldsOptions} message MergeFieldsOptions message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ MergeFieldsOptions.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a MergeFieldsOptions message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.contentwarehouse.v1.MergeFieldsOptions
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.contentwarehouse.v1.MergeFieldsOptions} MergeFieldsOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ MergeFieldsOptions.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.contentwarehouse.v1.MergeFieldsOptions();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.replaceMessageFields = reader.bool();
+ break;
+ }
+ case 2: {
+ message.replaceRepeatedFields = reader.bool();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a MergeFieldsOptions message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.contentwarehouse.v1.MergeFieldsOptions
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.contentwarehouse.v1.MergeFieldsOptions} MergeFieldsOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ MergeFieldsOptions.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a MergeFieldsOptions message.
+ * @function verify
+ * @memberof google.cloud.contentwarehouse.v1.MergeFieldsOptions
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ MergeFieldsOptions.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ var properties = {};
+ if (message.replaceMessageFields != null && message.hasOwnProperty("replaceMessageFields")) {
+ properties._replaceMessageFields = 1;
+ if (typeof message.replaceMessageFields !== "boolean")
+ return "replaceMessageFields: boolean expected";
+ }
+ if (message.replaceRepeatedFields != null && message.hasOwnProperty("replaceRepeatedFields")) {
+ properties._replaceRepeatedFields = 1;
+ if (typeof message.replaceRepeatedFields !== "boolean")
+ return "replaceRepeatedFields: boolean expected";
+ }
+ return null;
+ };
+
+ /**
+ * Creates a MergeFieldsOptions message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.contentwarehouse.v1.MergeFieldsOptions
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.contentwarehouse.v1.MergeFieldsOptions} MergeFieldsOptions
+ */
+ MergeFieldsOptions.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.contentwarehouse.v1.MergeFieldsOptions)
+ return object;
+ var message = new $root.google.cloud.contentwarehouse.v1.MergeFieldsOptions();
+ if (object.replaceMessageFields != null)
+ message.replaceMessageFields = Boolean(object.replaceMessageFields);
+ if (object.replaceRepeatedFields != null)
+ message.replaceRepeatedFields = Boolean(object.replaceRepeatedFields);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a MergeFieldsOptions message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.contentwarehouse.v1.MergeFieldsOptions
+ * @static
+ * @param {google.cloud.contentwarehouse.v1.MergeFieldsOptions} message MergeFieldsOptions
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ MergeFieldsOptions.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (message.replaceMessageFields != null && message.hasOwnProperty("replaceMessageFields")) {
+ object.replaceMessageFields = message.replaceMessageFields;
+ if (options.oneofs)
+ object._replaceMessageFields = "replaceMessageFields";
+ }
+ if (message.replaceRepeatedFields != null && message.hasOwnProperty("replaceRepeatedFields")) {
+ object.replaceRepeatedFields = message.replaceRepeatedFields;
+ if (options.oneofs)
+ object._replaceRepeatedFields = "replaceRepeatedFields";
+ }
+ return object;
+ };
+
+ /**
+ * Converts this MergeFieldsOptions to JSON.
+ * @function toJSON
+ * @memberof google.cloud.contentwarehouse.v1.MergeFieldsOptions
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ MergeFieldsOptions.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for MergeFieldsOptions
+ * @function getTypeUrl
+ * @memberof google.cloud.contentwarehouse.v1.MergeFieldsOptions
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ MergeFieldsOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.contentwarehouse.v1.MergeFieldsOptions";
+ };
+
+ return MergeFieldsOptions;
+ })();
+
+ /**
+ * UpdateType enum.
+ * @name google.cloud.contentwarehouse.v1.UpdateType
+ * @enum {number}
+ * @property {number} UPDATE_TYPE_UNSPECIFIED=0 UPDATE_TYPE_UNSPECIFIED value
+ * @property {number} UPDATE_TYPE_REPLACE=1 UPDATE_TYPE_REPLACE value
+ * @property {number} UPDATE_TYPE_MERGE=2 UPDATE_TYPE_MERGE value
+ * @property {number} UPDATE_TYPE_INSERT_PROPERTIES_BY_NAMES=3 UPDATE_TYPE_INSERT_PROPERTIES_BY_NAMES value
+ * @property {number} UPDATE_TYPE_REPLACE_PROPERTIES_BY_NAMES=4 UPDATE_TYPE_REPLACE_PROPERTIES_BY_NAMES value
+ * @property {number} UPDATE_TYPE_DELETE_PROPERTIES_BY_NAMES=5 UPDATE_TYPE_DELETE_PROPERTIES_BY_NAMES value
+ */
+ v1.UpdateType = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "UPDATE_TYPE_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "UPDATE_TYPE_REPLACE"] = 1;
+ values[valuesById[2] = "UPDATE_TYPE_MERGE"] = 2;
+ values[valuesById[3] = "UPDATE_TYPE_INSERT_PROPERTIES_BY_NAMES"] = 3;
+ values[valuesById[4] = "UPDATE_TYPE_REPLACE_PROPERTIES_BY_NAMES"] = 4;
+ values[valuesById[5] = "UPDATE_TYPE_DELETE_PROPERTIES_BY_NAMES"] = 5;
+ return values;
+ })();
+
+ /**
+ * DatabaseType enum.
+ * @name google.cloud.contentwarehouse.v1.DatabaseType
+ * @enum {number}
+ * @property {number} DB_UNKNOWN=0 DB_UNKNOWN value
+ * @property {number} DB_INFRA_SPANNER=1 DB_INFRA_SPANNER value
+ * @property {number} DB_CLOUD_SQL_POSTGRES=2 DB_CLOUD_SQL_POSTGRES value
+ */
+ v1.DatabaseType = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "DB_UNKNOWN"] = 0;
+ values[valuesById[1] = "DB_INFRA_SPANNER"] = 1;
+ values[valuesById[2] = "DB_CLOUD_SQL_POSTGRES"] = 2;
+ return values;
+ })();
+
+ /**
+ * AccessControlMode enum.
+ * @name google.cloud.contentwarehouse.v1.AccessControlMode
+ * @enum {number}
+ * @property {number} ACL_MODE_UNKNOWN=0 ACL_MODE_UNKNOWN value
+ * @property {number} ACL_MODE_UNIVERSAL_ACCESS=1 ACL_MODE_UNIVERSAL_ACCESS value
+ * @property {number} ACL_MODE_DOCUMENT_LEVEL_ACCESS_CONTROL_BYOID=2 ACL_MODE_DOCUMENT_LEVEL_ACCESS_CONTROL_BYOID value
+ * @property {number} ACL_MODE_DOCUMENT_LEVEL_ACCESS_CONTROL_GCI=3 ACL_MODE_DOCUMENT_LEVEL_ACCESS_CONTROL_GCI value
+ */
+ v1.AccessControlMode = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "ACL_MODE_UNKNOWN"] = 0;
+ values[valuesById[1] = "ACL_MODE_UNIVERSAL_ACCESS"] = 1;
+ values[valuesById[2] = "ACL_MODE_DOCUMENT_LEVEL_ACCESS_CONTROL_BYOID"] = 2;
+ values[valuesById[3] = "ACL_MODE_DOCUMENT_LEVEL_ACCESS_CONTROL_GCI"] = 3;
+ return values;
+ })();
+
+ v1.Document = (function() {
+
+ /**
+ * Properties of a Document.
+ * @memberof google.cloud.contentwarehouse.v1
+ * @interface IDocument
+ * @property {string|null} [name] Document name
+ * @property {string|null} [referenceId] Document referenceId
+ * @property {string|null} [displayName] Document displayName
+ * @property {string|null} [title] Document title
+ * @property {string|null} [displayUri] Document displayUri
+ * @property {string|null} [documentSchemaName] Document documentSchemaName
+ * @property {string|null} [plainText] Document plainText
+ * @property {google.cloud.documentai.v1.IDocument|null} [cloudAiDocument] Document cloudAiDocument
+ * @property {string|null} [structuredContentUri] Document structuredContentUri
+ * @property {string|null} [rawDocumentPath] Document rawDocumentPath
+ * @property {Uint8Array|null} [inlineRawDocument] Document inlineRawDocument
+ * @property {Array.|null} [properties] Document properties
+ * @property {google.protobuf.ITimestamp|null} [updateTime] Document updateTime
+ * @property {google.protobuf.ITimestamp|null} [createTime] Document createTime
+ * @property {google.cloud.contentwarehouse.v1.RawDocumentFileType|null} [rawDocumentFileType] Document rawDocumentFileType
+ * @property {boolean|null} [asyncEnabled] Document asyncEnabled
+ * @property {boolean|null} [textExtractionDisabled] Document textExtractionDisabled
+ * @property {string|null} [creator] Document creator
+ * @property {string|null} [updater] Document updater
+ */
+
+ /**
+ * Constructs a new Document.
+ * @memberof google.cloud.contentwarehouse.v1
+ * @classdesc Represents a Document.
+ * @implements IDocument
+ * @constructor
+ * @param {google.cloud.contentwarehouse.v1.IDocument=} [properties] Properties to set
+ */
+ function Document(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]];
+ }
+
+ /**
+ * Document name.
+ * @member {string} name
+ * @memberof google.cloud.contentwarehouse.v1.Document
+ * @instance
+ */
+ Document.prototype.name = "";
+
+ /**
+ * Document referenceId.
+ * @member {string} referenceId
+ * @memberof google.cloud.contentwarehouse.v1.Document
+ * @instance
+ */
+ Document.prototype.referenceId = "";
+
+ /**
+ * Document displayName.
+ * @member {string} displayName
+ * @memberof google.cloud.contentwarehouse.v1.Document
+ * @instance
+ */
+ Document.prototype.displayName = "";
+
+ /**
+ * Document title.
+ * @member {string} title
+ * @memberof google.cloud.contentwarehouse.v1.Document
+ * @instance
+ */
+ Document.prototype.title = "";
+
+ /**
+ * Document displayUri.
+ * @member {string} displayUri
+ * @memberof google.cloud.contentwarehouse.v1.Document
+ * @instance
+ */
+ Document.prototype.displayUri = "";
+
+ /**
+ * Document documentSchemaName.
+ * @member {string} documentSchemaName
+ * @memberof google.cloud.contentwarehouse.v1.Document
+ * @instance
+ */
+ Document.prototype.documentSchemaName = "";
+
+ /**
+ * Document plainText.
+ * @member {string|null|undefined} plainText
+ * @memberof google.cloud.contentwarehouse.v1.Document
+ * @instance
+ */
+ Document.prototype.plainText = null;
+
+ /**
+ * Document cloudAiDocument.
+ * @member {google.cloud.documentai.v1.IDocument|null|undefined} cloudAiDocument
+ * @memberof google.cloud.contentwarehouse.v1.Document
+ * @instance
+ */
+ Document.prototype.cloudAiDocument = null;
+
+ /**
+ * Document structuredContentUri.
+ * @member {string} structuredContentUri
+ * @memberof google.cloud.contentwarehouse.v1.Document
+ * @instance
+ */
+ Document.prototype.structuredContentUri = "";
+
+ /**
+ * Document rawDocumentPath.
+ * @member {string|null|undefined} rawDocumentPath
+ * @memberof google.cloud.contentwarehouse.v1.Document
+ * @instance
+ */
+ Document.prototype.rawDocumentPath = null;
+
+ /**
+ * Document inlineRawDocument.
+ * @member {Uint8Array|null|undefined} inlineRawDocument
+ * @memberof google.cloud.contentwarehouse.v1.Document
+ * @instance
+ */
+ Document.prototype.inlineRawDocument = null;
+
+ /**
+ * Document properties.
+ * @member {Array.} properties
+ * @memberof google.cloud.contentwarehouse.v1.Document
+ * @instance
+ */
+ Document.prototype.properties = $util.emptyArray;
+
+ /**
+ * Document updateTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} updateTime
+ * @memberof google.cloud.contentwarehouse.v1.Document
+ * @instance
+ */
+ Document.prototype.updateTime = null;
+
+ /**
+ * Document createTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} createTime
+ * @memberof google.cloud.contentwarehouse.v1.Document
+ * @instance
+ */
+ Document.prototype.createTime = null;
+
+ /**
+ * Document rawDocumentFileType.
+ * @member {google.cloud.contentwarehouse.v1.RawDocumentFileType} rawDocumentFileType
+ * @memberof google.cloud.contentwarehouse.v1.Document
+ * @instance
+ */
+ Document.prototype.rawDocumentFileType = 0;
+
+ /**
+ * Document asyncEnabled.
+ * @member {boolean} asyncEnabled
+ * @memberof google.cloud.contentwarehouse.v1.Document
+ * @instance
+ */
+ Document.prototype.asyncEnabled = false;
+
+ /**
+ * Document textExtractionDisabled.
+ * @member {boolean} textExtractionDisabled
+ * @memberof google.cloud.contentwarehouse.v1.Document
+ * @instance
+ */
+ Document.prototype.textExtractionDisabled = false;
+
+ /**
+ * Document creator.
+ * @member {string} creator
+ * @memberof google.cloud.contentwarehouse.v1.Document
+ * @instance
+ */
+ Document.prototype.creator = "";
+
+ /**
+ * Document updater.
+ * @member {string} updater
+ * @memberof google.cloud.contentwarehouse.v1.Document
+ * @instance
+ */
+ Document.prototype.updater = "";
+
+ // OneOf field names bound to virtual getters and setters
+ var $oneOfFields;
+
+ /**
+ * Document structuredContent.
+ * @member {"plainText"|"cloudAiDocument"|undefined} structuredContent
+ * @memberof google.cloud.contentwarehouse.v1.Document
+ * @instance
+ */
+ Object.defineProperty(Document.prototype, "structuredContent", {
+ get: $util.oneOfGetter($oneOfFields = ["plainText", "cloudAiDocument"]),
+ set: $util.oneOfSetter($oneOfFields)
+ });
+
+ /**
+ * Document rawDocument.
+ * @member {"rawDocumentPath"|"inlineRawDocument"|undefined} rawDocument
+ * @memberof google.cloud.contentwarehouse.v1.Document
+ * @instance
+ */
+ Object.defineProperty(Document.prototype, "rawDocument", {
+ get: $util.oneOfGetter($oneOfFields = ["rawDocumentPath", "inlineRawDocument"]),
+ set: $util.oneOfSetter($oneOfFields)
+ });
+
+ /**
+ * Creates a new Document instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.contentwarehouse.v1.Document
+ * @static
+ * @param {google.cloud.contentwarehouse.v1.IDocument=} [properties] Properties to set
+ * @returns {google.cloud.contentwarehouse.v1.Document} Document instance
+ */
+ Document.create = function create(properties) {
+ return new Document(properties);
+ };
+
+ /**
+ * Encodes the specified Document message. Does not implicitly {@link google.cloud.contentwarehouse.v1.Document.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.contentwarehouse.v1.Document
+ * @static
+ * @param {google.cloud.contentwarehouse.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.name != null && Object.hasOwnProperty.call(message, "name"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
+ if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName);
+ if (message.documentSchemaName != null && Object.hasOwnProperty.call(message, "documentSchemaName"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.documentSchemaName);
+ if (message.cloudAiDocument != null && Object.hasOwnProperty.call(message, "cloudAiDocument"))
+ $root.google.cloud.documentai.v1.Document.encode(message.cloudAiDocument, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
+ if (message.rawDocumentPath != null && Object.hasOwnProperty.call(message, "rawDocumentPath"))
+ writer.uint32(/* id 5, wireType 2 =*/42).string(message.rawDocumentPath);
+ if (message.inlineRawDocument != null && Object.hasOwnProperty.call(message, "inlineRawDocument"))
+ writer.uint32(/* id 6, wireType 2 =*/50).bytes(message.inlineRawDocument);
+ if (message.properties != null && message.properties.length)
+ for (var i = 0; i < message.properties.length; ++i)
+ $root.google.cloud.contentwarehouse.v1.Property.encode(message.properties[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
+ if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime"))
+ $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim();
+ if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime"))
+ $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim();
+ if (message.rawDocumentFileType != null && Object.hasOwnProperty.call(message, "rawDocumentFileType"))
+ writer.uint32(/* id 10, wireType 0 =*/80).int32(message.rawDocumentFileType);
+ if (message.referenceId != null && Object.hasOwnProperty.call(message, "referenceId"))
+ writer.uint32(/* id 11, wireType 2 =*/90).string(message.referenceId);
+ if (message.asyncEnabled != null && Object.hasOwnProperty.call(message, "asyncEnabled"))
+ writer.uint32(/* id 12, wireType 0 =*/96).bool(message.asyncEnabled);
+ if (message.creator != null && Object.hasOwnProperty.call(message, "creator"))
+ writer.uint32(/* id 13, wireType 2 =*/106).string(message.creator);
+ if (message.updater != null && Object.hasOwnProperty.call(message, "updater"))
+ writer.uint32(/* id 14, wireType 2 =*/114).string(message.updater);
+ if (message.plainText != null && Object.hasOwnProperty.call(message, "plainText"))
+ writer.uint32(/* id 15, wireType 2 =*/122).string(message.plainText);
+ if (message.structuredContentUri != null && Object.hasOwnProperty.call(message, "structuredContentUri"))
+ writer.uint32(/* id 16, wireType 2 =*/130).string(message.structuredContentUri);
+ if (message.displayUri != null && Object.hasOwnProperty.call(message, "displayUri"))
+ writer.uint32(/* id 17, wireType 2 =*/138).string(message.displayUri);
+ if (message.title != null && Object.hasOwnProperty.call(message, "title"))
+ writer.uint32(/* id 18, wireType 2 =*/146).string(message.title);
+ if (message.textExtractionDisabled != null && Object.hasOwnProperty.call(message, "textExtractionDisabled"))
+ writer.uint32(/* id 19, wireType 0 =*/152).bool(message.textExtractionDisabled);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified Document message, length delimited. Does not implicitly {@link google.cloud.contentwarehouse.v1.Document.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.contentwarehouse.v1.Document
+ * @static
+ * @param {google.cloud.contentwarehouse.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.contentwarehouse.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.contentwarehouse.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.contentwarehouse.v1.Document();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.name = reader.string();
+ break;
+ }
+ case 11: {
+ message.referenceId = reader.string();
+ break;
+ }
+ case 2: {
+ message.displayName = reader.string();
+ break;
+ }
+ case 18: {
+ message.title = reader.string();
+ break;
+ }
+ case 17: {
+ message.displayUri = reader.string();
+ break;
+ }
+ case 3: {
+ message.documentSchemaName = reader.string();
+ break;
+ }
+ case 15: {
+ message.plainText = reader.string();
+ break;
+ }
+ case 4: {
+ message.cloudAiDocument = $root.google.cloud.documentai.v1.Document.decode(reader, reader.uint32());
+ break;
+ }
+ case 16: {
+ message.structuredContentUri = reader.string();
+ break;
+ }
+ case 5: {
+ message.rawDocumentPath = reader.string();
+ break;
+ }
+ case 6: {
+ message.inlineRawDocument = reader.bytes();
+ break;
+ }
+ case 7: {
+ if (!(message.properties && message.properties.length))
+ message.properties = [];
+ message.properties.push($root.google.cloud.contentwarehouse.v1.Property.decode(reader, reader.uint32()));
+ break;
+ }
+ case 8: {
+ message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
+ break;
+ }
+ case 9: {
+ message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
+ break;
+ }
+ case 10: {
+ message.rawDocumentFileType = reader.int32();
+ break;
+ }
+ case 12: {
+ message.asyncEnabled = reader.bool();
+ break;
+ }
+ case 19: {
+ message.textExtractionDisabled = reader.bool();
+ break;
+ }
+ case 13: {
+ message.creator = reader.string();
+ break;
+ }
+ case 14: {
+ message.updater = reader.string();
+ 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.contentwarehouse.v1.Document
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.contentwarehouse.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.contentwarehouse.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.name != null && message.hasOwnProperty("name"))
+ if (!$util.isString(message.name))
+ return "name: string expected";
+ if (message.referenceId != null && message.hasOwnProperty("referenceId"))
+ if (!$util.isString(message.referenceId))
+ return "referenceId: string expected";
+ if (message.displayName != null && message.hasOwnProperty("displayName"))
+ if (!$util.isString(message.displayName))
+ return "displayName: string expected";
+ if (message.title != null && message.hasOwnProperty("title"))
+ if (!$util.isString(message.title))
+ return "title: string expected";
+ if (message.displayUri != null && message.hasOwnProperty("displayUri"))
+ if (!$util.isString(message.displayUri))
+ return "displayUri: string expected";
+ if (message.documentSchemaName != null && message.hasOwnProperty("documentSchemaName"))
+ if (!$util.isString(message.documentSchemaName))
+ return "documentSchemaName: string expected";
+ if (message.plainText != null && message.hasOwnProperty("plainText")) {
+ properties.structuredContent = 1;
+ if (!$util.isString(message.plainText))
+ return "plainText: string expected";
+ }
+ if (message.cloudAiDocument != null && message.hasOwnProperty("cloudAiDocument")) {
+ if (properties.structuredContent === 1)
+ return "structuredContent: multiple values";
+ properties.structuredContent = 1;
+ {
+ var error = $root.google.cloud.documentai.v1.Document.verify(message.cloudAiDocument);
+ if (error)
+ return "cloudAiDocument." + error;
+ }
+ }
+ if (message.structuredContentUri != null && message.hasOwnProperty("structuredContentUri"))
+ if (!$util.isString(message.structuredContentUri))
+ return "structuredContentUri: string expected";
+ if (message.rawDocumentPath != null && message.hasOwnProperty("rawDocumentPath")) {
+ properties.rawDocument = 1;
+ if (!$util.isString(message.rawDocumentPath))
+ return "rawDocumentPath: string expected";
+ }
+ if (message.inlineRawDocument != null && message.hasOwnProperty("inlineRawDocument")) {
+ if (properties.rawDocument === 1)
+ return "rawDocument: multiple values";
+ properties.rawDocument = 1;
+ if (!(message.inlineRawDocument && typeof message.inlineRawDocument.length === "number" || $util.isString(message.inlineRawDocument)))
+ return "inlineRawDocument: buffer expected";
+ }
+ 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.contentwarehouse.v1.Property.verify(message.properties[i]);
+ if (error)
+ return "properties." + error;
+ }
+ }
+ if (message.updateTime != null && message.hasOwnProperty("updateTime")) {
+ var error = $root.google.protobuf.Timestamp.verify(message.updateTime);
+ if (error)
+ return "updateTime." + error;
+ }
+ if (message.createTime != null && message.hasOwnProperty("createTime")) {
+ var error = $root.google.protobuf.Timestamp.verify(message.createTime);
+ if (error)
+ return "createTime." + error;
+ }
+ if (message.rawDocumentFileType != null && message.hasOwnProperty("rawDocumentFileType"))
+ switch (message.rawDocumentFileType) {
+ default:
+ return "rawDocumentFileType: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ case 3:
+ case 4:
+ case 5:
+ break;
+ }
+ if (message.asyncEnabled != null && message.hasOwnProperty("asyncEnabled"))
+ if (typeof message.asyncEnabled !== "boolean")
+ return "asyncEnabled: boolean expected";
+ if (message.textExtractionDisabled != null && message.hasOwnProperty("textExtractionDisabled"))
+ if (typeof message.textExtractionDisabled !== "boolean")
+ return "textExtractionDisabled: boolean expected";
+ if (message.creator != null && message.hasOwnProperty("creator"))
+ if (!$util.isString(message.creator))
+ return "creator: string expected";
+ if (message.updater != null && message.hasOwnProperty("updater"))
+ if (!$util.isString(message.updater))
+ return "updater: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a Document message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.contentwarehouse.v1.Document
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.contentwarehouse.v1.Document} Document
+ */
+ Document.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.contentwarehouse.v1.Document)
+ return object;
+ var message = new $root.google.cloud.contentwarehouse.v1.Document();
+ if (object.name != null)
+ message.name = String(object.name);
+ if (object.referenceId != null)
+ message.referenceId = String(object.referenceId);
+ if (object.displayName != null)
+ message.displayName = String(object.displayName);
+ if (object.title != null)
+ message.title = String(object.title);
+ if (object.displayUri != null)
+ message.displayUri = String(object.displayUri);
+ if (object.documentSchemaName != null)
+ message.documentSchemaName = String(object.documentSchemaName);
+ if (object.plainText != null)
+ message.plainText = String(object.plainText);
+ if (object.cloudAiDocument != null) {
+ if (typeof object.cloudAiDocument !== "object")
+ throw TypeError(".google.cloud.contentwarehouse.v1.Document.cloudAiDocument: object expected");
+ message.cloudAiDocument = $root.google.cloud.documentai.v1.Document.fromObject(object.cloudAiDocument);
+ }
+ if (object.structuredContentUri != null)
+ message.structuredContentUri = String(object.structuredContentUri);
+ if (object.rawDocumentPath != null)
+ message.rawDocumentPath = String(object.rawDocumentPath);
+ if (object.inlineRawDocument != null)
+ if (typeof object.inlineRawDocument === "string")
+ $util.base64.decode(object.inlineRawDocument, message.inlineRawDocument = $util.newBuffer($util.base64.length(object.inlineRawDocument)), 0);
+ else if (object.inlineRawDocument.length >= 0)
+ message.inlineRawDocument = object.inlineRawDocument;
+ if (object.properties) {
+ if (!Array.isArray(object.properties))
+ throw TypeError(".google.cloud.contentwarehouse.v1.Document.properties: array expected");
+ message.properties = [];
+ for (var i = 0; i < object.properties.length; ++i) {
+ if (typeof object.properties[i] !== "object")
+ throw TypeError(".google.cloud.contentwarehouse.v1.Document.properties: object expected");
+ message.properties[i] = $root.google.cloud.contentwarehouse.v1.Property.fromObject(object.properties[i]);
+ }
+ }
+ if (object.updateTime != null) {
+ if (typeof object.updateTime !== "object")
+ throw TypeError(".google.cloud.contentwarehouse.v1.Document.updateTime: object expected");
+ message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime);
+ }
+ if (object.createTime != null) {
+ if (typeof object.createTime !== "object")
+ throw TypeError(".google.cloud.contentwarehouse.v1.Document.createTime: object expected");
+ message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime);
+ }
+ switch (object.rawDocumentFileType) {
+ case "RAW_DOCUMENT_FILE_TYPE_UNSPECIFIED":
+ case 0:
+ message.rawDocumentFileType = 0;
+ break;
+ case "RAW_DOCUMENT_FILE_TYPE_PDF":
+ case 1:
+ message.rawDocumentFileType = 1;
+ break;
+ case "RAW_DOCUMENT_FILE_TYPE_DOCX":
+ case 2:
+ message.rawDocumentFileType = 2;
+ break;
+ case "RAW_DOCUMENT_FILE_TYPE_XLSX":
+ case 3:
+ message.rawDocumentFileType = 3;
+ break;
+ case "RAW_DOCUMENT_FILE_TYPE_PPTX":
+ case 4:
+ message.rawDocumentFileType = 4;
+ break;
+ case "RAW_DOCUMENT_FILE_TYPE_TEXT":
+ case 5:
+ message.rawDocumentFileType = 5;
+ break;
+ }
+ if (object.asyncEnabled != null)
+ message.asyncEnabled = Boolean(object.asyncEnabled);
+ if (object.textExtractionDisabled != null)
+ message.textExtractionDisabled = Boolean(object.textExtractionDisabled);
+ if (object.creator != null)
+ message.creator = String(object.creator);
+ if (object.updater != null)
+ message.updater = String(object.updater);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a Document message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.contentwarehouse.v1.Document
+ * @static
+ * @param {google.cloud.contentwarehouse.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.properties = [];
+ if (options.defaults) {
+ object.name = "";
+ object.displayName = "";
+ object.documentSchemaName = "";
+ object.updateTime = null;
+ object.createTime = null;
+ object.rawDocumentFileType = options.enums === String ? "RAW_DOCUMENT_FILE_TYPE_UNSPECIFIED" : 0;
+ object.referenceId = "";
+ object.asyncEnabled = false;
+ object.creator = "";
+ object.updater = "";
+ object.structuredContentUri = "";
+ object.displayUri = "";
+ object.title = "";
+ object.textExtractionDisabled = false;
+ }
+ if (message.name != null && message.hasOwnProperty("name"))
+ object.name = message.name;
+ if (message.displayName != null && message.hasOwnProperty("displayName"))
+ object.displayName = message.displayName;
+ if (message.documentSchemaName != null && message.hasOwnProperty("documentSchemaName"))
+ object.documentSchemaName = message.documentSchemaName;
+ if (message.cloudAiDocument != null && message.hasOwnProperty("cloudAiDocument")) {
+ object.cloudAiDocument = $root.google.cloud.documentai.v1.Document.toObject(message.cloudAiDocument, options);
+ if (options.oneofs)
+ object.structuredContent = "cloudAiDocument";
+ }
+ if (message.rawDocumentPath != null && message.hasOwnProperty("rawDocumentPath")) {
+ object.rawDocumentPath = message.rawDocumentPath;
+ if (options.oneofs)
+ object.rawDocument = "rawDocumentPath";
+ }
+ if (message.inlineRawDocument != null && message.hasOwnProperty("inlineRawDocument")) {
+ object.inlineRawDocument = options.bytes === String ? $util.base64.encode(message.inlineRawDocument, 0, message.inlineRawDocument.length) : options.bytes === Array ? Array.prototype.slice.call(message.inlineRawDocument) : message.inlineRawDocument;
+ if (options.oneofs)
+ object.rawDocument = "inlineRawDocument";
+ }
+ if (message.properties && message.properties.length) {
+ object.properties = [];
+ for (var j = 0; j < message.properties.length; ++j)
+ object.properties[j] = $root.google.cloud.contentwarehouse.v1.Property.toObject(message.properties[j], options);
+ }
+ if (message.updateTime != null && message.hasOwnProperty("updateTime"))
+ object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options);
+ if (message.createTime != null && message.hasOwnProperty("createTime"))
+ object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options);
+ if (message.rawDocumentFileType != null && message.hasOwnProperty("rawDocumentFileType"))
+ object.rawDocumentFileType = options.enums === String ? $root.google.cloud.contentwarehouse.v1.RawDocumentFileType[message.rawDocumentFileType] : message.rawDocumentFileType;
+ if (message.referenceId != null && message.hasOwnProperty("referenceId"))
+ object.referenceId = message.referenceId;
+ if (message.asyncEnabled != null && message.hasOwnProperty("asyncEnabled"))
+ object.asyncEnabled = message.asyncEnabled;
+ if (message.creator != null && message.hasOwnProperty("creator"))
+ object.creator = message.creator;
+ if (message.updater != null && message.hasOwnProperty("updater"))
+ object.updater = message.updater;
+ if (message.plainText != null && message.hasOwnProperty("plainText")) {
+ object.plainText = message.plainText;
+ if (options.oneofs)
+ object.structuredContent = "plainText";
+ }
+ if (message.structuredContentUri != null && message.hasOwnProperty("structuredContentUri"))
+ object.structuredContentUri = message.structuredContentUri;
+ if (message.displayUri != null && message.hasOwnProperty("displayUri"))
+ object.displayUri = message.displayUri;
+ if (message.title != null && message.hasOwnProperty("title"))
+ object.title = message.title;
+ if (message.textExtractionDisabled != null && message.hasOwnProperty("textExtractionDisabled"))
+ object.textExtractionDisabled = message.textExtractionDisabled;
+ return object;
+ };
+
+ /**
+ * Converts this Document to JSON.
+ * @function toJSON
+ * @memberof google.cloud.contentwarehouse.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.contentwarehouse.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.contentwarehouse.v1.Document";
+ };
+
+ return Document;
+ })();
+
+ v1.DocumentReference = (function() {
+
+ /**
+ * Properties of a DocumentReference.
+ * @memberof google.cloud.contentwarehouse.v1
+ * @interface IDocumentReference
+ * @property {string|null} [documentName] DocumentReference documentName
+ * @property {string|null} [displayName] DocumentReference displayName
+ * @property {string|null} [snippet] DocumentReference snippet
+ * @property {boolean|null} [documentIsFolder] DocumentReference documentIsFolder
+ * @property {google.protobuf.ITimestamp|null} [updateTime] DocumentReference updateTime
+ * @property {google.protobuf.ITimestamp|null} [createTime] DocumentReference createTime
+ * @property {google.protobuf.ITimestamp|null} [deleteTime] DocumentReference deleteTime
+ */
+
+ /**
+ * Constructs a new DocumentReference.
+ * @memberof google.cloud.contentwarehouse.v1
+ * @classdesc Represents a DocumentReference.
+ * @implements IDocumentReference
+ * @constructor
+ * @param {google.cloud.contentwarehouse.v1.IDocumentReference=} [properties] Properties to set
+ */
+ function DocumentReference(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]];
+ }
+
+ /**
+ * DocumentReference documentName.
+ * @member {string} documentName
+ * @memberof google.cloud.contentwarehouse.v1.DocumentReference
+ * @instance
+ */
+ DocumentReference.prototype.documentName = "";
+
+ /**
+ * DocumentReference displayName.
+ * @member {string} displayName
+ * @memberof google.cloud.contentwarehouse.v1.DocumentReference
+ * @instance
+ */
+ DocumentReference.prototype.displayName = "";
+
+ /**
+ * DocumentReference snippet.
+ * @member {string} snippet
+ * @memberof google.cloud.contentwarehouse.v1.DocumentReference
+ * @instance
+ */
+ DocumentReference.prototype.snippet = "";
+
+ /**
+ * DocumentReference documentIsFolder.
+ * @member {boolean} documentIsFolder
+ * @memberof google.cloud.contentwarehouse.v1.DocumentReference
+ * @instance
+ */
+ DocumentReference.prototype.documentIsFolder = false;
+
+ /**
+ * DocumentReference updateTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} updateTime
+ * @memberof google.cloud.contentwarehouse.v1.DocumentReference
+ * @instance
+ */
+ DocumentReference.prototype.updateTime = null;
+
+ /**
+ * DocumentReference createTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} createTime
+ * @memberof google.cloud.contentwarehouse.v1.DocumentReference
+ * @instance
+ */
+ DocumentReference.prototype.createTime = null;
+
+ /**
+ * DocumentReference deleteTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} deleteTime
+ * @memberof google.cloud.contentwarehouse.v1.DocumentReference
+ * @instance
+ */
+ DocumentReference.prototype.deleteTime = null;
+
+ /**
+ * Creates a new DocumentReference instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.contentwarehouse.v1.DocumentReference
+ * @static
+ * @param {google.cloud.contentwarehouse.v1.IDocumentReference=} [properties] Properties to set
+ * @returns {google.cloud.contentwarehouse.v1.DocumentReference} DocumentReference instance
+ */
+ DocumentReference.create = function create(properties) {
+ return new DocumentReference(properties);
+ };
+
+ /**
+ * Encodes the specified DocumentReference message. Does not implicitly {@link google.cloud.contentwarehouse.v1.DocumentReference.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.contentwarehouse.v1.DocumentReference
+ * @static
+ * @param {google.cloud.contentwarehouse.v1.IDocumentReference} message DocumentReference message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ DocumentReference.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.documentName != null && Object.hasOwnProperty.call(message, "documentName"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.documentName);
+ if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName);
+ if (message.snippet != null && Object.hasOwnProperty.call(message, "snippet"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.snippet);
+ if (message.documentIsFolder != null && Object.hasOwnProperty.call(message, "documentIsFolder"))
+ writer.uint32(/* id 4, wireType 0 =*/32).bool(message.documentIsFolder);
+ if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime"))
+ $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
+ if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime"))
+ $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
+ if (message.deleteTime != null && Object.hasOwnProperty.call(message, "deleteTime"))
+ $root.google.protobuf.Timestamp.encode(message.deleteTime, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified DocumentReference message, length delimited. Does not implicitly {@link google.cloud.contentwarehouse.v1.DocumentReference.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.contentwarehouse.v1.DocumentReference
+ * @static
+ * @param {google.cloud.contentwarehouse.v1.IDocumentReference} message DocumentReference message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ DocumentReference.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a DocumentReference message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.contentwarehouse.v1.DocumentReference
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.contentwarehouse.v1.DocumentReference} DocumentReference
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ DocumentReference.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.contentwarehouse.v1.DocumentReference();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.documentName = reader.string();
+ break;
+ }
+ case 2: {
+ message.displayName = reader.string();
+ break;
+ }
+ case 3: {
+ message.snippet = reader.string();
+ break;
+ }
+ case 4: {
+ message.documentIsFolder = reader.bool();
+ break;
+ }
+ case 5: {
+ message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
+ break;
+ }
+ case 6: {
+ message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
+ break;
+ }
+ case 7: {
+ message.deleteTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a DocumentReference message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.contentwarehouse.v1.DocumentReference
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.contentwarehouse.v1.DocumentReference} DocumentReference
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ DocumentReference.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a DocumentReference message.
+ * @function verify
+ * @memberof google.cloud.contentwarehouse.v1.DocumentReference
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ DocumentReference.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.documentName != null && message.hasOwnProperty("documentName"))
+ if (!$util.isString(message.documentName))
+ return "documentName: string expected";
+ if (message.displayName != null && message.hasOwnProperty("displayName"))
+ if (!$util.isString(message.displayName))
+ return "displayName: string expected";
+ if (message.snippet != null && message.hasOwnProperty("snippet"))
+ if (!$util.isString(message.snippet))
+ return "snippet: string expected";
+ if (message.documentIsFolder != null && message.hasOwnProperty("documentIsFolder"))
+ if (typeof message.documentIsFolder !== "boolean")
+ return "documentIsFolder: boolean expected";
+ if (message.updateTime != null && message.hasOwnProperty("updateTime")) {
+ var error = $root.google.protobuf.Timestamp.verify(message.updateTime);
+ if (error)
+ return "updateTime." + error;
+ }
+ if (message.createTime != null && message.hasOwnProperty("createTime")) {
+ var error = $root.google.protobuf.Timestamp.verify(message.createTime);
+ if (error)
+ return "createTime." + error;
+ }
+ if (message.deleteTime != null && message.hasOwnProperty("deleteTime")) {
+ var error = $root.google.protobuf.Timestamp.verify(message.deleteTime);
+ if (error)
+ return "deleteTime." + error;
+ }
+ return null;
+ };
+
+ /**
+ * Creates a DocumentReference message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.contentwarehouse.v1.DocumentReference
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.contentwarehouse.v1.DocumentReference} DocumentReference
+ */
+ DocumentReference.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.contentwarehouse.v1.DocumentReference)
+ return object;
+ var message = new $root.google.cloud.contentwarehouse.v1.DocumentReference();
+ if (object.documentName != null)
+ message.documentName = String(object.documentName);
+ if (object.displayName != null)
+ message.displayName = String(object.displayName);
+ if (object.snippet != null)
+ message.snippet = String(object.snippet);
+ if (object.documentIsFolder != null)
+ message.documentIsFolder = Boolean(object.documentIsFolder);
+ if (object.updateTime != null) {
+ if (typeof object.updateTime !== "object")
+ throw TypeError(".google.cloud.contentwarehouse.v1.DocumentReference.updateTime: object expected");
+ message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime);
+ }
+ if (object.createTime != null) {
+ if (typeof object.createTime !== "object")
+ throw TypeError(".google.cloud.contentwarehouse.v1.DocumentReference.createTime: object expected");
+ message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime);
+ }
+ if (object.deleteTime != null) {
+ if (typeof object.deleteTime !== "object")
+ throw TypeError(".google.cloud.contentwarehouse.v1.DocumentReference.deleteTime: object expected");
+ message.deleteTime = $root.google.protobuf.Timestamp.fromObject(object.deleteTime);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a DocumentReference message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.contentwarehouse.v1.DocumentReference
+ * @static
+ * @param {google.cloud.contentwarehouse.v1.DocumentReference} message DocumentReference
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ DocumentReference.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.documentName = "";
+ object.displayName = "";
+ object.snippet = "";
+ object.documentIsFolder = false;
+ object.updateTime = null;
+ object.createTime = null;
+ object.deleteTime = null;
+ }
+ if (message.documentName != null && message.hasOwnProperty("documentName"))
+ object.documentName = message.documentName;
+ if (message.displayName != null && message.hasOwnProperty("displayName"))
+ object.displayName = message.displayName;
+ if (message.snippet != null && message.hasOwnProperty("snippet"))
+ object.snippet = message.snippet;
+ if (message.documentIsFolder != null && message.hasOwnProperty("documentIsFolder"))
+ object.documentIsFolder = message.documentIsFolder;
+ if (message.updateTime != null && message.hasOwnProperty("updateTime"))
+ object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options);
+ if (message.createTime != null && message.hasOwnProperty("createTime"))
+ object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options);
+ if (message.deleteTime != null && message.hasOwnProperty("deleteTime"))
+ object.deleteTime = $root.google.protobuf.Timestamp.toObject(message.deleteTime, options);
+ return object;
+ };
+
+ /**
+ * Converts this DocumentReference to JSON.
+ * @function toJSON
+ * @memberof google.cloud.contentwarehouse.v1.DocumentReference
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ DocumentReference.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for DocumentReference
+ * @function getTypeUrl
+ * @memberof google.cloud.contentwarehouse.v1.DocumentReference
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ DocumentReference.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.contentwarehouse.v1.DocumentReference";
+ };
+
+ return DocumentReference;
+ })();
+
+ v1.Property = (function() {
+
+ /**
+ * Properties of a Property.
+ * @memberof google.cloud.contentwarehouse.v1
+ * @interface IProperty
+ * @property {string|null} [name] Property name
+ * @property {google.cloud.contentwarehouse.v1.IIntegerArray|null} [integerValues] Property integerValues
+ * @property {google.cloud.contentwarehouse.v1.IFloatArray|null} [floatValues] Property floatValues
+ * @property {google.cloud.contentwarehouse.v1.ITextArray|null} [textValues] Property textValues
+ * @property {google.cloud.contentwarehouse.v1.IEnumArray|null} [enumValues] Property enumValues
+ * @property {google.cloud.contentwarehouse.v1.IPropertyArray|null} [propertyValues] Property propertyValues
+ * @property {google.cloud.contentwarehouse.v1.IDateTimeArray|null} [dateTimeValues] Property dateTimeValues
+ * @property {google.cloud.contentwarehouse.v1.IMapProperty|null} [mapProperty] Property mapProperty
+ * @property {google.cloud.contentwarehouse.v1.ITimestampArray|null} [timestampValues] Property timestampValues
+ */
+
+ /**
+ * Constructs a new Property.
+ * @memberof google.cloud.contentwarehouse.v1
+ * @classdesc Represents a Property.
+ * @implements IProperty
+ * @constructor
+ * @param {google.cloud.contentwarehouse.v1.IProperty=} [properties] Properties to set
+ */
+ function Property(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]];
+ }
+
+ /**
+ * Property name.
+ * @member {string} name
+ * @memberof google.cloud.contentwarehouse.v1.Property
+ * @instance
+ */
+ Property.prototype.name = "";
+
+ /**
+ * Property integerValues.
+ * @member {google.cloud.contentwarehouse.v1.IIntegerArray|null|undefined} integerValues
+ * @memberof google.cloud.contentwarehouse.v1.Property
+ * @instance
+ */
+ Property.prototype.integerValues = null;
+
+ /**
+ * Property floatValues.
+ * @member {google.cloud.contentwarehouse.v1.IFloatArray|null|undefined} floatValues
+ * @memberof google.cloud.contentwarehouse.v1.Property
+ * @instance
+ */
+ Property.prototype.floatValues = null;
+
+ /**
+ * Property textValues.
+ * @member {google.cloud.contentwarehouse.v1.ITextArray|null|undefined} textValues
+ * @memberof google.cloud.contentwarehouse.v1.Property
+ * @instance
+ */
+ Property.prototype.textValues = null;
+
+ /**
+ * Property enumValues.
+ * @member {google.cloud.contentwarehouse.v1.IEnumArray|null|undefined} enumValues
+ * @memberof google.cloud.contentwarehouse.v1.Property
+ * @instance
+ */
+ Property.prototype.enumValues = null;
+
+ /**
+ * Property propertyValues.
+ * @member {google.cloud.contentwarehouse.v1.IPropertyArray|null|undefined} propertyValues
+ * @memberof google.cloud.contentwarehouse.v1.Property
+ * @instance
+ */
+ Property.prototype.propertyValues = null;
+
+ /**
+ * Property dateTimeValues.
+ * @member {google.cloud.contentwarehouse.v1.IDateTimeArray|null|undefined} dateTimeValues
+ * @memberof google.cloud.contentwarehouse.v1.Property
+ * @instance
+ */
+ Property.prototype.dateTimeValues = null;
+
+ /**
+ * Property mapProperty.
+ * @member {google.cloud.contentwarehouse.v1.IMapProperty|null|undefined} mapProperty
+ * @memberof google.cloud.contentwarehouse.v1.Property
+ * @instance
+ */
+ Property.prototype.mapProperty = null;
+
+ /**
+ * Property timestampValues.
+ * @member {google.cloud.contentwarehouse.v1.ITimestampArray|null|undefined} timestampValues
+ * @memberof google.cloud.contentwarehouse.v1.Property
+ * @instance
+ */
+ Property.prototype.timestampValues = null;
+
+ // OneOf field names bound to virtual getters and setters
+ var $oneOfFields;
+
+ /**
+ * Property values.
+ * @member {"integerValues"|"floatValues"|"textValues"|"enumValues"|"propertyValues"|"dateTimeValues"|"mapProperty"|"timestampValues"|undefined} values
+ * @memberof google.cloud.contentwarehouse.v1.Property
+ * @instance
+ */
+ Object.defineProperty(Property.prototype, "values", {
+ get: $util.oneOfGetter($oneOfFields = ["integerValues", "floatValues", "textValues", "enumValues", "propertyValues", "dateTimeValues", "mapProperty", "timestampValues"]),
+ set: $util.oneOfSetter($oneOfFields)
+ });
+
+ /**
+ * Creates a new Property instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.contentwarehouse.v1.Property
+ * @static
+ * @param {google.cloud.contentwarehouse.v1.IProperty=} [properties] Properties to set
+ * @returns {google.cloud.contentwarehouse.v1.Property} Property instance
+ */
+ Property.create = function create(properties) {
+ return new Property(properties);
+ };
+
+ /**
+ * Encodes the specified Property message. Does not implicitly {@link google.cloud.contentwarehouse.v1.Property.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.contentwarehouse.v1.Property
+ * @static
+ * @param {google.cloud.contentwarehouse.v1.IProperty} message Property message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Property.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.name != null && Object.hasOwnProperty.call(message, "name"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
+ if (message.integerValues != null && Object.hasOwnProperty.call(message, "integerValues"))
+ $root.google.cloud.contentwarehouse.v1.IntegerArray.encode(message.integerValues, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
+ if (message.floatValues != null && Object.hasOwnProperty.call(message, "floatValues"))
+ $root.google.cloud.contentwarehouse.v1.FloatArray.encode(message.floatValues, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
+ if (message.textValues != null && Object.hasOwnProperty.call(message, "textValues"))
+ $root.google.cloud.contentwarehouse.v1.TextArray.encode(message.textValues, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
+ if (message.enumValues != null && Object.hasOwnProperty.call(message, "enumValues"))
+ $root.google.cloud.contentwarehouse.v1.EnumArray.encode(message.enumValues, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
+ if (message.propertyValues != null && Object.hasOwnProperty.call(message, "propertyValues"))
+ $root.google.cloud.contentwarehouse.v1.PropertyArray.encode(message.propertyValues, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
+ if (message.dateTimeValues != null && Object.hasOwnProperty.call(message, "dateTimeValues"))
+ $root.google.cloud.contentwarehouse.v1.DateTimeArray.encode(message.dateTimeValues, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
+ if (message.mapProperty != null && Object.hasOwnProperty.call(message, "mapProperty"))
+ $root.google.cloud.contentwarehouse.v1.MapProperty.encode(message.mapProperty, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim();
+ if (message.timestampValues != null && Object.hasOwnProperty.call(message, "timestampValues"))
+ $root.google.cloud.contentwarehouse.v1.TimestampArray.encode(message.timestampValues, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified Property message, length delimited. Does not implicitly {@link google.cloud.contentwarehouse.v1.Property.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.contentwarehouse.v1.Property
+ * @static
+ * @param {google.cloud.contentwarehouse.v1.IProperty} message Property message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Property.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a Property message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.contentwarehouse.v1.Property
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.contentwarehouse.v1.Property} Property
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Property.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.contentwarehouse.v1.Property();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.name = reader.string();
+ break;
+ }
+ case 2: {
+ message.integerValues = $root.google.cloud.contentwarehouse.v1.IntegerArray.decode(reader, reader.uint32());
+ break;
+ }
+ case 3: {
+ message.floatValues = $root.google.cloud.contentwarehouse.v1.FloatArray.decode(reader, reader.uint32());
+ break;
+ }
+ case 4: {
+ message.textValues = $root.google.cloud.contentwarehouse.v1.TextArray.decode(reader, reader.uint32());
+ break;
+ }
+ case 5: {
+ message.enumValues = $root.google.cloud.contentwarehouse.v1.EnumArray.decode(reader, reader.uint32());
+ break;
+ }
+ case 6: {
+ message.propertyValues = $root.google.cloud.contentwarehouse.v1.PropertyArray.decode(reader, reader.uint32());
+ break;
+ }
+ case 7: {
+ message.dateTimeValues = $root.google.cloud.contentwarehouse.v1.DateTimeArray.decode(reader, reader.uint32());
+ break;
+ }
+ case 8: {
+ message.mapProperty = $root.google.cloud.contentwarehouse.v1.MapProperty.decode(reader, reader.uint32());
+ break;
+ }
+ case 9: {
+ message.timestampValues = $root.google.cloud.contentwarehouse.v1.TimestampArray.decode(reader, reader.uint32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a Property message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.contentwarehouse.v1.Property
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.contentwarehouse.v1.Property} Property
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Property.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a Property message.
+ * @function verify
+ * @memberof google.cloud.contentwarehouse.v1.Property
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ Property.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ var properties = {};
+ if (message.name != null && message.hasOwnProperty("name"))
+ if (!$util.isString(message.name))
+ return "name: string expected";
+ if (message.integerValues != null && message.hasOwnProperty("integerValues")) {
+ properties.values = 1;
+ {
+ var error = $root.google.cloud.contentwarehouse.v1.IntegerArray.verify(message.integerValues);
+ if (error)
+ return "integerValues." + error;
+ }
+ }
+ if (message.floatValues != null && message.hasOwnProperty("floatValues")) {
+ if (properties.values === 1)
+ return "values: multiple values";
+ properties.values = 1;
+ {
+ var error = $root.google.cloud.contentwarehouse.v1.FloatArray.verify(message.floatValues);
+ if (error)
+ return "floatValues." + error;
+ }
+ }
+ if (message.textValues != null && message.hasOwnProperty("textValues")) {
+ if (properties.values === 1)
+ return "values: multiple values";
+ properties.values = 1;
+ {
+ var error = $root.google.cloud.contentwarehouse.v1.TextArray.verify(message.textValues);
+ if (error)
+ return "textValues." + error;
+ }
+ }
+ if (message.enumValues != null && message.hasOwnProperty("enumValues")) {
+ if (properties.values === 1)
+ return "values: multiple values";
+ properties.values = 1;
+ {
+ var error = $root.google.cloud.contentwarehouse.v1.EnumArray.verify(message.enumValues);
+ if (error)
+ return "enumValues." + error;
+ }
+ }
+ if (message.propertyValues != null && message.hasOwnProperty("propertyValues")) {
+ if (properties.values === 1)
+ return "values: multiple values";
+ properties.values = 1;
+ {
+ var error = $root.google.cloud.contentwarehouse.v1.PropertyArray.verify(message.propertyValues);
+ if (error)
+ return "propertyValues." + error;
+ }
+ }
+ if (message.dateTimeValues != null && message.hasOwnProperty("dateTimeValues")) {
+ if (properties.values === 1)
+ return "values: multiple values";
+ properties.values = 1;
+ {
+ var error = $root.google.cloud.contentwarehouse.v1.DateTimeArray.verify(message.dateTimeValues);
+ if (error)
+ return "dateTimeValues." + error;
+ }
+ }
+ if (message.mapProperty != null && message.hasOwnProperty("mapProperty")) {
+ if (properties.values === 1)
+ return "values: multiple values";
+ properties.values = 1;
+ {
+ var error = $root.google.cloud.contentwarehouse.v1.MapProperty.verify(message.mapProperty);
+ if (error)
+ return "mapProperty." + error;
+ }
+ }
+ if (message.timestampValues != null && message.hasOwnProperty("timestampValues")) {
+ if (properties.values === 1)
+ return "values: multiple values";
+ properties.values = 1;
+ {
+ var error = $root.google.cloud.contentwarehouse.v1.TimestampArray.verify(message.timestampValues);
+ if (error)
+ return "timestampValues." + error;
+ }
+ }
+ return null;
+ };
+
+ /**
+ * Creates a Property message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.contentwarehouse.v1.Property
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.contentwarehouse.v1.Property} Property
+ */
+ Property.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.contentwarehouse.v1.Property)
+ return object;
+ var message = new $root.google.cloud.contentwarehouse.v1.Property();
+ if (object.name != null)
+ message.name = String(object.name);
+ if (object.integerValues != null) {
+ if (typeof object.integerValues !== "object")
+ throw TypeError(".google.cloud.contentwarehouse.v1.Property.integerValues: object expected");
+ message.integerValues = $root.google.cloud.contentwarehouse.v1.IntegerArray.fromObject(object.integerValues);
+ }
+ if (object.floatValues != null) {
+ if (typeof object.floatValues !== "object")
+ throw TypeError(".google.cloud.contentwarehouse.v1.Property.floatValues: object expected");
+ message.floatValues = $root.google.cloud.contentwarehouse.v1.FloatArray.fromObject(object.floatValues);
+ }
+ if (object.textValues != null) {
+ if (typeof object.textValues !== "object")
+ throw TypeError(".google.cloud.contentwarehouse.v1.Property.textValues: object expected");
+ message.textValues = $root.google.cloud.contentwarehouse.v1.TextArray.fromObject(object.textValues);
+ }
+ if (object.enumValues != null) {
+ if (typeof object.enumValues !== "object")
+ throw TypeError(".google.cloud.contentwarehouse.v1.Property.enumValues: object expected");
+ message.enumValues = $root.google.cloud.contentwarehouse.v1.EnumArray.fromObject(object.enumValues);
+ }
+ if (object.propertyValues != null) {
+ if (typeof object.propertyValues !== "object")
+ throw TypeError(".google.cloud.contentwarehouse.v1.Property.propertyValues: object expected");
+ message.propertyValues = $root.google.cloud.contentwarehouse.v1.PropertyArray.fromObject(object.propertyValues);
+ }
+ if (object.dateTimeValues != null) {
+ if (typeof object.dateTimeValues !== "object")
+ throw TypeError(".google.cloud.contentwarehouse.v1.Property.dateTimeValues: object expected");
+ message.dateTimeValues = $root.google.cloud.contentwarehouse.v1.DateTimeArray.fromObject(object.dateTimeValues);
+ }
+ if (object.mapProperty != null) {
+ if (typeof object.mapProperty !== "object")
+ throw TypeError(".google.cloud.contentwarehouse.v1.Property.mapProperty: object expected");
+ message.mapProperty = $root.google.cloud.contentwarehouse.v1.MapProperty.fromObject(object.mapProperty);
+ }
+ if (object.timestampValues != null) {
+ if (typeof object.timestampValues !== "object")
+ throw TypeError(".google.cloud.contentwarehouse.v1.Property.timestampValues: object expected");
+ message.timestampValues = $root.google.cloud.contentwarehouse.v1.TimestampArray.fromObject(object.timestampValues);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a Property message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.contentwarehouse.v1.Property
+ * @static
+ * @param {google.cloud.contentwarehouse.v1.Property} message Property
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ Property.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults)
+ object.name = "";
+ if (message.name != null && message.hasOwnProperty("name"))
+ object.name = message.name;
+ if (message.integerValues != null && message.hasOwnProperty("integerValues")) {
+ object.integerValues = $root.google.cloud.contentwarehouse.v1.IntegerArray.toObject(message.integerValues, options);
+ if (options.oneofs)
+ object.values = "integerValues";
+ }
+ if (message.floatValues != null && message.hasOwnProperty("floatValues")) {
+ object.floatValues = $root.google.cloud.contentwarehouse.v1.FloatArray.toObject(message.floatValues, options);
+ if (options.oneofs)
+ object.values = "floatValues";
+ }
+ if (message.textValues != null && message.hasOwnProperty("textValues")) {
+ object.textValues = $root.google.cloud.contentwarehouse.v1.TextArray.toObject(message.textValues, options);
+ if (options.oneofs)
+ object.values = "textValues";
+ }
+ if (message.enumValues != null && message.hasOwnProperty("enumValues")) {
+ object.enumValues = $root.google.cloud.contentwarehouse.v1.EnumArray.toObject(message.enumValues, options);
+ if (options.oneofs)
+ object.values = "enumValues";
+ }
+ if (message.propertyValues != null && message.hasOwnProperty("propertyValues")) {
+ object.propertyValues = $root.google.cloud.contentwarehouse.v1.PropertyArray.toObject(message.propertyValues, options);
+ if (options.oneofs)
+ object.values = "propertyValues";
+ }
+ if (message.dateTimeValues != null && message.hasOwnProperty("dateTimeValues")) {
+ object.dateTimeValues = $root.google.cloud.contentwarehouse.v1.DateTimeArray.toObject(message.dateTimeValues, options);
+ if (options.oneofs)
+ object.values = "dateTimeValues";
+ }
+ if (message.mapProperty != null && message.hasOwnProperty("mapProperty")) {
+ object.mapProperty = $root.google.cloud.contentwarehouse.v1.MapProperty.toObject(message.mapProperty, options);
+ if (options.oneofs)
+ object.values = "mapProperty";
+ }
+ if (message.timestampValues != null && message.hasOwnProperty("timestampValues")) {
+ object.timestampValues = $root.google.cloud.contentwarehouse.v1.TimestampArray.toObject(message.timestampValues, options);
+ if (options.oneofs)
+ object.values = "timestampValues";
+ }
+ return object;
+ };
+
+ /**
+ * Converts this Property to JSON.
+ * @function toJSON
+ * @memberof google.cloud.contentwarehouse.v1.Property
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ Property.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for Property
+ * @function getTypeUrl
+ * @memberof google.cloud.contentwarehouse.v1.Property
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ Property.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.contentwarehouse.v1.Property";
+ };
+
+ return Property;
+ })();
+
+ v1.IntegerArray = (function() {
+
+ /**
+ * Properties of an IntegerArray.
+ * @memberof google.cloud.contentwarehouse.v1
+ * @interface IIntegerArray
+ * @property {Array.|null} [values] IntegerArray values
+ */
+
+ /**
+ * Constructs a new IntegerArray.
+ * @memberof google.cloud.contentwarehouse.v1
+ * @classdesc Represents an IntegerArray.
+ * @implements IIntegerArray
+ * @constructor
+ * @param {google.cloud.contentwarehouse.v1.IIntegerArray=} [properties] Properties to set
+ */
+ function IntegerArray(properties) {
+ this.values = [];
+ 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]];
+ }
+
+ /**
+ * IntegerArray values.
+ * @member {Array.} values
+ * @memberof google.cloud.contentwarehouse.v1.IntegerArray
+ * @instance
+ */
+ IntegerArray.prototype.values = $util.emptyArray;
+
+ /**
+ * Creates a new IntegerArray instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.contentwarehouse.v1.IntegerArray
+ * @static
+ * @param {google.cloud.contentwarehouse.v1.IIntegerArray=} [properties] Properties to set
+ * @returns {google.cloud.contentwarehouse.v1.IntegerArray} IntegerArray instance
+ */
+ IntegerArray.create = function create(properties) {
+ return new IntegerArray(properties);
+ };
+
+ /**
+ * Encodes the specified IntegerArray message. Does not implicitly {@link google.cloud.contentwarehouse.v1.IntegerArray.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.contentwarehouse.v1.IntegerArray
+ * @static
+ * @param {google.cloud.contentwarehouse.v1.IIntegerArray} message IntegerArray message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ IntegerArray.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.values != null && message.values.length) {
+ writer.uint32(/* id 1, wireType 2 =*/10).fork();
+ for (var i = 0; i < message.values.length; ++i)
+ writer.int32(message.values[i]);
+ writer.ldelim();
+ }
+ return writer;
+ };
+
+ /**
+ * Encodes the specified IntegerArray message, length delimited. Does not implicitly {@link google.cloud.contentwarehouse.v1.IntegerArray.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.contentwarehouse.v1.IntegerArray
+ * @static
+ * @param {google.cloud.contentwarehouse.v1.IIntegerArray} message IntegerArray message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ IntegerArray.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes an IntegerArray message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.contentwarehouse.v1.IntegerArray
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.contentwarehouse.v1.IntegerArray} IntegerArray
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ IntegerArray.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.contentwarehouse.v1.IntegerArray();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ if (!(message.values && message.values.length))
+ message.values = [];
+ if ((tag & 7) === 2) {
+ var end2 = reader.uint32() + reader.pos;
+ while (reader.pos < end2)
+ message.values.push(reader.int32());
+ } else
+ message.values.push(reader.int32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an IntegerArray message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.contentwarehouse.v1.IntegerArray
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.contentwarehouse.v1.IntegerArray} IntegerArray
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ IntegerArray.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an IntegerArray message.
+ * @function verify
+ * @memberof google.cloud.contentwarehouse.v1.IntegerArray
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ IntegerArray.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.values != null && message.hasOwnProperty("values")) {
+ if (!Array.isArray(message.values))
+ return "values: array expected";
+ for (var i = 0; i < message.values.length; ++i)
+ if (!$util.isInteger(message.values[i]))
+ return "values: integer[] expected";
+ }
+ return null;
+ };
+
+ /**
+ * Creates an IntegerArray message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.contentwarehouse.v1.IntegerArray
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.contentwarehouse.v1.IntegerArray} IntegerArray
+ */
+ IntegerArray.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.contentwarehouse.v1.IntegerArray)
+ return object;
+ var message = new $root.google.cloud.contentwarehouse.v1.IntegerArray();
+ if (object.values) {
+ if (!Array.isArray(object.values))
+ throw TypeError(".google.cloud.contentwarehouse.v1.IntegerArray.values: array expected");
+ message.values = [];
+ for (var i = 0; i < object.values.length; ++i)
+ message.values[i] = object.values[i] | 0;
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an IntegerArray message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.contentwarehouse.v1.IntegerArray
+ * @static
+ * @param {google.cloud.contentwarehouse.v1.IntegerArray} message IntegerArray
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ IntegerArray.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.values = [];
+ if (message.values && message.values.length) {
+ object.values = [];
+ for (var j = 0; j < message.values.length; ++j)
+ object.values[j] = message.values[j];
+ }
+ return object;
+ };
+
+ /**
+ * Converts this IntegerArray to JSON.
+ * @function toJSON
+ * @memberof google.cloud.contentwarehouse.v1.IntegerArray
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ IntegerArray.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for IntegerArray
+ * @function getTypeUrl
+ * @memberof google.cloud.contentwarehouse.v1.IntegerArray
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ IntegerArray.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.contentwarehouse.v1.IntegerArray";
+ };
+
+ return IntegerArray;
+ })();
+
+ v1.FloatArray = (function() {
+
+ /**
+ * Properties of a FloatArray.
+ * @memberof google.cloud.contentwarehouse.v1
+ * @interface IFloatArray
+ * @property {Array.|null} [values] FloatArray values
+ */
+
+ /**
+ * Constructs a new FloatArray.
+ * @memberof google.cloud.contentwarehouse.v1
+ * @classdesc Represents a FloatArray.
+ * @implements IFloatArray
+ * @constructor
+ * @param {google.cloud.contentwarehouse.v1.IFloatArray=} [properties] Properties to set
+ */
+ function FloatArray(properties) {
+ this.values = [];
+ 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]];
+ }
+
+ /**
+ * FloatArray values.
+ * @member {Array.} values
+ * @memberof google.cloud.contentwarehouse.v1.FloatArray
+ * @instance
+ */
+ FloatArray.prototype.values = $util.emptyArray;
+
+ /**
+ * Creates a new FloatArray instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.contentwarehouse.v1.FloatArray
+ * @static
+ * @param {google.cloud.contentwarehouse.v1.IFloatArray=} [properties] Properties to set
+ * @returns {google.cloud.contentwarehouse.v1.FloatArray} FloatArray instance
+ */
+ FloatArray.create = function create(properties) {
+ return new FloatArray(properties);
+ };
+
+ /**
+ * Encodes the specified FloatArray message. Does not implicitly {@link google.cloud.contentwarehouse.v1.FloatArray.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.contentwarehouse.v1.FloatArray
+ * @static
+ * @param {google.cloud.contentwarehouse.v1.IFloatArray} message FloatArray message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ FloatArray.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.values != null && message.values.length) {
+ writer.uint32(/* id 1, wireType 2 =*/10).fork();
+ for (var i = 0; i < message.values.length; ++i)
+ writer.float(message.values[i]);
+ writer.ldelim();
+ }
+ return writer;
+ };
+
+ /**
+ * Encodes the specified FloatArray message, length delimited. Does not implicitly {@link google.cloud.contentwarehouse.v1.FloatArray.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.contentwarehouse.v1.FloatArray
+ * @static
+ * @param {google.cloud.contentwarehouse.v1.IFloatArray} message FloatArray message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ FloatArray.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a FloatArray message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.contentwarehouse.v1.FloatArray
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.contentwarehouse.v1.FloatArray} FloatArray
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ FloatArray.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.contentwarehouse.v1.FloatArray();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ if (!(message.values && message.values.length))
+ message.values = [];
+ if ((tag & 7) === 2) {
+ var end2 = reader.uint32() + reader.pos;
+ while (reader.pos < end2)
+ message.values.push(reader.float());
+ } else
+ message.values.push(reader.float());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a FloatArray message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.contentwarehouse.v1.FloatArray
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.contentwarehouse.v1.FloatArray} FloatArray
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ FloatArray.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a FloatArray message.
+ * @function verify
+ * @memberof google.cloud.contentwarehouse.v1.FloatArray
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ FloatArray.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.values != null && message.hasOwnProperty("values")) {
+ if (!Array.isArray(message.values))
+ return "values: array expected";
+ for (var i = 0; i < message.values.length; ++i)
+ if (typeof message.values[i] !== "number")
+ return "values: number[] expected";
+ }
+ return null;
+ };
+
+ /**
+ * Creates a FloatArray message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.contentwarehouse.v1.FloatArray
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.contentwarehouse.v1.FloatArray} FloatArray
+ */
+ FloatArray.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.contentwarehouse.v1.FloatArray)
+ return object;
+ var message = new $root.google.cloud.contentwarehouse.v1.FloatArray();
+ if (object.values) {
+ if (!Array.isArray(object.values))
+ throw TypeError(".google.cloud.contentwarehouse.v1.FloatArray.values: array expected");
+ message.values = [];
+ for (var i = 0; i < object.values.length; ++i)
+ message.values[i] = Number(object.values[i]);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a FloatArray message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.contentwarehouse.v1.FloatArray
+ * @static
+ * @param {google.cloud.contentwarehouse.v1.FloatArray} message FloatArray
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ FloatArray.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.values = [];
+ if (message.values && message.values.length) {
+ object.values = [];
+ for (var j = 0; j < message.values.length; ++j)
+ object.values[j] = options.json && !isFinite(message.values[j]) ? String(message.values[j]) : message.values[j];
+ }
+ return object;
+ };
+
+ /**
+ * Converts this FloatArray to JSON.
+ * @function toJSON
+ * @memberof google.cloud.contentwarehouse.v1.FloatArray
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ FloatArray.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for FloatArray
+ * @function getTypeUrl
+ * @memberof google.cloud.contentwarehouse.v1.FloatArray
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ FloatArray.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.contentwarehouse.v1.FloatArray";
+ };
+
+ return FloatArray;
+ })();
+
+ v1.TextArray = (function() {
+
+ /**
+ * Properties of a TextArray.
+ * @memberof google.cloud.contentwarehouse.v1
+ * @interface ITextArray
+ * @property {Array.|null} [values] TextArray values
+ */
+
+ /**
+ * Constructs a new TextArray.
+ * @memberof google.cloud.contentwarehouse.v1
+ * @classdesc Represents a TextArray.
+ * @implements ITextArray
+ * @constructor
+ * @param {google.cloud.contentwarehouse.v1.ITextArray=} [properties] Properties to set
+ */
+ function TextArray(properties) {
+ this.values = [];
+ 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]];
+ }
+
+ /**
+ * TextArray values.
+ * @member {Array.} values
+ * @memberof google.cloud.contentwarehouse.v1.TextArray
+ * @instance
+ */
+ TextArray.prototype.values = $util.emptyArray;
+
+ /**
+ * Creates a new TextArray instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.contentwarehouse.v1.TextArray
+ * @static
+ * @param {google.cloud.contentwarehouse.v1.ITextArray=} [properties] Properties to set
+ * @returns {google.cloud.contentwarehouse.v1.TextArray} TextArray instance
+ */
+ TextArray.create = function create(properties) {
+ return new TextArray(properties);
+ };
+
+ /**
+ * Encodes the specified TextArray message. Does not implicitly {@link google.cloud.contentwarehouse.v1.TextArray.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.contentwarehouse.v1.TextArray
+ * @static
+ * @param {google.cloud.contentwarehouse.v1.ITextArray} message TextArray message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ TextArray.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.values != null && message.values.length)
+ for (var i = 0; i < message.values.length; ++i)
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.values[i]);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified TextArray message, length delimited. Does not implicitly {@link google.cloud.contentwarehouse.v1.TextArray.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.contentwarehouse.v1.TextArray
+ * @static
+ * @param {google.cloud.contentwarehouse.v1.ITextArray} message TextArray message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ TextArray.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a TextArray message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.contentwarehouse.v1.TextArray
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.contentwarehouse.v1.TextArray} TextArray
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ TextArray.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.contentwarehouse.v1.TextArray();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ if (!(message.values && message.values.length))
+ message.values = [];
+ message.values.push(reader.string());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a TextArray message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.contentwarehouse.v1.TextArray
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.contentwarehouse.v1.TextArray} TextArray
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ TextArray.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a TextArray message.
+ * @function verify
+ * @memberof google.cloud.contentwarehouse.v1.TextArray
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ TextArray.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.values != null && message.hasOwnProperty("values")) {
+ if (!Array.isArray(message.values))
+ return "values: array expected";
+ for (var i = 0; i < message.values.length; ++i)
+ if (!$util.isString(message.values[i]))
+ return "values: string[] expected";
+ }
+ return null;
+ };
+
+ /**
+ * Creates a TextArray message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.contentwarehouse.v1.TextArray
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.contentwarehouse.v1.TextArray} TextArray
+ */
+ TextArray.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.contentwarehouse.v1.TextArray)
+ return object;
+ var message = new $root.google.cloud.contentwarehouse.v1.TextArray();
+ if (object.values) {
+ if (!Array.isArray(object.values))
+ throw TypeError(".google.cloud.contentwarehouse.v1.TextArray.values: array expected");
+ message.values = [];
+ for (var i = 0; i < object.values.length; ++i)
+ message.values[i] = String(object.values[i]);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a TextArray message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.contentwarehouse.v1.TextArray
+ * @static
+ * @param {google.cloud.contentwarehouse.v1.TextArray} message TextArray
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ TextArray.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.values = [];
+ if (message.values && message.values.length) {
+ object.values = [];
+ for (var j = 0; j < message.values.length; ++j)
+ object.values[j] = message.values[j];
+ }
+ return object;
+ };
+
+ /**
+ * Converts this TextArray to JSON.
+ * @function toJSON
+ * @memberof google.cloud.contentwarehouse.v1.TextArray
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ TextArray.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for TextArray
+ * @function getTypeUrl
+ * @memberof google.cloud.contentwarehouse.v1.TextArray
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ TextArray.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.contentwarehouse.v1.TextArray";
+ };
+
+ return TextArray;
+ })();
+
+ v1.EnumArray = (function() {
+
+ /**
+ * Properties of an EnumArray.
+ * @memberof google.cloud.contentwarehouse.v1
+ * @interface IEnumArray
+ * @property {Array.|null} [values] EnumArray values
+ */
+
+ /**
+ * Constructs a new EnumArray.
+ * @memberof google.cloud.contentwarehouse.v1
+ * @classdesc Represents an EnumArray.
+ * @implements IEnumArray
+ * @constructor
+ * @param {google.cloud.contentwarehouse.v1.IEnumArray=} [properties] Properties to set
+ */
+ function EnumArray(properties) {
+ this.values = [];
+ 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]];
+ }
+
+ /**
+ * EnumArray values.
+ * @member {Array.} values
+ * @memberof google.cloud.contentwarehouse.v1.EnumArray
+ * @instance
+ */
+ EnumArray.prototype.values = $util.emptyArray;
+
+ /**
+ * Creates a new EnumArray instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.contentwarehouse.v1.EnumArray
+ * @static
+ * @param {google.cloud.contentwarehouse.v1.IEnumArray=} [properties] Properties to set
+ * @returns {google.cloud.contentwarehouse.v1.EnumArray} EnumArray instance
+ */
+ EnumArray.create = function create(properties) {
+ return new EnumArray(properties);
+ };
+
+ /**
+ * Encodes the specified EnumArray message. Does not implicitly {@link google.cloud.contentwarehouse.v1.EnumArray.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.contentwarehouse.v1.EnumArray
+ * @static
+ * @param {google.cloud.contentwarehouse.v1.IEnumArray} message EnumArray message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ EnumArray.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.values != null && message.values.length)
+ for (var i = 0; i < message.values.length; ++i)
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.values[i]);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified EnumArray message, length delimited. Does not implicitly {@link google.cloud.contentwarehouse.v1.EnumArray.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.contentwarehouse.v1.EnumArray
+ * @static
+ * @param {google.cloud.contentwarehouse.v1.IEnumArray} message EnumArray message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ EnumArray.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes an EnumArray message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.contentwarehouse.v1.EnumArray
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.contentwarehouse.v1.EnumArray} EnumArray
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ EnumArray.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.contentwarehouse.v1.EnumArray();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ if (!(message.values && message.values.length))
+ message.values = [];
+ message.values.push(reader.string());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an EnumArray message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.contentwarehouse.v1.EnumArray
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.contentwarehouse.v1.EnumArray} EnumArray
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ EnumArray.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an EnumArray message.
+ * @function verify
+ * @memberof google.cloud.contentwarehouse.v1.EnumArray
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ EnumArray.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.values != null && message.hasOwnProperty("values")) {
+ if (!Array.isArray(message.values))
+ return "values: array expected";
+ for (var i = 0; i < message.values.length; ++i)
+ if (!$util.isString(message.values[i]))
+ return "values: string[] expected";
+ }
+ return null;
+ };
+
+ /**
+ * Creates an EnumArray message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.contentwarehouse.v1.EnumArray
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.contentwarehouse.v1.EnumArray} EnumArray
+ */
+ EnumArray.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.contentwarehouse.v1.EnumArray)
+ return object;
+ var message = new $root.google.cloud.contentwarehouse.v1.EnumArray();
+ if (object.values) {
+ if (!Array.isArray(object.values))
+ throw TypeError(".google.cloud.contentwarehouse.v1.EnumArray.values: array expected");
+ message.values = [];
+ for (var i = 0; i < object.values.length; ++i)
+ message.values[i] = String(object.values[i]);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an EnumArray message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.contentwarehouse.v1.EnumArray
+ * @static
+ * @param {google.cloud.contentwarehouse.v1.EnumArray} message EnumArray
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ EnumArray.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.values = [];
+ if (message.values && message.values.length) {
+ object.values = [];
+ for (var j = 0; j < message.values.length; ++j)
+ object.values[j] = message.values[j];
+ }
+ return object;
+ };
+
+ /**
+ * Converts this EnumArray to JSON.
+ * @function toJSON
+ * @memberof google.cloud.contentwarehouse.v1.EnumArray
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ EnumArray.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for EnumArray
+ * @function getTypeUrl
+ * @memberof google.cloud.contentwarehouse.v1.EnumArray
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ EnumArray.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.contentwarehouse.v1.EnumArray";
+ };
+
+ return EnumArray;
+ })();
+
+ v1.DateTimeArray = (function() {
+
+ /**
+ * Properties of a DateTimeArray.
+ * @memberof google.cloud.contentwarehouse.v1
+ * @interface IDateTimeArray
+ * @property {Array.|null} [values] DateTimeArray values
+ */
+
+ /**
+ * Constructs a new DateTimeArray.
+ * @memberof google.cloud.contentwarehouse.v1
+ * @classdesc Represents a DateTimeArray.
+ * @implements IDateTimeArray
+ * @constructor
+ * @param {google.cloud.contentwarehouse.v1.IDateTimeArray=} [properties] Properties to set
+ */
+ function DateTimeArray(properties) {
+ this.values = [];
+ 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]];
+ }
+
+ /**
+ * DateTimeArray values.
+ * @member {Array.} values
+ * @memberof google.cloud.contentwarehouse.v1.DateTimeArray
+ * @instance
+ */
+ DateTimeArray.prototype.values = $util.emptyArray;
+
+ /**
+ * Creates a new DateTimeArray instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.contentwarehouse.v1.DateTimeArray
+ * @static
+ * @param {google.cloud.contentwarehouse.v1.IDateTimeArray=} [properties] Properties to set
+ * @returns {google.cloud.contentwarehouse.v1.DateTimeArray} DateTimeArray instance
+ */
+ DateTimeArray.create = function create(properties) {
+ return new DateTimeArray(properties);
+ };
+
+ /**
+ * Encodes the specified DateTimeArray message. Does not implicitly {@link google.cloud.contentwarehouse.v1.DateTimeArray.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.contentwarehouse.v1.DateTimeArray
+ * @static
+ * @param {google.cloud.contentwarehouse.v1.IDateTimeArray} message DateTimeArray message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ DateTimeArray.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.values != null && message.values.length)
+ for (var i = 0; i < message.values.length; ++i)
+ $root.google.type.DateTime.encode(message.values[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified DateTimeArray message, length delimited. Does not implicitly {@link google.cloud.contentwarehouse.v1.DateTimeArray.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.contentwarehouse.v1.DateTimeArray
+ * @static
+ * @param {google.cloud.contentwarehouse.v1.IDateTimeArray} message DateTimeArray message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ DateTimeArray.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a DateTimeArray message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.contentwarehouse.v1.DateTimeArray
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.contentwarehouse.v1.DateTimeArray} DateTimeArray
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ DateTimeArray.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.contentwarehouse.v1.DateTimeArray();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ if (!(message.values && message.values.length))
+ message.values = [];
+ message.values.push($root.google.type.DateTime.decode(reader, reader.uint32()));
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a DateTimeArray message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.contentwarehouse.v1.DateTimeArray
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.contentwarehouse.v1.DateTimeArray} DateTimeArray
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ DateTimeArray.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a DateTimeArray message.
+ * @function verify
+ * @memberof google.cloud.contentwarehouse.v1.DateTimeArray
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ DateTimeArray.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.values != null && message.hasOwnProperty("values")) {
+ if (!Array.isArray(message.values))
+ return "values: array expected";
+ for (var i = 0; i < message.values.length; ++i) {
+ var error = $root.google.type.DateTime.verify(message.values[i]);
+ if (error)
+ return "values." + error;
+ }
+ }
+ return null;
+ };
+
+ /**
+ * Creates a DateTimeArray message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.contentwarehouse.v1.DateTimeArray
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.contentwarehouse.v1.DateTimeArray} DateTimeArray
+ */
+ DateTimeArray.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.contentwarehouse.v1.DateTimeArray)
+ return object;
+ var message = new $root.google.cloud.contentwarehouse.v1.DateTimeArray();
+ if (object.values) {
+ if (!Array.isArray(object.values))
+ throw TypeError(".google.cloud.contentwarehouse.v1.DateTimeArray.values: array expected");
+ message.values = [];
+ for (var i = 0; i < object.values.length; ++i) {
+ if (typeof object.values[i] !== "object")
+ throw TypeError(".google.cloud.contentwarehouse.v1.DateTimeArray.values: object expected");
+ message.values[i] = $root.google.type.DateTime.fromObject(object.values[i]);
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a DateTimeArray message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.contentwarehouse.v1.DateTimeArray
+ * @static
+ * @param {google.cloud.contentwarehouse.v1.DateTimeArray} message DateTimeArray
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ DateTimeArray.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.values = [];
+ if (message.values && message.values.length) {
+ object.values = [];
+ for (var j = 0; j < message.values.length; ++j)
+ object.values[j] = $root.google.type.DateTime.toObject(message.values[j], options);
+ }
+ return object;
+ };
+
+ /**
+ * Converts this DateTimeArray to JSON.
+ * @function toJSON
+ * @memberof google.cloud.contentwarehouse.v1.DateTimeArray
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ DateTimeArray.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for DateTimeArray
+ * @function getTypeUrl
+ * @memberof google.cloud.contentwarehouse.v1.DateTimeArray
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ DateTimeArray.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.contentwarehouse.v1.DateTimeArray";
+ };
+
+ return DateTimeArray;
+ })();
+
+ v1.TimestampArray = (function() {
+
+ /**
+ * Properties of a TimestampArray.
+ * @memberof google.cloud.contentwarehouse.v1
+ * @interface ITimestampArray
+ * @property {Array.|null} [values] TimestampArray values
+ */
+
+ /**
+ * Constructs a new TimestampArray.
+ * @memberof google.cloud.contentwarehouse.v1
+ * @classdesc Represents a TimestampArray.
+ * @implements ITimestampArray
+ * @constructor
+ * @param {google.cloud.contentwarehouse.v1.ITimestampArray=} [properties] Properties to set
+ */
+ function TimestampArray(properties) {
+ this.values = [];
+ 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]];
+ }
+
+ /**
+ * TimestampArray values.
+ * @member {Array.} values
+ * @memberof google.cloud.contentwarehouse.v1.TimestampArray
+ * @instance
+ */
+ TimestampArray.prototype.values = $util.emptyArray;
+
+ /**
+ * Creates a new TimestampArray instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.contentwarehouse.v1.TimestampArray
+ * @static
+ * @param {google.cloud.contentwarehouse.v1.ITimestampArray=} [properties] Properties to set
+ * @returns {google.cloud.contentwarehouse.v1.TimestampArray} TimestampArray instance
+ */
+ TimestampArray.create = function create(properties) {
+ return new TimestampArray(properties);
+ };
+
+ /**
+ * Encodes the specified TimestampArray message. Does not implicitly {@link google.cloud.contentwarehouse.v1.TimestampArray.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.contentwarehouse.v1.TimestampArray
+ * @static
+ * @param {google.cloud.contentwarehouse.v1.ITimestampArray} message TimestampArray message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ TimestampArray.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.values != null && message.values.length)
+ for (var i = 0; i < message.values.length; ++i)
+ $root.google.cloud.contentwarehouse.v1.TimestampValue.encode(message.values[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified TimestampArray message, length delimited. Does not implicitly {@link google.cloud.contentwarehouse.v1.TimestampArray.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.contentwarehouse.v1.TimestampArray
+ * @static
+ * @param {google.cloud.contentwarehouse.v1.ITimestampArray} message TimestampArray message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ TimestampArray.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a TimestampArray message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.contentwarehouse.v1.TimestampArray
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.contentwarehouse.v1.TimestampArray} TimestampArray
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ TimestampArray.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.contentwarehouse.v1.TimestampArray();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ if (!(message.values && message.values.length))
+ message.values = [];
+ message.values.push($root.google.cloud.contentwarehouse.v1.TimestampValue.decode(reader, reader.uint32()));
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a TimestampArray message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.contentwarehouse.v1.TimestampArray
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.contentwarehouse.v1.TimestampArray} TimestampArray
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ TimestampArray.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a TimestampArray message.
+ * @function verify
+ * @memberof google.cloud.contentwarehouse.v1.TimestampArray
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ TimestampArray.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.values != null && message.hasOwnProperty("values")) {
+ if (!Array.isArray(message.values))
+ return "values: array expected";
+ for (var i = 0; i < message.values.length; ++i) {
+ var error = $root.google.cloud.contentwarehouse.v1.TimestampValue.verify(message.values[i]);
+ if (error)
+ return "values." + error;
+ }
+ }
+ return null;
+ };
+
+ /**
+ * Creates a TimestampArray message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.contentwarehouse.v1.TimestampArray
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.contentwarehouse.v1.TimestampArray} TimestampArray
+ */
+ TimestampArray.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.contentwarehouse.v1.TimestampArray)
+ return object;
+ var message = new $root.google.cloud.contentwarehouse.v1.TimestampArray();
+ if (object.values) {
+ if (!Array.isArray(object.values))
+ throw TypeError(".google.cloud.contentwarehouse.v1.TimestampArray.values: array expected");
+ message.values = [];
+ for (var i = 0; i < object.values.length; ++i) {
+ if (typeof object.values[i] !== "object")
+ throw TypeError(".google.cloud.contentwarehouse.v1.TimestampArray.values: object expected");
+ message.values[i] = $root.google.cloud.contentwarehouse.v1.TimestampValue.fromObject(object.values[i]);
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a TimestampArray message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.contentwarehouse.v1.TimestampArray
+ * @static
+ * @param {google.cloud.contentwarehouse.v1.TimestampArray} message TimestampArray
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ TimestampArray.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.values = [];
+ if (message.values && message.values.length) {
+ object.values = [];
+ for (var j = 0; j < message.values.length; ++j)
+ object.values[j] = $root.google.cloud.contentwarehouse.v1.TimestampValue.toObject(message.values[j], options);
+ }
+ return object;
+ };
+
+ /**
+ * Converts this TimestampArray to JSON.
+ * @function toJSON
+ * @memberof google.cloud.contentwarehouse.v1.TimestampArray
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ TimestampArray.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for TimestampArray
+ * @function getTypeUrl
+ * @memberof google.cloud.contentwarehouse.v1.TimestampArray
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ TimestampArray.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.contentwarehouse.v1.TimestampArray";
+ };
+
+ return TimestampArray;
+ })();
+
+ v1.TimestampValue = (function() {
+
+ /**
+ * Properties of a TimestampValue.
+ * @memberof google.cloud.contentwarehouse.v1
+ * @interface ITimestampValue
+ * @property {google.protobuf.ITimestamp|null} [timestampValue] TimestampValue timestampValue
+ * @property {string|null} [textValue] TimestampValue textValue
+ */
+
+ /**
+ * Constructs a new TimestampValue.
+ * @memberof google.cloud.contentwarehouse.v1
+ * @classdesc Represents a TimestampValue.
+ * @implements ITimestampValue
+ * @constructor
+ * @param {google.cloud.contentwarehouse.v1.ITimestampValue=} [properties] Properties to set
+ */
+ function TimestampValue(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]];
+ }
+
+ /**
+ * TimestampValue timestampValue.
+ * @member {google.protobuf.ITimestamp|null|undefined} timestampValue
+ * @memberof google.cloud.contentwarehouse.v1.TimestampValue
+ * @instance
+ */
+ TimestampValue.prototype.timestampValue = null;
+
+ /**
+ * TimestampValue textValue.
+ * @member {string|null|undefined} textValue
+ * @memberof google.cloud.contentwarehouse.v1.TimestampValue
+ * @instance
+ */
+ TimestampValue.prototype.textValue = null;
+
+ // OneOf field names bound to virtual getters and setters
+ var $oneOfFields;
+
+ /**
+ * TimestampValue value.
+ * @member {"timestampValue"|"textValue"|undefined} value
+ * @memberof google.cloud.contentwarehouse.v1.TimestampValue
+ * @instance
+ */
+ Object.defineProperty(TimestampValue.prototype, "value", {
+ get: $util.oneOfGetter($oneOfFields = ["timestampValue", "textValue"]),
+ set: $util.oneOfSetter($oneOfFields)
+ });
+
+ /**
+ * Creates a new TimestampValue instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.contentwarehouse.v1.TimestampValue
+ * @static
+ * @param {google.cloud.contentwarehouse.v1.ITimestampValue=} [properties] Properties to set
+ * @returns {google.cloud.contentwarehouse.v1.TimestampValue} TimestampValue instance
+ */
+ TimestampValue.create = function create(properties) {
+ return new TimestampValue(properties);
+ };
+
+ /**
+ * Encodes the specified TimestampValue message. Does not implicitly {@link google.cloud.contentwarehouse.v1.TimestampValue.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.contentwarehouse.v1.TimestampValue
+ * @static
+ * @param {google.cloud.contentwarehouse.v1.ITimestampValue} message TimestampValue message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ TimestampValue.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.timestampValue != null && Object.hasOwnProperty.call(message, "timestampValue"))
+ $root.google.protobuf.Timestamp.encode(message.timestampValue, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
+ if (message.textValue != null && Object.hasOwnProperty.call(message, "textValue"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.textValue);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified TimestampValue message, length delimited. Does not implicitly {@link google.cloud.contentwarehouse.v1.TimestampValue.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.contentwarehouse.v1.TimestampValue
+ * @static
+ * @param {google.cloud.contentwarehouse.v1.ITimestampValue} message TimestampValue message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ TimestampValue.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a TimestampValue message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.contentwarehouse.v1.TimestampValue
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.contentwarehouse.v1.TimestampValue} TimestampValue
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ TimestampValue.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.contentwarehouse.v1.TimestampValue();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.timestampValue = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
+ break;
+ }
+ case 2: {
+ message.textValue = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a TimestampValue message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.contentwarehouse.v1.TimestampValue
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.contentwarehouse.v1.TimestampValue} TimestampValue
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ TimestampValue.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a TimestampValue message.
+ * @function verify
+ * @memberof google.cloud.contentwarehouse.v1.TimestampValue
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ TimestampValue.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ var properties = {};
+ if (message.timestampValue != null && message.hasOwnProperty("timestampValue")) {
+ properties.value = 1;
+ {
+ var error = $root.google.protobuf.Timestamp.verify(message.timestampValue);
+ if (error)
+ return "timestampValue." + error;
+ }
+ }
+ if (message.textValue != null && message.hasOwnProperty("textValue")) {
+ if (properties.value === 1)
+ return "value: multiple values";
+ properties.value = 1;
+ if (!$util.isString(message.textValue))
+ return "textValue: string expected";
+ }
+ return null;
+ };
+
+ /**
+ * Creates a TimestampValue message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.contentwarehouse.v1.TimestampValue
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.contentwarehouse.v1.TimestampValue} TimestampValue
+ */
+ TimestampValue.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.contentwarehouse.v1.TimestampValue)
+ return object;
+ var message = new $root.google.cloud.contentwarehouse.v1.TimestampValue();
+ if (object.timestampValue != null) {
+ if (typeof object.timestampValue !== "object")
+ throw TypeError(".google.cloud.contentwarehouse.v1.TimestampValue.timestampValue: object expected");
+ message.timestampValue = $root.google.protobuf.Timestamp.fromObject(object.timestampValue);
+ }
+ if (object.textValue != null)
+ message.textValue = String(object.textValue);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a TimestampValue message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.contentwarehouse.v1.TimestampValue
+ * @static
+ * @param {google.cloud.contentwarehouse.v1.TimestampValue} message TimestampValue
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ TimestampValue.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (message.timestampValue != null && message.hasOwnProperty("timestampValue")) {
+ object.timestampValue = $root.google.protobuf.Timestamp.toObject(message.timestampValue, options);
+ if (options.oneofs)
+ object.value = "timestampValue";
+ }
+ if (message.textValue != null && message.hasOwnProperty("textValue")) {
+ object.textValue = message.textValue;
+ if (options.oneofs)
+ object.value = "textValue";
+ }
+ return object;
+ };
+
+ /**
+ * Converts this TimestampValue to JSON.
+ * @function toJSON
+ * @memberof google.cloud.contentwarehouse.v1.TimestampValue
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ TimestampValue.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for TimestampValue
+ * @function getTypeUrl
+ * @memberof google.cloud.contentwarehouse.v1.TimestampValue
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ TimestampValue.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.contentwarehouse.v1.TimestampValue";
+ };
+
+ return TimestampValue;
+ })();
+
+ v1.PropertyArray = (function() {
+
+ /**
+ * Properties of a PropertyArray.
+ * @memberof google.cloud.contentwarehouse.v1
+ * @interface IPropertyArray
+ * @property {Array.|null} [properties] PropertyArray properties
+ */
+
+ /**
+ * Constructs a new PropertyArray.
+ * @memberof google.cloud.contentwarehouse.v1
+ * @classdesc Represents a PropertyArray.
+ * @implements IPropertyArray
+ * @constructor
+ * @param {google.cloud.contentwarehouse.v1.IPropertyArray=} [properties] Properties to set
+ */
+ function PropertyArray(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]];
+ }
+
+ /**
+ * PropertyArray properties.
+ * @member {Array.} properties
+ * @memberof google.cloud.contentwarehouse.v1.PropertyArray
+ * @instance
+ */
+ PropertyArray.prototype.properties = $util.emptyArray;
+
+ /**
+ * Creates a new PropertyArray instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.contentwarehouse.v1.PropertyArray
+ * @static
+ * @param {google.cloud.contentwarehouse.v1.IPropertyArray=} [properties] Properties to set
+ * @returns {google.cloud.contentwarehouse.v1.PropertyArray} PropertyArray instance
+ */
+ PropertyArray.create = function create(properties) {
+ return new PropertyArray(properties);
+ };
+
+ /**
+ * Encodes the specified PropertyArray message. Does not implicitly {@link google.cloud.contentwarehouse.v1.PropertyArray.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.contentwarehouse.v1.PropertyArray
+ * @static
+ * @param {google.cloud.contentwarehouse.v1.IPropertyArray} message PropertyArray message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ PropertyArray.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.properties != null && message.properties.length)
+ for (var i = 0; i < message.properties.length; ++i)
+ $root.google.cloud.contentwarehouse.v1.Property.encode(message.properties[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified PropertyArray message, length delimited. Does not implicitly {@link google.cloud.contentwarehouse.v1.PropertyArray.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.contentwarehouse.v1.PropertyArray
+ * @static
+ * @param {google.cloud.contentwarehouse.v1.IPropertyArray} message PropertyArray message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ PropertyArray.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a PropertyArray message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.contentwarehouse.v1.PropertyArray
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.contentwarehouse.v1.PropertyArray} PropertyArray
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ PropertyArray.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.contentwarehouse.v1.PropertyArray();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ if (!(message.properties && message.properties.length))
+ message.properties = [];
+ message.properties.push($root.google.cloud.contentwarehouse.v1.Property.decode(reader, reader.uint32()));
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a PropertyArray message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.contentwarehouse.v1.PropertyArray
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.contentwarehouse.v1.PropertyArray} PropertyArray
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ PropertyArray.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a PropertyArray message.
+ * @function verify
+ * @memberof google.cloud.contentwarehouse.v1.PropertyArray
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ PropertyArray.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ 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.contentwarehouse.v1.Property.verify(message.properties[i]);
+ if (error)
+ return "properties." + error;
+ }
+ }
+ return null;
+ };
+
+ /**
+ * Creates a PropertyArray message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.contentwarehouse.v1.PropertyArray
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.contentwarehouse.v1.PropertyArray} PropertyArray
+ */
+ PropertyArray.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.contentwarehouse.v1.PropertyArray)
+ return object;
+ var message = new $root.google.cloud.contentwarehouse.v1.PropertyArray();
+ if (object.properties) {
+ if (!Array.isArray(object.properties))
+ throw TypeError(".google.cloud.contentwarehouse.v1.PropertyArray.properties: array expected");
+ message.properties = [];
+ for (var i = 0; i < object.properties.length; ++i) {
+ if (typeof object.properties[i] !== "object")
+ throw TypeError(".google.cloud.contentwarehouse.v1.PropertyArray.properties: object expected");
+ message.properties[i] = $root.google.cloud.contentwarehouse.v1.Property.fromObject(object.properties[i]);
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a PropertyArray message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.contentwarehouse.v1.PropertyArray
+ * @static
+ * @param {google.cloud.contentwarehouse.v1.PropertyArray} message PropertyArray
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ PropertyArray.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.properties = [];
+ if (message.properties && message.properties.length) {
+ object.properties = [];
+ for (var j = 0; j < message.properties.length; ++j)
+ object.properties[j] = $root.google.cloud.contentwarehouse.v1.Property.toObject(message.properties[j], options);
+ }
+ return object;
+ };
+
+ /**
+ * Converts this PropertyArray to JSON.
+ * @function toJSON
+ * @memberof google.cloud.contentwarehouse.v1.PropertyArray
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ PropertyArray.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for PropertyArray
+ * @function getTypeUrl
+ * @memberof google.cloud.contentwarehouse.v1.PropertyArray
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ PropertyArray.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.contentwarehouse.v1.PropertyArray";
+ };
+
+ return PropertyArray;
+ })();
+
+ v1.MapProperty = (function() {
+
+ /**
+ * Properties of a MapProperty.
+ * @memberof google.cloud.contentwarehouse.v1
+ * @interface IMapProperty
+ * @property {Object.|null} [fields] MapProperty fields
+ */
+
+ /**
+ * Constructs a new MapProperty.
+ * @memberof google.cloud.contentwarehouse.v1
+ * @classdesc Represents a MapProperty.
+ * @implements IMapProperty
+ * @constructor
+ * @param {google.cloud.contentwarehouse.v1.IMapProperty=} [properties] Properties to set
+ */
+ function MapProperty(properties) {
+ this.fields = {};
+ 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]];
+ }
+
+ /**
+ * MapProperty fields.
+ * @member {Object.} fields
+ * @memberof google.cloud.contentwarehouse.v1.MapProperty
+ * @instance
+ */
+ MapProperty.prototype.fields = $util.emptyObject;
+
+ /**
+ * Creates a new MapProperty instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.contentwarehouse.v1.MapProperty
+ * @static
+ * @param {google.cloud.contentwarehouse.v1.IMapProperty=} [properties] Properties to set
+ * @returns {google.cloud.contentwarehouse.v1.MapProperty} MapProperty instance
+ */
+ MapProperty.create = function create(properties) {
+ return new MapProperty(properties);
+ };
+
+ /**
+ * Encodes the specified MapProperty message. Does not implicitly {@link google.cloud.contentwarehouse.v1.MapProperty.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.contentwarehouse.v1.MapProperty
+ * @static
+ * @param {google.cloud.contentwarehouse.v1.IMapProperty} message MapProperty message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ MapProperty.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.fields != null && Object.hasOwnProperty.call(message, "fields"))
+ for (var keys = Object.keys(message.fields), i = 0; i < keys.length; ++i) {
+ writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
+ $root.google.cloud.contentwarehouse.v1.Value.encode(message.fields[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
+ }
+ return writer;
+ };
+
+ /**
+ * Encodes the specified MapProperty message, length delimited. Does not implicitly {@link google.cloud.contentwarehouse.v1.MapProperty.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.contentwarehouse.v1.MapProperty
+ * @static
+ * @param {google.cloud.contentwarehouse.v1.IMapProperty} message MapProperty message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ MapProperty.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a MapProperty message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.contentwarehouse.v1.MapProperty
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.contentwarehouse.v1.MapProperty} MapProperty
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ MapProperty.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.contentwarehouse.v1.MapProperty(), key, value;
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ if (message.fields === $util.emptyObject)
+ message.fields = {};
+ var end2 = reader.uint32() + reader.pos;
+ key = "";
+ value = null;
+ while (reader.pos < end2) {
+ var tag2 = reader.uint32();
+ switch (tag2 >>> 3) {
+ case 1:
+ key = reader.string();
+ break;
+ case 2:
+ value = $root.google.cloud.contentwarehouse.v1.Value.decode(reader, reader.uint32());
+ break;
+ default:
+ reader.skipType(tag2 & 7);
+ break;
+ }
+ }
+ message.fields[key] = value;
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a MapProperty message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.contentwarehouse.v1.MapProperty
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.contentwarehouse.v1.MapProperty} MapProperty
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ MapProperty.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a MapProperty message.
+ * @function verify
+ * @memberof google.cloud.contentwarehouse.v1.MapProperty
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ MapProperty.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.fields != null && message.hasOwnProperty("fields")) {
+ if (!$util.isObject(message.fields))
+ return "fields: object expected";
+ var key = Object.keys(message.fields);
+ for (var i = 0; i < key.length; ++i) {
+ var error = $root.google.cloud.contentwarehouse.v1.Value.verify(message.fields[key[i]]);
+ if (error)
+ return "fields." + error;
+ }
+ }
+ return null;
+ };
+
+ /**
+ * Creates a MapProperty message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.contentwarehouse.v1.MapProperty
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.contentwarehouse.v1.MapProperty} MapProperty
+ */
+ MapProperty.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.contentwarehouse.v1.MapProperty)
+ return object;
+ var message = new $root.google.cloud.contentwarehouse.v1.MapProperty();
+ if (object.fields) {
+ if (typeof object.fields !== "object")
+ throw TypeError(".google.cloud.contentwarehouse.v1.MapProperty.fields: object expected");
+ message.fields = {};
+ for (var keys = Object.keys(object.fields), i = 0; i < keys.length; ++i) {
+ if (typeof object.fields[keys[i]] !== "object")
+ throw TypeError(".google.cloud.contentwarehouse.v1.MapProperty.fields: object expected");
+ message.fields[keys[i]] = $root.google.cloud.contentwarehouse.v1.Value.fromObject(object.fields[keys[i]]);
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a MapProperty message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.contentwarehouse.v1.MapProperty
+ * @static
+ * @param {google.cloud.contentwarehouse.v1.MapProperty} message MapProperty
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ MapProperty.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.objects || options.defaults)
+ object.fields = {};
+ var keys2;
+ if (message.fields && (keys2 = Object.keys(message.fields)).length) {
+ object.fields = {};
+ for (var j = 0; j < keys2.length; ++j)
+ object.fields[keys2[j]] = $root.google.cloud.contentwarehouse.v1.Value.toObject(message.fields[keys2[j]], options);
+ }
+ return object;
+ };
+
+ /**
+ * Converts this MapProperty to JSON.
+ * @function toJSON
+ * @memberof google.cloud.contentwarehouse.v1.MapProperty
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ MapProperty.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for MapProperty
+ * @function getTypeUrl
+ * @memberof google.cloud.contentwarehouse.v1.MapProperty
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ MapProperty.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.contentwarehouse.v1.MapProperty";
+ };
+
+ return MapProperty;
+ })();
+
+ v1.Value = (function() {
+
+ /**
+ * Properties of a Value.
+ * @memberof google.cloud.contentwarehouse.v1
+ * @interface IValue
+ * @property {number|null} [floatValue] Value floatValue
+ * @property {number|null} [intValue] Value intValue
+ * @property {string|null} [stringValue] Value stringValue
+ * @property {google.cloud.contentwarehouse.v1.IEnumValue|null} [enumValue] Value enumValue
+ * @property {google.type.IDateTime|null} [datetimeValue] Value datetimeValue
+ * @property {google.cloud.contentwarehouse.v1.ITimestampValue|null} [timestampValue] Value timestampValue
+ * @property {boolean|null} [booleanValue] Value booleanValue
+ */
+
+ /**
+ * Constructs a new Value.
+ * @memberof google.cloud.contentwarehouse.v1
+ * @classdesc Represents a Value.
+ * @implements IValue
+ * @constructor
+ * @param {google.cloud.contentwarehouse.v1.IValue=} [properties] Properties to set
+ */
+ function Value(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]];
+ }
+
+ /**
+ * Value floatValue.
+ * @member {number|null|undefined} floatValue
+ * @memberof google.cloud.contentwarehouse.v1.Value
+ * @instance
+ */
+ Value.prototype.floatValue = null;
+
+ /**
+ * Value intValue.
+ * @member {number|null|undefined} intValue
+ * @memberof google.cloud.contentwarehouse.v1.Value
+ * @instance
+ */
+ Value.prototype.intValue = null;
+
+ /**
+ * Value stringValue.
+ * @member {string|null|undefined} stringValue
+ * @memberof google.cloud.contentwarehouse.v1.Value
+ * @instance
+ */
+ Value.prototype.stringValue = null;
+
+ /**
+ * Value enumValue.
+ * @member {google.cloud.contentwarehouse.v1.IEnumValue|null|undefined} enumValue
+ * @memberof google.cloud.contentwarehouse.v1.Value
+ * @instance
+ */
+ Value.prototype.enumValue = null;
+
+ /**
+ * Value datetimeValue.
+ * @member {google.type.IDateTime|null|undefined} datetimeValue
+ * @memberof google.cloud.contentwarehouse.v1.Value
+ * @instance
+ */
+ Value.prototype.datetimeValue = null;
+
+ /**
+ * Value timestampValue.
+ * @member {google.cloud.contentwarehouse.v1.ITimestampValue|null|undefined} timestampValue
+ * @memberof google.cloud.contentwarehouse.v1.Value
+ * @instance
+ */
+ Value.prototype.timestampValue = null;
+
+ /**
+ * Value booleanValue.
+ * @member {boolean|null|undefined} booleanValue
+ * @memberof google.cloud.contentwarehouse.v1.Value
+ * @instance
+ */
+ Value.prototype.booleanValue = null;
+
+ // OneOf field names bound to virtual getters and setters
+ var $oneOfFields;
+
+ /**
+ * Value kind.
+ * @member {"floatValue"|"intValue"|"stringValue"|"enumValue"|"datetimeValue"|"timestampValue"|"booleanValue"|undefined} kind
+ * @memberof google.cloud.contentwarehouse.v1.Value
+ * @instance
+ */
+ Object.defineProperty(Value.prototype, "kind", {
+ get: $util.oneOfGetter($oneOfFields = ["floatValue", "intValue", "stringValue", "enumValue", "datetimeValue", "timestampValue", "booleanValue"]),
+ set: $util.oneOfSetter($oneOfFields)
+ });
+
+ /**
+ * Creates a new Value instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.contentwarehouse.v1.Value
+ * @static
+ * @param {google.cloud.contentwarehouse.v1.IValue=} [properties] Properties to set
+ * @returns {google.cloud.contentwarehouse.v1.Value} Value instance
+ */
+ Value.create = function create(properties) {
+ return new Value(properties);
+ };
+
+ /**
+ * Encodes the specified Value message. Does not implicitly {@link google.cloud.contentwarehouse.v1.Value.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.contentwarehouse.v1.Value
+ * @static
+ * @param {google.cloud.contentwarehouse.v1.IValue} message Value message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Value.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.floatValue != null && Object.hasOwnProperty.call(message, "floatValue"))
+ writer.uint32(/* id 1, wireType 5 =*/13).float(message.floatValue);
+ if (message.intValue != null && Object.hasOwnProperty.call(message, "intValue"))
+ writer.uint32(/* id 2, wireType 0 =*/16).int32(message.intValue);
+ if (message.stringValue != null && Object.hasOwnProperty.call(message, "stringValue"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.stringValue);
+ if (message.enumValue != null && Object.hasOwnProperty.call(message, "enumValue"))
+ $root.google.cloud.contentwarehouse.v1.EnumValue.encode(message.enumValue, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
+ if (message.datetimeValue != null && Object.hasOwnProperty.call(message, "datetimeValue"))
+ $root.google.type.DateTime.encode(message.datetimeValue, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
+ if (message.timestampValue != null && Object.hasOwnProperty.call(message, "timestampValue"))
+ $root.google.cloud.contentwarehouse.v1.TimestampValue.encode(message.timestampValue, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
+ if (message.booleanValue != null && Object.hasOwnProperty.call(message, "booleanValue"))
+ writer.uint32(/* id 7, wireType 0 =*/56).bool(message.booleanValue);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified Value message, length delimited. Does not implicitly {@link google.cloud.contentwarehouse.v1.Value.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.contentwarehouse.v1.Value
+ * @static
+ * @param {google.cloud.contentwarehouse.v1.IValue} message Value message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Value.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a Value message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.contentwarehouse.v1.Value
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.contentwarehouse.v1.Value} Value
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Value.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.contentwarehouse.v1.Value();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.floatValue = reader.float();
+ break;
+ }
+ case 2: {
+ message.intValue = reader.int32();
+ break;
+ }
+ case 3: {
+ message.stringValue = reader.string();
+ break;
+ }
+ case 4: {
+ message.enumValue = $root.google.cloud.contentwarehouse.v1.EnumValue.decode(reader, reader.uint32());
+ break;
+ }
+ case 5: {
+ message.datetimeValue = $root.google.type.DateTime.decode(reader, reader.uint32());
+ break;
+ }
+ case 6: {
+ message.timestampValue = $root.google.cloud.contentwarehouse.v1.TimestampValue.decode(reader, reader.uint32());
+ break;
+ }
+ case 7: {
+ message.booleanValue = reader.bool();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a Value message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.contentwarehouse.v1.Value
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.contentwarehouse.v1.Value} Value
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Value.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a Value message.
+ * @function verify
+ * @memberof google.cloud.contentwarehouse.v1.Value
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ Value.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ var properties = {};
+ if (message.floatValue != null && message.hasOwnProperty("floatValue")) {
+ properties.kind = 1;
+ if (typeof message.floatValue !== "number")
+ return "floatValue: number expected";
+ }
+ if (message.intValue != null && message.hasOwnProperty("intValue")) {
+ if (properties.kind === 1)
+ return "kind: multiple values";
+ properties.kind = 1;
+ if (!$util.isInteger(message.intValue))
+ return "intValue: integer expected";
+ }
+ if (message.stringValue != null && message.hasOwnProperty("stringValue")) {
+ if (properties.kind === 1)
+ return "kind: multiple values";
+ properties.kind = 1;
+ if (!$util.isString(message.stringValue))
+ return "stringValue: string expected";
+ }
+ if (message.enumValue != null && message.hasOwnProperty("enumValue")) {
+ if (properties.kind === 1)
+ return "kind: multiple values";
+ properties.kind = 1;
+ {
+ var error = $root.google.cloud.contentwarehouse.v1.EnumValue.verify(message.enumValue);
+ if (error)
+ return "enumValue." + error;
+ }
+ }
+ if (message.datetimeValue != null && message.hasOwnProperty("datetimeValue")) {
+ if (properties.kind === 1)
+ return "kind: multiple values";
+ properties.kind = 1;
+ {
+ var error = $root.google.type.DateTime.verify(message.datetimeValue);
+ if (error)
+ return "datetimeValue." + error;
+ }
+ }
+ if (message.timestampValue != null && message.hasOwnProperty("timestampValue")) {
+ if (properties.kind === 1)
+ return "kind: multiple values";
+ properties.kind = 1;
+ {
+ var error = $root.google.cloud.contentwarehouse.v1.TimestampValue.verify(message.timestampValue);
+ if (error)
+ return "timestampValue." + error;
+ }
+ }
+ if (message.booleanValue != null && message.hasOwnProperty("booleanValue")) {
+ if (properties.kind === 1)
+ return "kind: multiple values";
+ properties.kind = 1;
+ if (typeof message.booleanValue !== "boolean")
+ return "booleanValue: boolean expected";
+ }
+ return null;
+ };
+
+ /**
+ * Creates a Value message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.contentwarehouse.v1.Value
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.contentwarehouse.v1.Value} Value
+ */
+ Value.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.contentwarehouse.v1.Value)
+ return object;
+ var message = new $root.google.cloud.contentwarehouse.v1.Value();
+ if (object.floatValue != null)
+ message.floatValue = Number(object.floatValue);
+ if (object.intValue != null)
+ message.intValue = object.intValue | 0;
+ if (object.stringValue != null)
+ message.stringValue = String(object.stringValue);
+ if (object.enumValue != null) {
+ if (typeof object.enumValue !== "object")
+ throw TypeError(".google.cloud.contentwarehouse.v1.Value.enumValue: object expected");
+ message.enumValue = $root.google.cloud.contentwarehouse.v1.EnumValue.fromObject(object.enumValue);
+ }
+ if (object.datetimeValue != null) {
+ if (typeof object.datetimeValue !== "object")
+ throw TypeError(".google.cloud.contentwarehouse.v1.Value.datetimeValue: object expected");
+ message.datetimeValue = $root.google.type.DateTime.fromObject(object.datetimeValue);
+ }
+ if (object.timestampValue != null) {
+ if (typeof object.timestampValue !== "object")
+ throw TypeError(".google.cloud.contentwarehouse.v1.Value.timestampValue: object expected");
+ message.timestampValue = $root.google.cloud.contentwarehouse.v1.TimestampValue.fromObject(object.timestampValue);
+ }
+ if (object.booleanValue != null)
+ message.booleanValue = Boolean(object.booleanValue);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a Value message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.contentwarehouse.v1.Value
+ * @static
+ * @param {google.cloud.contentwarehouse.v1.Value} message Value
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ Value.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (message.floatValue != null && message.hasOwnProperty("floatValue")) {
+ object.floatValue = options.json && !isFinite(message.floatValue) ? String(message.floatValue) : message.floatValue;
+ if (options.oneofs)
+ object.kind = "floatValue";
+ }
+ if (message.intValue != null && message.hasOwnProperty("intValue")) {
+ object.intValue = message.intValue;
+ if (options.oneofs)
+ object.kind = "intValue";
+ }
+ if (message.stringValue != null && message.hasOwnProperty("stringValue")) {
+ object.stringValue = message.stringValue;
+ if (options.oneofs)
+ object.kind = "stringValue";
+ }
+ if (message.enumValue != null && message.hasOwnProperty("enumValue")) {
+ object.enumValue = $root.google.cloud.contentwarehouse.v1.EnumValue.toObject(message.enumValue, options);
+ if (options.oneofs)
+ object.kind = "enumValue";
+ }
+ if (message.datetimeValue != null && message.hasOwnProperty("datetimeValue")) {
+ object.datetimeValue = $root.google.type.DateTime.toObject(message.datetimeValue, options);
+ if (options.oneofs)
+ object.kind = "datetimeValue";
+ }
+ if (message.timestampValue != null && message.hasOwnProperty("timestampValue")) {
+ object.timestampValue = $root.google.cloud.contentwarehouse.v1.TimestampValue.toObject(message.timestampValue, options);
+ if (options.oneofs)
+ object.kind = "timestampValue";
+ }
+ if (message.booleanValue != null && message.hasOwnProperty("booleanValue")) {
+ object.booleanValue = message.booleanValue;
+ if (options.oneofs)
+ object.kind = "booleanValue";
+ }
+ return object;
+ };
+
+ /**
+ * Converts this Value to JSON.
+ * @function toJSON
+ * @memberof google.cloud.contentwarehouse.v1.Value
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ Value.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for Value
+ * @function getTypeUrl
+ * @memberof google.cloud.contentwarehouse.v1.Value
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ Value.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.contentwarehouse.v1.Value";
+ };
+
+ return Value;
+ })();
+
+ v1.EnumValue = (function() {
+
+ /**
+ * Properties of an EnumValue.
+ * @memberof google.cloud.contentwarehouse.v1
+ * @interface IEnumValue
+ * @property {string|null} [value] EnumValue value
+ */
+
+ /**
+ * Constructs a new EnumValue.
+ * @memberof google.cloud.contentwarehouse.v1
+ * @classdesc Represents an EnumValue.
+ * @implements IEnumValue
+ * @constructor
+ * @param {google.cloud.contentwarehouse.v1.IEnumValue=} [properties] Properties to set
+ */
+ function EnumValue(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]];
+ }
+
+ /**
+ * EnumValue value.
+ * @member {string} value
+ * @memberof google.cloud.contentwarehouse.v1.EnumValue
+ * @instance
+ */
+ EnumValue.prototype.value = "";
+
+ /**
+ * Creates a new EnumValue instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.contentwarehouse.v1.EnumValue
+ * @static
+ * @param {google.cloud.contentwarehouse.v1.IEnumValue=} [properties] Properties to set
+ * @returns {google.cloud.contentwarehouse.v1.EnumValue} EnumValue instance
+ */
+ EnumValue.create = function create(properties) {
+ return new EnumValue(properties);
+ };
+
+ /**
+ * Encodes the specified EnumValue message. Does not implicitly {@link google.cloud.contentwarehouse.v1.EnumValue.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.contentwarehouse.v1.EnumValue
+ * @static
+ * @param {google.cloud.contentwarehouse.v1.IEnumValue} message EnumValue message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ EnumValue.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.value != null && Object.hasOwnProperty.call(message, "value"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.value);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified EnumValue message, length delimited. Does not implicitly {@link google.cloud.contentwarehouse.v1.EnumValue.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.contentwarehouse.v1.EnumValue
+ * @static
+ * @param {google.cloud.contentwarehouse.v1.IEnumValue} message EnumValue message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ EnumValue.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes an EnumValue message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.contentwarehouse.v1.EnumValue
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.contentwarehouse.v1.EnumValue} EnumValue
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ EnumValue.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.contentwarehouse.v1.EnumValue();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.value = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an EnumValue message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.contentwarehouse.v1.EnumValue
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.contentwarehouse.v1.EnumValue} EnumValue
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ EnumValue.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an EnumValue message.
+ * @function verify
+ * @memberof google.cloud.contentwarehouse.v1.EnumValue
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ EnumValue.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.value != null && message.hasOwnProperty("value"))
+ if (!$util.isString(message.value))
+ return "value: string expected";
+ return null;
+ };
+
+ /**
+ * Creates an EnumValue message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.contentwarehouse.v1.EnumValue
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.contentwarehouse.v1.EnumValue} EnumValue
+ */
+ EnumValue.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.contentwarehouse.v1.EnumValue)
+ return object;
+ var message = new $root.google.cloud.contentwarehouse.v1.EnumValue();
+ if (object.value != null)
+ message.value = String(object.value);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an EnumValue message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.contentwarehouse.v1.EnumValue
+ * @static
+ * @param {google.cloud.contentwarehouse.v1.EnumValue} message EnumValue
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ EnumValue.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults)
+ object.value = "";
+ if (message.value != null && message.hasOwnProperty("value"))
+ object.value = message.value;
+ return object;
+ };
+
+ /**
+ * Converts this EnumValue to JSON.
+ * @function toJSON
+ * @memberof google.cloud.contentwarehouse.v1.EnumValue
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ EnumValue.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for EnumValue
+ * @function getTypeUrl
+ * @memberof google.cloud.contentwarehouse.v1.EnumValue
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ EnumValue.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.contentwarehouse.v1.EnumValue";
+ };
+
+ return EnumValue;
+ })();
+
+ /**
+ * RawDocumentFileType enum.
+ * @name google.cloud.contentwarehouse.v1.RawDocumentFileType
+ * @enum {number}
+ * @property {number} RAW_DOCUMENT_FILE_TYPE_UNSPECIFIED=0 RAW_DOCUMENT_FILE_TYPE_UNSPECIFIED value
+ * @property {number} RAW_DOCUMENT_FILE_TYPE_PDF=1 RAW_DOCUMENT_FILE_TYPE_PDF value
+ * @property {number} RAW_DOCUMENT_FILE_TYPE_DOCX=2 RAW_DOCUMENT_FILE_TYPE_DOCX value
+ * @property {number} RAW_DOCUMENT_FILE_TYPE_XLSX=3 RAW_DOCUMENT_FILE_TYPE_XLSX value
+ * @property {number} RAW_DOCUMENT_FILE_TYPE_PPTX=4 RAW_DOCUMENT_FILE_TYPE_PPTX value
+ * @property {number} RAW_DOCUMENT_FILE_TYPE_TEXT=5 RAW_DOCUMENT_FILE_TYPE_TEXT value
+ */
+ v1.RawDocumentFileType = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "RAW_DOCUMENT_FILE_TYPE_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "RAW_DOCUMENT_FILE_TYPE_PDF"] = 1;
+ values[valuesById[2] = "RAW_DOCUMENT_FILE_TYPE_DOCX"] = 2;
+ values[valuesById[3] = "RAW_DOCUMENT_FILE_TYPE_XLSX"] = 3;
+ values[valuesById[4] = "RAW_DOCUMENT_FILE_TYPE_PPTX"] = 4;
+ values[valuesById[5] = "RAW_DOCUMENT_FILE_TYPE_TEXT"] = 5;
+ return values;
+ })();
+
+ v1.DocumentLinkService = (function() {
+
+ /**
+ * Constructs a new DocumentLinkService service.
+ * @memberof google.cloud.contentwarehouse.v1
+ * @classdesc Represents a DocumentLinkService
+ * @extends $protobuf.rpc.Service
+ * @constructor
+ * @param {$protobuf.RPCImpl} rpcImpl RPC implementation
+ * @param {boolean} [requestDelimited=false] Whether requests are length-delimited
+ * @param {boolean} [responseDelimited=false] Whether responses are length-delimited
+ */
+ function DocumentLinkService(rpcImpl, requestDelimited, responseDelimited) {
+ $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited);
+ }
+
+ (DocumentLinkService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = DocumentLinkService;
+
+ /**
+ * Creates new DocumentLinkService service using the specified rpc implementation.
+ * @function create
+ * @memberof google.cloud.contentwarehouse.v1.DocumentLinkService
+ * @static
+ * @param {$protobuf.RPCImpl} rpcImpl RPC implementation
+ * @param {boolean} [requestDelimited=false] Whether requests are length-delimited
+ * @param {boolean} [responseDelimited=false] Whether responses are length-delimited
+ * @returns {DocumentLinkService} RPC service. Useful where requests and/or responses are streamed.
+ */
+ DocumentLinkService.create = function create(rpcImpl, requestDelimited, responseDelimited) {
+ return new this(rpcImpl, requestDelimited, responseDelimited);
+ };
+
+ /**
+ * Callback as used by {@link google.cloud.contentwarehouse.v1.DocumentLinkService|listLinkedTargets}.
+ * @memberof google.cloud.contentwarehouse.v1.DocumentLinkService
+ * @typedef ListLinkedTargetsCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse} [response] ListLinkedTargetsResponse
+ */
+
+ /**
+ * Calls ListLinkedTargets.
+ * @function listLinkedTargets
+ * @memberof google.cloud.contentwarehouse.v1.DocumentLinkService
+ * @instance
+ * @param {google.cloud.contentwarehouse.v1.IListLinkedTargetsRequest} request ListLinkedTargetsRequest message or plain object
+ * @param {google.cloud.contentwarehouse.v1.DocumentLinkService.ListLinkedTargetsCallback} callback Node-style callback called with the error, if any, and ListLinkedTargetsResponse
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(DocumentLinkService.prototype.listLinkedTargets = function listLinkedTargets(request, callback) {
+ return this.rpcCall(listLinkedTargets, $root.google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest, $root.google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse, request, callback);
+ }, "name", { value: "ListLinkedTargets" });
+
+ /**
+ * Calls ListLinkedTargets.
+ * @function listLinkedTargets
+ * @memberof google.cloud.contentwarehouse.v1.DocumentLinkService
+ * @instance
+ * @param {google.cloud.contentwarehouse.v1.IListLinkedTargetsRequest} request ListLinkedTargetsRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.contentwarehouse.v1.DocumentLinkService|listLinkedSources}.
+ * @memberof google.cloud.contentwarehouse.v1.DocumentLinkService
+ * @typedef ListLinkedSourcesCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse} [response] ListLinkedSourcesResponse
+ */
+
+ /**
+ * Calls ListLinkedSources.
+ * @function listLinkedSources
+ * @memberof google.cloud.contentwarehouse.v1.DocumentLinkService
+ * @instance
+ * @param {google.cloud.contentwarehouse.v1.IListLinkedSourcesRequest} request ListLinkedSourcesRequest message or plain object
+ * @param {google.cloud.contentwarehouse.v1.DocumentLinkService.ListLinkedSourcesCallback} callback Node-style callback called with the error, if any, and ListLinkedSourcesResponse
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(DocumentLinkService.prototype.listLinkedSources = function listLinkedSources(request, callback) {
+ return this.rpcCall(listLinkedSources, $root.google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest, $root.google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse, request, callback);
+ }, "name", { value: "ListLinkedSources" });
+
+ /**
+ * Calls ListLinkedSources.
+ * @function listLinkedSources
+ * @memberof google.cloud.contentwarehouse.v1.DocumentLinkService
+ * @instance
+ * @param {google.cloud.contentwarehouse.v1.IListLinkedSourcesRequest} request ListLinkedSourcesRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.contentwarehouse.v1.DocumentLinkService|createDocumentLink}.
+ * @memberof google.cloud.contentwarehouse.v1.DocumentLinkService
+ * @typedef CreateDocumentLinkCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.contentwarehouse.v1.DocumentLink} [response] DocumentLink
+ */
+
+ /**
+ * Calls CreateDocumentLink.
+ * @function createDocumentLink
+ * @memberof google.cloud.contentwarehouse.v1.DocumentLinkService
+ * @instance
+ * @param {google.cloud.contentwarehouse.v1.ICreateDocumentLinkRequest} request CreateDocumentLinkRequest message or plain object
+ * @param {google.cloud.contentwarehouse.v1.DocumentLinkService.CreateDocumentLinkCallback} callback Node-style callback called with the error, if any, and DocumentLink
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(DocumentLinkService.prototype.createDocumentLink = function createDocumentLink(request, callback) {
+ return this.rpcCall(createDocumentLink, $root.google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest, $root.google.cloud.contentwarehouse.v1.DocumentLink, request, callback);
+ }, "name", { value: "CreateDocumentLink" });
+
+ /**
+ * Calls CreateDocumentLink.
+ * @function createDocumentLink
+ * @memberof google.cloud.contentwarehouse.v1.DocumentLinkService
+ * @instance
+ * @param {google.cloud.contentwarehouse.v1.ICreateDocumentLinkRequest} request CreateDocumentLinkRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.contentwarehouse.v1.DocumentLinkService|deleteDocumentLink}.
+ * @memberof google.cloud.contentwarehouse.v1.DocumentLinkService
+ * @typedef DeleteDocumentLinkCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.protobuf.Empty} [response] Empty
+ */
+
+ /**
+ * Calls DeleteDocumentLink.
+ * @function deleteDocumentLink
+ * @memberof google.cloud.contentwarehouse.v1.DocumentLinkService
+ * @instance
+ * @param {google.cloud.contentwarehouse.v1.IDeleteDocumentLinkRequest} request DeleteDocumentLinkRequest message or plain object
+ * @param {google.cloud.contentwarehouse.v1.DocumentLinkService.DeleteDocumentLinkCallback} callback Node-style callback called with the error, if any, and Empty
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(DocumentLinkService.prototype.deleteDocumentLink = function deleteDocumentLink(request, callback) {
+ return this.rpcCall(deleteDocumentLink, $root.google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest, $root.google.protobuf.Empty, request, callback);
+ }, "name", { value: "DeleteDocumentLink" });
+
+ /**
+ * Calls DeleteDocumentLink.
+ * @function deleteDocumentLink
+ * @memberof google.cloud.contentwarehouse.v1.DocumentLinkService
+ * @instance
+ * @param {google.cloud.contentwarehouse.v1.IDeleteDocumentLinkRequest} request DeleteDocumentLinkRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ return DocumentLinkService;
+ })();
+
+ v1.ListLinkedTargetsResponse = (function() {
+
+ /**
+ * Properties of a ListLinkedTargetsResponse.
+ * @memberof google.cloud.contentwarehouse.v1
+ * @interface IListLinkedTargetsResponse
+ * @property {Array.|null} [documentLinks] ListLinkedTargetsResponse documentLinks
+ * @property {string|null} [nextPageToken] ListLinkedTargetsResponse nextPageToken
+ */
+
+ /**
+ * Constructs a new ListLinkedTargetsResponse.
+ * @memberof google.cloud.contentwarehouse.v1
+ * @classdesc Represents a ListLinkedTargetsResponse.
+ * @implements IListLinkedTargetsResponse
+ * @constructor
+ * @param {google.cloud.contentwarehouse.v1.IListLinkedTargetsResponse=} [properties] Properties to set
+ */
+ function ListLinkedTargetsResponse(properties) {
+ this.documentLinks = [];
+ 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]];
+ }
+
+ /**
+ * ListLinkedTargetsResponse documentLinks.
+ * @member {Array.} documentLinks
+ * @memberof google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse
+ * @instance
+ */
+ ListLinkedTargetsResponse.prototype.documentLinks = $util.emptyArray;
+
+ /**
+ * ListLinkedTargetsResponse nextPageToken.
+ * @member {string} nextPageToken
+ * @memberof google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse
+ * @instance
+ */
+ ListLinkedTargetsResponse.prototype.nextPageToken = "";
+
+ /**
+ * Creates a new ListLinkedTargetsResponse instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse
+ * @static
+ * @param {google.cloud.contentwarehouse.v1.IListLinkedTargetsResponse=} [properties] Properties to set
+ * @returns {google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse} ListLinkedTargetsResponse instance
+ */
+ ListLinkedTargetsResponse.create = function create(properties) {
+ return new ListLinkedTargetsResponse(properties);
+ };
+
+ /**
+ * Encodes the specified ListLinkedTargetsResponse message. Does not implicitly {@link google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse
+ * @static
+ * @param {google.cloud.contentwarehouse.v1.IListLinkedTargetsResponse} message ListLinkedTargetsResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListLinkedTargetsResponse.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.documentLinks != null && message.documentLinks.length)
+ for (var i = 0; i < message.documentLinks.length; ++i)
+ $root.google.cloud.contentwarehouse.v1.DocumentLink.encode(message.documentLinks[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
+ if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ListLinkedTargetsResponse message, length delimited. Does not implicitly {@link google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse
+ * @static
+ * @param {google.cloud.contentwarehouse.v1.IListLinkedTargetsResponse} message ListLinkedTargetsResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListLinkedTargetsResponse.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ListLinkedTargetsResponse message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse} ListLinkedTargetsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListLinkedTargetsResponse.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.contentwarehouse.v1.ListLinkedTargetsResponse();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ if (!(message.documentLinks && message.documentLinks.length))
+ message.documentLinks = [];
+ message.documentLinks.push($root.google.cloud.contentwarehouse.v1.DocumentLink.decode(reader, reader.uint32()));
+ break;
+ }
+ case 2: {
+ message.nextPageToken = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ListLinkedTargetsResponse message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse} ListLinkedTargetsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListLinkedTargetsResponse.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ListLinkedTargetsResponse message.
+ * @function verify
+ * @memberof google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ListLinkedTargetsResponse.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.documentLinks != null && message.hasOwnProperty("documentLinks")) {
+ if (!Array.isArray(message.documentLinks))
+ return "documentLinks: array expected";
+ for (var i = 0; i < message.documentLinks.length; ++i) {
+ var error = $root.google.cloud.contentwarehouse.v1.DocumentLink.verify(message.documentLinks[i]);
+ if (error)
+ return "documentLinks." + error;
+ }
+ }
+ if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken"))
+ if (!$util.isString(message.nextPageToken))
+ return "nextPageToken: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a ListLinkedTargetsResponse message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse} ListLinkedTargetsResponse
+ */
+ ListLinkedTargetsResponse.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse)
+ return object;
+ var message = new $root.google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse();
+ if (object.documentLinks) {
+ if (!Array.isArray(object.documentLinks))
+ throw TypeError(".google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse.documentLinks: array expected");
+ message.documentLinks = [];
+ for (var i = 0; i < object.documentLinks.length; ++i) {
+ if (typeof object.documentLinks[i] !== "object")
+ throw TypeError(".google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse.documentLinks: object expected");
+ message.documentLinks[i] = $root.google.cloud.contentwarehouse.v1.DocumentLink.fromObject(object.documentLinks[i]);
+ }
+ }
+ if (object.nextPageToken != null)
+ message.nextPageToken = String(object.nextPageToken);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ListLinkedTargetsResponse message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse
+ * @static
+ * @param {google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse} message ListLinkedTargetsResponse
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ListLinkedTargetsResponse.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.documentLinks = [];
+ if (options.defaults)
+ object.nextPageToken = "";
+ if (message.documentLinks && message.documentLinks.length) {
+ object.documentLinks = [];
+ for (var j = 0; j < message.documentLinks.length; ++j)
+ object.documentLinks[j] = $root.google.cloud.contentwarehouse.v1.DocumentLink.toObject(message.documentLinks[j], options);
+ }
+ if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken"))
+ object.nextPageToken = message.nextPageToken;
+ return object;
+ };
+
+ /**
+ * Converts this ListLinkedTargetsResponse to JSON.
+ * @function toJSON
+ * @memberof google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ListLinkedTargetsResponse.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ListLinkedTargetsResponse
+ * @function getTypeUrl
+ * @memberof google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ListLinkedTargetsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse";
+ };
+
+ return ListLinkedTargetsResponse;
+ })();
+
+ v1.ListLinkedTargetsRequest = (function() {
+
+ /**
+ * Properties of a ListLinkedTargetsRequest.
+ * @memberof google.cloud.contentwarehouse.v1
+ * @interface IListLinkedTargetsRequest
+ * @property {string|null} [parent] ListLinkedTargetsRequest parent
+ * @property {google.cloud.contentwarehouse.v1.IRequestMetadata|null} [requestMetadata] ListLinkedTargetsRequest requestMetadata
+ */
+
+ /**
+ * Constructs a new ListLinkedTargetsRequest.
+ * @memberof google.cloud.contentwarehouse.v1
+ * @classdesc Represents a ListLinkedTargetsRequest.
+ * @implements IListLinkedTargetsRequest
+ * @constructor
+ * @param {google.cloud.contentwarehouse.v1.IListLinkedTargetsRequest=} [properties] Properties to set
+ */
+ function ListLinkedTargetsRequest(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]];
+ }
+
+ /**
+ * ListLinkedTargetsRequest parent.
+ * @member {string} parent
+ * @memberof google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest
+ * @instance
+ */
+ ListLinkedTargetsRequest.prototype.parent = "";
+
+ /**
+ * ListLinkedTargetsRequest requestMetadata.
+ * @member {google.cloud.contentwarehouse.v1.IRequestMetadata|null|undefined} requestMetadata
+ * @memberof google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest
+ * @instance
+ */
+ ListLinkedTargetsRequest.prototype.requestMetadata = null;
+
+ /**
+ * Creates a new ListLinkedTargetsRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest
+ * @static
+ * @param {google.cloud.contentwarehouse.v1.IListLinkedTargetsRequest=} [properties] Properties to set
+ * @returns {google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest} ListLinkedTargetsRequest instance
+ */
+ ListLinkedTargetsRequest.create = function create(properties) {
+ return new ListLinkedTargetsRequest(properties);
+ };
+
+ /**
+ * Encodes the specified ListLinkedTargetsRequest message. Does not implicitly {@link google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest
+ * @static
+ * @param {google.cloud.contentwarehouse.v1.IListLinkedTargetsRequest} message ListLinkedTargetsRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListLinkedTargetsRequest.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.parent != null && Object.hasOwnProperty.call(message, "parent"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent);
+ if (message.requestMetadata != null && Object.hasOwnProperty.call(message, "requestMetadata"))
+ $root.google.cloud.contentwarehouse.v1.RequestMetadata.encode(message.requestMetadata, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ListLinkedTargetsRequest message, length delimited. Does not implicitly {@link google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest
+ * @static
+ * @param {google.cloud.contentwarehouse.v1.IListLinkedTargetsRequest} message ListLinkedTargetsRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListLinkedTargetsRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ListLinkedTargetsRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest} ListLinkedTargetsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListLinkedTargetsRequest.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.contentwarehouse.v1.ListLinkedTargetsRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.parent = reader.string();
+ break;
+ }
+ case 2: {
+ message.requestMetadata = $root.google.cloud.contentwarehouse.v1.RequestMetadata.decode(reader, reader.uint32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ListLinkedTargetsRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest} ListLinkedTargetsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListLinkedTargetsRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ListLinkedTargetsRequest message.
+ * @function verify
+ * @memberof google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ListLinkedTargetsRequest.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.parent != null && message.hasOwnProperty("parent"))
+ if (!$util.isString(message.parent))
+ return "parent: string expected";
+ if (message.requestMetadata != null && message.hasOwnProperty("requestMetadata")) {
+ var error = $root.google.cloud.contentwarehouse.v1.RequestMetadata.verify(message.requestMetadata);
+ if (error)
+ return "requestMetadata." + error;
+ }
+ return null;
+ };
+
+ /**
+ * Creates a ListLinkedTargetsRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest} ListLinkedTargetsRequest
+ */
+ ListLinkedTargetsRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest)
+ return object;
+ var message = new $root.google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest();
+ if (object.parent != null)
+ message.parent = String(object.parent);
+ if (object.requestMetadata != null) {
+ if (typeof object.requestMetadata !== "object")
+ throw TypeError(".google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest.requestMetadata: object expected");
+ message.requestMetadata = $root.google.cloud.contentwarehouse.v1.RequestMetadata.fromObject(object.requestMetadata);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ListLinkedTargetsRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest
+ * @static
+ * @param {google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest} message ListLinkedTargetsRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ListLinkedTargetsRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.parent = "";
+ object.requestMetadata = null;
+ }
+ if (message.parent != null && message.hasOwnProperty("parent"))
+ object.parent = message.parent;
+ if (message.requestMetadata != null && message.hasOwnProperty("requestMetadata"))
+ object.requestMetadata = $root.google.cloud.contentwarehouse.v1.RequestMetadata.toObject(message.requestMetadata, options);
+ return object;
+ };
+
+ /**
+ * Converts this ListLinkedTargetsRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ListLinkedTargetsRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ListLinkedTargetsRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ListLinkedTargetsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest";
+ };
+
+ return ListLinkedTargetsRequest;
+ })();
+
+ v1.ListLinkedSourcesResponse = (function() {
+
+ /**
+ * Properties of a ListLinkedSourcesResponse.
+ * @memberof google.cloud.contentwarehouse.v1
+ * @interface IListLinkedSourcesResponse
+ * @property {Array.|null} [documentLinks] ListLinkedSourcesResponse documentLinks
+ * @property {string|null} [nextPageToken] ListLinkedSourcesResponse nextPageToken
+ */
+
+ /**
+ * Constructs a new ListLinkedSourcesResponse.
+ * @memberof google.cloud.contentwarehouse.v1
+ * @classdesc Represents a ListLinkedSourcesResponse.
+ * @implements IListLinkedSourcesResponse
+ * @constructor
+ * @param {google.cloud.contentwarehouse.v1.IListLinkedSourcesResponse=} [properties] Properties to set
+ */
+ function ListLinkedSourcesResponse(properties) {
+ this.documentLinks = [];
+ 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]];
+ }
+
+ /**
+ * ListLinkedSourcesResponse documentLinks.
+ * @member {Array.} documentLinks
+ * @memberof google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse
+ * @instance
+ */
+ ListLinkedSourcesResponse.prototype.documentLinks = $util.emptyArray;
+
+ /**
+ * ListLinkedSourcesResponse nextPageToken.
+ * @member {string} nextPageToken
+ * @memberof google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse
+ * @instance
+ */
+ ListLinkedSourcesResponse.prototype.nextPageToken = "";
+
+ /**
+ * Creates a new ListLinkedSourcesResponse instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse
+ * @static
+ * @param {google.cloud.contentwarehouse.v1.IListLinkedSourcesResponse=} [properties] Properties to set
+ * @returns {google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse} ListLinkedSourcesResponse instance
+ */
+ ListLinkedSourcesResponse.create = function create(properties) {
+ return new ListLinkedSourcesResponse(properties);
+ };
+
+ /**
+ * Encodes the specified ListLinkedSourcesResponse message. Does not implicitly {@link google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse
+ * @static
+ * @param {google.cloud.contentwarehouse.v1.IListLinkedSourcesResponse} message ListLinkedSourcesResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListLinkedSourcesResponse.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.documentLinks != null && message.documentLinks.length)
+ for (var i = 0; i < message.documentLinks.length; ++i)
+ $root.google.cloud.contentwarehouse.v1.DocumentLink.encode(message.documentLinks[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
+ if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ListLinkedSourcesResponse message, length delimited. Does not implicitly {@link google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse
+ * @static
+ * @param {google.cloud.contentwarehouse.v1.IListLinkedSourcesResponse} message ListLinkedSourcesResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListLinkedSourcesResponse.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ListLinkedSourcesResponse message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse} ListLinkedSourcesResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListLinkedSourcesResponse.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.contentwarehouse.v1.ListLinkedSourcesResponse();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ if (!(message.documentLinks && message.documentLinks.length))
+ message.documentLinks = [];
+ message.documentLinks.push($root.google.cloud.contentwarehouse.v1.DocumentLink.decode(reader, reader.uint32()));
+ break;
+ }
+ case 2: {
+ message.nextPageToken = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ListLinkedSourcesResponse message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse} ListLinkedSourcesResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListLinkedSourcesResponse.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ListLinkedSourcesResponse message.
+ * @function verify
+ * @memberof google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ListLinkedSourcesResponse.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.documentLinks != null && message.hasOwnProperty("documentLinks")) {
+ if (!Array.isArray(message.documentLinks))
+ return "documentLinks: array expected";
+ for (var i = 0; i < message.documentLinks.length; ++i) {
+ var error = $root.google.cloud.contentwarehouse.v1.DocumentLink.verify(message.documentLinks[i]);
+ if (error)
+ return "documentLinks." + error;
+ }
+ }
+ if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken"))
+ if (!$util.isString(message.nextPageToken))
+ return "nextPageToken: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a ListLinkedSourcesResponse message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse} ListLinkedSourcesResponse
+ */
+ ListLinkedSourcesResponse.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse)
+ return object;
+ var message = new $root.google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse();
+ if (object.documentLinks) {
+ if (!Array.isArray(object.documentLinks))
+ throw TypeError(".google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse.documentLinks: array expected");
+ message.documentLinks = [];
+ for (var i = 0; i < object.documentLinks.length; ++i) {
+ if (typeof object.documentLinks[i] !== "object")
+ throw TypeError(".google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse.documentLinks: object expected");
+ message.documentLinks[i] = $root.google.cloud.contentwarehouse.v1.DocumentLink.fromObject(object.documentLinks[i]);
+ }
+ }
+ if (object.nextPageToken != null)
+ message.nextPageToken = String(object.nextPageToken);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ListLinkedSourcesResponse message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse
+ * @static
+ * @param {google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse} message ListLinkedSourcesResponse
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ListLinkedSourcesResponse.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.documentLinks = [];
+ if (options.defaults)
+ object.nextPageToken = "";
+ if (message.documentLinks && message.documentLinks.length) {
+ object.documentLinks = [];
+ for (var j = 0; j < message.documentLinks.length; ++j)
+ object.documentLinks[j] = $root.google.cloud.contentwarehouse.v1.DocumentLink.toObject(message.documentLinks[j], options);
+ }
+ if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken"))
+ object.nextPageToken = message.nextPageToken;
+ return object;
+ };
+
+ /**
+ * Converts this ListLinkedSourcesResponse to JSON.
+ * @function toJSON
+ * @memberof google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ListLinkedSourcesResponse.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ListLinkedSourcesResponse
+ * @function getTypeUrl
+ * @memberof google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ListLinkedSourcesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse";
+ };
+
+ return ListLinkedSourcesResponse;
+ })();
+
+ v1.ListLinkedSourcesRequest = (function() {
+
+ /**
+ * Properties of a ListLinkedSourcesRequest.
+ * @memberof google.cloud.contentwarehouse.v1
+ * @interface IListLinkedSourcesRequest
+ * @property {string|null} [parent] ListLinkedSourcesRequest parent
+ * @property {number|null} [pageSize] ListLinkedSourcesRequest pageSize
+ * @property {string|null} [pageToken] ListLinkedSourcesRequest pageToken
+ * @property {google.cloud.contentwarehouse.v1.IRequestMetadata|null} [requestMetadata] ListLinkedSourcesRequest requestMetadata
+ */
+
+ /**
+ * Constructs a new ListLinkedSourcesRequest.
+ * @memberof google.cloud.contentwarehouse.v1
+ * @classdesc Represents a ListLinkedSourcesRequest.
+ * @implements IListLinkedSourcesRequest
+ * @constructor
+ * @param {google.cloud.contentwarehouse.v1.IListLinkedSourcesRequest=} [properties] Properties to set
+ */
+ function ListLinkedSourcesRequest(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]];
+ }
+
+ /**
+ * ListLinkedSourcesRequest parent.
+ * @member {string} parent
+ * @memberof google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest
+ * @instance
+ */
+ ListLinkedSourcesRequest.prototype.parent = "";
+
+ /**
+ * ListLinkedSourcesRequest pageSize.
+ * @member {number} pageSize
+ * @memberof google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest
+ * @instance
+ */
+ ListLinkedSourcesRequest.prototype.pageSize = 0;
+
+ /**
+ * ListLinkedSourcesRequest pageToken.
+ * @member {string} pageToken
+ * @memberof google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest
+ * @instance
+ */
+ ListLinkedSourcesRequest.prototype.pageToken = "";
+
+ /**
+ * ListLinkedSourcesRequest requestMetadata.
+ * @member {google.cloud.contentwarehouse.v1.IRequestMetadata|null|undefined} requestMetadata
+ * @memberof google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest
+ * @instance
+ */
+ ListLinkedSourcesRequest.prototype.requestMetadata = null;
+
+ /**
+ * Creates a new ListLinkedSourcesRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest
+ * @static
+ * @param {google.cloud.contentwarehouse.v1.IListLinkedSourcesRequest=} [properties] Properties to set
+ * @returns {google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest} ListLinkedSourcesRequest instance
+ */
+ ListLinkedSourcesRequest.create = function create(properties) {
+ return new ListLinkedSourcesRequest(properties);
+ };
+
+ /**
+ * Encodes the specified ListLinkedSourcesRequest message. Does not implicitly {@link google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest
+ * @static
+ * @param {google.cloud.contentwarehouse.v1.IListLinkedSourcesRequest} message ListLinkedSourcesRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListLinkedSourcesRequest.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.parent != null && Object.hasOwnProperty.call(message, "parent"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent);
+ if (message.requestMetadata != null && Object.hasOwnProperty.call(message, "requestMetadata"))
+ $root.google.cloud.contentwarehouse.v1.RequestMetadata.encode(message.requestMetadata, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
+ if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize"))
+ writer.uint32(/* id 3, wireType 0 =*/24).int32(message.pageSize);
+ if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken"))
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.pageToken);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ListLinkedSourcesRequest message, length delimited. Does not implicitly {@link google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest
+ * @static
+ * @param {google.cloud.contentwarehouse.v1.IListLinkedSourcesRequest} message ListLinkedSourcesRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListLinkedSourcesRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ListLinkedSourcesRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest} ListLinkedSourcesRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListLinkedSourcesRequest.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.contentwarehouse.v1.ListLinkedSourcesRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.parent = reader.string();
+ break;
+ }
+ case 3: {
+ message.pageSize = reader.int32();
+ break;
+ }
+ case 4: {
+ message.pageToken = reader.string();
+ break;
+ }
+ case 2: {
+ message.requestMetadata = $root.google.cloud.contentwarehouse.v1.RequestMetadata.decode(reader, reader.uint32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ListLinkedSourcesRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest} ListLinkedSourcesRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListLinkedSourcesRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ListLinkedSourcesRequest message.
+ * @function verify
+ * @memberof google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ListLinkedSourcesRequest.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.parent != null && message.hasOwnProperty("parent"))
+ if (!$util.isString(message.parent))
+ return "parent: string expected";
+ if (message.pageSize != null && message.hasOwnProperty("pageSize"))
+ if (!$util.isInteger(message.pageSize))
+ return "pageSize: integer expected";
+ if (message.pageToken != null && message.hasOwnProperty("pageToken"))
+ if (!$util.isString(message.pageToken))
+ return "pageToken: string expected";
+ if (message.requestMetadata != null && message.hasOwnProperty("requestMetadata")) {
+ var error = $root.google.cloud.contentwarehouse.v1.RequestMetadata.verify(message.requestMetadata);
+ if (error)
+ return "requestMetadata." + error;
+ }
+ return null;
+ };
+
+ /**
+ * Creates a ListLinkedSourcesRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest} ListLinkedSourcesRequest
+ */
+ ListLinkedSourcesRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest)
+ return object;
+ var message = new $root.google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest();
+ if (object.parent != null)
+ message.parent = String(object.parent);
+ if (object.pageSize != null)
+ message.pageSize = object.pageSize | 0;
+ if (object.pageToken != null)
+ message.pageToken = String(object.pageToken);
+ if (object.requestMetadata != null) {
+ if (typeof object.requestMetadata !== "object")
+ throw TypeError(".google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest.requestMetadata: object expected");
+ message.requestMetadata = $root.google.cloud.contentwarehouse.v1.RequestMetadata.fromObject(object.requestMetadata);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ListLinkedSourcesRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest
+ * @static
+ * @param {google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest} message ListLinkedSourcesRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ListLinkedSourcesRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.parent = "";
+ object.requestMetadata = null;
+ object.pageSize = 0;
+ object.pageToken = "";
+ }
+ if (message.parent != null && message.hasOwnProperty("parent"))
+ object.parent = message.parent;
+ if (message.requestMetadata != null && message.hasOwnProperty("requestMetadata"))
+ object.requestMetadata = $root.google.cloud.contentwarehouse.v1.RequestMetadata.toObject(message.requestMetadata, options);
+ if (message.pageSize != null && message.hasOwnProperty("pageSize"))
+ object.pageSize = message.pageSize;
+ if (message.pageToken != null && message.hasOwnProperty("pageToken"))
+ object.pageToken = message.pageToken;
+ return object;
+ };
+
+ /**
+ * Converts this ListLinkedSourcesRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ListLinkedSourcesRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ListLinkedSourcesRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ListLinkedSourcesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest";
+ };
+
+ return ListLinkedSourcesRequest;
+ })();
+
+ v1.DocumentLink = (function() {
+
+ /**
+ * Properties of a DocumentLink.
+ * @memberof google.cloud.contentwarehouse.v1
+ * @interface IDocumentLink
+ * @property {string|null} [name] DocumentLink name
+ * @property {google.cloud.contentwarehouse.v1.IDocumentReference|null} [sourceDocumentReference] DocumentLink sourceDocumentReference
+ * @property {google.cloud.contentwarehouse.v1.IDocumentReference|null} [targetDocumentReference] DocumentLink targetDocumentReference
+ * @property {string|null} [description] DocumentLink description
+ * @property {google.protobuf.ITimestamp|null} [updateTime] DocumentLink updateTime
+ * @property {google.protobuf.ITimestamp|null} [createTime] DocumentLink createTime
+ * @property {google.cloud.contentwarehouse.v1.DocumentLink.State|null} [state] DocumentLink state
+ */
+
+ /**
+ * Constructs a new DocumentLink.
+ * @memberof google.cloud.contentwarehouse.v1
+ * @classdesc Represents a DocumentLink.
+ * @implements IDocumentLink
+ * @constructor
+ * @param {google.cloud.contentwarehouse.v1.IDocumentLink=} [properties] Properties to set
+ */
+ function DocumentLink(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]];
+ }
+
+ /**
+ * DocumentLink name.
+ * @member {string} name
+ * @memberof google.cloud.contentwarehouse.v1.DocumentLink
+ * @instance
+ */
+ DocumentLink.prototype.name = "";
+
+ /**
+ * DocumentLink sourceDocumentReference.
+ * @member {google.cloud.contentwarehouse.v1.IDocumentReference|null|undefined} sourceDocumentReference
+ * @memberof google.cloud.contentwarehouse.v1.DocumentLink
+ * @instance
+ */
+ DocumentLink.prototype.sourceDocumentReference = null;
+
+ /**
+ * DocumentLink targetDocumentReference.
+ * @member {google.cloud.contentwarehouse.v1.IDocumentReference|null|undefined} targetDocumentReference
+ * @memberof google.cloud.contentwarehouse.v1.DocumentLink
+ * @instance
+ */
+ DocumentLink.prototype.targetDocumentReference = null;
+
+ /**
+ * DocumentLink description.
+ * @member {string} description
+ * @memberof google.cloud.contentwarehouse.v1.DocumentLink
+ * @instance
+ */
+ DocumentLink.prototype.description = "";
+
+ /**
+ * DocumentLink updateTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} updateTime
+ * @memberof google.cloud.contentwarehouse.v1.DocumentLink
+ * @instance
+ */
+ DocumentLink.prototype.updateTime = null;
+
+ /**
+ * DocumentLink createTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} createTime
+ * @memberof google.cloud.contentwarehouse.v1.DocumentLink
+ * @instance
+ */
+ DocumentLink.prototype.createTime = null;
+
+ /**
+ * DocumentLink state.
+ * @member {google.cloud.contentwarehouse.v1.DocumentLink.State} state
+ * @memberof google.cloud.contentwarehouse.v1.DocumentLink
+ * @instance
+ */
+ DocumentLink.prototype.state = 0;
+
+ /**
+ * Creates a new DocumentLink instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.contentwarehouse.v1.DocumentLink
+ * @static
+ * @param {google.cloud.contentwarehouse.v1.IDocumentLink=} [properties] Properties to set
+ * @returns {google.cloud.contentwarehouse.v1.DocumentLink} DocumentLink instance
+ */
+ DocumentLink.create = function create(properties) {
+ return new DocumentLink(properties);
+ };
+
+ /**
+ * Encodes the specified DocumentLink message. Does not implicitly {@link google.cloud.contentwarehouse.v1.DocumentLink.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.contentwarehouse.v1.DocumentLink
+ * @static
+ * @param {google.cloud.contentwarehouse.v1.IDocumentLink} message DocumentLink message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ DocumentLink.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.name != null && Object.hasOwnProperty.call(message, "name"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
+ if (message.sourceDocumentReference != null && Object.hasOwnProperty.call(message, "sourceDocumentReference"))
+ $root.google.cloud.contentwarehouse.v1.DocumentReference.encode(message.sourceDocumentReference, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
+ if (message.targetDocumentReference != null && Object.hasOwnProperty.call(message, "targetDocumentReference"))
+ $root.google.cloud.contentwarehouse.v1.DocumentReference.encode(message.targetDocumentReference, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
+ if (message.description != null && Object.hasOwnProperty.call(message, "description"))
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.description);
+ if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime"))
+ $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
+ if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime"))
+ $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
+ if (message.state != null && Object.hasOwnProperty.call(message, "state"))
+ writer.uint32(/* id 7, wireType 0 =*/56).int32(message.state);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified DocumentLink message, length delimited. Does not implicitly {@link google.cloud.contentwarehouse.v1.DocumentLink.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.contentwarehouse.v1.DocumentLink
+ * @static
+ * @param {google.cloud.contentwarehouse.v1.IDocumentLink} message DocumentLink message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ DocumentLink.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a DocumentLink message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.contentwarehouse.v1.DocumentLink
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.contentwarehouse.v1.DocumentLink} DocumentLink
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ DocumentLink.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.contentwarehouse.v1.DocumentLink();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.name = reader.string();
+ break;
+ }
+ case 2: {
+ message.sourceDocumentReference = $root.google.cloud.contentwarehouse.v1.DocumentReference.decode(reader, reader.uint32());
+ break;
+ }
+ case 3: {
+ message.targetDocumentReference = $root.google.cloud.contentwarehouse.v1.DocumentReference.decode(reader, reader.uint32());
+ break;
+ }
+ case 4: {
+ message.description = reader.string();
+ break;
+ }
+ case 5: {
+ message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
+ break;
+ }
+ case 6: {
+ message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
+ break;
+ }
+ case 7: {
+ message.state = reader.int32();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a DocumentLink message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.contentwarehouse.v1.DocumentLink
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.contentwarehouse.v1.DocumentLink} DocumentLink
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ DocumentLink.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a DocumentLink message.
+ * @function verify
+ * @memberof google.cloud.contentwarehouse.v1.DocumentLink
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ DocumentLink.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.name != null && message.hasOwnProperty("name"))
+ if (!$util.isString(message.name))
+ return "name: string expected";
+ if (message.sourceDocumentReference != null && message.hasOwnProperty("sourceDocumentReference")) {
+ var error = $root.google.cloud.contentwarehouse.v1.DocumentReference.verify(message.sourceDocumentReference);
+ if (error)
+ return "sourceDocumentReference." + error;
+ }
+ if (message.targetDocumentReference != null && message.hasOwnProperty("targetDocumentReference")) {
+ var error = $root.google.cloud.contentwarehouse.v1.DocumentReference.verify(message.targetDocumentReference);
+ if (error)
+ return "targetDocumentReference." + error;
+ }
+ if (message.description != null && message.hasOwnProperty("description"))
+ if (!$util.isString(message.description))
+ return "description: string expected";
+ if (message.updateTime != null && message.hasOwnProperty("updateTime")) {
+ var error = $root.google.protobuf.Timestamp.verify(message.updateTime);
+ if (error)
+ return "updateTime." + error;
+ }
+ if (message.createTime != null && message.hasOwnProperty("createTime")) {
+ var error = $root.google.protobuf.Timestamp.verify(message.createTime);
+ if (error)
+ return "createTime." + error;
+ }
+ if (message.state != null && message.hasOwnProperty("state"))
+ switch (message.state) {
+ default:
+ return "state: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ break;
+ }
+ return null;
+ };
+
+ /**
+ * Creates a DocumentLink message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.contentwarehouse.v1.DocumentLink
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.contentwarehouse.v1.DocumentLink} DocumentLink
+ */
+ DocumentLink.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.contentwarehouse.v1.DocumentLink)
+ return object;
+ var message = new $root.google.cloud.contentwarehouse.v1.DocumentLink();
+ if (object.name != null)
+ message.name = String(object.name);
+ if (object.sourceDocumentReference != null) {
+ if (typeof object.sourceDocumentReference !== "object")
+ throw TypeError(".google.cloud.contentwarehouse.v1.DocumentLink.sourceDocumentReference: object expected");
+ message.sourceDocumentReference = $root.google.cloud.contentwarehouse.v1.DocumentReference.fromObject(object.sourceDocumentReference);
+ }
+ if (object.targetDocumentReference != null) {
+ if (typeof object.targetDocumentReference !== "object")
+ throw TypeError(".google.cloud.contentwarehouse.v1.DocumentLink.targetDocumentReference: object expected");
+ message.targetDocumentReference = $root.google.cloud.contentwarehouse.v1.DocumentReference.fromObject(object.targetDocumentReference);
+ }
+ if (object.description != null)
+ message.description = String(object.description);
+ if (object.updateTime != null) {
+ if (typeof object.updateTime !== "object")
+ throw TypeError(".google.cloud.contentwarehouse.v1.DocumentLink.updateTime: object expected");
+ message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime);
+ }
+ if (object.createTime != null) {
+ if (typeof object.createTime !== "object")
+ throw TypeError(".google.cloud.contentwarehouse.v1.DocumentLink.createTime: object expected");
+ message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime);
+ }
+ switch (object.state) {
+ case "STATE_UNSPECIFIED":
+ case 0:
+ message.state = 0;
+ break;
+ case "ACTIVE":
+ case 1:
+ message.state = 1;
+ break;
+ case "SOFT_DELETED":
+ case 2:
+ message.state = 2;
+ break;
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a DocumentLink message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.contentwarehouse.v1.DocumentLink
+ * @static
+ * @param {google.cloud.contentwarehouse.v1.DocumentLink} message DocumentLink
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ DocumentLink.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.name = "";
+ object.sourceDocumentReference = null;
+ object.targetDocumentReference = null;
+ object.description = "";
+ object.updateTime = null;
+ object.createTime = null;
+ object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0;
+ }
+ if (message.name != null && message.hasOwnProperty("name"))
+ object.name = message.name;
+ if (message.sourceDocumentReference != null && message.hasOwnProperty("sourceDocumentReference"))
+ object.sourceDocumentReference = $root.google.cloud.contentwarehouse.v1.DocumentReference.toObject(message.sourceDocumentReference, options);
+ if (message.targetDocumentReference != null && message.hasOwnProperty("targetDocumentReference"))
+ object.targetDocumentReference = $root.google.cloud.contentwarehouse.v1.DocumentReference.toObject(message.targetDocumentReference, options);
+ if (message.description != null && message.hasOwnProperty("description"))
+ object.description = message.description;
+ if (message.updateTime != null && message.hasOwnProperty("updateTime"))
+ object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options);
+ if (message.createTime != null && message.hasOwnProperty("createTime"))
+ object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options);
+ if (message.state != null && message.hasOwnProperty("state"))
+ object.state = options.enums === String ? $root.google.cloud.contentwarehouse.v1.DocumentLink.State[message.state] : message.state;
+ return object;
+ };
+
+ /**
+ * Converts this DocumentLink to JSON.
+ * @function toJSON
+ * @memberof google.cloud.contentwarehouse.v1.DocumentLink
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ DocumentLink.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for DocumentLink
+ * @function getTypeUrl
+ * @memberof google.cloud.contentwarehouse.v1.DocumentLink
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ DocumentLink.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.contentwarehouse.v1.DocumentLink";
+ };
+
+ /**
+ * State enum.
+ * @name google.cloud.contentwarehouse.v1.DocumentLink.State
+ * @enum {number}
+ * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value
+ * @property {number} ACTIVE=1 ACTIVE value
+ * @property {number} SOFT_DELETED=2 SOFT_DELETED value
+ */
+ DocumentLink.State = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "STATE_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "ACTIVE"] = 1;
+ values[valuesById[2] = "SOFT_DELETED"] = 2;
+ return values;
+ })();
+
+ return DocumentLink;
+ })();
+
+ v1.CreateDocumentLinkRequest = (function() {
+
+ /**
+ * Properties of a CreateDocumentLinkRequest.
+ * @memberof google.cloud.contentwarehouse.v1
+ * @interface ICreateDocumentLinkRequest
+ * @property {string|null} [parent] CreateDocumentLinkRequest parent
+ * @property {google.cloud.contentwarehouse.v1.IDocumentLink|null} [documentLink] CreateDocumentLinkRequest documentLink
+ * @property {google.cloud.contentwarehouse.v1.IRequestMetadata|null} [requestMetadata] CreateDocumentLinkRequest requestMetadata
+ */
+
+ /**
+ * Constructs a new CreateDocumentLinkRequest.
+ * @memberof google.cloud.contentwarehouse.v1
+ * @classdesc Represents a CreateDocumentLinkRequest.
+ * @implements ICreateDocumentLinkRequest
+ * @constructor
+ * @param {google.cloud.contentwarehouse.v1.ICreateDocumentLinkRequest=} [properties] Properties to set
+ */
+ function CreateDocumentLinkRequest(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]];
+ }
+
+ /**
+ * CreateDocumentLinkRequest parent.
+ * @member {string} parent
+ * @memberof google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest
+ * @instance
+ */
+ CreateDocumentLinkRequest.prototype.parent = "";
+
+ /**
+ * CreateDocumentLinkRequest documentLink.
+ * @member {google.cloud.contentwarehouse.v1.IDocumentLink|null|undefined} documentLink
+ * @memberof google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest
+ * @instance
+ */
+ CreateDocumentLinkRequest.prototype.documentLink = null;
+
+ /**
+ * CreateDocumentLinkRequest requestMetadata.
+ * @member {google.cloud.contentwarehouse.v1.IRequestMetadata|null|undefined} requestMetadata
+ * @memberof google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest
+ * @instance
+ */
+ CreateDocumentLinkRequest.prototype.requestMetadata = null;
+
+ /**
+ * Creates a new CreateDocumentLinkRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest
+ * @static
+ * @param {google.cloud.contentwarehouse.v1.ICreateDocumentLinkRequest=} [properties] Properties to set
+ * @returns {google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest} CreateDocumentLinkRequest instance
+ */
+ CreateDocumentLinkRequest.create = function create(properties) {
+ return new CreateDocumentLinkRequest(properties);
+ };
+
+ /**
+ * Encodes the specified CreateDocumentLinkRequest message. Does not implicitly {@link google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest
+ * @static
+ * @param {google.cloud.contentwarehouse.v1.ICreateDocumentLinkRequest} message CreateDocumentLinkRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ CreateDocumentLinkRequest.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.parent != null && Object.hasOwnProperty.call(message, "parent"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent);
+ if (message.documentLink != null && Object.hasOwnProperty.call(message, "documentLink"))
+ $root.google.cloud.contentwarehouse.v1.DocumentLink.encode(message.documentLink, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
+ if (message.requestMetadata != null && Object.hasOwnProperty.call(message, "requestMetadata"))
+ $root.google.cloud.contentwarehouse.v1.RequestMetadata.encode(message.requestMetadata, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified CreateDocumentLinkRequest message, length delimited. Does not implicitly {@link google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest
+ * @static
+ * @param {google.cloud.contentwarehouse.v1.ICreateDocumentLinkRequest} message CreateDocumentLinkRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ CreateDocumentLinkRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a CreateDocumentLinkRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest} CreateDocumentLinkRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ CreateDocumentLinkRequest.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.contentwarehouse.v1.CreateDocumentLinkRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.parent = reader.string();
+ break;
+ }
+ case 2: {
+ message.documentLink = $root.google.cloud.contentwarehouse.v1.DocumentLink.decode(reader, reader.uint32());
+ break;
+ }
+ case 3: {
+ message.requestMetadata = $root.google.cloud.contentwarehouse.v1.RequestMetadata.decode(reader, reader.uint32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a CreateDocumentLinkRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest} CreateDocumentLinkRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ CreateDocumentLinkRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a CreateDocumentLinkRequest message.
+ * @function verify
+ * @memberof google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ CreateDocumentLinkRequest.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.parent != null && message.hasOwnProperty("parent"))
+ if (!$util.isString(message.parent))
+ return "parent: string expected";
+ if (message.documentLink != null && message.hasOwnProperty("documentLink")) {
+ var error = $root.google.cloud.contentwarehouse.v1.DocumentLink.verify(message.documentLink);
+ if (error)
+ return "documentLink." + error;
+ }
+ if (message.requestMetadata != null && message.hasOwnProperty("requestMetadata")) {
+ var error = $root.google.cloud.contentwarehouse.v1.RequestMetadata.verify(message.requestMetadata);
+ if (error)
+ return "requestMetadata." + error;
+ }
+ return null;
+ };
+
+ /**
+ * Creates a CreateDocumentLinkRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest} CreateDocumentLinkRequest
+ */
+ CreateDocumentLinkRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest)
+ return object;
+ var message = new $root.google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest();
+ if (object.parent != null)
+ message.parent = String(object.parent);
+ if (object.documentLink != null) {
+ if (typeof object.documentLink !== "object")
+ throw TypeError(".google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest.documentLink: object expected");
+ message.documentLink = $root.google.cloud.contentwarehouse.v1.DocumentLink.fromObject(object.documentLink);
+ }
+ if (object.requestMetadata != null) {
+ if (typeof object.requestMetadata !== "object")
+ throw TypeError(".google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest.requestMetadata: object expected");
+ message.requestMetadata = $root.google.cloud.contentwarehouse.v1.RequestMetadata.fromObject(object.requestMetadata);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a CreateDocumentLinkRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest
+ * @static
+ * @param {google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest} message CreateDocumentLinkRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ CreateDocumentLinkRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.parent = "";
+ object.documentLink = null;
+ object.requestMetadata = null;
+ }
+ if (message.parent != null && message.hasOwnProperty("parent"))
+ object.parent = message.parent;
+ if (message.documentLink != null && message.hasOwnProperty("documentLink"))
+ object.documentLink = $root.google.cloud.contentwarehouse.v1.DocumentLink.toObject(message.documentLink, options);
+ if (message.requestMetadata != null && message.hasOwnProperty("requestMetadata"))
+ object.requestMetadata = $root.google.cloud.contentwarehouse.v1.RequestMetadata.toObject(message.requestMetadata, options);
+ return object;
+ };
+
+ /**
+ * Converts this CreateDocumentLinkRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ CreateDocumentLinkRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for CreateDocumentLinkRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ CreateDocumentLinkRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest";
+ };
+
+ return CreateDocumentLinkRequest;
+ })();
+
+ v1.DeleteDocumentLinkRequest = (function() {
+
+ /**
+ * Properties of a DeleteDocumentLinkRequest.
+ * @memberof google.cloud.contentwarehouse.v1
+ * @interface IDeleteDocumentLinkRequest
+ * @property {string|null} [name] DeleteDocumentLinkRequest name
+ * @property {google.cloud.contentwarehouse.v1.IRequestMetadata|null} [requestMetadata] DeleteDocumentLinkRequest requestMetadata
+ */
+
+ /**
+ * Constructs a new DeleteDocumentLinkRequest.
+ * @memberof google.cloud.contentwarehouse.v1
+ * @classdesc Represents a DeleteDocumentLinkRequest.
+ * @implements IDeleteDocumentLinkRequest
+ * @constructor
+ * @param {google.cloud.contentwarehouse.v1.IDeleteDocumentLinkRequest=} [properties] Properties to set
+ */
+ function DeleteDocumentLinkRequest(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]];
+ }
+
+ /**
+ * DeleteDocumentLinkRequest name.
+ * @member {string} name
+ * @memberof google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest
+ * @instance
+ */
+ DeleteDocumentLinkRequest.prototype.name = "";
+
+ /**
+ * DeleteDocumentLinkRequest requestMetadata.
+ * @member {google.cloud.contentwarehouse.v1.IRequestMetadata|null|undefined} requestMetadata
+ * @memberof google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest
+ * @instance
+ */
+ DeleteDocumentLinkRequest.prototype.requestMetadata = null;
+
+ /**
+ * Creates a new DeleteDocumentLinkRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest
+ * @static
+ * @param {google.cloud.contentwarehouse.v1.IDeleteDocumentLinkRequest=} [properties] Properties to set
+ * @returns {google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest} DeleteDocumentLinkRequest instance
+ */
+ DeleteDocumentLinkRequest.create = function create(properties) {
+ return new DeleteDocumentLinkRequest(properties);
+ };
+
+ /**
+ * Encodes the specified DeleteDocumentLinkRequest message. Does not implicitly {@link google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest
+ * @static
+ * @param {google.cloud.contentwarehouse.v1.IDeleteDocumentLinkRequest} message DeleteDocumentLinkRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ DeleteDocumentLinkRequest.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.name != null && Object.hasOwnProperty.call(message, "name"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
+ if (message.requestMetadata != null && Object.hasOwnProperty.call(message, "requestMetadata"))
+ $root.google.cloud.contentwarehouse.v1.RequestMetadata.encode(message.requestMetadata, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified DeleteDocumentLinkRequest message, length delimited. Does not implicitly {@link google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest
+ * @static
+ * @param {google.cloud.contentwarehouse.v1.IDeleteDocumentLinkRequest} message DeleteDocumentLinkRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ DeleteDocumentLinkRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a DeleteDocumentLinkRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest} DeleteDocumentLinkRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ DeleteDocumentLinkRequest.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.contentwarehouse.v1.DeleteDocumentLinkRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.name = reader.string();
+ break;
+ }
+ case 2: {
+ message.requestMetadata = $root.google.cloud.contentwarehouse.v1.RequestMetadata.decode(reader, reader.uint32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a DeleteDocumentLinkRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest} DeleteDocumentLinkRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ DeleteDocumentLinkRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a DeleteDocumentLinkRequest message.
+ * @function verify
+ * @memberof google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ DeleteDocumentLinkRequest.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.name != null && message.hasOwnProperty("name"))
+ if (!$util.isString(message.name))
+ return "name: string expected";
+ if (message.requestMetadata != null && message.hasOwnProperty("requestMetadata")) {
+ var error = $root.google.cloud.contentwarehouse.v1.RequestMetadata.verify(message.requestMetadata);
+ if (error)
+ return "requestMetadata." + error;
+ }
+ return null;
+ };
+
+ /**
+ * Creates a DeleteDocumentLinkRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest} DeleteDocumentLinkRequest
+ */
+ DeleteDocumentLinkRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest)
+ return object;
+ var message = new $root.google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest();
+ if (object.name != null)
+ message.name = String(object.name);
+ if (object.requestMetadata != null) {
+ if (typeof object.requestMetadata !== "object")
+ throw TypeError(".google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest.requestMetadata: object expected");
+ message.requestMetadata = $root.google.cloud.contentwarehouse.v1.RequestMetadata.fromObject(object.requestMetadata);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a DeleteDocumentLinkRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest
+ * @static
+ * @param {google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest} message DeleteDocumentLinkRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ DeleteDocumentLinkRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.name = "";
+ object.requestMetadata = null;
+ }
+ if (message.name != null && message.hasOwnProperty("name"))
+ object.name = message.name;
+ if (message.requestMetadata != null && message.hasOwnProperty("requestMetadata"))
+ object.requestMetadata = $root.google.cloud.contentwarehouse.v1.RequestMetadata.toObject(message.requestMetadata, options);
+ return object;
+ };
+
+ /**
+ * Converts this DeleteDocumentLinkRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ DeleteDocumentLinkRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for DeleteDocumentLinkRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ DeleteDocumentLinkRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest";
+ };
+
+ return DeleteDocumentLinkRequest;
+ })();
+
+ v1.DocumentSchema = (function() {
+
+ /**
+ * Properties of a DocumentSchema.
+ * @memberof google.cloud.contentwarehouse.v1
+ * @interface IDocumentSchema
+ * @property {string|null} [name] DocumentSchema name
+ * @property {string|null} [displayName] DocumentSchema displayName
+ * @property {Array.|null} [propertyDefinitions] DocumentSchema propertyDefinitions
+ * @property {boolean|null} [documentIsFolder] DocumentSchema documentIsFolder
+ * @property {google.protobuf.ITimestamp|null} [updateTime] DocumentSchema updateTime
+ * @property {google.protobuf.ITimestamp|null} [createTime] DocumentSchema createTime
+ * @property {string|null} [description] DocumentSchema description
+ */
+
+ /**
+ * Constructs a new DocumentSchema.
+ * @memberof google.cloud.contentwarehouse.v1
+ * @classdesc Represents a DocumentSchema.
+ * @implements IDocumentSchema
+ * @constructor
+ * @param {google.cloud.contentwarehouse.v1.IDocumentSchema=} [properties] Properties to set
+ */
+ function DocumentSchema(properties) {
+ this.propertyDefinitions = [];
+ 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]];
+ }
+
+ /**
+ * DocumentSchema name.
+ * @member {string} name
+ * @memberof google.cloud.contentwarehouse.v1.DocumentSchema
+ * @instance
+ */
+ DocumentSchema.prototype.name = "";
+
+ /**
+ * DocumentSchema displayName.
+ * @member {string} displayName
+ * @memberof google.cloud.contentwarehouse.v1.DocumentSchema
+ * @instance
+ */
+ DocumentSchema.prototype.displayName = "";
+
+ /**
+ * DocumentSchema propertyDefinitions.
+ * @member {Array.} propertyDefinitions
+ * @memberof google.cloud.contentwarehouse.v1.DocumentSchema
+ * @instance
+ */
+ DocumentSchema.prototype.propertyDefinitions = $util.emptyArray;
+
+ /**
+ * DocumentSchema documentIsFolder.
+ * @member {boolean} documentIsFolder
+ * @memberof google.cloud.contentwarehouse.v1.DocumentSchema
+ * @instance
+ */
+ DocumentSchema.prototype.documentIsFolder = false;
+
+ /**
+ * DocumentSchema updateTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} updateTime
+ * @memberof google.cloud.contentwarehouse.v1.DocumentSchema
+ * @instance
+ */
+ DocumentSchema.prototype.updateTime = null;
+
+ /**
+ * DocumentSchema createTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} createTime
+ * @memberof google.cloud.contentwarehouse.v1.DocumentSchema
+ * @instance
+ */
+ DocumentSchema.prototype.createTime = null;
+
+ /**
+ * DocumentSchema description.
+ * @member {string} description
+ * @memberof google.cloud.contentwarehouse.v1.DocumentSchema
+ * @instance
+ */
+ DocumentSchema.prototype.description = "";
+
+ /**
+ * Creates a new DocumentSchema instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.contentwarehouse.v1.DocumentSchema
+ * @static
+ * @param {google.cloud.contentwarehouse.v1.IDocumentSchema=} [properties] Properties to set
+ * @returns {google.cloud.contentwarehouse.v1.DocumentSchema} DocumentSchema instance
+ */
+ DocumentSchema.create = function create(properties) {
+ return new DocumentSchema(properties);
+ };
+
+ /**
+ * Encodes the specified DocumentSchema message. Does not implicitly {@link google.cloud.contentwarehouse.v1.DocumentSchema.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.contentwarehouse.v1.DocumentSchema
+ * @static
+ * @param {google.cloud.contentwarehouse.v1.IDocumentSchema} message DocumentSchema message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ DocumentSchema.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.name != null && Object.hasOwnProperty.call(message, "name"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
+ if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName);
+ if (message.propertyDefinitions != null && message.propertyDefinitions.length)
+ for (var i = 0; i < message.propertyDefinitions.length; ++i)
+ $root.google.cloud.contentwarehouse.v1.PropertyDefinition.encode(message.propertyDefinitions[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
+ if (message.documentIsFolder != null && Object.hasOwnProperty.call(message, "documentIsFolder"))
+ writer.uint32(/* id 4, wireType 0 =*/32).bool(message.documentIsFolder);
+ if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime"))
+ $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
+ if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime"))
+ $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
+ if (message.description != null && Object.hasOwnProperty.call(message, "description"))
+ writer.uint32(/* id 7, wireType 2 =*/58).string(message.description);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified DocumentSchema message, length delimited. Does not implicitly {@link google.cloud.contentwarehouse.v1.DocumentSchema.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.contentwarehouse.v1.DocumentSchema
+ * @static
+ * @param {google.cloud.contentwarehouse.v1.IDocumentSchema} message DocumentSchema message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ DocumentSchema.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a DocumentSchema message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.contentwarehouse.v1.DocumentSchema
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.contentwarehouse.v1.DocumentSchema} DocumentSchema
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ DocumentSchema.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.contentwarehouse.v1.DocumentSchema();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.name = reader.string();
+ break;
+ }
+ case 2: {
+ message.displayName = reader.string();
+ break;
+ }
+ case 3: {
+ if (!(message.propertyDefinitions && message.propertyDefinitions.length))
+ message.propertyDefinitions = [];
+ message.propertyDefinitions.push($root.google.cloud.contentwarehouse.v1.PropertyDefinition.decode(reader, reader.uint32()));
+ break;
+ }
+ case 4: {
+ message.documentIsFolder = reader.bool();
+ break;
+ }
+ case 5: {
+ message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
+ break;
+ }
+ case 6: {
+ message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
+ break;
+ }
+ case 7: {
+ message.description = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a DocumentSchema message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.contentwarehouse.v1.DocumentSchema
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.contentwarehouse.v1.DocumentSchema} DocumentSchema
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ DocumentSchema.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a DocumentSchema message.
+ * @function verify
+ * @memberof google.cloud.contentwarehouse.v1.DocumentSchema
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ DocumentSchema.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.name != null && message.hasOwnProperty("name"))
+ if (!$util.isString(message.name))
+ return "name: string expected";
+ if (message.displayName != null && message.hasOwnProperty("displayName"))
+ if (!$util.isString(message.displayName))
+ return "displayName: string expected";
+ if (message.propertyDefinitions != null && message.hasOwnProperty("propertyDefinitions")) {
+ if (!Array.isArray(message.propertyDefinitions))
+ return "propertyDefinitions: array expected";
+ for (var i = 0; i < message.propertyDefinitions.length; ++i) {
+ var error = $root.google.cloud.contentwarehouse.v1.PropertyDefinition.verify(message.propertyDefinitions[i]);
+ if (error)
+ return "propertyDefinitions." + error;
+ }
+ }
+ if (message.documentIsFolder != null && message.hasOwnProperty("documentIsFolder"))
+ if (typeof message.documentIsFolder !== "boolean")
+ return "documentIsFolder: boolean expected";
+ if (message.updateTime != null && message.hasOwnProperty("updateTime")) {
+ var error = $root.google.protobuf.Timestamp.verify(message.updateTime);
+ if (error)
+ return "updateTime." + error;
+ }
+ if (message.createTime != null && message.hasOwnProperty("createTime")) {
+ var error = $root.google.protobuf.Timestamp.verify(message.createTime);
+ if (error)
+ return "createTime." + error;
+ }
+ if (message.description != null && message.hasOwnProperty("description"))
+ if (!$util.isString(message.description))
+ return "description: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a DocumentSchema message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.contentwarehouse.v1.DocumentSchema
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.contentwarehouse.v1.DocumentSchema} DocumentSchema
+ */
+ DocumentSchema.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.contentwarehouse.v1.DocumentSchema)
+ return object;
+ var message = new $root.google.cloud.contentwarehouse.v1.DocumentSchema();
+ if (object.name != null)
+ message.name = String(object.name);
+ if (object.displayName != null)
+ message.displayName = String(object.displayName);
+ if (object.propertyDefinitions) {
+ if (!Array.isArray(object.propertyDefinitions))
+ throw TypeError(".google.cloud.contentwarehouse.v1.DocumentSchema.propertyDefinitions: array expected");
+ message.propertyDefinitions = [];
+ for (var i = 0; i < object.propertyDefinitions.length; ++i) {
+ if (typeof object.propertyDefinitions[i] !== "object")
+ throw TypeError(".google.cloud.contentwarehouse.v1.DocumentSchema.propertyDefinitions: object expected");
+ message.propertyDefinitions[i] = $root.google.cloud.contentwarehouse.v1.PropertyDefinition.fromObject(object.propertyDefinitions[i]);
+ }
+ }
+ if (object.documentIsFolder != null)
+ message.documentIsFolder = Boolean(object.documentIsFolder);
+ if (object.updateTime != null) {
+ if (typeof object.updateTime !== "object")
+ throw TypeError(".google.cloud.contentwarehouse.v1.DocumentSchema.updateTime: object expected");
+ message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime);
+ }
+ if (object.createTime != null) {
+ if (typeof object.createTime !== "object")
+ throw TypeError(".google.cloud.contentwarehouse.v1.DocumentSchema.createTime: object expected");
+ message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime);
+ }
+ if (object.description != null)
+ message.description = String(object.description);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a DocumentSchema message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.contentwarehouse.v1.DocumentSchema
+ * @static
+ * @param {google.cloud.contentwarehouse.v1.DocumentSchema} message DocumentSchema
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ DocumentSchema.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.propertyDefinitions = [];
+ if (options.defaults) {
+ object.name = "";
+ object.displayName = "";
+ object.documentIsFolder = false;
+ object.updateTime = null;
+ object.createTime = null;
+ object.description = "";
+ }
+ if (message.name != null && message.hasOwnProperty("name"))
+ object.name = message.name;
+ if (message.displayName != null && message.hasOwnProperty("displayName"))
+ object.displayName = message.displayName;
+ if (message.propertyDefinitions && message.propertyDefinitions.length) {
+ object.propertyDefinitions = [];
+ for (var j = 0; j < message.propertyDefinitions.length; ++j)
+ object.propertyDefinitions[j] = $root.google.cloud.contentwarehouse.v1.PropertyDefinition.toObject(message.propertyDefinitions[j], options);
+ }
+ if (message.documentIsFolder != null && message.hasOwnProperty("documentIsFolder"))
+ object.documentIsFolder = message.documentIsFolder;
+ if (message.updateTime != null && message.hasOwnProperty("updateTime"))
+ object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options);
+ if (message.createTime != null && message.hasOwnProperty("createTime"))
+ object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options);
+ if (message.description != null && message.hasOwnProperty("description"))
+ object.description = message.description;
+ return object;
+ };
+
+ /**
+ * Converts this DocumentSchema to JSON.
+ * @function toJSON
+ * @memberof google.cloud.contentwarehouse.v1.DocumentSchema
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ DocumentSchema.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for DocumentSchema
+ * @function getTypeUrl
+ * @memberof google.cloud.contentwarehouse.v1.DocumentSchema
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ DocumentSchema.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.contentwarehouse.v1.DocumentSchema";
+ };
+
+ return DocumentSchema;
+ })();
+
+ v1.PropertyDefinition = (function() {
+
+ /**
+ * Properties of a PropertyDefinition.
+ * @memberof google.cloud.contentwarehouse.v1
+ * @interface IPropertyDefinition
+ * @property {string|null} [name] PropertyDefinition name
+ * @property {string|null} [displayName] PropertyDefinition displayName
+ * @property {boolean|null} [isRepeatable] PropertyDefinition isRepeatable
+ * @property {boolean|null} [isFilterable] PropertyDefinition isFilterable
+ * @property {boolean|null} [isSearchable] PropertyDefinition isSearchable
+ * @property {boolean|null} [isMetadata] PropertyDefinition isMetadata
+ * @property {boolean|null} [isRequired] PropertyDefinition isRequired
+ * @property {google.cloud.contentwarehouse.v1.IIntegerTypeOptions|null} [integerTypeOptions] PropertyDefinition integerTypeOptions
+ * @property {google.cloud.contentwarehouse.v1.IFloatTypeOptions|null} [floatTypeOptions] PropertyDefinition floatTypeOptions
+ * @property {google.cloud.contentwarehouse.v1.ITextTypeOptions|null} [textTypeOptions] PropertyDefinition textTypeOptions
+ * @property {google.cloud.contentwarehouse.v1.IPropertyTypeOptions|null} [propertyTypeOptions] PropertyDefinition propertyTypeOptions
+ * @property {google.cloud.contentwarehouse.v1.IEnumTypeOptions|null} [enumTypeOptions] PropertyDefinition enumTypeOptions
+ * @property {google.cloud.contentwarehouse.v1.IDateTimeTypeOptions|null} [dateTimeTypeOptions] PropertyDefinition dateTimeTypeOptions
+ * @property {google.cloud.contentwarehouse.v1.IMapTypeOptions|null} [mapTypeOptions] PropertyDefinition mapTypeOptions
+ * @property {google.cloud.contentwarehouse.v1.ITimestampTypeOptions|null} [timestampTypeOptions] PropertyDefinition timestampTypeOptions
+ */
+
+ /**
+ * Constructs a new PropertyDefinition.
+ * @memberof google.cloud.contentwarehouse.v1
+ * @classdesc Represents a PropertyDefinition.
+ * @implements IPropertyDefinition
+ * @constructor
+ * @param {google.cloud.contentwarehouse.v1.IPropertyDefinition=} [properties] Properties to set
+ */
+ function PropertyDefinition(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]];
+ }
+
+ /**
+ * PropertyDefinition name.
+ * @member {string} name
+ * @memberof google.cloud.contentwarehouse.v1.PropertyDefinition
+ * @instance
+ */
+ PropertyDefinition.prototype.name = "";
+
+ /**
+ * PropertyDefinition displayName.
+ * @member {string} displayName
+ * @memberof google.cloud.contentwarehouse.v1.PropertyDefinition
+ * @instance
+ */
+ PropertyDefinition.prototype.displayName = "";
+
+ /**
+ * PropertyDefinition isRepeatable.
+ * @member {boolean} isRepeatable
+ * @memberof google.cloud.contentwarehouse.v1.PropertyDefinition
+ * @instance
+ */
+ PropertyDefinition.prototype.isRepeatable = false;
+
+ /**
+ * PropertyDefinition isFilterable.
+ * @member {boolean} isFilterable
+ * @memberof google.cloud.contentwarehouse.v1.PropertyDefinition
+ * @instance
+ */
+ PropertyDefinition.prototype.isFilterable = false;
+
+ /**
+ * PropertyDefinition isSearchable.
+ * @member {boolean} isSearchable
+ * @memberof google.cloud.contentwarehouse.v1.PropertyDefinition
+ * @instance
+ */
+ PropertyDefinition.prototype.isSearchable = false;
+
+ /**
+ * PropertyDefinition isMetadata.
+ * @member {boolean} isMetadata
+ * @memberof google.cloud.contentwarehouse.v1.PropertyDefinition
+ * @instance
+ */
+ PropertyDefinition.prototype.isMetadata = false;
+
+ /**
+ * PropertyDefinition isRequired.
+ * @member {boolean} isRequired
+ * @memberof google.cloud.contentwarehouse.v1.PropertyDefinition
+ * @instance
+ */
+ PropertyDefinition.prototype.isRequired = false;
+
+ /**
+ * PropertyDefinition integerTypeOptions.
+ * @member {google.cloud.contentwarehouse.v1.IIntegerTypeOptions|null|undefined} integerTypeOptions
+ * @memberof google.cloud.contentwarehouse.v1.PropertyDefinition
+ * @instance
+ */
+ PropertyDefinition.prototype.integerTypeOptions = null;
+
+ /**
+ * PropertyDefinition floatTypeOptions.
+ * @member {google.cloud.contentwarehouse.v1.IFloatTypeOptions|null|undefined} floatTypeOptions
+ * @memberof google.cloud.contentwarehouse.v1.PropertyDefinition
+ * @instance
+ */
+ PropertyDefinition.prototype.floatTypeOptions = null;
+
+ /**
+ * PropertyDefinition textTypeOptions.
+ * @member {google.cloud.contentwarehouse.v1.ITextTypeOptions|null|undefined} textTypeOptions
+ * @memberof google.cloud.contentwarehouse.v1.PropertyDefinition
+ * @instance
+ */
+ PropertyDefinition.prototype.textTypeOptions = null;
+
+ /**
+ * PropertyDefinition propertyTypeOptions.
+ * @member {google.cloud.contentwarehouse.v1.IPropertyTypeOptions|null|undefined} propertyTypeOptions
+ * @memberof google.cloud.contentwarehouse.v1.PropertyDefinition
+ * @instance
+ */
+ PropertyDefinition.prototype.propertyTypeOptions = null;
+
+ /**
+ * PropertyDefinition enumTypeOptions.
+ * @member {google.cloud.contentwarehouse.v1.IEnumTypeOptions|null|undefined} enumTypeOptions
+ * @memberof google.cloud.contentwarehouse.v1.PropertyDefinition
+ * @instance
+ */
+ PropertyDefinition.prototype.enumTypeOptions = null;
+
+ /**
+ * PropertyDefinition dateTimeTypeOptions.
+ * @member {google.cloud.contentwarehouse.v1.IDateTimeTypeOptions|null|undefined} dateTimeTypeOptions
+ * @memberof google.cloud.contentwarehouse.v1.PropertyDefinition
+ * @instance
+ */
+ PropertyDefinition.prototype.dateTimeTypeOptions = null;
+
+ /**
+ * PropertyDefinition mapTypeOptions.
+ * @member {google.cloud.contentwarehouse.v1.IMapTypeOptions|null|undefined} mapTypeOptions
+ * @memberof google.cloud.contentwarehouse.v1.PropertyDefinition
+ * @instance
+ */
+ PropertyDefinition.prototype.mapTypeOptions = null;
+
+ /**
+ * PropertyDefinition timestampTypeOptions.
+ * @member {google.cloud.contentwarehouse.v1.ITimestampTypeOptions|null|undefined} timestampTypeOptions
+ * @memberof google.cloud.contentwarehouse.v1.PropertyDefinition
+ * @instance
+ */
+ PropertyDefinition.prototype.timestampTypeOptions = null;
+
+ // OneOf field names bound to virtual getters and setters
+ var $oneOfFields;
+
+ /**
+ * PropertyDefinition valueTypeOptions.
+ * @member {"integerTypeOptions"|"floatTypeOptions"|"textTypeOptions"|"propertyTypeOptions"|"enumTypeOptions"|"dateTimeTypeOptions"|"mapTypeOptions"|"timestampTypeOptions"|undefined} valueTypeOptions
+ * @memberof google.cloud.contentwarehouse.v1.PropertyDefinition
+ * @instance
+ */
+ Object.defineProperty(PropertyDefinition.prototype, "valueTypeOptions", {
+ get: $util.oneOfGetter($oneOfFields = ["integerTypeOptions", "floatTypeOptions", "textTypeOptions", "propertyTypeOptions", "enumTypeOptions", "dateTimeTypeOptions", "mapTypeOptions", "timestampTypeOptions"]),
+ set: $util.oneOfSetter($oneOfFields)
+ });
+
+ /**
+ * Creates a new PropertyDefinition instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.contentwarehouse.v1.PropertyDefinition
+ * @static
+ * @param {google.cloud.contentwarehouse.v1.IPropertyDefinition=} [properties] Properties to set
+ * @returns {google.cloud.contentwarehouse.v1.PropertyDefinition} PropertyDefinition instance
+ */
+ PropertyDefinition.create = function create(properties) {
+ return new PropertyDefinition(properties);
+ };
+
+ /**
+ * Encodes the specified PropertyDefinition message. Does not implicitly {@link google.cloud.contentwarehouse.v1.PropertyDefinition.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.contentwarehouse.v1.PropertyDefinition
+ * @static
+ * @param {google.cloud.contentwarehouse.v1.IPropertyDefinition} message PropertyDefinition message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ PropertyDefinition.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.name != null && Object.hasOwnProperty.call(message, "name"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
+ if (message.isRepeatable != null && Object.hasOwnProperty.call(message, "isRepeatable"))
+ writer.uint32(/* id 2, wireType 0 =*/16).bool(message.isRepeatable);
+ if (message.isFilterable != null && Object.hasOwnProperty.call(message, "isFilterable"))
+ writer.uint32(/* id 3, wireType 0 =*/24).bool(message.isFilterable);
+ if (message.isSearchable != null && Object.hasOwnProperty.call(message, "isSearchable"))
+ writer.uint32(/* id 4, wireType 0 =*/32).bool(message.isSearchable);
+ if (message.isMetadata != null && Object.hasOwnProperty.call(message, "isMetadata"))
+ writer.uint32(/* id 5, wireType 0 =*/40).bool(message.isMetadata);
+ if (message.integerTypeOptions != null && Object.hasOwnProperty.call(message, "integerTypeOptions"))
+ $root.google.cloud.contentwarehouse.v1.IntegerTypeOptions.encode(message.integerTypeOptions, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
+ if (message.floatTypeOptions != null && Object.hasOwnProperty.call(message, "floatTypeOptions"))
+ $root.google.cloud.contentwarehouse.v1.FloatTypeOptions.encode(message.floatTypeOptions, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim();
+ if (message.textTypeOptions != null && Object.hasOwnProperty.call(message, "textTypeOptions"))
+ $root.google.cloud.contentwarehouse.v1.TextTypeOptions.encode(message.textTypeOptions, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim();
+ if (message.propertyTypeOptions != null && Object.hasOwnProperty.call(message, "propertyTypeOptions"))
+ $root.google.cloud.contentwarehouse.v1.PropertyTypeOptions.encode(message.propertyTypeOptions, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim();
+ if (message.enumTypeOptions != null && Object.hasOwnProperty.call(message, "enumTypeOptions"))
+ $root.google.cloud.contentwarehouse.v1.EnumTypeOptions.encode(message.enumTypeOptions, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim();
+ if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName"))
+ writer.uint32(/* id 12, wireType 2 =*/98).string(message.displayName);
+ if (message.dateTimeTypeOptions != null && Object.hasOwnProperty.call(message, "dateTimeTypeOptions"))
+ $root.google.cloud.contentwarehouse.v1.DateTimeTypeOptions.encode(message.dateTimeTypeOptions, writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim();
+ if (message.isRequired != null && Object.hasOwnProperty.call(message, "isRequired"))
+ writer.uint32(/* id 14, wireType 0 =*/112).bool(message.isRequired);
+ if (message.mapTypeOptions != null && Object.hasOwnProperty.call(message, "mapTypeOptions"))
+ $root.google.cloud.contentwarehouse.v1.MapTypeOptions.encode(message.mapTypeOptions, writer.uint32(/* id 15, wireType 2 =*/122).fork()).ldelim();
+ if (message.timestampTypeOptions != null && Object.hasOwnProperty.call(message, "timestampTypeOptions"))
+ $root.google.cloud.contentwarehouse.v1.TimestampTypeOptions.encode(message.timestampTypeOptions, writer.uint32(/* id 16, wireType 2 =*/130).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified PropertyDefinition message, length delimited. Does not implicitly {@link google.cloud.contentwarehouse.v1.PropertyDefinition.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.contentwarehouse.v1.PropertyDefinition
+ * @static
+ * @param {google.cloud.contentwarehouse.v1.IPropertyDefinition} message PropertyDefinition message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ PropertyDefinition.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a PropertyDefinition message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.contentwarehouse.v1.PropertyDefinition
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.contentwarehouse.v1.PropertyDefinition} PropertyDefinition
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ PropertyDefinition.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.contentwarehouse.v1.PropertyDefinition();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.name = reader.string();
+ break;
+ }
+ case 12: {
+ message.displayName = reader.string();
+ break;
+ }
+ case 2: {
+ message.isRepeatable = reader.bool();
+ break;
+ }
+ case 3: {
+ message.isFilterable = reader.bool();
+ break;
+ }
+ case 4: {
+ message.isSearchable = reader.bool();
+ break;
+ }
+ case 5: {
+ message.isMetadata = reader.bool();
+ break;
+ }
+ case 14: {
+ message.isRequired = reader.bool();
+ break;
+ }
+ case 7: {
+ message.integerTypeOptions = $root.google.cloud.contentwarehouse.v1.IntegerTypeOptions.decode(reader, reader.uint32());
+ break;
+ }
+ case 8: {
+ message.floatTypeOptions = $root.google.cloud.contentwarehouse.v1.FloatTypeOptions.decode(reader, reader.uint32());
+ break;
+ }
+ case 9: {
+ message.textTypeOptions = $root.google.cloud.contentwarehouse.v1.TextTypeOptions.decode(reader, reader.uint32());
+ break;
+ }
+ case 10: {
+ message.propertyTypeOptions = $root.google.cloud.contentwarehouse.v1.PropertyTypeOptions.decode(reader, reader.uint32());
+ break;
+ }
+ case 11: {
+ message.enumTypeOptions = $root.google.cloud.contentwarehouse.v1.EnumTypeOptions.decode(reader, reader.uint32());
+ break;
+ }
+ case 13: {
+ message.dateTimeTypeOptions = $root.google.cloud.contentwarehouse.v1.DateTimeTypeOptions.decode(reader, reader.uint32());
+ break;
+ }
+ case 15: {
+ message.mapTypeOptions = $root.google.cloud.contentwarehouse.v1.MapTypeOptions.decode(reader, reader.uint32());
+ break;
+ }
+ case 16: {
+ message.timestampTypeOptions = $root.google.cloud.contentwarehouse.v1.TimestampTypeOptions.decode(reader, reader.uint32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a PropertyDefinition message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.contentwarehouse.v1.PropertyDefinition
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.contentwarehouse.v1.PropertyDefinition} PropertyDefinition
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ PropertyDefinition.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a PropertyDefinition message.
+ * @function verify
+ * @memberof google.cloud.contentwarehouse.v1.PropertyDefinition
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ PropertyDefinition.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ var properties = {};
+ if (message.name != null && message.hasOwnProperty("name"))
+ if (!$util.isString(message.name))
+ return "name: string expected";
+ if (message.displayName != null && message.hasOwnProperty("displayName"))
+ if (!$util.isString(message.displayName))
+ return "displayName: string expected";
+ if (message.isRepeatable != null && message.hasOwnProperty("isRepeatable"))
+ if (typeof message.isRepeatable !== "boolean")
+ return "isRepeatable: boolean expected";
+ if (message.isFilterable != null && message.hasOwnProperty("isFilterable"))
+ if (typeof message.isFilterable !== "boolean")
+ return "isFilterable: boolean expected";
+ if (message.isSearchable != null && message.hasOwnProperty("isSearchable"))
+ if (typeof message.isSearchable !== "boolean")
+ return "isSearchable: boolean expected";
+ if (message.isMetadata != null && message.hasOwnProperty("isMetadata"))
+ if (typeof message.isMetadata !== "boolean")
+ return "isMetadata: boolean expected";
+ if (message.isRequired != null && message.hasOwnProperty("isRequired"))
+ if (typeof message.isRequired !== "boolean")
+ return "isRequired: boolean expected";
+ if (message.integerTypeOptions != null && message.hasOwnProperty("integerTypeOptions")) {
+ properties.valueTypeOptions = 1;
+ {
+ var error = $root.google.cloud.contentwarehouse.v1.IntegerTypeOptions.verify(message.integerTypeOptions);
+ if (error)
+ return "integerTypeOptions." + error;
+ }
+ }
+ if (message.floatTypeOptions != null && message.hasOwnProperty("floatTypeOptions")) {
+ if (properties.valueTypeOptions === 1)
+ return "valueTypeOptions: multiple values";
+ properties.valueTypeOptions = 1;
+ {
+ var error = $root.google.cloud.contentwarehouse.v1.FloatTypeOptions.verify(message.floatTypeOptions);
+ if (error)
+ return "floatTypeOptions." + error;
+ }
+ }
+ if (message.textTypeOptions != null && message.hasOwnProperty("textTypeOptions")) {
+ if (properties.valueTypeOptions === 1)
+ return "valueTypeOptions: multiple values";
+ properties.valueTypeOptions = 1;
+ {
+ var error = $root.google.cloud.contentwarehouse.v1.TextTypeOptions.verify(message.textTypeOptions);
+ if (error)
+ return "textTypeOptions." + error;
+ }
+ }
+ if (message.propertyTypeOptions != null && message.hasOwnProperty("propertyTypeOptions")) {
+ if (properties.valueTypeOptions === 1)
+ return "valueTypeOptions: multiple values";
+ properties.valueTypeOptions = 1;
+ {
+ var error = $root.google.cloud.contentwarehouse.v1.PropertyTypeOptions.verify(message.propertyTypeOptions);
+ if (error)
+ return "propertyTypeOptions." + error;
+ }
+ }
+ if (message.enumTypeOptions != null && message.hasOwnProperty("enumTypeOptions")) {
+ if (properties.valueTypeOptions === 1)
+ return "valueTypeOptions: multiple values";
+ properties.valueTypeOptions = 1;
+ {
+ var error = $root.google.cloud.contentwarehouse.v1.EnumTypeOptions.verify(message.enumTypeOptions);
+ if (error)
+ return "enumTypeOptions." + error;
+ }
+ }
+ if (message.dateTimeTypeOptions != null && message.hasOwnProperty("dateTimeTypeOptions")) {
+ if (properties.valueTypeOptions === 1)
+ return "valueTypeOptions: multiple values";
+ properties.valueTypeOptions = 1;
+ {
+ var error = $root.google.cloud.contentwarehouse.v1.DateTimeTypeOptions.verify(message.dateTimeTypeOptions);
+ if (error)
+ return "dateTimeTypeOptions." + error;
+ }
+ }
+ if (message.mapTypeOptions != null && message.hasOwnProperty("mapTypeOptions")) {
+ if (properties.valueTypeOptions === 1)
+ return "valueTypeOptions: multiple values";
+ properties.valueTypeOptions = 1;
+ {
+ var error = $root.google.cloud.contentwarehouse.v1.MapTypeOptions.verify(message.mapTypeOptions);
+ if (error)
+ return "mapTypeOptions." + error;
+ }
+ }
+ if (message.timestampTypeOptions != null && message.hasOwnProperty("timestampTypeOptions")) {
+ if (properties.valueTypeOptions === 1)
+ return "valueTypeOptions: multiple values";
+ properties.valueTypeOptions = 1;
+ {
+ var error = $root.google.cloud.contentwarehouse.v1.TimestampTypeOptions.verify(message.timestampTypeOptions);
+ if (error)
+ return "timestampTypeOptions." + error;
+ }
+ }
+ return null;
+ };
+
+ /**
+ * Creates a PropertyDefinition message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.contentwarehouse.v1.PropertyDefinition
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.contentwarehouse.v1.PropertyDefinition} PropertyDefinition
+ */
+ PropertyDefinition.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.contentwarehouse.v1.PropertyDefinition)
+ return object;
+ var message = new $root.google.cloud.contentwarehouse.v1.PropertyDefinition();
+ if (object.name != null)
+ message.name = String(object.name);
+ if (object.displayName != null)
+ message.displayName = String(object.displayName);
+ if (object.isRepeatable != null)
+ message.isRepeatable = Boolean(object.isRepeatable);
+ if (object.isFilterable != null)
+ message.isFilterable = Boolean(object.isFilterable);
+ if (object.isSearchable != null)
+ message.isSearchable = Boolean(object.isSearchable);
+ if (object.isMetadata != null)
+ message.isMetadata = Boolean(object.isMetadata);
+ if (object.isRequired != null)
+ message.isRequired = Boolean(object.isRequired);
+ if (object.integerTypeOptions != null) {
+ if (typeof object.integerTypeOptions !== "object")
+ throw TypeError(".google.cloud.contentwarehouse.v1.PropertyDefinition.integerTypeOptions: object expected");
+ message.integerTypeOptions = $root.google.cloud.contentwarehouse.v1.IntegerTypeOptions.fromObject(object.integerTypeOptions);
+ }
+ if (object.floatTypeOptions != null) {
+ if (typeof object.floatTypeOptions !== "object")
+ throw TypeError(".google.cloud.contentwarehouse.v1.PropertyDefinition.floatTypeOptions: object expected");
+ message.floatTypeOptions = $root.google.cloud.contentwarehouse.v1.FloatTypeOptions.fromObject(object.floatTypeOptions);
+ }
+ if (object.textTypeOptions != null) {
+ if (typeof object.textTypeOptions !== "object")
+ throw TypeError(".google.cloud.contentwarehouse.v1.PropertyDefinition.textTypeOptions: object expected");
+ message.textTypeOptions = $root.google.cloud.contentwarehouse.v1.TextTypeOptions.fromObject(object.textTypeOptions);
+ }
+ if (object.propertyTypeOptions != null) {
+ if (typeof object.propertyTypeOptions !== "object")
+ throw TypeError(".google.cloud.contentwarehouse.v1.PropertyDefinition.propertyTypeOptions: object expected");
+ message.propertyTypeOptions = $root.google.cloud.contentwarehouse.v1.PropertyTypeOptions.fromObject(object.propertyTypeOptions);
+ }
+ if (object.enumTypeOptions != null) {
+ if (typeof object.enumTypeOptions !== "object")
+ throw TypeError(".google.cloud.contentwarehouse.v1.PropertyDefinition.enumTypeOptions: object expected");
+ message.enumTypeOptions = $root.google.cloud.contentwarehouse.v1.EnumTypeOptions.fromObject(object.enumTypeOptions);
+ }
+ if (object.dateTimeTypeOptions != null) {
+ if (typeof object.dateTimeTypeOptions !== "object")
+ throw TypeError(".google.cloud.contentwarehouse.v1.PropertyDefinition.dateTimeTypeOptions: object expected");
+ message.dateTimeTypeOptions = $root.google.cloud.contentwarehouse.v1.DateTimeTypeOptions.fromObject(object.dateTimeTypeOptions);
+ }
+ if (object.mapTypeOptions != null) {
+ if (typeof object.mapTypeOptions !== "object")
+ throw TypeError(".google.cloud.contentwarehouse.v1.PropertyDefinition.mapTypeOptions: object expected");
+ message.mapTypeOptions = $root.google.cloud.contentwarehouse.v1.MapTypeOptions.fromObject(object.mapTypeOptions);
+ }
+ if (object.timestampTypeOptions != null) {
+ if (typeof object.timestampTypeOptions !== "object")
+ throw TypeError(".google.cloud.contentwarehouse.v1.PropertyDefinition.timestampTypeOptions: object expected");
+ message.timestampTypeOptions = $root.google.cloud.contentwarehouse.v1.TimestampTypeOptions.fromObject(object.timestampTypeOptions);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a PropertyDefinition message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.contentwarehouse.v1.PropertyDefinition
+ * @static
+ * @param {google.cloud.contentwarehouse.v1.PropertyDefinition} message PropertyDefinition
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ PropertyDefinition.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.name = "";
+ object.isRepeatable = false;
+ object.isFilterable = false;
+ object.isSearchable = false;
+ object.isMetadata = false;
+ object.displayName = "";
+ object.isRequired = false;
+ }
+ if (message.name != null && message.hasOwnProperty("name"))
+ object.name = message.name;
+ if (message.isRepeatable != null && message.hasOwnProperty("isRepeatable"))
+ object.isRepeatable = message.isRepeatable;
+ if (message.isFilterable != null && message.hasOwnProperty("isFilterable"))
+ object.isFilterable = message.isFilterable;
+ if (message.isSearchable != null && message.hasOwnProperty("isSearchable"))
+ object.isSearchable = message.isSearchable;
+ if (message.isMetadata != null && message.hasOwnProperty("isMetadata"))
+ object.isMetadata = message.isMetadata;
+ if (message.integerTypeOptions != null && message.hasOwnProperty("integerTypeOptions")) {
+ object.integerTypeOptions = $root.google.cloud.contentwarehouse.v1.IntegerTypeOptions.toObject(message.integerTypeOptions, options);
+ if (options.oneofs)
+ object.valueTypeOptions = "integerTypeOptions";
+ }
+ if (message.floatTypeOptions != null && message.hasOwnProperty("floatTypeOptions")) {
+ object.floatTypeOptions = $root.google.cloud.contentwarehouse.v1.FloatTypeOptions.toObject(message.floatTypeOptions, options);
+ if (options.oneofs)
+ object.valueTypeOptions = "floatTypeOptions";
+ }
+ if (message.textTypeOptions != null && message.hasOwnProperty("textTypeOptions")) {
+ object.textTypeOptions = $root.google.cloud.contentwarehouse.v1.TextTypeOptions.toObject(message.textTypeOptions, options);
+ if (options.oneofs)
+ object.valueTypeOptions = "textTypeOptions";
+ }
+ if (message.propertyTypeOptions != null && message.hasOwnProperty("propertyTypeOptions")) {
+ object.propertyTypeOptions = $root.google.cloud.contentwarehouse.v1.PropertyTypeOptions.toObject(message.propertyTypeOptions, options);
+ if (options.oneofs)
+ object.valueTypeOptions = "propertyTypeOptions";
+ }
+ if (message.enumTypeOptions != null && message.hasOwnProperty("enumTypeOptions")) {
+ object.enumTypeOptions = $root.google.cloud.contentwarehouse.v1.EnumTypeOptions.toObject(message.enumTypeOptions, options);
+ if (options.oneofs)
+ object.valueTypeOptions = "enumTypeOptions";
+ }
+ if (message.displayName != null && message.hasOwnProperty("displayName"))
+ object.displayName = message.displayName;
+ if (message.dateTimeTypeOptions != null && message.hasOwnProperty("dateTimeTypeOptions")) {
+ object.dateTimeTypeOptions = $root.google.cloud.contentwarehouse.v1.DateTimeTypeOptions.toObject(message.dateTimeTypeOptions, options);
+ if (options.oneofs)
+ object.valueTypeOptions = "dateTimeTypeOptions";
+ }
+ if (message.isRequired != null && message.hasOwnProperty("isRequired"))
+ object.isRequired = message.isRequired;
+ if (message.mapTypeOptions != null && message.hasOwnProperty("mapTypeOptions")) {
+ object.mapTypeOptions = $root.google.cloud.contentwarehouse.v1.MapTypeOptions.toObject(message.mapTypeOptions, options);
+ if (options.oneofs)
+ object.valueTypeOptions = "mapTypeOptions";
+ }
+ if (message.timestampTypeOptions != null && message.hasOwnProperty("timestampTypeOptions")) {
+ object.timestampTypeOptions = $root.google.cloud.contentwarehouse.v1.TimestampTypeOptions.toObject(message.timestampTypeOptions, options);
+ if (options.oneofs)
+ object.valueTypeOptions = "timestampTypeOptions";
+ }
+ return object;
+ };
+
+ /**
+ * Converts this PropertyDefinition to JSON.
+ * @function toJSON
+ * @memberof google.cloud.contentwarehouse.v1.PropertyDefinition
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ PropertyDefinition.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for PropertyDefinition
+ * @function getTypeUrl
+ * @memberof google.cloud.contentwarehouse.v1.PropertyDefinition
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ PropertyDefinition.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.contentwarehouse.v1.PropertyDefinition";
+ };
+
+ return PropertyDefinition;
+ })();
+
+ v1.IntegerTypeOptions = (function() {
+
+ /**
+ * Properties of an IntegerTypeOptions.
+ * @memberof google.cloud.contentwarehouse.v1
+ * @interface IIntegerTypeOptions
+ */
+
+ /**
+ * Constructs a new IntegerTypeOptions.
+ * @memberof google.cloud.contentwarehouse.v1
+ * @classdesc Represents an IntegerTypeOptions.
+ * @implements IIntegerTypeOptions
+ * @constructor
+ * @param {google.cloud.contentwarehouse.v1.IIntegerTypeOptions=} [properties] Properties to set
+ */
+ function IntegerTypeOptions(properties) {
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null)
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * Creates a new IntegerTypeOptions instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.contentwarehouse.v1.IntegerTypeOptions
+ * @static
+ * @param {google.cloud.contentwarehouse.v1.IIntegerTypeOptions=} [properties] Properties to set
+ * @returns {google.cloud.contentwarehouse.v1.IntegerTypeOptions} IntegerTypeOptions instance
+ */
+ IntegerTypeOptions.create = function create(properties) {
+ return new IntegerTypeOptions(properties);
+ };
+
+ /**
+ * Encodes the specified IntegerTypeOptions message. Does not implicitly {@link google.cloud.contentwarehouse.v1.IntegerTypeOptions.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.contentwarehouse.v1.IntegerTypeOptions
+ * @static
+ * @param {google.cloud.contentwarehouse.v1.IIntegerTypeOptions} message IntegerTypeOptions message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ IntegerTypeOptions.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified IntegerTypeOptions message, length delimited. Does not implicitly {@link google.cloud.contentwarehouse.v1.IntegerTypeOptions.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.contentwarehouse.v1.IntegerTypeOptions
+ * @static
+ * @param {google.cloud.contentwarehouse.v1.IIntegerTypeOptions} message IntegerTypeOptions message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ IntegerTypeOptions.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes an IntegerTypeOptions message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.contentwarehouse.v1.IntegerTypeOptions
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.contentwarehouse.v1.IntegerTypeOptions} IntegerTypeOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ IntegerTypeOptions.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.contentwarehouse.v1.IntegerTypeOptions();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an IntegerTypeOptions message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.contentwarehouse.v1.IntegerTypeOptions
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.contentwarehouse.v1.IntegerTypeOptions} IntegerTypeOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ IntegerTypeOptions.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an IntegerTypeOptions message.
+ * @function verify
+ * @memberof google.cloud.contentwarehouse.v1.IntegerTypeOptions
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ IntegerTypeOptions.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ return null;
+ };
+
+ /**
+ * Creates an IntegerTypeOptions message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.contentwarehouse.v1.IntegerTypeOptions
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.contentwarehouse.v1.IntegerTypeOptions} IntegerTypeOptions
+ */
+ IntegerTypeOptions.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.contentwarehouse.v1.IntegerTypeOptions)
+ return object;
+ return new $root.google.cloud.contentwarehouse.v1.IntegerTypeOptions();
+ };
+
+ /**
+ * Creates a plain object from an IntegerTypeOptions message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.contentwarehouse.v1.IntegerTypeOptions
+ * @static
+ * @param {google.cloud.contentwarehouse.v1.IntegerTypeOptions} message IntegerTypeOptions
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ IntegerTypeOptions.toObject = function toObject() {
+ return {};
+ };
+
+ /**
+ * Converts this IntegerTypeOptions to JSON.
+ * @function toJSON
+ * @memberof google.cloud.contentwarehouse.v1.IntegerTypeOptions
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ IntegerTypeOptions.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for IntegerTypeOptions
+ * @function getTypeUrl
+ * @memberof google.cloud.contentwarehouse.v1.IntegerTypeOptions
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ IntegerTypeOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.contentwarehouse.v1.IntegerTypeOptions";
+ };
+
+ return IntegerTypeOptions;
+ })();
+
+ v1.FloatTypeOptions = (function() {
+
+ /**
+ * Properties of a FloatTypeOptions.
+ * @memberof google.cloud.contentwarehouse.v1
+ * @interface IFloatTypeOptions
+ */
+
+ /**
+ * Constructs a new FloatTypeOptions.
+ * @memberof google.cloud.contentwarehouse.v1
+ * @classdesc Represents a FloatTypeOptions.
+ * @implements IFloatTypeOptions
+ * @constructor
+ * @param {google.cloud.contentwarehouse.v1.IFloatTypeOptions=} [properties] Properties to set
+ */
+ function FloatTypeOptions(properties) {
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null)
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * Creates a new FloatTypeOptions instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.contentwarehouse.v1.FloatTypeOptions
+ * @static
+ * @param {google.cloud.contentwarehouse.v1.IFloatTypeOptions=} [properties] Properties to set
+ * @returns {google.cloud.contentwarehouse.v1.FloatTypeOptions} FloatTypeOptions instance
+ */
+ FloatTypeOptions.create = function create(properties) {
+ return new FloatTypeOptions(properties);
+ };
+
+ /**
+ * Encodes the specified FloatTypeOptions message. Does not implicitly {@link google.cloud.contentwarehouse.v1.FloatTypeOptions.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.contentwarehouse.v1.FloatTypeOptions
+ * @static
+ * @param {google.cloud.contentwarehouse.v1.IFloatTypeOptions} message FloatTypeOptions message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ FloatTypeOptions.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified FloatTypeOptions message, length delimited. Does not implicitly {@link google.cloud.contentwarehouse.v1.FloatTypeOptions.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.contentwarehouse.v1.FloatTypeOptions
+ * @static
+ * @param {google.cloud.contentwarehouse.v1.IFloatTypeOptions} message FloatTypeOptions message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ FloatTypeOptions.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a FloatTypeOptions message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.contentwarehouse.v1.FloatTypeOptions
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.contentwarehouse.v1.FloatTypeOptions} FloatTypeOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ FloatTypeOptions.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.contentwarehouse.v1.FloatTypeOptions();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a FloatTypeOptions message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.contentwarehouse.v1.FloatTypeOptions
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.contentwarehouse.v1.FloatTypeOptions} FloatTypeOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ FloatTypeOptions.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a FloatTypeOptions message.
+ * @function verify
+ * @memberof google.cloud.contentwarehouse.v1.FloatTypeOptions
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ FloatTypeOptions.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ return null;
+ };
+
+ /**
+ * Creates a FloatTypeOptions message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.contentwarehouse.v1.FloatTypeOptions
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.contentwarehouse.v1.FloatTypeOptions} FloatTypeOptions
+ */
+ FloatTypeOptions.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.contentwarehouse.v1.FloatTypeOptions)
+ return object;
+ return new $root.google.cloud.contentwarehouse.v1.FloatTypeOptions();
+ };
+
+ /**
+ * Creates a plain object from a FloatTypeOptions message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.contentwarehouse.v1.FloatTypeOptions
+ * @static
+ * @param {google.cloud.contentwarehouse.v1.FloatTypeOptions} message FloatTypeOptions
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ FloatTypeOptions.toObject = function toObject() {
+ return {};
+ };
+
+ /**
+ * Converts this FloatTypeOptions to JSON.
+ * @function toJSON
+ * @memberof google.cloud.contentwarehouse.v1.FloatTypeOptions
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ FloatTypeOptions.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for FloatTypeOptions
+ * @function getTypeUrl
+ * @memberof google.cloud.contentwarehouse.v1.FloatTypeOptions
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ FloatTypeOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.contentwarehouse.v1.FloatTypeOptions";
+ };
+
+ return FloatTypeOptions;
+ })();
+
+ v1.TextTypeOptions = (function() {
+
+ /**
+ * Properties of a TextTypeOptions.
+ * @memberof google.cloud.contentwarehouse.v1
+ * @interface ITextTypeOptions
+ */
+
+ /**
+ * Constructs a new TextTypeOptions.
+ * @memberof google.cloud.contentwarehouse.v1
+ * @classdesc Represents a TextTypeOptions.
+ * @implements ITextTypeOptions
+ * @constructor
+ * @param {google.cloud.contentwarehouse.v1.ITextTypeOptions=} [properties] Properties to set
+ */
+ function TextTypeOptions(properties) {
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null)
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * Creates a new TextTypeOptions instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.contentwarehouse.v1.TextTypeOptions
+ * @static
+ * @param {google.cloud.contentwarehouse.v1.ITextTypeOptions=} [properties] Properties to set
+ * @returns {google.cloud.contentwarehouse.v1.TextTypeOptions} TextTypeOptions instance
+ */
+ TextTypeOptions.create = function create(properties) {
+ return new TextTypeOptions(properties);
+ };
+
+ /**
+ * Encodes the specified TextTypeOptions message. Does not implicitly {@link google.cloud.contentwarehouse.v1.TextTypeOptions.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.contentwarehouse.v1.TextTypeOptions
+ * @static
+ * @param {google.cloud.contentwarehouse.v1.ITextTypeOptions} message TextTypeOptions message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ TextTypeOptions.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified TextTypeOptions message, length delimited. Does not implicitly {@link google.cloud.contentwarehouse.v1.TextTypeOptions.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.contentwarehouse.v1.TextTypeOptions
+ * @static
+ * @param {google.cloud.contentwarehouse.v1.ITextTypeOptions} message TextTypeOptions message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ TextTypeOptions.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a TextTypeOptions message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.contentwarehouse.v1.TextTypeOptions
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.contentwarehouse.v1.TextTypeOptions} TextTypeOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ TextTypeOptions.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.contentwarehouse.v1.TextTypeOptions();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a TextTypeOptions message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.contentwarehouse.v1.TextTypeOptions
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.contentwarehouse.v1.TextTypeOptions} TextTypeOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ TextTypeOptions.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a TextTypeOptions message.
+ * @function verify
+ * @memberof google.cloud.contentwarehouse.v1.TextTypeOptions
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ TextTypeOptions.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ return null;
+ };
+
+ /**
+ * Creates a TextTypeOptions message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.contentwarehouse.v1.TextTypeOptions
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.contentwarehouse.v1.TextTypeOptions} TextTypeOptions
+ */
+ TextTypeOptions.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.contentwarehouse.v1.TextTypeOptions)
+ return object;
+ return new $root.google.cloud.contentwarehouse.v1.TextTypeOptions();
+ };
+
+ /**
+ * Creates a plain object from a TextTypeOptions message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.contentwarehouse.v1.TextTypeOptions
+ * @static
+ * @param {google.cloud.contentwarehouse.v1.TextTypeOptions} message TextTypeOptions
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ TextTypeOptions.toObject = function toObject() {
+ return {};
+ };
+
+ /**
+ * Converts this TextTypeOptions to JSON.
+ * @function toJSON
+ * @memberof google.cloud.contentwarehouse.v1.TextTypeOptions
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ TextTypeOptions.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for TextTypeOptions
+ * @function getTypeUrl
+ * @memberof google.cloud.contentwarehouse.v1.TextTypeOptions
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ TextTypeOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.contentwarehouse.v1.TextTypeOptions";
+ };
+
+ return TextTypeOptions;
+ })();
+
+ v1.DateTimeTypeOptions = (function() {
+
+ /**
+ * Properties of a DateTimeTypeOptions.
+ * @memberof google.cloud.contentwarehouse.v1
+ * @interface IDateTimeTypeOptions
+ */
+
+ /**
+ * Constructs a new DateTimeTypeOptions.
+ * @memberof google.cloud.contentwarehouse.v1
+ * @classdesc Represents a DateTimeTypeOptions.
+ * @implements IDateTimeTypeOptions
+ * @constructor
+ * @param {google.cloud.contentwarehouse.v1.IDateTimeTypeOptions=} [properties] Properties to set
+ */
+ function DateTimeTypeOptions(properties) {
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null)
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * Creates a new DateTimeTypeOptions instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.contentwarehouse.v1.DateTimeTypeOptions
+ * @static
+ * @param {google.cloud.contentwarehouse.v1.IDateTimeTypeOptions=} [properties] Properties to set
+ * @returns {google.cloud.contentwarehouse.v1.DateTimeTypeOptions} DateTimeTypeOptions instance
+ */
+ DateTimeTypeOptions.create = function create(properties) {
+ return new DateTimeTypeOptions(properties);
+ };
+
+ /**
+ * Encodes the specified DateTimeTypeOptions message. Does not implicitly {@link google.cloud.contentwarehouse.v1.DateTimeTypeOptions.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.contentwarehouse.v1.DateTimeTypeOptions
+ * @static
+ * @param {google.cloud.contentwarehouse.v1.IDateTimeTypeOptions} message DateTimeTypeOptions message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ DateTimeTypeOptions.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified DateTimeTypeOptions message, length delimited. Does not implicitly {@link google.cloud.contentwarehouse.v1.DateTimeTypeOptions.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.contentwarehouse.v1.DateTimeTypeOptions
+ * @static
+ * @param {google.cloud.contentwarehouse.v1.IDateTimeTypeOptions} message DateTimeTypeOptions message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ DateTimeTypeOptions.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a DateTimeTypeOptions message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.contentwarehouse.v1.DateTimeTypeOptions
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.contentwarehouse.v1.DateTimeTypeOptions} DateTimeTypeOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ DateTimeTypeOptions.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.contentwarehouse.v1.DateTimeTypeOptions();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a DateTimeTypeOptions message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.contentwarehouse.v1.DateTimeTypeOptions
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.contentwarehouse.v1.DateTimeTypeOptions} DateTimeTypeOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ DateTimeTypeOptions.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a DateTimeTypeOptions message.
+ * @function verify
+ * @memberof google.cloud.contentwarehouse.v1.DateTimeTypeOptions
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ DateTimeTypeOptions.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ return null;
+ };
+
+ /**
+ * Creates a DateTimeTypeOptions message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.contentwarehouse.v1.DateTimeTypeOptions
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.contentwarehouse.v1.DateTimeTypeOptions} DateTimeTypeOptions
+ */
+ DateTimeTypeOptions.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.contentwarehouse.v1.DateTimeTypeOptions)
+ return object;
+ return new $root.google.cloud.contentwarehouse.v1.DateTimeTypeOptions();
+ };
+
+ /**
+ * Creates a plain object from a DateTimeTypeOptions message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.contentwarehouse.v1.DateTimeTypeOptions
+ * @static
+ * @param {google.cloud.contentwarehouse.v1.DateTimeTypeOptions} message DateTimeTypeOptions
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ DateTimeTypeOptions.toObject = function toObject() {
+ return {};
+ };
+
+ /**
+ * Converts this DateTimeTypeOptions to JSON.
+ * @function toJSON
+ * @memberof google.cloud.contentwarehouse.v1.DateTimeTypeOptions
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ DateTimeTypeOptions.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for DateTimeTypeOptions
+ * @function getTypeUrl
+ * @memberof google.cloud.contentwarehouse.v1.DateTimeTypeOptions
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ DateTimeTypeOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.contentwarehouse.v1.DateTimeTypeOptions";
+ };
+
+ return DateTimeTypeOptions;
+ })();
+
+ v1.MapTypeOptions = (function() {
+
+ /**
+ * Properties of a MapTypeOptions.
+ * @memberof google.cloud.contentwarehouse.v1
+ * @interface IMapTypeOptions
+ */
+
+ /**
+ * Constructs a new MapTypeOptions.
+ * @memberof google.cloud.contentwarehouse.v1
+ * @classdesc Represents a MapTypeOptions.
+ * @implements IMapTypeOptions
+ * @constructor
+ * @param {google.cloud.contentwarehouse.v1.IMapTypeOptions=} [properties] Properties to set
+ */
+ function MapTypeOptions(properties) {
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null)
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * Creates a new MapTypeOptions instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.contentwarehouse.v1.MapTypeOptions
+ * @static
+ * @param {google.cloud.contentwarehouse.v1.IMapTypeOptions=} [properties] Properties to set
+ * @returns {google.cloud.contentwarehouse.v1.MapTypeOptions} MapTypeOptions instance
+ */
+ MapTypeOptions.create = function create(properties) {
+ return new MapTypeOptions(properties);
+ };
+
+ /**
+ * Encodes the specified MapTypeOptions message. Does not implicitly {@link google.cloud.contentwarehouse.v1.MapTypeOptions.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.contentwarehouse.v1.MapTypeOptions
+ * @static
+ * @param {google.cloud.contentwarehouse.v1.IMapTypeOptions} message MapTypeOptions message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ MapTypeOptions.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified MapTypeOptions message, length delimited. Does not implicitly {@link google.cloud.contentwarehouse.v1.MapTypeOptions.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.contentwarehouse.v1.MapTypeOptions
+ * @static
+ * @param {google.cloud.contentwarehouse.v1.IMapTypeOptions} message MapTypeOptions message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ MapTypeOptions.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a MapTypeOptions message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.contentwarehouse.v1.MapTypeOptions
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.contentwarehouse.v1.MapTypeOptions} MapTypeOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ MapTypeOptions.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.contentwarehouse.v1.MapTypeOptions();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a MapTypeOptions message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.contentwarehouse.v1.MapTypeOptions
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.contentwarehouse.v1.MapTypeOptions} MapTypeOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ MapTypeOptions.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a MapTypeOptions message.
+ * @function verify
+ * @memberof google.cloud.contentwarehouse.v1.MapTypeOptions
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ MapTypeOptions.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ return null;
+ };
+
+ /**
+ * Creates a MapTypeOptions message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.contentwarehouse.v1.MapTypeOptions
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.contentwarehouse.v1.MapTypeOptions} MapTypeOptions
+ */
+ MapTypeOptions.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.contentwarehouse.v1.MapTypeOptions)
+ return object;
+ return new $root.google.cloud.contentwarehouse.v1.MapTypeOptions();
+ };
+
+ /**
+ * Creates a plain object from a MapTypeOptions message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.contentwarehouse.v1.MapTypeOptions
+ * @static
+ * @param {google.cloud.contentwarehouse.v1.MapTypeOptions} message MapTypeOptions
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ MapTypeOptions.toObject = function toObject() {
+ return {};
+ };
+
+ /**
+ * Converts this MapTypeOptions to JSON.
+ * @function toJSON
+ * @memberof google.cloud.contentwarehouse.v1.MapTypeOptions
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ MapTypeOptions.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for MapTypeOptions
+ * @function getTypeUrl
+ * @memberof google.cloud.contentwarehouse.v1.MapTypeOptions
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ MapTypeOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.contentwarehouse.v1.MapTypeOptions";
+ };
+
+ return MapTypeOptions;
+ })();
+
+ v1.TimestampTypeOptions = (function() {
+
+ /**
+ * Properties of a TimestampTypeOptions.
+ * @memberof google.cloud.contentwarehouse.v1
+ * @interface ITimestampTypeOptions
+ */
+
+ /**
+ * Constructs a new TimestampTypeOptions.
+ * @memberof google.cloud.contentwarehouse.v1
+ * @classdesc Represents a TimestampTypeOptions.
+ * @implements ITimestampTypeOptions
+ * @constructor
+ * @param {google.cloud.contentwarehouse.v1.ITimestampTypeOptions=} [properties] Properties to set
+ */
+ function TimestampTypeOptions(properties) {
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null)
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * Creates a new TimestampTypeOptions instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.contentwarehouse.v1.TimestampTypeOptions
+ * @static
+ * @param {google.cloud.contentwarehouse.v1.ITimestampTypeOptions=} [properties] Properties to set
+ * @returns {google.cloud.contentwarehouse.v1.TimestampTypeOptions} TimestampTypeOptions instance
+ */
+ TimestampTypeOptions.create = function create(properties) {
+ return new TimestampTypeOptions(properties);
+ };
+
+ /**
+ * Encodes the specified TimestampTypeOptions message. Does not implicitly {@link google.cloud.contentwarehouse.v1.TimestampTypeOptions.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.contentwarehouse.v1.TimestampTypeOptions
+ * @static
+ * @param {google.cloud.contentwarehouse.v1.ITimestampTypeOptions} message TimestampTypeOptions message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ TimestampTypeOptions.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified TimestampTypeOptions message, length delimited. Does not implicitly {@link google.cloud.contentwarehouse.v1.TimestampTypeOptions.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.contentwarehouse.v1.TimestampTypeOptions
+ * @static
+ * @param {google.cloud.contentwarehouse.v1.ITimestampTypeOptions} message TimestampTypeOptions message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ TimestampTypeOptions.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a TimestampTypeOptions message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.contentwarehouse.v1.TimestampTypeOptions
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.contentwarehouse.v1.TimestampTypeOptions} TimestampTypeOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ TimestampTypeOptions.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.contentwarehouse.v1.TimestampTypeOptions();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a TimestampTypeOptions message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.contentwarehouse.v1.TimestampTypeOptions
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.contentwarehouse.v1.TimestampTypeOptions} TimestampTypeOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ TimestampTypeOptions.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a TimestampTypeOptions message.
+ * @function verify
+ * @memberof google.cloud.contentwarehouse.v1.TimestampTypeOptions
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ TimestampTypeOptions.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ return null;
+ };
+
+ /**
+ * Creates a TimestampTypeOptions message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.contentwarehouse.v1.TimestampTypeOptions
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.contentwarehouse.v1.TimestampTypeOptions} TimestampTypeOptions
+ */
+ TimestampTypeOptions.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.contentwarehouse.v1.TimestampTypeOptions)
+ return object;
+ return new $root.google.cloud.contentwarehouse.v1.TimestampTypeOptions();
+ };
+
+ /**
+ * Creates a plain object from a TimestampTypeOptions message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.contentwarehouse.v1.TimestampTypeOptions
+ * @static
+ * @param {google.cloud.contentwarehouse.v1.TimestampTypeOptions} message TimestampTypeOptions
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ TimestampTypeOptions.toObject = function toObject() {
+ return {};
+ };
+
+ /**
+ * Converts this TimestampTypeOptions to JSON.
+ * @function toJSON
+ * @memberof google.cloud.contentwarehouse.v1.TimestampTypeOptions
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ TimestampTypeOptions.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for TimestampTypeOptions
+ * @function getTypeUrl
+ * @memberof google.cloud.contentwarehouse.v1.TimestampTypeOptions
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ TimestampTypeOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.contentwarehouse.v1.TimestampTypeOptions";
+ };
+
+ return TimestampTypeOptions;
+ })();
+
+ v1.PropertyTypeOptions = (function() {
+
+ /**
+ * Properties of a PropertyTypeOptions.
+ * @memberof google.cloud.contentwarehouse.v1
+ * @interface IPropertyTypeOptions
+ * @property {Array.|null} [propertyDefinitions] PropertyTypeOptions propertyDefinitions
+ */
+
+ /**
+ * Constructs a new PropertyTypeOptions.
+ * @memberof google.cloud.contentwarehouse.v1
+ * @classdesc Represents a PropertyTypeOptions.
+ * @implements IPropertyTypeOptions
+ * @constructor
+ * @param {google.cloud.contentwarehouse.v1.IPropertyTypeOptions=} [properties] Properties to set
+ */
+ function PropertyTypeOptions(properties) {
+ this.propertyDefinitions = [];
+ 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]];
+ }
+
+ /**
+ * PropertyTypeOptions propertyDefinitions.
+ * @member {Array.} propertyDefinitions
+ * @memberof google.cloud.contentwarehouse.v1.PropertyTypeOptions
+ * @instance
+ */
+ PropertyTypeOptions.prototype.propertyDefinitions = $util.emptyArray;
+
+ /**
+ * Creates a new PropertyTypeOptions instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.contentwarehouse.v1.PropertyTypeOptions
+ * @static
+ * @param {google.cloud.contentwarehouse.v1.IPropertyTypeOptions=} [properties] Properties to set
+ * @returns {google.cloud.contentwarehouse.v1.PropertyTypeOptions} PropertyTypeOptions instance
+ */
+ PropertyTypeOptions.create = function create(properties) {
+ return new PropertyTypeOptions(properties);
+ };
+
+ /**
+ * Encodes the specified PropertyTypeOptions message. Does not implicitly {@link google.cloud.contentwarehouse.v1.PropertyTypeOptions.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.contentwarehouse.v1.PropertyTypeOptions
+ * @static
+ * @param {google.cloud.contentwarehouse.v1.IPropertyTypeOptions} message PropertyTypeOptions message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ PropertyTypeOptions.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.propertyDefinitions != null && message.propertyDefinitions.length)
+ for (var i = 0; i < message.propertyDefinitions.length; ++i)
+ $root.google.cloud.contentwarehouse.v1.PropertyDefinition.encode(message.propertyDefinitions[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified PropertyTypeOptions message, length delimited. Does not implicitly {@link google.cloud.contentwarehouse.v1.PropertyTypeOptions.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.contentwarehouse.v1.PropertyTypeOptions
+ * @static
+ * @param {google.cloud.contentwarehouse.v1.IPropertyTypeOptions} message PropertyTypeOptions message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ PropertyTypeOptions.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a PropertyTypeOptions message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.contentwarehouse.v1.PropertyTypeOptions
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.contentwarehouse.v1.PropertyTypeOptions} PropertyTypeOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ PropertyTypeOptions.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.contentwarehouse.v1.PropertyTypeOptions();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ if (!(message.propertyDefinitions && message.propertyDefinitions.length))
+ message.propertyDefinitions = [];
+ message.propertyDefinitions.push($root.google.cloud.contentwarehouse.v1.PropertyDefinition.decode(reader, reader.uint32()));
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a PropertyTypeOptions message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.contentwarehouse.v1.PropertyTypeOptions
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.contentwarehouse.v1.PropertyTypeOptions} PropertyTypeOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ PropertyTypeOptions.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a PropertyTypeOptions message.
+ * @function verify
+ * @memberof google.cloud.contentwarehouse.v1.PropertyTypeOptions
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ PropertyTypeOptions.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.propertyDefinitions != null && message.hasOwnProperty("propertyDefinitions")) {
+ if (!Array.isArray(message.propertyDefinitions))
+ return "propertyDefinitions: array expected";
+ for (var i = 0; i < message.propertyDefinitions.length; ++i) {
+ var error = $root.google.cloud.contentwarehouse.v1.PropertyDefinition.verify(message.propertyDefinitions[i]);
+ if (error)
+ return "propertyDefinitions." + error;
+ }
+ }
+ return null;
+ };
+
+ /**
+ * Creates a PropertyTypeOptions message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.contentwarehouse.v1.PropertyTypeOptions
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.contentwarehouse.v1.PropertyTypeOptions} PropertyTypeOptions
+ */
+ PropertyTypeOptions.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.contentwarehouse.v1.PropertyTypeOptions)
+ return object;
+ var message = new $root.google.cloud.contentwarehouse.v1.PropertyTypeOptions();
+ if (object.propertyDefinitions) {
+ if (!Array.isArray(object.propertyDefinitions))
+ throw TypeError(".google.cloud.contentwarehouse.v1.PropertyTypeOptions.propertyDefinitions: array expected");
+ message.propertyDefinitions = [];
+ for (var i = 0; i < object.propertyDefinitions.length; ++i) {
+ if (typeof object.propertyDefinitions[i] !== "object")
+ throw TypeError(".google.cloud.contentwarehouse.v1.PropertyTypeOptions.propertyDefinitions: object expected");
+ message.propertyDefinitions[i] = $root.google.cloud.contentwarehouse.v1.PropertyDefinition.fromObject(object.propertyDefinitions[i]);
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a PropertyTypeOptions message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.contentwarehouse.v1.PropertyTypeOptions
+ * @static
+ * @param {google.cloud.contentwarehouse.v1.PropertyTypeOptions} message PropertyTypeOptions
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ PropertyTypeOptions.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.propertyDefinitions = [];
+ if (message.propertyDefinitions && message.propertyDefinitions.length) {
+ object.propertyDefinitions = [];
+ for (var j = 0; j < message.propertyDefinitions.length; ++j)
+ object.propertyDefinitions[j] = $root.google.cloud.contentwarehouse.v1.PropertyDefinition.toObject(message.propertyDefinitions[j], options);
+ }
+ return object;
+ };
+
+ /**
+ * Converts this PropertyTypeOptions to JSON.
+ * @function toJSON
+ * @memberof google.cloud.contentwarehouse.v1.PropertyTypeOptions
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ PropertyTypeOptions.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for PropertyTypeOptions
+ * @function getTypeUrl
+ * @memberof google.cloud.contentwarehouse.v1.PropertyTypeOptions
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ PropertyTypeOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.contentwarehouse.v1.PropertyTypeOptions";
+ };
+
+ return PropertyTypeOptions;
+ })();
+
+ v1.EnumTypeOptions = (function() {
+
+ /**
+ * Properties of an EnumTypeOptions.
+ * @memberof google.cloud.contentwarehouse.v1
+ * @interface IEnumTypeOptions
+ * @property {Array.|null} [possibleValues] EnumTypeOptions possibleValues
+ * @property {boolean|null} [validationCheckDisabled] EnumTypeOptions validationCheckDisabled
+ */
+
+ /**
+ * Constructs a new EnumTypeOptions.
+ * @memberof google.cloud.contentwarehouse.v1
+ * @classdesc Represents an EnumTypeOptions.
+ * @implements IEnumTypeOptions
+ * @constructor
+ * @param {google.cloud.contentwarehouse.v1.IEnumTypeOptions=} [properties] Properties to set
+ */
+ function EnumTypeOptions(properties) {
+ this.possibleValues = [];
+ 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]];
+ }
+
+ /**
+ * EnumTypeOptions possibleValues.
+ * @member {Array.} possibleValues
+ * @memberof google.cloud.contentwarehouse.v1.EnumTypeOptions
+ * @instance
+ */
+ EnumTypeOptions.prototype.possibleValues = $util.emptyArray;
+
+ /**
+ * EnumTypeOptions validationCheckDisabled.
+ * @member {boolean} validationCheckDisabled
+ * @memberof google.cloud.contentwarehouse.v1.EnumTypeOptions
+ * @instance
+ */
+ EnumTypeOptions.prototype.validationCheckDisabled = false;
+
+ /**
+ * Creates a new EnumTypeOptions instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.contentwarehouse.v1.EnumTypeOptions
+ * @static
+ * @param {google.cloud.contentwarehouse.v1.IEnumTypeOptions=} [properties] Properties to set
+ * @returns {google.cloud.contentwarehouse.v1.EnumTypeOptions} EnumTypeOptions instance
+ */
+ EnumTypeOptions.create = function create(properties) {
+ return new EnumTypeOptions(properties);
+ };
+
+ /**
+ * Encodes the specified EnumTypeOptions message. Does not implicitly {@link google.cloud.contentwarehouse.v1.EnumTypeOptions.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.contentwarehouse.v1.EnumTypeOptions
+ * @static
+ * @param {google.cloud.contentwarehouse.v1.IEnumTypeOptions} message EnumTypeOptions message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ EnumTypeOptions.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.possibleValues != null && message.possibleValues.length)
+ for (var i = 0; i < message.possibleValues.length; ++i)
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.possibleValues[i]);
+ if (message.validationCheckDisabled != null && Object.hasOwnProperty.call(message, "validationCheckDisabled"))
+ writer.uint32(/* id 2, wireType 0 =*/16).bool(message.validationCheckDisabled);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified EnumTypeOptions message, length delimited. Does not implicitly {@link google.cloud.contentwarehouse.v1.EnumTypeOptions.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.contentwarehouse.v1.EnumTypeOptions
+ * @static
+ * @param {google.cloud.contentwarehouse.v1.IEnumTypeOptions} message EnumTypeOptions message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ EnumTypeOptions.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes an EnumTypeOptions message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.contentwarehouse.v1.EnumTypeOptions
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.contentwarehouse.v1.EnumTypeOptions} EnumTypeOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ EnumTypeOptions.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.contentwarehouse.v1.EnumTypeOptions();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ if (!(message.possibleValues && message.possibleValues.length))
+ message.possibleValues = [];
+ message.possibleValues.push(reader.string());
+ break;
+ }
+ case 2: {
+ message.validationCheckDisabled = reader.bool();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an EnumTypeOptions message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.contentwarehouse.v1.EnumTypeOptions
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.contentwarehouse.v1.EnumTypeOptions} EnumTypeOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ EnumTypeOptions.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an EnumTypeOptions message.
+ * @function verify
+ * @memberof google.cloud.contentwarehouse.v1.EnumTypeOptions
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ EnumTypeOptions.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.possibleValues != null && message.hasOwnProperty("possibleValues")) {
+ if (!Array.isArray(message.possibleValues))
+ return "possibleValues: array expected";
+ for (var i = 0; i < message.possibleValues.length; ++i)
+ if (!$util.isString(message.possibleValues[i]))
+ return "possibleValues: string[] expected";
+ }
+ if (message.validationCheckDisabled != null && message.hasOwnProperty("validationCheckDisabled"))
+ if (typeof message.validationCheckDisabled !== "boolean")
+ return "validationCheckDisabled: boolean expected";
+ return null;
+ };
+
+ /**
+ * Creates an EnumTypeOptions message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.contentwarehouse.v1.EnumTypeOptions
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.contentwarehouse.v1.EnumTypeOptions} EnumTypeOptions
+ */
+ EnumTypeOptions.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.contentwarehouse.v1.EnumTypeOptions)
+ return object;
+ var message = new $root.google.cloud.contentwarehouse.v1.EnumTypeOptions();
+ if (object.possibleValues) {
+ if (!Array.isArray(object.possibleValues))
+ throw TypeError(".google.cloud.contentwarehouse.v1.EnumTypeOptions.possibleValues: array expected");
+ message.possibleValues = [];
+ for (var i = 0; i < object.possibleValues.length; ++i)
+ message.possibleValues[i] = String(object.possibleValues[i]);
+ }
+ if (object.validationCheckDisabled != null)
+ message.validationCheckDisabled = Boolean(object.validationCheckDisabled);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an EnumTypeOptions message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.contentwarehouse.v1.EnumTypeOptions
+ * @static
+ * @param {google.cloud.contentwarehouse.v1.EnumTypeOptions} message EnumTypeOptions
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ EnumTypeOptions.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.possibleValues = [];
+ if (options.defaults)
+ object.validationCheckDisabled = false;
+ if (message.possibleValues && message.possibleValues.length) {
+ object.possibleValues = [];
+ for (var j = 0; j < message.possibleValues.length; ++j)
+ object.possibleValues[j] = message.possibleValues[j];
+ }
+ if (message.validationCheckDisabled != null && message.hasOwnProperty("validationCheckDisabled"))
+ object.validationCheckDisabled = message.validationCheckDisabled;
+ return object;
+ };
+
+ /**
+ * Converts this EnumTypeOptions to JSON.
+ * @function toJSON
+ * @memberof google.cloud.contentwarehouse.v1.EnumTypeOptions
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ EnumTypeOptions.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for EnumTypeOptions
+ * @function getTypeUrl
+ * @memberof google.cloud.contentwarehouse.v1.EnumTypeOptions
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ EnumTypeOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.contentwarehouse.v1.EnumTypeOptions";
+ };
+
+ return EnumTypeOptions;
+ })();
+
+ v1.DocumentSchemaService = (function() {
+
+ /**
+ * Constructs a new DocumentSchemaService service.
+ * @memberof google.cloud.contentwarehouse.v1
+ * @classdesc Represents a DocumentSchemaService
+ * @extends $protobuf.rpc.Service
+ * @constructor
+ * @param {$protobuf.RPCImpl} rpcImpl RPC implementation
+ * @param {boolean} [requestDelimited=false] Whether requests are length-delimited
+ * @param {boolean} [responseDelimited=false] Whether responses are length-delimited
+ */
+ function DocumentSchemaService(rpcImpl, requestDelimited, responseDelimited) {
+ $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited);
+ }
+
+ (DocumentSchemaService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = DocumentSchemaService;
+
+ /**
+ * Creates new DocumentSchemaService service using the specified rpc implementation.
+ * @function create
+ * @memberof google.cloud.contentwarehouse.v1.DocumentSchemaService
+ * @static
+ * @param {$protobuf.RPCImpl} rpcImpl RPC implementation
+ * @param {boolean} [requestDelimited=false] Whether requests are length-delimited
+ * @param {boolean} [responseDelimited=false] Whether responses are length-delimited
+ * @returns {DocumentSchemaService} RPC service. Useful where requests and/or responses are streamed.
+ */
+ DocumentSchemaService.create = function create(rpcImpl, requestDelimited, responseDelimited) {
+ return new this(rpcImpl, requestDelimited, responseDelimited);
+ };
+
+ /**
+ * Callback as used by {@link google.cloud.contentwarehouse.v1.DocumentSchemaService|createDocumentSchema}.
+ * @memberof google.cloud.contentwarehouse.v1.DocumentSchemaService
+ * @typedef CreateDocumentSchemaCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.contentwarehouse.v1.DocumentSchema} [response] DocumentSchema
+ */
+
+ /**
+ * Calls CreateDocumentSchema.
+ * @function createDocumentSchema
+ * @memberof google.cloud.contentwarehouse.v1.DocumentSchemaService
+ * @instance
+ * @param {google.cloud.contentwarehouse.v1.ICreateDocumentSchemaRequest} request CreateDocumentSchemaRequest message or plain object
+ * @param {google.cloud.contentwarehouse.v1.DocumentSchemaService.CreateDocumentSchemaCallback} callback Node-style callback called with the error, if any, and DocumentSchema
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(DocumentSchemaService.prototype.createDocumentSchema = function createDocumentSchema(request, callback) {
+ return this.rpcCall(createDocumentSchema, $root.google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest, $root.google.cloud.contentwarehouse.v1.DocumentSchema, request, callback);
+ }, "name", { value: "CreateDocumentSchema" });
+
+ /**
+ * Calls CreateDocumentSchema.
+ * @function createDocumentSchema
+ * @memberof google.cloud.contentwarehouse.v1.DocumentSchemaService
+ * @instance
+ * @param {google.cloud.contentwarehouse.v1.ICreateDocumentSchemaRequest} request CreateDocumentSchemaRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.contentwarehouse.v1.DocumentSchemaService|updateDocumentSchema}.
+ * @memberof google.cloud.contentwarehouse.v1.DocumentSchemaService
+ * @typedef UpdateDocumentSchemaCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.contentwarehouse.v1.DocumentSchema} [response] DocumentSchema
+ */
+
+ /**
+ * Calls UpdateDocumentSchema.
+ * @function updateDocumentSchema
+ * @memberof google.cloud.contentwarehouse.v1.DocumentSchemaService
+ * @instance
+ * @param {google.cloud.contentwarehouse.v1.IUpdateDocumentSchemaRequest} request UpdateDocumentSchemaRequest message or plain object
+ * @param {google.cloud.contentwarehouse.v1.DocumentSchemaService.UpdateDocumentSchemaCallback} callback Node-style callback called with the error, if any, and DocumentSchema
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(DocumentSchemaService.prototype.updateDocumentSchema = function updateDocumentSchema(request, callback) {
+ return this.rpcCall(updateDocumentSchema, $root.google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest, $root.google.cloud.contentwarehouse.v1.DocumentSchema, request, callback);
+ }, "name", { value: "UpdateDocumentSchema" });
+
+ /**
+ * Calls UpdateDocumentSchema.
+ * @function updateDocumentSchema
+ * @memberof google.cloud.contentwarehouse.v1.DocumentSchemaService
+ * @instance
+ * @param {google.cloud.contentwarehouse.v1.IUpdateDocumentSchemaRequest} request UpdateDocumentSchemaRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.contentwarehouse.v1.DocumentSchemaService|getDocumentSchema}.
+ * @memberof google.cloud.contentwarehouse.v1.DocumentSchemaService
+ * @typedef GetDocumentSchemaCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.contentwarehouse.v1.DocumentSchema} [response] DocumentSchema
+ */
+
+ /**
+ * Calls GetDocumentSchema.
+ * @function getDocumentSchema
+ * @memberof google.cloud.contentwarehouse.v1.DocumentSchemaService
+ * @instance
+ * @param {google.cloud.contentwarehouse.v1.IGetDocumentSchemaRequest} request GetDocumentSchemaRequest message or plain object
+ * @param {google.cloud.contentwarehouse.v1.DocumentSchemaService.GetDocumentSchemaCallback} callback Node-style callback called with the error, if any, and DocumentSchema
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(DocumentSchemaService.prototype.getDocumentSchema = function getDocumentSchema(request, callback) {
+ return this.rpcCall(getDocumentSchema, $root.google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest, $root.google.cloud.contentwarehouse.v1.DocumentSchema, request, callback);
+ }, "name", { value: "GetDocumentSchema" });
+
+ /**
+ * Calls GetDocumentSchema.
+ * @function getDocumentSchema
+ * @memberof google.cloud.contentwarehouse.v1.DocumentSchemaService
+ * @instance
+ * @param {google.cloud.contentwarehouse.v1.IGetDocumentSchemaRequest} request GetDocumentSchemaRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.contentwarehouse.v1.DocumentSchemaService|deleteDocumentSchema}.
+ * @memberof google.cloud.contentwarehouse.v1.DocumentSchemaService
+ * @typedef DeleteDocumentSchemaCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.protobuf.Empty} [response] Empty
+ */
+
+ /**
+ * Calls DeleteDocumentSchema.
+ * @function deleteDocumentSchema
+ * @memberof google.cloud.contentwarehouse.v1.DocumentSchemaService
+ * @instance
+ * @param {google.cloud.contentwarehouse.v1.IDeleteDocumentSchemaRequest} request DeleteDocumentSchemaRequest message or plain object
+ * @param {google.cloud.contentwarehouse.v1.DocumentSchemaService.DeleteDocumentSchemaCallback} callback Node-style callback called with the error, if any, and Empty
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(DocumentSchemaService.prototype.deleteDocumentSchema = function deleteDocumentSchema(request, callback) {
+ return this.rpcCall(deleteDocumentSchema, $root.google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest, $root.google.protobuf.Empty, request, callback);
+ }, "name", { value: "DeleteDocumentSchema" });
+
+ /**
+ * Calls DeleteDocumentSchema.
+ * @function deleteDocumentSchema
+ * @memberof google.cloud.contentwarehouse.v1.DocumentSchemaService
+ * @instance
+ * @param {google.cloud.contentwarehouse.v1.IDeleteDocumentSchemaRequest} request DeleteDocumentSchemaRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.contentwarehouse.v1.DocumentSchemaService|listDocumentSchemas}.
+ * @memberof google.cloud.contentwarehouse.v1.DocumentSchemaService
+ * @typedef ListDocumentSchemasCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse} [response] ListDocumentSchemasResponse
+ */
+
+ /**
+ * Calls ListDocumentSchemas.
+ * @function listDocumentSchemas
+ * @memberof google.cloud.contentwarehouse.v1.DocumentSchemaService
+ * @instance
+ * @param {google.cloud.contentwarehouse.v1.IListDocumentSchemasRequest} request ListDocumentSchemasRequest message or plain object
+ * @param {google.cloud.contentwarehouse.v1.DocumentSchemaService.ListDocumentSchemasCallback} callback Node-style callback called with the error, if any, and ListDocumentSchemasResponse
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(DocumentSchemaService.prototype.listDocumentSchemas = function listDocumentSchemas(request, callback) {
+ return this.rpcCall(listDocumentSchemas, $root.google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest, $root.google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse, request, callback);
+ }, "name", { value: "ListDocumentSchemas" });
+
+ /**
+ * Calls ListDocumentSchemas.
+ * @function listDocumentSchemas
+ * @memberof google.cloud.contentwarehouse.v1.DocumentSchemaService
+ * @instance
+ * @param {google.cloud.contentwarehouse.v1.IListDocumentSchemasRequest} request ListDocumentSchemasRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ return DocumentSchemaService;
+ })();
+
+ v1.CreateDocumentSchemaRequest = (function() {
+
+ /**
+ * Properties of a CreateDocumentSchemaRequest.
+ * @memberof google.cloud.contentwarehouse.v1
+ * @interface ICreateDocumentSchemaRequest
+ * @property {string|null} [parent] CreateDocumentSchemaRequest parent
+ * @property {google.cloud.contentwarehouse.v1.IDocumentSchema|null} [documentSchema] CreateDocumentSchemaRequest documentSchema
+ */
+
+ /**
+ * Constructs a new CreateDocumentSchemaRequest.
+ * @memberof google.cloud.contentwarehouse.v1
+ * @classdesc Represents a CreateDocumentSchemaRequest.
+ * @implements ICreateDocumentSchemaRequest
+ * @constructor
+ * @param {google.cloud.contentwarehouse.v1.ICreateDocumentSchemaRequest=} [properties] Properties to set
+ */
+ function CreateDocumentSchemaRequest(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]];
+ }
+
+ /**
+ * CreateDocumentSchemaRequest parent.
+ * @member {string} parent
+ * @memberof google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest
+ * @instance
+ */
+ CreateDocumentSchemaRequest.prototype.parent = "";
+
+ /**
+ * CreateDocumentSchemaRequest documentSchema.
+ * @member {google.cloud.contentwarehouse.v1.IDocumentSchema|null|undefined} documentSchema
+ * @memberof google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest
+ * @instance
+ */
+ CreateDocumentSchemaRequest.prototype.documentSchema = null;
+
+ /**
+ * Creates a new CreateDocumentSchemaRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest
+ * @static
+ * @param {google.cloud.contentwarehouse.v1.ICreateDocumentSchemaRequest=} [properties] Properties to set
+ * @returns {google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest} CreateDocumentSchemaRequest instance
+ */
+ CreateDocumentSchemaRequest.create = function create(properties) {
+ return new CreateDocumentSchemaRequest(properties);
+ };
+
+ /**
+ * Encodes the specified CreateDocumentSchemaRequest message. Does not implicitly {@link google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest
+ * @static
+ * @param {google.cloud.contentwarehouse.v1.ICreateDocumentSchemaRequest} message CreateDocumentSchemaRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ CreateDocumentSchemaRequest.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.parent != null && Object.hasOwnProperty.call(message, "parent"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent);
+ if (message.documentSchema != null && Object.hasOwnProperty.call(message, "documentSchema"))
+ $root.google.cloud.contentwarehouse.v1.DocumentSchema.encode(message.documentSchema, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified CreateDocumentSchemaRequest message, length delimited. Does not implicitly {@link google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest
+ * @static
+ * @param {google.cloud.contentwarehouse.v1.ICreateDocumentSchemaRequest} message CreateDocumentSchemaRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ CreateDocumentSchemaRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a CreateDocumentSchemaRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest} CreateDocumentSchemaRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ CreateDocumentSchemaRequest.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.contentwarehouse.v1.CreateDocumentSchemaRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.parent = reader.string();
+ break;
+ }
+ case 2: {
+ message.documentSchema = $root.google.cloud.contentwarehouse.v1.DocumentSchema.decode(reader, reader.uint32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a CreateDocumentSchemaRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest} CreateDocumentSchemaRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ CreateDocumentSchemaRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a CreateDocumentSchemaRequest message.
+ * @function verify
+ * @memberof google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ CreateDocumentSchemaRequest.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.parent != null && message.hasOwnProperty("parent"))
+ if (!$util.isString(message.parent))
+ return "parent: string expected";
+ if (message.documentSchema != null && message.hasOwnProperty("documentSchema")) {
+ var error = $root.google.cloud.contentwarehouse.v1.DocumentSchema.verify(message.documentSchema);
+ if (error)
+ return "documentSchema." + error;
+ }
+ return null;
+ };
+
+ /**
+ * Creates a CreateDocumentSchemaRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest} CreateDocumentSchemaRequest
+ */
+ CreateDocumentSchemaRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest)
+ return object;
+ var message = new $root.google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest();
+ if (object.parent != null)
+ message.parent = String(object.parent);
+ if (object.documentSchema != null) {
+ if (typeof object.documentSchema !== "object")
+ throw TypeError(".google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest.documentSchema: object expected");
+ message.documentSchema = $root.google.cloud.contentwarehouse.v1.DocumentSchema.fromObject(object.documentSchema);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a CreateDocumentSchemaRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest
+ * @static
+ * @param {google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest} message CreateDocumentSchemaRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ CreateDocumentSchemaRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.parent = "";
+ object.documentSchema = null;
+ }
+ if (message.parent != null && message.hasOwnProperty("parent"))
+ object.parent = message.parent;
+ if (message.documentSchema != null && message.hasOwnProperty("documentSchema"))
+ object.documentSchema = $root.google.cloud.contentwarehouse.v1.DocumentSchema.toObject(message.documentSchema, options);
+ return object;
+ };
+
+ /**
+ * Converts this CreateDocumentSchemaRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ CreateDocumentSchemaRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for CreateDocumentSchemaRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ CreateDocumentSchemaRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest";
+ };
+
+ return CreateDocumentSchemaRequest;
+ })();
+
+ v1.GetDocumentSchemaRequest = (function() {
+
+ /**
+ * Properties of a GetDocumentSchemaRequest.
+ * @memberof google.cloud.contentwarehouse.v1
+ * @interface IGetDocumentSchemaRequest
+ * @property {string|null} [name] GetDocumentSchemaRequest name
+ */
+
+ /**
+ * Constructs a new GetDocumentSchemaRequest.
+ * @memberof google.cloud.contentwarehouse.v1
+ * @classdesc Represents a GetDocumentSchemaRequest.
+ * @implements IGetDocumentSchemaRequest
+ * @constructor
+ * @param {google.cloud.contentwarehouse.v1.IGetDocumentSchemaRequest=} [properties] Properties to set
+ */
+ function GetDocumentSchemaRequest(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]];
+ }
+
+ /**
+ * GetDocumentSchemaRequest name.
+ * @member {string} name
+ * @memberof google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest
+ * @instance
+ */
+ GetDocumentSchemaRequest.prototype.name = "";
+
+ /**
+ * Creates a new GetDocumentSchemaRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest
+ * @static
+ * @param {google.cloud.contentwarehouse.v1.IGetDocumentSchemaRequest=} [properties] Properties to set
+ * @returns {google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest} GetDocumentSchemaRequest instance
+ */
+ GetDocumentSchemaRequest.create = function create(properties) {
+ return new GetDocumentSchemaRequest(properties);
+ };
+
+ /**
+ * Encodes the specified GetDocumentSchemaRequest message. Does not implicitly {@link google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest
+ * @static
+ * @param {google.cloud.contentwarehouse.v1.IGetDocumentSchemaRequest} message GetDocumentSchemaRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GetDocumentSchemaRequest.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.name != null && Object.hasOwnProperty.call(message, "name"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified GetDocumentSchemaRequest message, length delimited. Does not implicitly {@link google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest
+ * @static
+ * @param {google.cloud.contentwarehouse.v1.IGetDocumentSchemaRequest} message GetDocumentSchemaRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GetDocumentSchemaRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a GetDocumentSchemaRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest} GetDocumentSchemaRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GetDocumentSchemaRequest.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.contentwarehouse.v1.GetDocumentSchemaRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.name = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a GetDocumentSchemaRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest} GetDocumentSchemaRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GetDocumentSchemaRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a GetDocumentSchemaRequest message.
+ * @function verify
+ * @memberof google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ GetDocumentSchemaRequest.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.name != null && message.hasOwnProperty("name"))
+ if (!$util.isString(message.name))
+ return "name: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a GetDocumentSchemaRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest} GetDocumentSchemaRequest
+ */
+ GetDocumentSchemaRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest)
+ return object;
+ var message = new $root.google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest();
+ if (object.name != null)
+ message.name = String(object.name);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a GetDocumentSchemaRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest
+ * @static
+ * @param {google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest} message GetDocumentSchemaRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ GetDocumentSchemaRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults)
+ object.name = "";
+ if (message.name != null && message.hasOwnProperty("name"))
+ object.name = message.name;
+ return object;
+ };
+
+ /**
+ * Converts this GetDocumentSchemaRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ GetDocumentSchemaRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for GetDocumentSchemaRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ GetDocumentSchemaRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest";
+ };
+
+ return GetDocumentSchemaRequest;
+ })();
+
+ v1.UpdateDocumentSchemaRequest = (function() {
+
+ /**
+ * Properties of an UpdateDocumentSchemaRequest.
+ * @memberof google.cloud.contentwarehouse.v1
+ * @interface IUpdateDocumentSchemaRequest
+ * @property {string|null} [name] UpdateDocumentSchemaRequest name
+ * @property {google.cloud.contentwarehouse.v1.IDocumentSchema|null} [documentSchema] UpdateDocumentSchemaRequest documentSchema
+ */
+
+ /**
+ * Constructs a new UpdateDocumentSchemaRequest.
+ * @memberof google.cloud.contentwarehouse.v1
+ * @classdesc Represents an UpdateDocumentSchemaRequest.
+ * @implements IUpdateDocumentSchemaRequest
+ * @constructor
+ * @param {google.cloud.contentwarehouse.v1.IUpdateDocumentSchemaRequest=} [properties] Properties to set
+ */
+ function UpdateDocumentSchemaRequest(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]];
+ }
+
+ /**
+ * UpdateDocumentSchemaRequest name.
+ * @member {string} name
+ * @memberof google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest
+ * @instance
+ */
+ UpdateDocumentSchemaRequest.prototype.name = "";
+
+ /**
+ * UpdateDocumentSchemaRequest documentSchema.
+ * @member {google.cloud.contentwarehouse.v1.IDocumentSchema|null|undefined} documentSchema
+ * @memberof google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest
+ * @instance
+ */
+ UpdateDocumentSchemaRequest.prototype.documentSchema = null;
+
+ /**
+ * Creates a new UpdateDocumentSchemaRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest
+ * @static
+ * @param {google.cloud.contentwarehouse.v1.IUpdateDocumentSchemaRequest=} [properties] Properties to set
+ * @returns {google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest} UpdateDocumentSchemaRequest instance
+ */
+ UpdateDocumentSchemaRequest.create = function create(properties) {
+ return new UpdateDocumentSchemaRequest(properties);
+ };
+
+ /**
+ * Encodes the specified UpdateDocumentSchemaRequest message. Does not implicitly {@link google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest
+ * @static
+ * @param {google.cloud.contentwarehouse.v1.IUpdateDocumentSchemaRequest} message UpdateDocumentSchemaRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ UpdateDocumentSchemaRequest.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.name != null && Object.hasOwnProperty.call(message, "name"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
+ if (message.documentSchema != null && Object.hasOwnProperty.call(message, "documentSchema"))
+ $root.google.cloud.contentwarehouse.v1.DocumentSchema.encode(message.documentSchema, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified UpdateDocumentSchemaRequest message, length delimited. Does not implicitly {@link google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest
+ * @static
+ * @param {google.cloud.contentwarehouse.v1.IUpdateDocumentSchemaRequest} message UpdateDocumentSchemaRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ UpdateDocumentSchemaRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes an UpdateDocumentSchemaRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest} UpdateDocumentSchemaRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ UpdateDocumentSchemaRequest.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.contentwarehouse.v1.UpdateDocumentSchemaRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.name = reader.string();
+ break;
+ }
+ case 2: {
+ message.documentSchema = $root.google.cloud.contentwarehouse.v1.DocumentSchema.decode(reader, reader.uint32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an UpdateDocumentSchemaRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest} UpdateDocumentSchemaRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ UpdateDocumentSchemaRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an UpdateDocumentSchemaRequest message.
+ * @function verify
+ * @memberof google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ UpdateDocumentSchemaRequest.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.name != null && message.hasOwnProperty("name"))
+ if (!$util.isString(message.name))
+ return "name: string expected";
+ if (message.documentSchema != null && message.hasOwnProperty("documentSchema")) {
+ var error = $root.google.cloud.contentwarehouse.v1.DocumentSchema.verify(message.documentSchema);
+ if (error)
+ return "documentSchema." + error;
+ }
+ return null;
+ };
+
+ /**
+ * Creates an UpdateDocumentSchemaRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest} UpdateDocumentSchemaRequest
+ */
+ UpdateDocumentSchemaRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest)
+ return object;
+ var message = new $root.google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest();
+ if (object.name != null)
+ message.name = String(object.name);
+ if (object.documentSchema != null) {
+ if (typeof object.documentSchema !== "object")
+ throw TypeError(".google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest.documentSchema: object expected");
+ message.documentSchema = $root.google.cloud.contentwarehouse.v1.DocumentSchema.fromObject(object.documentSchema);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an UpdateDocumentSchemaRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest
+ * @static
+ * @param {google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest} message UpdateDocumentSchemaRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ UpdateDocumentSchemaRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.name = "";
+ object.documentSchema = null;
+ }
+ if (message.name != null && message.hasOwnProperty("name"))
+ object.name = message.name;
+ if (message.documentSchema != null && message.hasOwnProperty("documentSchema"))
+ object.documentSchema = $root.google.cloud.contentwarehouse.v1.DocumentSchema.toObject(message.documentSchema, options);
+ return object;
+ };
+
+ /**
+ * Converts this UpdateDocumentSchemaRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ UpdateDocumentSchemaRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for UpdateDocumentSchemaRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ UpdateDocumentSchemaRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest";
+ };
+
+ return UpdateDocumentSchemaRequest;
+ })();
+
+ v1.DeleteDocumentSchemaRequest = (function() {
+
+ /**
+ * Properties of a DeleteDocumentSchemaRequest.
+ * @memberof google.cloud.contentwarehouse.v1
+ * @interface IDeleteDocumentSchemaRequest
+ * @property {string|null} [name] DeleteDocumentSchemaRequest name
+ */
+
+ /**
+ * Constructs a new DeleteDocumentSchemaRequest.
+ * @memberof google.cloud.contentwarehouse.v1
+ * @classdesc Represents a DeleteDocumentSchemaRequest.
+ * @implements IDeleteDocumentSchemaRequest
+ * @constructor
+ * @param {google.cloud.contentwarehouse.v1.IDeleteDocumentSchemaRequest=} [properties] Properties to set
+ */
+ function DeleteDocumentSchemaRequest(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]];
+ }
+
+ /**
+ * DeleteDocumentSchemaRequest name.
+ * @member {string} name
+ * @memberof google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest
+ * @instance
+ */
+ DeleteDocumentSchemaRequest.prototype.name = "";
+
+ /**
+ * Creates a new DeleteDocumentSchemaRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest
+ * @static
+ * @param {google.cloud.contentwarehouse.v1.IDeleteDocumentSchemaRequest=} [properties] Properties to set
+ * @returns {google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest} DeleteDocumentSchemaRequest instance
+ */
+ DeleteDocumentSchemaRequest.create = function create(properties) {
+ return new DeleteDocumentSchemaRequest(properties);
+ };
+
+ /**
+ * Encodes the specified DeleteDocumentSchemaRequest message. Does not implicitly {@link google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest
+ * @static
+ * @param {google.cloud.contentwarehouse.v1.IDeleteDocumentSchemaRequest} message DeleteDocumentSchemaRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ DeleteDocumentSchemaRequest.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.name != null && Object.hasOwnProperty.call(message, "name"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified DeleteDocumentSchemaRequest message, length delimited. Does not implicitly {@link google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest
+ * @static
+ * @param {google.cloud.contentwarehouse.v1.IDeleteDocumentSchemaRequest} message DeleteDocumentSchemaRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ DeleteDocumentSchemaRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a DeleteDocumentSchemaRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest} DeleteDocumentSchemaRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ DeleteDocumentSchemaRequest.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.contentwarehouse.v1.DeleteDocumentSchemaRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.name = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a DeleteDocumentSchemaRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest} DeleteDocumentSchemaRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ DeleteDocumentSchemaRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a DeleteDocumentSchemaRequest message.
+ * @function verify
+ * @memberof google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ DeleteDocumentSchemaRequest.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.name != null && message.hasOwnProperty("name"))
+ if (!$util.isString(message.name))
+ return "name: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a DeleteDocumentSchemaRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest} DeleteDocumentSchemaRequest
+ */
+ DeleteDocumentSchemaRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest)
+ return object;
+ var message = new $root.google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest();
+ if (object.name != null)
+ message.name = String(object.name);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a DeleteDocumentSchemaRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest
+ * @static
+ * @param {google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest} message DeleteDocumentSchemaRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ DeleteDocumentSchemaRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults)
+ object.name = "";
+ if (message.name != null && message.hasOwnProperty("name"))
+ object.name = message.name;
+ return object;
+ };
+
+ /**
+ * Converts this DeleteDocumentSchemaRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ DeleteDocumentSchemaRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for DeleteDocumentSchemaRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ DeleteDocumentSchemaRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest";
+ };
+
+ return DeleteDocumentSchemaRequest;
+ })();
+
+ v1.ListDocumentSchemasRequest = (function() {
+
+ /**
+ * Properties of a ListDocumentSchemasRequest.
+ * @memberof google.cloud.contentwarehouse.v1
+ * @interface IListDocumentSchemasRequest
+ * @property {string|null} [parent] ListDocumentSchemasRequest parent
+ * @property {number|null} [pageSize] ListDocumentSchemasRequest pageSize
+ * @property {string|null} [pageToken] ListDocumentSchemasRequest pageToken
+ */
+
+ /**
+ * Constructs a new ListDocumentSchemasRequest.
+ * @memberof google.cloud.contentwarehouse.v1
+ * @classdesc Represents a ListDocumentSchemasRequest.
+ * @implements IListDocumentSchemasRequest
+ * @constructor
+ * @param {google.cloud.contentwarehouse.v1.IListDocumentSchemasRequest=} [properties] Properties to set
+ */
+ function ListDocumentSchemasRequest(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]];
+ }
+
+ /**
+ * ListDocumentSchemasRequest parent.
+ * @member {string} parent
+ * @memberof google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest
+ * @instance
+ */
+ ListDocumentSchemasRequest.prototype.parent = "";
+
+ /**
+ * ListDocumentSchemasRequest pageSize.
+ * @member {number} pageSize
+ * @memberof google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest
+ * @instance
+ */
+ ListDocumentSchemasRequest.prototype.pageSize = 0;
+
+ /**
+ * ListDocumentSchemasRequest pageToken.
+ * @member {string} pageToken
+ * @memberof google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest
+ * @instance
+ */
+ ListDocumentSchemasRequest.prototype.pageToken = "";
+
+ /**
+ * Creates a new ListDocumentSchemasRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest
+ * @static
+ * @param {google.cloud.contentwarehouse.v1.IListDocumentSchemasRequest=} [properties] Properties to set
+ * @returns {google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest} ListDocumentSchemasRequest instance
+ */
+ ListDocumentSchemasRequest.create = function create(properties) {
+ return new ListDocumentSchemasRequest(properties);
+ };
+
+ /**
+ * Encodes the specified ListDocumentSchemasRequest message. Does not implicitly {@link google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest
+ * @static
+ * @param {google.cloud.contentwarehouse.v1.IListDocumentSchemasRequest} message ListDocumentSchemasRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListDocumentSchemasRequest.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.parent != null && Object.hasOwnProperty.call(message, "parent"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent);
+ if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize"))
+ writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize);
+ if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ListDocumentSchemasRequest message, length delimited. Does not implicitly {@link google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest
+ * @static
+ * @param {google.cloud.contentwarehouse.v1.IListDocumentSchemasRequest} message ListDocumentSchemasRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListDocumentSchemasRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ListDocumentSchemasRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest} ListDocumentSchemasRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListDocumentSchemasRequest.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.contentwarehouse.v1.ListDocumentSchemasRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.parent = reader.string();
+ break;
+ }
+ case 2: {
+ message.pageSize = reader.int32();
+ break;
+ }
+ case 3: {
+ message.pageToken = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ListDocumentSchemasRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest} ListDocumentSchemasRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListDocumentSchemasRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ListDocumentSchemasRequest message.
+ * @function verify
+ * @memberof google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ListDocumentSchemasRequest.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.parent != null && message.hasOwnProperty("parent"))
+ if (!$util.isString(message.parent))
+ return "parent: string expected";
+ if (message.pageSize != null && message.hasOwnProperty("pageSize"))
+ if (!$util.isInteger(message.pageSize))
+ return "pageSize: integer expected";
+ if (message.pageToken != null && message.hasOwnProperty("pageToken"))
+ if (!$util.isString(message.pageToken))
+ return "pageToken: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a ListDocumentSchemasRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest} ListDocumentSchemasRequest
+ */
+ ListDocumentSchemasRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest)
+ return object;
+ var message = new $root.google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest();
+ if (object.parent != null)
+ message.parent = String(object.parent);
+ if (object.pageSize != null)
+ message.pageSize = object.pageSize | 0;
+ if (object.pageToken != null)
+ message.pageToken = String(object.pageToken);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ListDocumentSchemasRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest
+ * @static
+ * @param {google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest} message ListDocumentSchemasRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ListDocumentSchemasRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.parent = "";
+ object.pageSize = 0;
+ object.pageToken = "";
+ }
+ if (message.parent != null && message.hasOwnProperty("parent"))
+ object.parent = message.parent;
+ if (message.pageSize != null && message.hasOwnProperty("pageSize"))
+ object.pageSize = message.pageSize;
+ if (message.pageToken != null && message.hasOwnProperty("pageToken"))
+ object.pageToken = message.pageToken;
+ return object;
+ };
+
+ /**
+ * Converts this ListDocumentSchemasRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ListDocumentSchemasRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ListDocumentSchemasRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ListDocumentSchemasRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest";
+ };
+
+ return ListDocumentSchemasRequest;
+ })();
+
+ v1.ListDocumentSchemasResponse = (function() {
+
+ /**
+ * Properties of a ListDocumentSchemasResponse.
+ * @memberof google.cloud.contentwarehouse.v1
+ * @interface IListDocumentSchemasResponse
+ * @property {Array.|null} [documentSchemas] ListDocumentSchemasResponse documentSchemas
+ * @property {string|null} [nextPageToken] ListDocumentSchemasResponse nextPageToken
+ */
+
+ /**
+ * Constructs a new ListDocumentSchemasResponse.
+ * @memberof google.cloud.contentwarehouse.v1
+ * @classdesc Represents a ListDocumentSchemasResponse.
+ * @implements IListDocumentSchemasResponse
+ * @constructor
+ * @param {google.cloud.contentwarehouse.v1.IListDocumentSchemasResponse=} [properties] Properties to set
+ */
+ function ListDocumentSchemasResponse(properties) {
+ this.documentSchemas = [];
+ 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]];
+ }
+
+ /**
+ * ListDocumentSchemasResponse documentSchemas.
+ * @member {Array.} documentSchemas
+ * @memberof google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse
+ * @instance
+ */
+ ListDocumentSchemasResponse.prototype.documentSchemas = $util.emptyArray;
+
+ /**
+ * ListDocumentSchemasResponse nextPageToken.
+ * @member {string} nextPageToken
+ * @memberof google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse
+ * @instance
+ */
+ ListDocumentSchemasResponse.prototype.nextPageToken = "";
+
+ /**
+ * Creates a new ListDocumentSchemasResponse instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse
+ * @static
+ * @param {google.cloud.contentwarehouse.v1.IListDocumentSchemasResponse=} [properties] Properties to set
+ * @returns {google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse} ListDocumentSchemasResponse instance
+ */
+ ListDocumentSchemasResponse.create = function create(properties) {
+ return new ListDocumentSchemasResponse(properties);
+ };
+
+ /**
+ * Encodes the specified ListDocumentSchemasResponse message. Does not implicitly {@link google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse
+ * @static
+ * @param {google.cloud.contentwarehouse.v1.IListDocumentSchemasResponse} message ListDocumentSchemasResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListDocumentSchemasResponse.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.documentSchemas != null && message.documentSchemas.length)
+ for (var i = 0; i < message.documentSchemas.length; ++i)
+ $root.google.cloud.contentwarehouse.v1.DocumentSchema.encode(message.documentSchemas[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
+ if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ListDocumentSchemasResponse message, length delimited. Does not implicitly {@link google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse
+ * @static
+ * @param {google.cloud.contentwarehouse.v1.IListDocumentSchemasResponse} message ListDocumentSchemasResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListDocumentSchemasResponse.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ListDocumentSchemasResponse message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse} ListDocumentSchemasResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListDocumentSchemasResponse.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.contentwarehouse.v1.ListDocumentSchemasResponse();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ if (!(message.documentSchemas && message.documentSchemas.length))
+ message.documentSchemas = [];
+ message.documentSchemas.push($root.google.cloud.contentwarehouse.v1.DocumentSchema.decode(reader, reader.uint32()));
+ break;
+ }
+ case 2: {
+ message.nextPageToken = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ListDocumentSchemasResponse message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse} ListDocumentSchemasResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListDocumentSchemasResponse.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ListDocumentSchemasResponse message.
+ * @function verify
+ * @memberof google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ListDocumentSchemasResponse.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.documentSchemas != null && message.hasOwnProperty("documentSchemas")) {
+ if (!Array.isArray(message.documentSchemas))
+ return "documentSchemas: array expected";
+ for (var i = 0; i < message.documentSchemas.length; ++i) {
+ var error = $root.google.cloud.contentwarehouse.v1.DocumentSchema.verify(message.documentSchemas[i]);
+ if (error)
+ return "documentSchemas." + error;
+ }
+ }
+ if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken"))
+ if (!$util.isString(message.nextPageToken))
+ return "nextPageToken: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a ListDocumentSchemasResponse message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse} ListDocumentSchemasResponse
+ */
+ ListDocumentSchemasResponse.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse)
+ return object;
+ var message = new $root.google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse();
+ if (object.documentSchemas) {
+ if (!Array.isArray(object.documentSchemas))
+ throw TypeError(".google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse.documentSchemas: array expected");
+ message.documentSchemas = [];
+ for (var i = 0; i < object.documentSchemas.length; ++i) {
+ if (typeof object.documentSchemas[i] !== "object")
+ throw TypeError(".google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse.documentSchemas: object expected");
+ message.documentSchemas[i] = $root.google.cloud.contentwarehouse.v1.DocumentSchema.fromObject(object.documentSchemas[i]);
+ }
+ }
+ if (object.nextPageToken != null)
+ message.nextPageToken = String(object.nextPageToken);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ListDocumentSchemasResponse message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse
+ * @static
+ * @param {google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse} message ListDocumentSchemasResponse
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ListDocumentSchemasResponse.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.documentSchemas = [];
+ if (options.defaults)
+ object.nextPageToken = "";
+ if (message.documentSchemas && message.documentSchemas.length) {
+ object.documentSchemas = [];
+ for (var j = 0; j < message.documentSchemas.length; ++j)
+ object.documentSchemas[j] = $root.google.cloud.contentwarehouse.v1.DocumentSchema.toObject(message.documentSchemas[j], options);
+ }
+ if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken"))
+ object.nextPageToken = message.nextPageToken;
+ return object;
+ };
+
+ /**
+ * Converts this ListDocumentSchemasResponse to JSON.
+ * @function toJSON
+ * @memberof google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ListDocumentSchemasResponse.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ListDocumentSchemasResponse
+ * @function getTypeUrl
+ * @memberof google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ListDocumentSchemasResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse";
+ };
+
+ return ListDocumentSchemasResponse;
+ })();
+
+ v1.DocumentService = (function() {
+
+ /**
+ * Constructs a new DocumentService service.
+ * @memberof google.cloud.contentwarehouse.v1
+ * @classdesc Represents a DocumentService
+ * @extends $protobuf.rpc.Service
+ * @constructor
+ * @param {$protobuf.RPCImpl} rpcImpl RPC implementation
+ * @param {boolean} [requestDelimited=false] Whether requests are length-delimited
+ * @param {boolean} [responseDelimited=false] Whether responses are length-delimited
+ */
+ function DocumentService(rpcImpl, requestDelimited, responseDelimited) {
+ $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited);
+ }
+
+ (DocumentService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = DocumentService;
+
+ /**
+ * Creates new DocumentService service using the specified rpc implementation.
+ * @function create
+ * @memberof google.cloud.contentwarehouse.v1.DocumentService
+ * @static
+ * @param {$protobuf.RPCImpl} rpcImpl RPC implementation
+ * @param {boolean} [requestDelimited=false] Whether requests are length-delimited
+ * @param {boolean} [responseDelimited=false] Whether responses are length-delimited
+ * @returns {DocumentService} RPC service. Useful where requests and/or responses are streamed.
+ */
+ DocumentService.create = function create(rpcImpl, requestDelimited, responseDelimited) {
+ return new this(rpcImpl, requestDelimited, responseDelimited);
+ };
+
+ /**
+ * Callback as used by {@link google.cloud.contentwarehouse.v1.DocumentService|createDocument}.
+ * @memberof google.cloud.contentwarehouse.v1.DocumentService
+ * @typedef CreateDocumentCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.contentwarehouse.v1.CreateDocumentResponse} [response] CreateDocumentResponse
+ */
+
+ /**
+ * Calls CreateDocument.
+ * @function createDocument
+ * @memberof google.cloud.contentwarehouse.v1.DocumentService
+ * @instance
+ * @param {google.cloud.contentwarehouse.v1.ICreateDocumentRequest} request CreateDocumentRequest message or plain object
+ * @param {google.cloud.contentwarehouse.v1.DocumentService.CreateDocumentCallback} callback Node-style callback called with the error, if any, and CreateDocumentResponse
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(DocumentService.prototype.createDocument = function createDocument(request, callback) {
+ return this.rpcCall(createDocument, $root.google.cloud.contentwarehouse.v1.CreateDocumentRequest, $root.google.cloud.contentwarehouse.v1.CreateDocumentResponse, request, callback);
+ }, "name", { value: "CreateDocument" });
+
+ /**
+ * Calls CreateDocument.
+ * @function createDocument
+ * @memberof google.cloud.contentwarehouse.v1.DocumentService
+ * @instance
+ * @param {google.cloud.contentwarehouse.v1.ICreateDocumentRequest} request CreateDocumentRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.contentwarehouse.v1.DocumentService|getDocument}.
+ * @memberof google.cloud.contentwarehouse.v1.DocumentService
+ * @typedef GetDocumentCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.contentwarehouse.v1.Document} [response] Document
+ */
+
+ /**
+ * Calls GetDocument.
+ * @function getDocument
+ * @memberof google.cloud.contentwarehouse.v1.DocumentService
+ * @instance
+ * @param {google.cloud.contentwarehouse.v1.IGetDocumentRequest} request GetDocumentRequest message or plain object
+ * @param {google.cloud.contentwarehouse.v1.DocumentService.GetDocumentCallback} callback Node-style callback called with the error, if any, and Document
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(DocumentService.prototype.getDocument = function getDocument(request, callback) {
+ return this.rpcCall(getDocument, $root.google.cloud.contentwarehouse.v1.GetDocumentRequest, $root.google.cloud.contentwarehouse.v1.Document, request, callback);
+ }, "name", { value: "GetDocument" });
+
+ /**
+ * Calls GetDocument.
+ * @function getDocument
+ * @memberof google.cloud.contentwarehouse.v1.DocumentService
+ * @instance
+ * @param {google.cloud.contentwarehouse.v1.IGetDocumentRequest} request GetDocumentRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.contentwarehouse.v1.DocumentService|updateDocument}.
+ * @memberof google.cloud.contentwarehouse.v1.DocumentService
+ * @typedef UpdateDocumentCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.contentwarehouse.v1.UpdateDocumentResponse} [response] UpdateDocumentResponse
+ */
+
+ /**
+ * Calls UpdateDocument.
+ * @function updateDocument
+ * @memberof google.cloud.contentwarehouse.v1.DocumentService
+ * @instance
+ * @param {google.cloud.contentwarehouse.v1.IUpdateDocumentRequest} request UpdateDocumentRequest message or plain object
+ * @param {google.cloud.contentwarehouse.v1.DocumentService.UpdateDocumentCallback} callback Node-style callback called with the error, if any, and UpdateDocumentResponse
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(DocumentService.prototype.updateDocument = function updateDocument(request, callback) {
+ return this.rpcCall(updateDocument, $root.google.cloud.contentwarehouse.v1.UpdateDocumentRequest, $root.google.cloud.contentwarehouse.v1.UpdateDocumentResponse, request, callback);
+ }, "name", { value: "UpdateDocument" });
+
+ /**
+ * Calls UpdateDocument.
+ * @function updateDocument
+ * @memberof google.cloud.contentwarehouse.v1.DocumentService
+ * @instance
+ * @param {google.cloud.contentwarehouse.v1.IUpdateDocumentRequest} request UpdateDocumentRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.contentwarehouse.v1.DocumentService|deleteDocument}.
+ * @memberof google.cloud.contentwarehouse.v1.DocumentService
+ * @typedef DeleteDocumentCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.protobuf.Empty} [response] Empty
+ */
+
+ /**
+ * Calls DeleteDocument.
+ * @function deleteDocument
+ * @memberof google.cloud.contentwarehouse.v1.DocumentService
+ * @instance
+ * @param {google.cloud.contentwarehouse.v1.IDeleteDocumentRequest} request DeleteDocumentRequest message or plain object
+ * @param {google.cloud.contentwarehouse.v1.DocumentService.DeleteDocumentCallback} callback Node-style callback called with the error, if any, and Empty
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(DocumentService.prototype.deleteDocument = function deleteDocument(request, callback) {
+ return this.rpcCall(deleteDocument, $root.google.cloud.contentwarehouse.v1.DeleteDocumentRequest, $root.google.protobuf.Empty, request, callback);
+ }, "name", { value: "DeleteDocument" });
+
+ /**
+ * Calls DeleteDocument.
+ * @function deleteDocument
+ * @memberof google.cloud.contentwarehouse.v1.DocumentService
+ * @instance
+ * @param {google.cloud.contentwarehouse.v1.IDeleteDocumentRequest} request DeleteDocumentRequest message or plain object
+ * @returns {Promise